/* Navigation, page actions and appearance on the shared Graffs shell. */
.journey-workspace {
  --shell-highlight:#f7cf47; --shell-backdrop:#f7cf47; --shell-dark:#262624;
  --shell-sidebar:#fff; --shell-card:white; --shell-strength:54%; --shell-corner:21px;
  --shell-heading-weight:380; --shell-sidebar-ink:#171815; --shell-sidebar-muted:#63615a; --shell-action-ink:#fff;
  background:radial-gradient(ellipse 58% 57% at 100% 0%,color-mix(in srgb,var(--shell-backdrop) var(--shell-strength),#f0efec) 0%,transparent 78%),linear-gradient(135deg,#e9e9e7,#f8f8f6 65%);
}
.journey-workspace[data-backdrop="clean"] { background:#f3f3f1; }
.journey-workspace[data-backdrop="mist"] { background:radial-gradient(ellipse at 20% 75%,#fff,transparent 60%),linear-gradient(120deg,#ededeb,color-mix(in srgb,var(--shell-backdrop) var(--shell-strength),#f7f7f5)); }
.workspace-header { display:grid; grid-template-columns:minmax(174px,1fr) auto minmax(172px,1fr); position:relative; min-height:80px; }
.workspace-brand { width:min(var(--rail-width),100%); min-width:0; padding-left:clamp(14px,2vw,32px); background:transparent; }
.journey-workspace:has(.workspace-frame > .workspace-sidebar:not([hidden])) .workspace-brand { background:var(--shell-sidebar); }
.workspace-sidebar,.side-dialog .workspace-sidebar { background:var(--shell-sidebar); }
.workspace-header a { text-decoration:none; }
.workspace-header .graffs-wordmark { display:inline-block; font-family:var(--font); font-size:20px; padding:6px 17px; line-height:1.45; }
.workspace-destinations { margin:0; justify-self:center; min-width:0; max-width:100%; }
.workspace-destinations :is(a,button) { display:inline-flex; align-items:center; justify-content:center; color:var(--ink); font:400 14px/1.22 var(--font); padding:10px 17px; border:0; border-radius:999px; background:transparent; white-space:nowrap; cursor:pointer; }
.workspace-destinations :is(a,button):hover { background:#ffffffb8; }
.workspace-destinations [aria-current="page"] { font-weight:500; background:white; box-shadow:0 2px 8px #24231b1c; }
.shell-actions { justify-self:end; display:flex; align-items:center; gap:8px; padding-right:clamp(12px,2vw,32px); }
.shell-actions button,.shell-x { width:36px; height:36px; display:grid; place-items:center; padding:0; border:0; border-radius:13px; background:transparent; color:var(--ink); cursor:pointer; }
.shell-actions button[hidden] { display:none; }
.shell-actions button:hover,.shell-actions button[aria-expanded=true] { background:#191a1512; }
.shell-actions button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.workspace-header :focus-visible,.shell-overlay :focus-visible { outline:2px solid #4c5344; outline-offset:2px; }
.shell-overlay { box-sizing:border-box; color:var(--ink); font:400 14px/1.45 var(--font); background:#fff; border:1px solid #eeede9; border-radius:24px; box-shadow:0 18px 60px #27292224; }
.shell-pop { position:fixed; inset:70px 20px auto auto; width:min(336px,calc(100vw - 20px)); max-height:calc(100dvh - 85px); padding:20px; margin:0; overflow:auto; }
#shell-theme { right:62px; }
.shell-pop-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.shell-pop-heading h2 { font:450 18px/1.3 var(--font); margin:0; }
.shell-x { width:32px; height:32px; font:400 21px/1 var(--font); background:#f4f4f2; }
.shell-overlay :is(input,select,button) { font-family:var(--font); }
.shell-pop p { color:var(--muted); margin:6px 0 14px; }
.shell-pop details { border-bottom:1px solid var(--line); padding:12px 0; }
.shell-pop summary { cursor:pointer; font-weight:530; }
.shell-setting { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; font-size:13px; }
.shell-setting :is(select,input[type=range]) { width:48%; max-width:145px; min-width:0; }
.shell-setting input[type=color] { height:25px; width:35px; border:0; background:none; cursor:pointer; }
.shell-setting input { accent-color:var(--shell-dark); }
.shell-preset-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 7px; margin:10px 0; }
.shell-preset-grid button { display:grid; align-content:start; gap:3px; font-size:11px; text-align:left; border:0; background:transparent; padding:0; cursor:pointer; }
.shell-preset-grid i { display:block; width:100%; height:35px; border-radius:9px; border:1px solid #0001; background:linear-gradient(120deg,#f4f4f3,var(--sample)); }
.shell-preset-grid button[aria-pressed=true] i { outline:2px solid var(--ink); outline-offset:2px; }
.shell-secondary,.shell-account-links a { display:inline-block; margin-top:9px; padding:6px 12px; border:1px solid var(--line); background:#fafaf8; color:var(--ink); border-radius:999px; font:450 13px var(--font); cursor:pointer; text-decoration:none; }
.shell-secondary:hover,.shell-account-links a:hover { background:#eeede8; }
.shell-account-links { display:flex; flex-wrap:wrap; gap:6px; }
.shell-pop small { display:block; margin-top:10px; color:var(--muted); }
.shell-command { position:fixed; inset:clamp(50px,12vh,125px) auto auto 50%; transform:translateX(-50%); width:min(580px,calc(100vw - 24px)); max-height:74dvh; margin:0; padding:14px; }
.shell-command::backdrop { background:#29292338; }
.shell-command form { display:flex; align-items:center; gap:12px; }
.shell-command input { width:100%; min-width:0; border:0; padding:10px 8px; background:white; color:var(--ink); font:400 16px var(--font); }
.shell-command .shell-x { flex:none; }
.shell-command [role=listbox] { margin-top:8px; border-top:1px solid var(--line); padding-top:8px; max-height:52dvh; overflow:auto; }
.shell-command [role=option] { padding:8px 12px; border-radius:9px; cursor:pointer; }
.shell-command [role=option][aria-selected=true] { background:#eeefeb; }
.shell-command .shell-group { margin:9px 12px 2px; color:var(--muted); font-size:12px; }
.shell-command footer { margin:10px 10px 0; color:var(--muted); font-size:12px; }
.journey-workspace .ep-heading h3 { font-weight:var(--shell-heading-weight); }
.journey-workspace :is(.ep-card,.ep-inspector,.ep-body-split > section) { background:var(--shell-card); border-radius:var(--shell-corner); }
.journey-workspace .ep-card.ep-notes-card { background:color-mix(in srgb,var(--shell-highlight) 13%,white); border-color:color-mix(in srgb,var(--shell-highlight) 48%,white); }
.journey-workspace .ep-option[aria-current=true] { background:color-mix(in srgb,var(--shell-highlight) 21%,white); border-left-color:color-mix(in srgb,var(--shell-highlight) 75%,#494432); }
.journey-workspace .context-actions #wide-btn,.journey-workspace .btn-primary { background:var(--shell-dark); border-color:var(--shell-dark); }
@media (max-width:1100px) { .journey-workspace:has(.workspace-frame > .workspace-sidebar) .workspace-brand { background:transparent; } .workspace-destinations :is(a,button) { padding:9px 12px; } }
@media (max-width:960px) {
  .workspace-header { grid-template-columns:minmax(100px,1fr) auto; gap:5px; min-height:0; padding:6px 8px 9px; }
  .workspace-brand { width:auto; padding:0; gap:5px; }
  .workspace-header .graffs-wordmark { font-size:17px; padding:3px 12px; }
  .shell-actions { grid-column:2; grid-row:1; gap:3px; padding:0; }
  .workspace-destinations { grid-column:1/-1; width:max-content; overflow-x:auto; margin:0; max-width:100%; }
  .workspace-destinations :is(a,button) { padding:7px 11px; font-size:13px; }
  .shell-pop,#shell-theme { inset:48px 8px auto auto; max-height:calc(100dvh - 60px); }
}
@media (max-width:360px) { .workspace-destinations :is(a,button) { padding:6px 8px; } }

@media (min-width:1101px) {
  .journey-workspace[data-side-expanded=true] .workspace-brand :is(.graffs-wordmark,.sidebar-toggle) { color:var(--shell-sidebar-ink); border-color:var(--shell-sidebar-ink); }
}
.journey-workspace .context-actions #wide-btn,.journey-workspace .btn-primary { color:var(--shell-action-ink); }
.journey-workspace :is(.na-panel,.qd-card,.qd-tile,.et-table-wrap,.jr-calendar,.jr-inspector) { border-radius:var(--shell-corner); background-color:var(--shell-card); }
.journey-workspace :is(.qd-head h2,.et-heading h3,.jr-title h3,.na-title) { font-weight:var(--shell-heading-weight); }
.journey-workspace :is(.qd-frame,.et-view,.et-plot text) { font-family:var(--font); }
@media (max-width:460px) { .workspace-destinations :is(a,button) { padding-inline:clamp(5px,1.8vw,8px); } }

#shell-notes { gap:5px; }
#shell-notes svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.5; }
@media (max-width:360px) {
  .workspace-destinations { flex-wrap:wrap; justify-content:center; gap:1px; padding-inline:2px; }
  .workspace-destinations :is(a,button) { padding-inline:4px; }
}
.notes-menu { position:fixed; inset:auto; margin:0; padding:8px; width:min(240px,calc(100vw - 16px)); overflow:auto; overscroll-behavior:contain; border-radius:16px; }
.notes-menu p { margin:7px 10px 3px; font-size:12px; color:var(--muted); }
.notes-menu a { display:block; padding:6px 10px; border-radius:8px; color:var(--ink); text-decoration:none; }
.notes-menu a[aria-current=page] { font-weight:550; background:color-mix(in srgb,var(--shell-highlight) 18%,white); }
.notes-menu a:hover,.notes-menu a:focus-visible { background:#f2f2f0; outline-offset:-2px; }
