/* Scoped under .desk so nothing here touches the landing page. */
.desk, .try-demo { display: none; }
.try-demo:not([hidden]) { display: inline-flex; }
body.desk-on { overflow: hidden; }
body.desk-on .desk { display: block; }
.desk {
  --bar: 28px;
  --sys: #0a7aff;
  --paper: #f2f2f6; --surface: #ffffff; --sunk: #e8e8ed; --ink: #1d1d1f; --graphite: #6e6e73; --hairline: rgba(60, 60, 67, 0.16);
  --glass: rgba(255, 255, 255, 0.62); --glass-strong: rgba(250, 250, 252, 0.82); --edge: rgba(255, 255, 255, 0.7); --shade: rgba(0, 0, 0, 0.14);
  --good: #1f8a4c; --warn: #b36b00; --bad: #c4372c;
  position: fixed; inset: 0; z-index: 100; overflow: hidden; color: var(--ink);
  font: 400 13.5px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Onest", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 800px at 85% 5%, rgba(255, 190, 150, 0.7), transparent 60%),
    radial-gradient(1000px 800px at 10% 100%, rgba(130, 170, 255, 0.75), transparent 62%),
    linear-gradient(160deg, #cfe0f7, #e9dcf3 55%, #f6e4d6);
  user-select: none; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .desk {
  --sys: #0a84ff;
  --paper: #1c1c1e; --surface: #2c2c2e; --sunk: #3a3a3c; --ink: #f5f5f7; --graphite: #a1a1a6; --hairline: rgba(235, 235, 245, 0.16);
  --glass: rgba(60, 60, 66, 0.55); --glass-strong: rgba(40, 40, 44, 0.8); --edge: rgba(255, 255, 255, 0.14); --shade: rgba(0, 0, 0, 0.5);
  --good: #4ac27d; --warn: #ffb340; --bad: #ff6a5e;
  background:
    radial-gradient(1200px 800px at 85% 5%, rgba(160, 80, 120, 0.5), transparent 60%),
    radial-gradient(1000px 800px at 10% 100%, rgba(30, 80, 200, 0.55), transparent 62%),
    linear-gradient(160deg, #0b1830, #1d1440 55%, #301a2a);
}
.desk[hidden] { display: none !important; }
.desk button, .desk select, .desk input { font: inherit; color: inherit; }
.desk button { cursor: pointer; }
.desk :focus-visible { outline: 2px solid var(--sys); outline-offset: 2px; }
.desk .menubar {
  position: absolute; left: 0; right: 0; top: 0; height: var(--bar); z-index: 9000; display: flex; align-items: center; gap: 2px; padding: 0 12px;
  font-size: 13.5px; font-weight: 500; background: linear-gradient(var(--glass), transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.desk .mb-brand, .desk .mb-item, .desk .mb-btn { background: none; border: 0; padding: 2px 9px; border-radius: 7px; color: inherit; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; line-height: 1.5; }
.desk .mb-brand { font-weight: 700; }
.desk .mb-brand img { border-radius: 4px; }
.desk .mb-brand:hover, .desk .mb-item:hover, .desk .mb-btn:hover, .desk .mb-brand[aria-expanded="true"], .desk .mb-item[aria-expanded="true"] { background: rgba(120, 120, 128, 0.22); }
.desk .mb-space { flex: 1; }
.desk .mb-clock { padding: 0 6px 0 12px; font-feature-settings: "tnum" 1; }
.desk .menu-drop {
  position: absolute; top: calc(var(--bar) - 1px); z-index: 9100; min-width: 240px; padding: 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid var(--edge); box-shadow: 0 18px 44px -10px var(--shade), 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.desk .menu-drop[hidden] { display: none; }
.desk .menu-drop button, .desk .menu-drop a { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 5px 10px 5px 4px; border-radius: 7px; color: inherit; text-decoration: none; font-size: 13.5px; }
.desk .menu-drop .chk { width: 18px; text-align: center; font-size: 12px; }
.desk .menu-drop button:hover, .desk .menu-drop a:hover, .desk .menu-drop button:focus-visible, .desk .menu-drop a:focus-visible { background: var(--sys); color: #fff; outline: 0; }
.desk .menu-drop hr { border: 0; border-top: 1px solid var(--hairline); margin: 5px 8px; }
.deskicons { position: absolute; top: calc(var(--bar) + 18px); right: 20px; z-index: 5; display: grid; gap: 12px; justify-items: center; }
.deskicon { width: 92px; background: none; border: 0; padding: 4px; border-radius: 10px; text-align: center; text-decoration: none; color: inherit; display: grid; justify-items: center; gap: 5px; }
.deskicon:hover { background: rgba(120, 120, 128, 0.2); }
.deskicon .cap { font-size: 12.5px; line-height: 1.2; font-weight: 500; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35); }
:root[data-theme="dark"] .desk .deskicon .cap { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.desk .tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--sunk)); border: 1px solid var(--edge); box-shadow: 0 6px 14px -8px var(--shade); }
.desk .tile svg { width: 26px; height: 26px; }
.desk .tile.accent { background: linear-gradient(180deg, #4da3ff, var(--sys)); color: #fff; }
.desk .windows { position: absolute; inset: var(--bar) 0 0 0; pointer-events: none; z-index: 10; }
.desk .win {
  pointer-events: auto; position: absolute; display: flex; flex-direction: column; min-width: 340px; min-height: 200px; overflow: hidden;
  border-radius: 24px; background: var(--glass-strong); backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid var(--edge); box-shadow: 0 30px 80px -20px var(--shade), 0 0 0 0.5px rgba(0, 0, 0, 0.3); user-select: text;
}
.desk .win[hidden] { display: none; }
.desk .win:focus-visible { outline: none; }
.desk .win:not(.front) { box-shadow: 0 16px 40px -18px var(--shade), 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.desk .win.max { inset: 6px 6px 96px 6px !important; width: auto !important; height: auto !important; }
.desk .win.anim { transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
.desk .win.anim { transition: none; }
}
.desk .titlebar { flex: none; display: flex; align-items: center; height: 46px; padding: 0 18px; cursor: default; user-select: none; touch-action: none; }
.desk .titlebar h2 { flex: 1; margin: 0 54px 0 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--graphite); }
.desk .win:not(.front) .titlebar h2 { opacity: 0.6; }
.desk .lights { display: flex; gap: 8px; }
.desk .light { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.3); color: rgba(0, 0, 0, 0.62); }
.desk .light.close { background: #ff5f57; }
.desk .light.min { background: #febc2e; }
.desk .light.zoom { background: #28c840; }
.desk .win:not(.front) .light:not(:hover) { background: rgba(130, 130, 135, 0.45); }
.desk .light svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.desk .lights:hover .light svg, .desk .light:focus-visible svg { opacity: 1; }
.desk .light::after { content: ""; position: absolute; inset: -4px; }
.desk .win .body { flex: 1; min-height: 0; overflow: auto; }
.desk .win-doc .body, .desk .win-small .body { padding: 6px 28px 28px; }
.desk .win .lede { font-size: 16px; margin: 0 0 16px; }
.desk .win .fine { color: var(--graphite); font-size: 13px; }
.desk .doc-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.desk .doc-steps li { counter-increment: s; position: relative; padding-left: 38px; }
.desk .doc-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sys) 18%, transparent); color: var(--sys); font-weight: 650; font-size: 13px; }
.desk .doc-steps h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.desk .doc-steps p { margin: 0; color: var(--graphite); }
.desk .doc-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.desk .doc-table th, .desk .doc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.desk .doc-table th { font-size: 12px; color: var(--graphite); font-weight: 600; }
.desk .author-card { display: flex; gap: 18px; align-items: center; }
.desk .author-card .mark { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--sys) 18%, transparent); color: var(--sys); display: grid; place-items: center; font-weight: 650; font-size: 22px; flex: none; }
.desk .author-card h3 { margin: 0 0 4px; font-size: 18px; }
.desk .author-card p { margin: 0 0 12px; color: var(--graphite); }
.desk .win .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.desk .win .btn.primary { background: var(--sys); border-color: transparent; color: #fff; }
.desk .win-app .titlebar { position: absolute; left: 0; top: 0; width: 232px; z-index: 6; height: 46px; }
.desk .win-app .titlebar h2 { display: none; }
.desk .win-app .body { display: flex; overflow: hidden; }
.desk .app { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }
.desk .app-side {
  flex: none; width: 224px; margin: 8px 0 8px 8px; padding: 0 8px 10px; overflow: auto; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--edge); display: flex; flex-direction: column;
}
.desk .side-top { height: 40px; flex: none; }
.desk .side-list { display: grid; gap: 1px; }
.desk .side-h { margin: 14px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--graphite); }
.desk .side-list button { display: flex; align-items: center; gap: 9px; text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; }
.desk .side-list button:hover { background: rgba(120, 120, 128, 0.14); }
.desk .side-list button[aria-current="page"] { background: rgba(120, 120, 128, 0.24); font-weight: 600; }
.desk .side-list .amt { margin-left: auto; color: var(--graphite); font-size: 12px; font-feature-settings: "tnum" 1; font-weight: 400; }
.desk .si { flex: none; width: 17px; height: 17px; background: var(--sys); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; display: inline-block; }
.desk .si-overview { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 3h6v6H3zM11 3h6v4h-6zM11 9h6v8h-6zM3 11h6v6H3z'/%3E%3C/svg%3E"); }
.desk .si-ops { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 4h14v2H3zM3 9h14v2H3zM3 14h9v2H3z'/%3E%3C/svg%3E"); }
.desk .si-calendar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4h2V2h2v2h4V2h2v2h2a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 4v8h12V8z'/%3E%3C/svg%3E"); }
.desk .si-capital { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 17V7l8-4 8 4v10h-2V8l-6-3-6 3v9zM7 17v-6h2v6zm4 0v-6h2v6z'/%3E%3C/svg%3E"); }
.desk .si-plan { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 4v4.4l3 1.8-.8 1.3L9 11V6z'/%3E%3C/svg%3E"); }
.desk .si-debts { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2H2zm0 4h16v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm3 3v2h4v-2z'/%3E%3C/svg%3E"); }
.desk .si-accs, .desk .si-card { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 4h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 3v2h12V7z'/%3E%3C/svg%3E"); }
.desk .si-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 3a5.5 5.5 0 0 1 4.4 8.8l4 4-1.4 1.4-4-4A5.5 5.5 0 1 1 8.5 3zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z'/%3E%3C/svg%3E"); background: var(--graphite); width: 14px; height: 14px; }
.desk .si-plus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9 3h2v6h6v2h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E"); background: currentColor; width: 14px; height: 14px; }
.desk .si-eye { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4c4 0 7 3 8.5 6-1.5 3-4.5 6-8.5 6S3 13 1.5 10C3 7 6 4 10 4zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E"); background: var(--ink); }
.desk .si-eye-off { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 2l15 15-1.3 1.3-2.3-2.3A8.6 8.6 0 0 1 10 16C6 16 3 13 1.5 10a14 14 0 0 1 3.2-4L1.7 3.3zm7 2c4 0 7 3 8.5 6a14 14 0 0 1-2.2 3L5.3 4.2A8 8 0 0 1 10 4z'/%3E%3C/svg%3E"); background: var(--ink); }
.desk .app-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.desk .app-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 8px 14px 0 18px; }
.desk .bar-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.desk .bar-tools { display: flex; align-items: center; gap: 8px; }
.desk .pill { padding: 4px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); font-size: 12px; color: var(--graphite); font-feature-settings: "tnum" 1; }
.desk .tool { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(20px); text-decoration: none; font-weight: 600; font-size: 13px; color: var(--ink); }
.desk .tool:hover { background: var(--surface); }
.desk .tool.primary { background: var(--sys); border-color: transparent; color: #fff; }
.desk .tool.danger { color: var(--bad); }
.desk .search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); }
.desk .search input { border: 0; outline: 0; background: transparent; width: 140px; user-select: text; }
.desk .app-body { flex: 1; min-height: 0; display: flex; }
.desk .app-view { flex: 1; min-width: 0; overflow: auto; padding: 8px 18px 150px; }
.desk .app-insp { flex: none; width: 250px; margin: 0 10px 150px 0; padding: 14px; overflow: auto; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge); }
.desk .app-insp[hidden] { display: none; }
.desk .app-insp label { display: grid; gap: 3px; margin: 10px 0; font-size: 12px; color: var(--graphite); }
.desk .app-insp select, .desk .panel select { height: 30px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface); padding: 0 8px; }
.desk .insp-h { display: flex; justify-content: space-between; align-items: center; }
.desk .app-insp .big { font-size: 24px; margin: 10px 0 2px; }
.desk .app-view h4, .desk .dlg h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--graphite); }
.desk .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.desk .card { background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 14px 16px; text-align: left; color: inherit; display: block; width: 100%; box-shadow: 0 6px 18px -14px var(--shade); }
.desk button.card { cursor: pointer; }
.desk button.card:hover { background: var(--surface); }
.desk .card.wide { grid-column: 1 / -1; }
.desk .big { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-feature-settings: "tnum" 1, "lnum" 1; line-height: 1.15; margin: 2px 0; }
.desk .sub { color: var(--graphite); font-size: 12.5px; }
.desk .note { margin: 6px 0; font-size: 13.5px; }
.desk .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13.5px; font-feature-settings: "tnum" 1; }
.desk .row.top { border-top: 1px solid var(--hairline); margin-top: 8px; padding-top: 8px; }
.desk .card b { display: block; margin: 10px 0 2px; font-size: 12px; color: var(--graphite); font-weight: 600; }
.desk .bar { height: 7px; border-radius: 4px; background: rgba(120, 120, 128, 0.2); overflow: hidden; margin: 3px 0 4px; }
.desk .bar > i { display: block; height: 100%; background: var(--sys); border-radius: 4px; }
.desk .bar.edge > i { background: var(--warn); }
.desk .bar.over > i { background: var(--bad); }
.desk .lim .sub b { display: inline; margin: 0; font-size: inherit; color: inherit; }
.desk .sentence { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 4px 0 14px; letter-spacing: -0.01em; }
.desk .cal-h { margin: 6px 0 10px !important; }
.desk .day { margin: 14px 4px 6px; font-size: 12px; font-weight: 600; color: var(--graphite); }
.desk .table { background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.desk .tr { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.8fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--hairline); padding: 9px 14px; font-size: 13.5px; }
.desk .tr:last-child { border-bottom: 0; }
.desk .tr:hover { background: rgba(120, 120, 128, 0.12); }
.desk .tr.sel { background: color-mix(in srgb, var(--sys) 22%, transparent); }
.desk .tr.fresh { box-shadow: inset 3px 0 0 var(--sys); }
.desk .tr .c, .desk .tr .a2 { color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk .tr .d em { font-style: normal; color: var(--graphite); font-size: 12px; margin-left: 4px; }
.desk .tr .m { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; font-weight: 500; }
.desk .rate { font-size: 13px; text-align: center; }
.desk .rate-good { color: var(--good); }
.desk .rate-bad { color: var(--warn); }
.desk .rate-neutral { color: var(--graphite); }
.desk .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.desk .cal .wd { text-align: center; font-size: 11.5px; color: var(--graphite); padding: 2px 0; }
.desk .cell { position: relative; min-height: 62px; text-align: left; padding: 7px 8px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); display: flex; flex-direction: column; gap: 2px; }
.desk .cell b { margin: 0; font-size: 13px; color: var(--ink); }
.desk .cell .m { font-size: 11.5px; color: var(--graphite); font-feature-settings: "tnum" 1; }
.desk .cell.future { opacity: 0.8; }
.desk .cell.today { box-shadow: inset 0 0 0 2px var(--sys); }
.desk .cell.sel { background: color-mix(in srgb, var(--sys) 24%, transparent); }
.desk .cell .pr, .desk .cell .pl { position: absolute; right: 7px; top: 6px; font-size: 12px; font-weight: 700; color: var(--warn); }
.desk .cell .pl { color: var(--sys); }
.desk .chart { width: 100%; height: auto; margin-top: 10px; }
.desk .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--graphite); padding: 0 6px; }
.desk .ribbon { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.desk .rb { min-height: 54px; border-radius: 10px; background: rgba(120, 120, 128, 0.12); text-align: center; padding: 6px 0; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.desk .rb.today { box-shadow: inset 0 0 0 2px var(--sys); }
.desk .rb b { font-weight: 600; margin: 0; color: var(--ink); }
.desk .rb .in { color: var(--good); font-weight: 700; }
.desk .rb .out { color: var(--sys); font-weight: 700; }
.desk .app-entry { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 12px; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 88%, transparent) 34%); border-radius: 0 0 24px 0; }
.desk .app-entry > * { pointer-events: auto; }
.desk .entry-read { min-height: 18px; margin: 0 0 6px 18px; font-size: 12.5px; color: var(--graphite); }
.desk .capsule { display: flex; align-items: center; gap: 4px; max-width: 720px; margin: 0 auto; padding: 5px 5px 5px 20px; border-radius: 999px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.5); border: 1px solid var(--edge); box-shadow: 0 10px 30px -10px var(--shade); }
.desk .capsule:focus-within { box-shadow: 0 10px 30px -10px var(--shade), 0 0 0 3px color-mix(in srgb, var(--sys) 35%, transparent); }
.desk .capsule input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 8px 0; user-select: text; }
.desk .capsule .chev { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(120, 120, 128, 0.16); display: grid; place-items: center; }
.desk .capsule .go { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--sys); color: #fff; display: grid; place-items: center; }
.desk .capsule button:disabled, .desk .capsule input:disabled { opacity: 0.45; cursor: not-allowed; }
.desk .panel { max-width: 720px; margin: 0 auto 8px; padding: 12px 14px; border-radius: 22px; background: var(--glass-strong); backdrop-filter: blur(30px); border: 1px solid var(--edge); box-shadow: 0 12px 30px -12px var(--shade); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.desk .panel[hidden] { display: none; }
.desk .panel label { display: grid; gap: 3px; font-size: 11.5px; color: var(--graphite); }
.desk .panel .seg { grid-column: 1 / -1; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(120, 120, 128, 0.16); justify-self: start; }
.desk .seg button { border: 0; background: none; padding: 4px 16px; border-radius: 999px; font-size: 13px; }
.desk .seg button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px var(--shade); }
.desk .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 720px; margin: 8px auto 0; font-size: 12px; color: var(--graphite); }
.desk .chips button { background: var(--glass-strong); border: 1px solid var(--edge); border-radius: 999px; padding: 3px 11px; font-size: 12px; }
.desk .chips button:hover { background: var(--surface); }
.desk .chips button:disabled { opacity: 0.45; cursor: not-allowed; }
.desk .toast { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--paper); padding: 7px 7px 7px 16px; border-radius: 999px; font-size: 13px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
.desk .toast[hidden] { display: none; }
.desk .toast button { background: rgba(120, 120, 128, 0.4); border: 0; border-radius: 999px; padding: 3px 12px; color: inherit; }
.desk .dlg-wrap { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); }
.desk .dlg-wrap[hidden] { display: none; }
.desk .dlg { width: min(460px, 90%); max-height: 90%; overflow: auto; padding: 22px 24px; border-radius: 26px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(40px) saturate(1.6); border: 1px solid var(--edge); box-shadow: 0 30px 70px -20px var(--shade); }
.desk .dlg p { margin: 8px 0; }
.desk .dlg .sub { margin: 4px 0 0; }
.desk .lim-head { display: flex; align-items: center; gap: 14px; }
.desk .lim-head img { border-radius: 14px; }
.desk .lim-head h4 { margin: 0; font-size: 20px; color: var(--ink); font-weight: 700; }
.desk .dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.desk .wl { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 6px 0; font-feature-settings: "tnum" 1; border-bottom: 1px solid var(--hairline); }
.desk .wl .sign { text-align: center; color: var(--graphite); }
.desk .wl.total { font-weight: 700; border-bottom: 0; }
.desk .dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px; border-radius: 26px; background: var(--glass); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border: 1px solid var(--edge); box-shadow: 0 14px 36px -14px var(--shade); }
.desk .dock-btn { position: relative; background: none; border: 0; padding: 0; display: grid; place-items: center; text-decoration: none; color: inherit; border-radius: 13px; transition: transform 0.15s ease; }
.desk .dock-btn:hover { transform: translateY(-6px) scale(1.12); }
@media (prefers-reduced-motion: reduce) {
.desk .dock-btn { transition: none; }
.desk .dock-btn:hover { transform: none; }
}
.desk .dock-btn img { border-radius: 13px; display: block; }
.desk .dock-btn i { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0; }
.desk .dock-btn.open i { opacity: 0.6; }
.desk .dock-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--hairline); }
@media (max-width: 999px), (max-height: 639px), (pointer: coarse) {
.desk { display: none !important; }
.try-demo { display: none !important; }
body.desk-on { overflow: auto; }
}

