/* ===== DASHBOARD DEMO (ported from the Heirloom site; orange → Eclipse copper) ===== */
.app-wrap{--muted:var(--mist);padding:0 0 56px}
.app-wrap .app-bleed{margin-top:0}
.statement.dash-title{font:500 clamp(32px,5vw,60px)/1.08 "Manrope",var(--font);letter-spacing:-.03em;max-width:16ch;margin:0}
.statement.dash-title em{font-family:"Libre Baskerville",Georgia,serif;font-style:italic;font-weight:400;color:var(--frozen);letter-spacing:-.01em;padding-right:.04em}
.ag-mark{width:16px;height:16px}
  .app-bleed { --pad: 0px; position: relative; margin: clamp(36px, 4vw, 56px) calc((100% - 100vw) / 2) 0 0; padding: 0; overflow: hidden; }
/* never-ending: the demo runs off the right edge and fades into the page */
.app-bleed::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: min(38vw, 520px); pointer-events: none; z-index: 5; opacity: 1;
  background: linear-gradient(90deg, rgba(11,11,11,0) 0%, rgba(11,11,11,.55) 45%, #0B0B0B 100%); }
  
  .app { --line: rgba(255,255,255,.07); --hair: rgba(255,255,255,.05); --t1: #f3f6fa; --t2: #c9d3e2; --t3: #8c93a8; --t4: #5e6478;
         position: relative; width: max(1240px, calc(100% + 160px)); max-width: none; height: 700px;
         display: grid; grid-template-columns: 236px 1fr; padding: 8px 8px 8px 0;
         background: #121315; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
         font-size: 13px; color: var(--t2); box-shadow: 0 30px 60px rgba(0,0,0,.32);
         }
  .app button { font: inherit; color: inherit; }
  .app kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px;
             border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--t3); font: 500 10.5px/1 'Manrope', system-ui, sans-serif; }

  /* sidebar */
  .ap-side { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .ap-brand { display: flex; align-items: center; gap: 4px; height: 32px; margin-bottom: 8px; }
  .ap-ws { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; background: none; cursor: default; font-weight: 600 !important; color: var(--t1) !important; }
  .ap-ws img { width: 17px; height: 17px; } .ap-ws svg { width: 10px; height: 10px; color: var(--t4); }
  .ap-ib { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--t3); cursor: pointer; }
  .ap-ib + .ap-ib { margin-left: 0; } .ap-ib:hover { background: rgba(255,255,255,.05); color: var(--t1); } .ap-ib svg { width: 15px; height: 15px; }
  .ap-ib.ring { border: 1px solid var(--line); }
  .ap-sec { display: flex; align-items: center; gap: 4px; margin: 14px 0 3px; height: 24px; padding: 0 6px; border: 0; background: none; border-radius: 6px;
            color: var(--t4) !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; width: max-content; }
  .ap-sec:hover { color: var(--t3) !important; } .ap-sec svg { width: 9px; height: 9px; transition: transform .15s; } .ap-sec[aria-expanded="false"] svg { transform: rotate(-90deg); }
  .ap-group { display: flex; flex-direction: column; gap: 1px; }
  .ap-group[hidden] { display: none; }
  .ap-nav { position: relative; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: none;
            color: var(--t2); font-weight: 500 !important; font-size: 13.5px !important; text-align: left; cursor: pointer; }
  .ap-nav svg { width: 15px; height: 15px; color: var(--t4); flex: none; }
  .ap-nav:hover { background: rgba(255,255,255,.035); color: var(--t1); }
  .ap-nav.on { background: rgba(255,255,255,.06); color: var(--t1); } .ap-nav.on > svg { color: #F4F2EE; }
  .ap-nav[data-c] > svg { color: var(--c); }
  .ap-nav .k { margin-left: auto; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; } .ap-nav:hover .k { opacity: 1; }
  .ap-off { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--t3); font-size: 12px; }
  .ap-off b { width: 7px; height: 7px; border-radius: 50%; background: #6fd39a; box-shadow: 0 0 0 0 rgba(111,211,154,.5); animation: apPulse 2.4s infinite; }
  @keyframes apPulse { 70% { box-shadow: 0 0 0 7px rgba(111,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,154,0); } }

  /* main: an inset card, like a window inside the window */
  .ap-main { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
             background: #18181a; border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 0 0 2px rgba(0,0,0,.18); }
  .ap-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
  .ap-bar .ic { width: 15px; height: 15px; flex: none; color: var(--t3); display: grid; place-items: center; } .ap-bar .ic svg { width: 15px; height: 15px; }
  .ap-bar .crumb { color: var(--t3); } .ap-bar .crumb + .sep { color: var(--t4); }
  .ap-bar .id { color: var(--t3); font-weight: 600; font-variant-numeric: tabular-nums; } .ap-bar .ttl { color: var(--t1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap-bar .star, .ap-bar .more, .ap-bar .step { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--t4); cursor: pointer; flex: none; }
  .ap-bar .star:hover, .ap-bar .more:hover, .ap-bar .step:hover { background: rgba(255,255,255,.05); color: var(--t1); }
  .ap-bar .star svg, .ap-bar .more svg, .ap-bar .step svg { width: 14px; height: 14px; }
  .ap-bar .star.on { color: #ffb347; } .ap-bar .star.on svg path { fill: currentColor; }
  .ap-bar .star.pop svg { animation: apPop .32s var(--ease); } @keyframes apPop { 40% { transform: scale(1.3); } }
  .ap-bar .count { margin-left: auto; color: var(--t4); font-variant-numeric: tabular-nums; } .ap-bar .count b { color: var(--t3); font-weight: 500; }
  .ap-bar .step kbd { display: none; }
  .ap-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: none; }
  .ap-body::-webkit-scrollbar { display: none; }
  .ap-view { padding: 36px clamp(28px, 4vw, 64px) 40px; min-width: 0; max-width: 760px; }
  .ap-view h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--t1); }
  .ap-view .lede { margin-top: 8px; color: var(--t2); font-size: 14px; line-height: 1.6; max-width: 60ch; }
  .ap-view code { font: 12.5px ui-monospace, Menlo, monospace; background: rgba(255,255,255,.06); border: 1px solid var(--hair); padding: 1px 6px; border-radius: 5px; }
  .ap-view h4 { margin: 30px 0 10px; font-size: 14px; font-weight: 600; color: var(--t1); }
  .ap-view ul { margin: 10px 0 0 18px; color: var(--t2); font-size: 13.5px; line-height: 1.9; }
  .ap-body.in .ap-view > *, .ap-body.in .ap-list > * { animation: apIn .26s var(--ease) both; }
  .ap-body.in .ap-view > :nth-child(2) { animation-delay: .02s; } .ap-body.in .ap-view > :nth-child(3) { animation-delay: .04s; } .ap-body.in .ap-view > :nth-child(n+4) { animation-delay: .06s; }
  @keyframes apIn { from { opacity: 0; transform: translateY(3px); } }

  /* glyphs: status rings, priority bars, initials avatars */
  .st { width: 14px; height: 14px; flex: none; } .pr { width: 14px; height: 14px; flex: none; color: var(--t3); }
  .av { width: 18px; height: 18px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--c, #2a2c33);
        color: #121213; font-size: 9.5px; font-weight: 700; letter-spacing: 0; }
  .av.lg { width: 30px; height: 30px; font-size: 12px; }
  .pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--t2); font-size: 12px; white-space: nowrap; }
  .pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #8c93a8); }

  /* list rows (Today) */
  .ap-grp { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--hair); color: var(--t1); font-weight: 600; font-size: 12.5px; }
  .ap-grp small { color: var(--t4); font-weight: 500; font-size: 12px; }
  .ap-li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 20px 0 16px; border-bottom: 1px solid rgba(255,255,255,.03); cursor: pointer; }
  .ap-li:hover { background: rgba(255,255,255,.025); }
  .ap-li .id { width: 52px; flex: none; color: var(--t4); font-size: 12px; font-variant-numeric: tabular-nums; }
  .ap-li .tt { color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-li .ds { color: var(--t4); white-space: nowrap; }
  .ap-li .end { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--t4); font-size: 12px; white-space: nowrap; }
  .ap-hello { padding: 28px 16px 18px; } .ap-hello h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--t1); } .ap-hello p { margin-top: 6px; color: var(--t3); font-size: 14px; }

  /* activity + cards */
  .ap-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--t3); font-size: 13px; }
  .ap-row b { color: var(--t2); font-weight: 600; }
  .ap-row .t { color: var(--t4); }
  .ap-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: rgba(255,255,255,.015); }
  .ap-card p { margin-top: 6px; color: var(--t2); font-size: 13.5px; line-height: 1.55; } .ap-card .who { display: flex; align-items: center; gap: 8px; color: var(--t4); font-size: 12.5px; } .ap-card .who b { color: var(--t1); font-weight: 600; }

  /* inbox split */
  .ap-split { display: grid; grid-template-columns: 300px 1fr; height: 100%; }
  .ap-list { border-right: 1px solid var(--hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; }
  .ap-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
  .ap-msg:hover { background: rgba(255,255,255,.025); } .ap-msg.on { background: rgba(255,255,255,.05); }
  .ap-msg div { min-width: 0; flex: 1; } .ap-msg b { display: block; color: var(--t1); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap-msg span { display: block; margin-top: 2px; color: var(--t3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-msg i { font-style: normal; color: var(--t4); font-size: 11.5px; }
  .ap-msg .unread { width: 6px; height: 6px; border-radius: 50%; background: #F4F2EE; margin-top: 6px; flex: none; } .ap-msg.read .unread { visibility: hidden; }
  .ap-split .ap-view { padding-top: 28px; }

  /* issue layout with a properties column (Pitch deck) */
  .ap-issue { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 100%; }
  .ap-issue .ap-view { max-width: 700px; }
  .ap-props { border-left: 1px solid var(--hair); padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
  .ap-props h5 { margin: 14px 0 6px; color: var(--t4); font-size: 12px; font-weight: 600; } .ap-props h5:first-child { margin-top: 0; }
  .ap-prop { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--t2); cursor: default; }
  .ap-prop:hover { background: rgba(255,255,255,.035); }
  .ap-props .pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px; }

  /* Glim agent: a floating card over the right of the view */
  .ap-agent { position: absolute; z-index: 3; top: 56px; right: 12px; bottom: 12px; width: 360px; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 12px;
              background: #1c1c1e; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.45); font-size: 13px;
              animation: apAgent .35s var(--ease) both; }
  @keyframes apAgent { from { opacity: 0; transform: translateY(8px) scale(.985); } }
  .has-agent .ap-view { margin-right: 372px; }
  .ap-agent .head { display: flex; align-items: center; gap: 8px; color: var(--t1); } .ap-agent .head .lantern { position: relative !important; left: auto !important; bottom: auto !important; width: 26px !important; height: 26px !important; }
  .ap-agent .head small { color: var(--t3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; }
  .ap-agent .head .x { margin-left: auto; color: var(--t4); }
  .ap-agent .ask { align-self: flex-end; max-width: 90%; background: rgba(255,255,255,.05); border: 1px solid var(--hair); border-radius: 10px; padding: 9px 11px; color: var(--t2); }
  .ap-agent .meta { display: flex; align-items: center; gap: 6px; color: var(--t4); font-size: 12px; } .ap-agent .meta svg { width: 8px; height: 8px; }
  .ap-agent .ans { color: var(--t2); line-height: 1.55; min-height: 4.6em; }
  .ap-agent .diff { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--t3); font-size: 12.5px; background: rgba(255,255,255,.02); }
  .ap-agent .diff b { color: var(--t1); font-weight: 600; } .ap-agent .diff i { font-style: normal; color: #6fd39a; } .ap-agent .diff code { display: block; margin-top: 6px; font: 11px ui-monospace, Menlo, monospace; color: var(--t4); }
  .ap-agent .reply { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px 8px; color: var(--t4); background: rgba(255,255,255,.02); }
  .ap-agent .reply div { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 12px; color: var(--t3); }

  @media (max-width: 860px) {
    .app-bleed { margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; overflow: visible; }
    .app-bleed::after { display: none; }
    .app { width: auto; height: auto; grid-template-columns: 1fr; padding: 0; transform: none !important; }
    .ap-side { flex-direction: row; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 8px; gap: 2px; border-bottom: 1px solid var(--hair); }
    .ap-side::-webkit-scrollbar { display: none; }
    .ap-sec, .ap-off, .ap-brand, .ap-nav .k { display: none; } .ap-group, .ap-group[hidden] { display: contents; } .ap-nav { flex: none; }
    .ap-main { border: 0; border-radius: 0 0 14px 14px; box-shadow: none; min-height: 520px; }
    .ap-bar .count, .ap-bar .step { display: none; } .ap-bar .more { margin-left: auto; }
    .ap-body { overflow: visible; }
    .ap-view { padding: 24px 18px 28px; }
    .ap-li .ds, .ap-li .end .pill { display: none; }
    .ap-split, .ap-issue { grid-template-columns: 1fr; } .ap-list { border-right: 0; border-bottom: 1px solid var(--hair); }
    .ap-props { border-left: 0; border-top: 1px solid var(--hair); }
    .has-agent .ap-view { margin-right: 0; }
    .ap-agent { position: static; width: auto; margin: 0 12px 12px; min-height: 360px; }
  }
  @media (prefers-reduced-motion: reduce) { .ap-body.in .ap-view > *, .ap-body.in .ap-list > *, .ap-agent { animation: none; } }

/* Sublunar look (10-23): white glyphs everywhere in the demo, bigger workspace mark + name */
.app svg:not(.pr), .app .st { color: #F4F2EE; }
.ap-nav svg, .ap-nav.on > svg, .ap-nav[data-c] > svg, .ap-ib svg, .ap-bar .ic svg, .ap-bar .star svg, .ap-bar .more svg, .ap-bar .step svg, .ap-ws svg { color: #F4F2EE !important; }
.ap-nav svg { opacity: .9; }
.app .pr { color: #F4F2EE; }
.app .pill { --c: #F4F2EE !important; }
.app .av { --c: #3A3B3F !important; color: #F4F2EE; }
.ap-brand { height: 40px; margin-bottom: 10px; }
.ap-ws { height: 36px; gap: 10px; font-size: 16px !important; }
.ap-ws img { width: 22px !important; height: 22px !important; }
.ap-ws svg { width: 11px !important; height: 11px !important; opacity: .55; }

/* macOS-style sidebar top (10-23) */
.ap-side { padding-top: 12px; }
.ap-chrome { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px; margin-bottom: 18px; }
.tl { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.tl.r { background: #FF5F57; } .tl.y { background: #FEBC2E; } .tl.g { background: #28C840; }
.ap-cb { display: grid; place-items: center; width: 22px; height: 22px; color: #F4F2EE; opacity: .8; }
.ap-chrome .tl.g + .ap-cb { margin-left: 8px; }
.ap-cb.dim { opacity: .38; } .ap-cb svg { width: 16px; height: 16px; }
.ap-seg { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.05); }
.ap-seg span { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 7px; color: #F4F2EE; opacity: .55; }
.ap-seg span.on { background: rgba(255,255,255,.1); opacity: 1; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }
.ap-seg svg { width: 15px; height: 15px; }
.ap-brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px; margin: 0 0 10px; }
.ap-brand img { width: 24px; height: 24px; }
.ap-brand span { font: 600 17px/1 Urbanist, var(--font); letter-spacing: -.01em; color: #F4F2EE; }
.ap-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: var(--t3); font-size: 13px; }
.ap-search svg { width: 14px; height: 14px; color: #F4F2EE; opacity: .7; }
.ap-search kbd { margin-left: auto; }
.ap-new { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; margin-bottom: 6px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--t1); font-weight: 500; }
.ap-new svg { width: 15px; height: 15px; color: #F4F2EE; }
.ap-nav.on { background: transparent; }
.ap-nav.on > span:not(.k) { color: #F4F2EE; }
@media (max-width: 860px) { .ap-chrome, .ap-search, .ap-new, .ap-brand { display: none; } }
