#d2d-guest {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(12px, 2.5vw, 36px);
  background: #ffdb94;
  border-bottom: 2px solid #bc731c;
  color: #38270e;
  font: 500 15px/1.4 system-ui, sans-serif;
}
#d2d-guest strong {
  display: inline-block;
  margin-right: .4em;
  font-size: 17px;
  font-weight: 750;
}
#d2d-guest a {
  flex: none;
  padding: 8px 18px;
  border-radius: 8px;
  background: #38270e;
  color: #fff7e6;
  font-weight: 700;
  text-decoration: none;
}
#d2d-guest a:hover { background: #553a12; }
#d2d-guest a:focus-visible { outline: 2px solid #38270e; outline-offset: 3px; }
@media (max-width: 600px) {
  #d2d-guest { gap: 8px; font-size: 14px; }
  #d2d-guest strong { display: block; }
  #d2d-guest a { padding: 12px 14px; }
}
#d2d-notice{position:fixed;z-index:2147483646;inset:auto 12px 12px;margin:auto;max-width:780px;border-radius:9px;padding:12px 16px;background:#fff5d7;color:#352812;box-shadow:0 2px 12px #0004;font:15px/1.45 system-ui;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#d2d-notice[hidden],#d2d-notice button[hidden]{display:none}
#d2d-notice span{flex:1 1 260px}
#d2d-notice button{background:#fff;border:1px solid #8c7654;border-radius:6px;padding:6px 10px;color:#352812;cursor:pointer}
@media(max-width:700px){.mainc header{flex-wrap:wrap;height:auto;min-height:44px}}
/* Account controls in both planner themes. */
body.pr-app #sb {width:256px!important;padding:18px 12px!important;align-items:stretch}
body.pr-app #sb .brand {margin:0 5px 15px}
body.pr-app #sb #exit {display:none}
.profile-row {display:flex;align-items:center;gap:2px;margin-bottom:14px;flex:none;color:var(--bc-nav-ink,var(--pr-ink))}
.pastel-app .profile-row {color:var(--pr-ink)}
.profile-row button,.profile-dialog button,#profile-restore {font:inherit;cursor:pointer}
.profile-row svg,.profile-dialog svg,#profile-restore svg {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profile-trigger,.profile-icon-button {display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:36px;padding:4px;background:transparent;border:0;border-radius:6px;color:inherit}
#profile-trigger {flex:1;min-width:0;gap:7px;justify-content:flex-start;font-size:14px;line-height:21px;font-weight:600}
#profile-trigger>svg {width:14px;height:14px}
.profile-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-avatar {width:28px;height:28px;flex:none;display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;background:#ecd7b8;color:#533a23;font-size:13px;font-weight:600}
.profile-avatar img,.photo-preview img {width:100%;height:100%;object-fit:cover}
.profile-icon-button {flex:none;position:relative}
.profile-row :is(button,a):hover,.profile-row button[aria-expanded=true]:not([aria-controls=sb]),#profile-restore:hover {background:color-mix(in srgb,currentColor 9%,transparent)}
.profile-row :is(button,a):focus-visible,.profile-dialog button:focus-visible,#profile-restore:focus-visible {outline:2px solid currentColor;outline-offset:-2px}
.has-reminders::after {content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#ed8b22;top:5px;right:4px}
.profile-popup,.profile-dialog {box-sizing:border-box;color:var(--pr-ink,#282621);background:var(--pr-surface,#fffdf9);border:1px solid var(--pr-line,#dedbd5);border-radius:12px;box-shadow:0 6px 28px #0002;font-size:14px;line-height:21px}
.profile-popup {position:fixed;inset:auto;margin:0;width:min(280px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:5px}
.profile-popup :is(a,button) {text-decoration:none;color:inherit;border:0;background:none}
.profile-identity,.profile-item {display:flex;align-items:center;width:100%;gap:12px;padding:8px 12px;text-align:left;border-radius:6px;box-sizing:border-box;line-height:20px}
.profile-identity {margin:0 0 5px;padding:9px 12px 12px;border-bottom:1px solid var(--pr-line)!important}
.profile-identity>span:last-child {min-width:0;overflow-wrap:anywhere}
.profile-identity :is(strong,small),.profile-reminder small {display:block}
.profile-identity small,.profile-reminder small {font-size:12px;line-height:17px;color:var(--pr-muted)}
.profile-item {font-size:14px;font-weight:400;line-height:21px;min-height:36px}
.profile-item:last-child {border-top:1px solid var(--pr-line);margin-top:5px}
#profile-notifications {padding:14px 16px}
#profile-notifications p,.profile-dialog p {margin:8px 0;color:inherit}
.profile-reminder {border-top:1px solid var(--pr-line);margin-top:8px;padding-top:8px;overflow-wrap:anywhere}
.profile-dialog {max-width:min(360px,calc(100vw - 32px));width:360px;margin:auto;padding:20px}
.profile-dialog::backdrop {background:#1116}
.profile-dialog header {display:flex;align-items:center;justify-content:space-between}
.profile-dialog h2 {margin:0}
.profile-summary {display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0 0}
.profile-summary dd {margin:0;font-weight:600;font-variant-numeric:tabular-nums}
#profile-restore {display:none}
@media(min-width:761px) {
  body.pr-app.profile-collapsed #sb {display:none!important}
  body.pr-app.profile-collapsed #profile-restore {display:inline-flex}
  body.pr-app.profile-collapsed .mainc>header {display:flex!important}
}
@media(min-width:761px) and (max-width:950px) {
  body.pr-app #sb {width:198px!important}
  body.pr-app #sb .nm,body.pr-app #sb .it>span:not(.ic) {display:inline}
  body.pr-app #sb .it {justify-content:flex-start}
}
@media(max-width:760px) {
  .profile-icon-button,#profile-trigger,.profile-item {min-height:44px}
  .profile-row .profile-icon-button {width:44px}
}
.d2d-section-status {padding:24px}
.d2d-section-status button {font:inherit;cursor:pointer}
.profile-resources {display:grid;border-block:1px solid var(--pr-line,#dedbd5);padding:4px 0;margin:4px 0}
.profile-resources a {display:block;padding:9px 12px;border-radius:7px}
.profile-resources a:is(:hover,:focus-visible) {background:var(--pr-hv,#edeae3)}