/* Resizing, full screen, sidebar toggle, shortcuts, context menu */
.desk .rz { position: absolute; z-index: 8; display: block; }
.desk .rz-n, .desk .rz-s { left: 14px; right: 14px; height: 6px; cursor: ns-resize; } .desk .rz-n { top: 0; } .desk .rz-s { bottom: 0; }
.desk .rz-e, .desk .rz-w { top: 14px; bottom: 14px; width: 6px; cursor: ew-resize; } .desk .rz-e { right: 0; } .desk .rz-w { left: 0; }
.desk .rz-ne, .desk .rz-nw, .desk .rz-se, .desk .rz-sw { width: 16px; height: 16px; }
.desk .rz-ne { top: 0; right: 0; cursor: nesw-resize; } .desk .rz-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.desk .rz-nw { top: 0; left: 0; cursor: nwse-resize; } .desk .rz-se { bottom: 0; right: 0; cursor: nwse-resize; }
.desk .win.full { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; border: 0; animation: pop 0.25s ease; }
@keyframes pop { from { transform: scale(0.985); opacity: 0.7; } to { transform: none; opacity: 1; } }
.desk.fs .windows { inset: 0; }
.desk.fs .dock, .desk.fs .deskicons { display: none; }
.desk.fs .menubar { transform: translateY(-100%); transition: transform 0.2s ease; background: var(--glass-strong); }
.desk.fs.bar-show .menubar, .desk.fs .menubar:hover { transform: none; }
.desk .hot { position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 9500; display: none; }
.desk.fs .hot { display: block; }
.desk .menu-drop .kbd { margin-left: auto; padding-left: 28px; opacity: 0.6; font-size: 12.5px; letter-spacing: 0.04em; }
.desk .menu-drop:has(.kbd) { min-width: 280px; }
.desk .menu-drop.ctx { min-width: 170px; top: 0; }
.desk .tool.icon { width: 32px; padding: 0; justify-content: center; }
.desk .si-side { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 2v10h4V5zm6 0v10h6V5z'/%3E%3C/svg%3E"); background: var(--ink); width: 16px; height: 16px; }
.desk .win-app.noside .app-side { display: none; }
.desk .win-app.noside .titlebar { width: 100px; }
.desk .win-app.noside .app-bar { padding-left: 104px; }
.desk .win-app.narrow-w .app-insp, .desk .win-app.narrow-w .pill { display: none; }
.desk .app-view { container-type: inline-size; }
@container (max-width: 620px) {
  .desk .tiles { grid-template-columns: 1fr; }
  .desk .tr { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .desk .tr .c, .desk .tr .a2 { display: none; }
  .desk .cell .m { display: none; }
  .desk .ribbon { grid-template-columns: repeat(7, 1fr); }
}
.desk .dlg { animation: drop 0.28s cubic-bezier(.2, .9, .3, 1); }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .desk .dlg, .desk .win.full { animation: none; } }
.desk .win-doc, .desk .win-small { background: color-mix(in srgb, var(--paper) 93%, transparent); }
