/* =====================================================================================
   agent A: ticket workspace, Project tab, Project lanes home, Relay - ProjectOS on Liquid Glass.
   Scoped to: .tk.gx (record frame from record.js), .ps (Project tab, also inside the quick view),
   .sh.gxh (Command Center lanes), .rl-page / .relay (Relay), .sunny-mark (the ProjectOS mascot).
   Uses only the tokens from the LIQUID GLASS block in styles.css (--panel, --glass-edge, --sh-1, --mod ...).
   ===================================================================================== */

/* ---------------------------------------------------------------- shared bits */
.sunny-mark { position: relative; display: inline-block; width: var(--s, 28px); height: var(--s, 28px); flex: none; vertical-align: middle; }
.sunny-mark img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sunny-mark.live .sm-rays { animation: gx-rays 48s linear infinite; }
.sunny-mark.live .sm-face { animation: gx-bob 4.8s ease-in-out infinite; }
@keyframes gx-rays { to { transform: rotate(360deg); } }
@keyframes gx-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2.5%) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .sunny-mark.live img { animation: none; } }
body:has(.qv-root) .sunny-mark.live img, body:has(.modal) .sunny-mark.live img { animation-play-state: paused; }

.gx-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500;
  background: rgb(255 255 255 / .66); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.gx-pill.phase { background: rgb(var(--mod-rgb) / .12); color: var(--mod); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .22); font-weight: 600; }

/* ================================================================ record frame (.tk.gx) */
.tk.gx { grid-template-columns: 52px minmax(0, 1fr); background: transparent; }
.tk.gx .tk-listrail { align-self: start; justify-self: center; width: 34px; height: 34px; margin-top: 14px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); color: var(--ink-2); transition: transform .1s, background .15s; }
.tk.gx .tk-listrail:hover { background: #fff; }
.tk.gx .tk-listrail:active { transform: scale(.94); }

.tk.gx .tk-frame { grid-template-columns: 44px 300px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 0; background: transparent; border: 0; max-width: 2200px; }
.tk.gx .tk-frame.with-ext { grid-template-columns: 44px 300px minmax(0, 1fr) 296px; }

/* rail: a small vertical glass pill */
.tk.gx .tk-rail { align-self: start; background: var(--panel); border: 0; border-radius: 22px; padding: 6px; gap: 4px; box-shadow: var(--glass-edge), var(--sh-1);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.tk.gx .tk-rail button { width: 32px; height: 32px; border-radius: 50%; transition: background .15s, color .15s, transform .1s; }
.tk.gx .tk-rail button:active { transform: scale(.92); }
.tk.gx .tk-rail button.on { background: #fff; color: var(--mod); box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12), 0 4px 10px rgb(var(--sg-blue-rgb) / .1); }
.tk.gx .tk-rail button.on::before { display: none; }

/* properties panel: one tall glass card, groups as light tiles inside */
.tk.gx .tk-side { border: 0; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); overflow: hidden; grid-template-rows: 54px minmax(0, 1fr); }
.tk.gx .tk-side-head { background: transparent; padding: 0 12px 0 18px; }
.tk.gx .tk-side-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -.012em; }
.tk.gx .tk-side-acts { display: inline-flex; gap: 6px; }
.tk.gx .tk-side-x { display: none !important; }
.tk.gx .tk-side-head .ibtn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line-2); }
.tk.gx .tk-side-head .ibtn.accent { background: rgb(var(--mod-rgb) / .14); color: var(--mod); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .3); }
.tk.gx .tk-side-body { background: transparent; padding: 0 10px 14px; }
.tk.gx .pcard { background: rgb(255 255 255 / .62); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75), 0 1px 2px rgb(var(--sg-blue-rgb) / .06); margin-bottom: 8px; }
.tk.gx .pcard-head { padding: 13px 14px 0; border-radius: 16px; }
.tk.gx .pcard.closed .pcard-head { padding-bottom: 13px; }
.tk.gx .pcard-head:hover { background: rgb(255 255 255 / .5); }
.tk.gx .pcard-head h2 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.tk.gx .pcard-head .ico { color: var(--muted); }
.tk.gx .pcard-sum { max-width: 230px; }
.tk.gx .pcard-body { padding: 12px 14px 4px; }
.tk.gx .contact-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 4px; }
.tk.gx .contact-line { display: block; font-size: 12.5px; line-height: 1.45; margin: 4px 0; color: var(--ink-2); }
.tk.gx .contact-line .ico { color: var(--mod); vertical-align: -2px; margin-right: 4px; }
.tk.gx .pf { margin-bottom: 14px; }
.tk.gx .pf .pl { font-size: 12px; margin-bottom: 2px; }
.tk.gx .pf .pv { font-size: 13.5px; }
/* type-and-save: the value itself is the edit target */
.tk.gx .pf-row.pf-can .pf-val { cursor: text; border-radius: 8px; margin: -3px -8px; padding: 3px 8px; transition: background .12s; }
.tk.gx .pf-row.pf-can .pf-val:hover { background: rgb(var(--mod-rgb) / .07); }
.tk.gx .pf-row.pf-can .pf-val:active { background: rgb(var(--mod-rgb) / .12); }
.tk.gx .pf-row .pf-acts { top: -2px; }
.tk.gx .pf-acts .ibtn { border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); box-shadow: 0 1px 3px rgb(var(--sg-blue-rgb) / .14); }
.tk.gx .pf-row.pf-open { background: rgb(var(--mod-rgb) / .06); border-radius: 12px; margin: 0 -8px 12px; padding: 8px; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .18); }
.tk.gx .pf-edit { flex-wrap: wrap; }
.tk.gx .pf-edit .field { flex: 1 1 140px; }
.tk.gx .pf-edit .btn { height: 30px; padding: 0 14px; }
.tk.gx .picker-pill { border-radius: var(--r-pill); padding: 0 10px; height: 22px; background: rgb(var(--mod-rgb) / .1); color: var(--ink); }
.tk.gx .pv .pill { border-radius: var(--r-pill); }
.tk.gx .pf-empty-note { margin: -8px 0 10px; }
.tk.gx .save-bar { position: sticky; bottom: 0; z-index: 3; margin: 10px -2px 0; padding: 7px 7px 7px 14px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: var(--sh-pop); animation: gx-rise .22s var(--ease-out); }
.tk.gx .save-bar .sb-state { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.tk.gx .save-bar .btn { height: 30px; padding: 0 14px; }
@keyframes gx-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* main column: hero header card, pill tabs, cards on the mesh, floating action bar */
.tk.gx .tk-main { grid-template-rows: auto auto minmax(0, 1fr); background: transparent; }
.tk.gx .tk-main::after { display: none; }
.tk.gx .tk-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eye eye" "h1 h1" "meta act"; align-items: center; gap: 0 16px; min-height: 0; padding: 16px 18px 14px 20px; margin-bottom: 10px; border-radius: var(--r-card);
  background: linear-gradient(135deg, rgb(255 255 255 / .86), rgb(255 255 255 / .62)); box-shadow: var(--glass-edge), var(--sh-1);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.tk.gx .tk-head-l { display: none; }
.tk.gx .tk-title { display: contents; }
.tk.gx .tk-title > .gx-eyebrow { grid-area: eye; } .tk.gx .tk-title > h1 { grid-area: h1; min-width: 0; } .tk.gx .tk-title > .tk-meta { grid-area: meta; min-width: 0; } .tk.gx .tk-actions { grid-area: act; }
.gx-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; min-width: 0; }
.gx-eyebrow > span:last-child { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gx-eyebrow .sep-dot { margin: 0 7px; background: var(--faint); }
.gx-eyebrow .mod-tile { width: 26px; height: 26px; border-radius: 8px; }
.gx-eyebrow .mod-tile .ico { width: 15px; height: 15px; }
.tk.gx .tk-title h1 { font-size: 24px; line-height: 1.18; letter-spacing: -.025em; font-weight: 700; display: block; }
.tk.gx .tk-title h1 .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk.gx .tk-meta { gap: 6px; margin: 12px 0 0; align-self: center; }
.tk.gx .tk-meta .badge { margin: 0; height: 24px; border-radius: var(--r-pill); padding: 0 10px; }
.tk.gx .tk-meta .dk-status { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; font-weight: 600; }
.tk.gx .tk-meta .presence { margin: 0; }
.gx-cust { display: inline-flex; align-items: center; gap: 5px; height: 24px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px 0 8px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  color: var(--ink) !important; background: #fff; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .1), inset 0 0 0 1px var(--line); }
.gx-cust .ico { color: var(--mod); margin: 0 !important; }
.gx-cust:hover { text-decoration: none; box-shadow: 0 2px 8px rgb(var(--sg-blue-rgb) / .14), inset 0 0 0 1px var(--line-2); }
.tk.gx .tk-actions { padding: 0; margin-top: 12px; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tk.gx .tk-actions .btn { height: 36px; padding: 0 16px; font-size: 13px; border-radius: var(--r-pill); }
.tk.gx .tk-actions .split .btn:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); padding-right: 12px; }
.tk.gx .tk-actions .split .btn + .btn { border-radius: 0 var(--r-pill) var(--r-pill) 0; width: 34px; padding: 0 2px 0 0; border-left: 1px solid rgb(255 255 255 / .22); }
.tk.gx .tk-actions .split.gx-quiet .btn { background: rgb(255 255 255 / .74); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.tk.gx .tk-actions .split.gx-quiet .btn + .btn { border-left: 1px solid var(--line-2); }
.tk.gx .tk-actions .split.gx-quiet .btn:hover { background: #fff; }
.tk.gx .tk-actions .ibtn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .74); box-shadow: inset 0 0 0 1px var(--line-2); }
.tk.gx .tk-actions .ibtn:hover { background: #fff; }
.gx-next { max-width: 340px; gap: 8px !important; }
.gx-next .gx-next-k { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .72; flex: none; }
.gx-next .gx-next-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gx-next .ico { flex: none; transition: transform .2s var(--ease-out); }
.gx-next:hover .ico { transform: translateX(2px); }

/* tabs: a glass pill bar (Desk tabs, Project first) */
.tk.gx .tk-tabs { justify-self: start; max-width: 100%; padding: 4px; gap: 2px; margin: 0 0 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / .5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65), 0 1px 2px rgb(var(--sg-blue-rgb) / .06); }
.tk.gx .tk-tabs .tab { flex: none; height: 32px; padding: 0 11px; border: 0; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; letter-spacing: -.003em; text-transform: none; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s; }
.tk.gx .tk-tabs .tab:hover { color: var(--ink); background: rgb(255 255 255 / .55); }
.tk.gx .tk-tabs .tab.active { color: var(--ink); font-weight: 600; background: #fff; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12), 0 4px 10px rgb(var(--sg-blue-rgb) / .1); }
.tk.gx .tk-tabs > .tab > span:first-child:not(:last-child) { order: 2; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  font-size: 10.5px; font-weight: 700; background: rgb(var(--mod-rgb) / .12); color: var(--mod); font-variant-numeric: tabular-nums; }
.tk.gx .tk-tabs .tab-more { display: inline-flex; position: sticky; right: 0; z-index: 1; margin-left: auto; border-radius: var(--r-pill); background: rgb(246 248 252 / .92);
  box-shadow: -10px 0 12px -4px rgb(246 248 252 / .9); }
.tk.gx .tk-tabs .tab-more .tab { gap: 4px; }

/* body: cards sit on the mesh */
.tk.gx .tk-body { background: transparent; padding: 2px 6px 104px 2px; }
.tk.gx .gx-tab .tcard, .tk.gx .gx-tab .card, .tk.gx .gx-tab .composer {
  background: var(--panel); border: 0; border-radius: 20px; box-shadow: var(--glass-edge), var(--sh-1); padding: 16px 20px 18px; margin-bottom: 10px; }
.tk.gx .gx-tab .tcard.note { background: linear-gradient(135deg, rgb(255 250 232 / .92), rgb(255 246 214 / .78)); }
.tk.gx .gx-tab .tcard h3, .tk.gx .gx-tab .card h3 { font-size: 15px; font-weight: 650; letter-spacing: -.012em; gap: 8px; flex-wrap: wrap; }
.tk.gx .gx-tab .tcard h3 > .ico, .tk.gx .gx-tab .card h3 > .ico { color: var(--mod); }
.tk.gx .gx-tab .card h3 .link { font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); background: rgb(var(--mod-rgb) / .1); color: var(--mod); }
.tk.gx .gx-tab .composer { padding: 0; overflow: hidden; }
.tk.gx .gx-tab .composer-head, .tk.gx .gx-tab .composer-foot { background: transparent; }
.tk.gx .gx-tab .infobar { border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); padding: 8px 14px; }
.tk.gx .gx-tab .empty { border: 0; border-radius: 20px; background: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.tk.gx .gx-tab .table { border: 0; border-radius: 14px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line); }
.tk.gx .gx-tab .table th { background: rgb(255 255 255 / .55); }
.tk.gx .gx-tab .notice { border-radius: 14px; }
.tk.gx .gx-tab .btn, .tk.gx .tk-side .btn { border-radius: var(--r-pill); }
.tk.gx .gx-tab .btn:not(.btn-primary):not(.btn-gold):not(.btn-danger), .tk.gx .tk-side .btn:not(.btn-primary):not(.btn-danger) { background: rgb(255 255 255 / .74); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.tk.gx .gx-tab .btn:not(.btn-primary):not(.btn-gold):not(.btn-danger):hover, .tk.gx .tk-side .btn:not(.btn-primary):not(.btn-danger):hover { background: #fff; }
.tk.gx .gx-tab input:not([type=checkbox]):not([type=radio]), .tk.gx .gx-tab select, .tk.gx .gx-tab textarea,
.tk.gx .tk-side input:not([type=checkbox]):not([type=radio]), .tk.gx .tk-side select, .tk.gx .tk-side textarea {
  border: 0; border-radius: var(--r-ctl); background: rgb(255 255 255 / .78); box-shadow: inset 0 0 0 1px var(--line-2); min-height: 34px; padding: 6px 12px; transition: box-shadow .15s, background .15s; }
.tk.gx .gx-tab input:not([type=checkbox]):not([type=radio]):hover, .tk.gx .gx-tab select:hover, .tk.gx .gx-tab textarea:hover,
.tk.gx .tk-side input:not([type=checkbox]):not([type=radio]):hover, .tk.gx .tk-side select:hover, .tk.gx .tk-side textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.tk.gx .gx-tab input:not([type=checkbox]):not([type=radio]):focus, .tk.gx .gx-tab select:focus, .tk.gx .gx-tab textarea:focus,
.tk.gx .tk-side input:not([type=checkbox]):not([type=radio]):focus, .tk.gx .tk-side select:focus, .tk.gx .tk-side textarea:focus {
  background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .55), 0 0 0 4px rgb(var(--mod-rgb) / .16); }
.tk.gx .gx-tab .composer textarea { box-shadow: none; border-radius: 0; background: transparent; }
.tk.gx .gx-tab .composer textarea:focus { box-shadow: none; }
.tk.gx .gx-tab .field label { font-size: 12px; font-weight: 500; }
.tk.gx .gx-tab .tl { background: var(--panel); border-radius: 20px; box-shadow: var(--glass-edge), var(--sh-1); padding: 10px 18px; }
.tk.gx .pf-folders { background: rgb(255 255 255 / .7); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.tk.gx .pf-folders button { border-radius: 10px; }
.tk.gx .pf-folders button.on { background: #fff; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12), 0 3px 8px rgb(var(--sg-blue-rgb) / .08); color: var(--mod); }

/* floating action bar (Desk footer, now a glass pill over the content) */
.tk.gx .tk-foot { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 2px; width: max-content; max-width: calc(100% - 16px);
  padding: 6px; border-radius: var(--r-pill); background: rgb(255 255 255 / .8); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--sh-pop); overflow-x: auto; scrollbar-width: none; }
.tk.gx .tk-foot::-webkit-scrollbar { display: none; }
.tk.gx .tk-foot .act { height: 34px; padding: 0 13px; border-radius: var(--r-pill); gap: 7px; white-space: nowrap; font-weight: 500; transition: background .15s, transform .1s; }
.tk.gx .tk-foot .act:hover { background: rgb(var(--sg-blue-rgb) / .07); color: var(--ink); }
.tk.gx .tk-foot .act .ico { color: var(--mod); }
.tk.gx .tk-foot .grow { flex: 0 0 6px; height: 20px; border-left: 1px solid var(--line-2); margin-left: 4px; }
.tk.gx .tk-foot .gx-blk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--bad); padding: 0 8px; white-space: nowrap; }
.tk.gx .tk-foot .gx-advance { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 0; gap: 6px; font-weight: 600; color: var(--mod); background: rgb(var(--mod-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .25); }
.tk.gx .tk-foot .gx-advance:hover { background: rgb(var(--mod-rgb) / .16); }
.tk.gx .tk-foot > .muted.small:only-of-type { padding: 0 10px; }

/* extensions: glass cards */
.tk.gx .tk-ext { border: 0; background: transparent; padding: 0 2px 14px; }
.tk.gx .ext-link { display: flex; align-items: center; gap: 6px; border: 0; border-radius: var(--r-pill); padding: 9px 14px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); margin-bottom: 10px; }
.tk.gx .ext-link .ico { color: var(--mod); }
.tk.gx .ext-link:hover { text-decoration: none; background: #fff; }
.tk.gx .ext-card { border: 0; border-radius: 20px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); padding: 12px 14px 14px; margin-bottom: 10px; }
.tk.gx .ext-card.shut { padding-bottom: 12px; }
.tk.gx .ext-card h3 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; min-height: 26px; }
.tk.gx .ext-card h3 > .ico:last-child { color: var(--faint); }
.tk.gx .ext-b { margin-top: 10px; }
.ext-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; background: rgb(var(--mod-rgb) / .12); color: var(--mod); }
.tk.gx .ext-sunny { background: linear-gradient(140deg, rgb(255 246 222 / .9), rgb(255 255 255 / .7)); }
.tk.gx .ext-card .sunny-list { padding-left: 16px; }
.tk.gx .ext-card .sunny-list li { margin: 4px 0; line-height: 1.4; }
.tk.gx .ext-card .kv { gap: 6px 12px; margin-top: 10px; }
.tk.gx .ext-card .pulse, .tk.gx .ext-card .badge { border-radius: var(--r-pill); }

/* narrower */
@media (max-width: 1500px) { .tk.gx .tk-frame.with-ext { grid-template-columns: 44px 280px minmax(0, 1fr) 264px; } }
@media (max-width: 1280px) {
  .tk.gx .tk-frame, .tk.gx .tk-frame.with-ext { grid-template-columns: 44px 272px minmax(0, 1fr); }
  .tk.gx .tk-head { padding-left: 18px; }
}
@media (max-width: 980px) {
  .tk.gx { grid-template-columns: minmax(0, 1fr); position: relative; }
  .tk.gx .tk-listrail { display: grid; position: absolute; left: 17px; top: 12px; margin: 0; z-index: 2; }
  .tk.gx .tk-rail { margin-top: 44px; }
  .tk.gx .tk-frame, .tk.gx .tk-frame.with-ext { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding-left: 12px; padding-bottom: 0; }
  .tk.gx .tk-frame.side-open, .tk.gx .tk-frame.with-ext.side-open { grid-template-columns: 44px 290px minmax(0, 1fr); }
  .tk.gx .tk-frame.side-open .tk-side-x { display: inline-grid !important; }
  .tk.gx .tk-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eye" "h1" "meta" "act"; }
  /* narrow: the whole column scrolls (the header scrolls away), tabs stick to the top, the action bar to the bottom */
  .tk.gx .tk-main { display: block; overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding: 0 2px; }
  .tk.gx .tk-body { overflow: visible; padding-bottom: 18px; }
  .tk.gx .tk-tabs { position: sticky; top: 0; z-index: 4; width: max-content; -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); background: rgb(246 248 252 / .86); overflow-x: auto; }
  .tk.gx .tk-foot { position: sticky; bottom: 12px; left: auto; transform: none; margin: 0 auto 12px; }
  .tk.gx .tk-actions { justify-content: flex-start; }
  .tk.gx .tk-title h1 { font-size: 21px; }
}
@media (max-width: 700px) {
  .tk.gx .tk-listrail { left: 10px; top: 8px; width: 40px; height: 40px; }
  .tk.gx .tk-rail { margin: 0 0 0 46px; }
  .tk.gx .tk-frame, .tk.gx .tk-frame.side-open, .tk.gx .tk-frame.with-ext, .tk.gx .tk-frame.with-ext.side-open { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 10px 0; }
  .tk.gx .tk-rail { flex-direction: row; justify-self: start; height: auto; border-radius: var(--r-pill); padding: 4px; }
  .tk.gx .tk-frame.side-open .tk-side { inset: calc(var(--topbar-h) + 52px) 8px 8px 8px; border-radius: var(--r-card); box-shadow: var(--sh-modal); background: rgb(244 246 251 / .94); }
  .tk.gx .tk-head { padding: 14px 14px 12px; border-radius: 20px; }
  .tk.gx .tk-title h1 { font-size: 19px; }
  .tk.gx .tk-tabs { margin-bottom: 10px; }
  .tk.gx .tk-tabs .tab { padding: 0 12px; }
  .tk.gx .tk-body { padding: 2px 0 14px; }
  .tk.gx .tk-frame, .tk.gx .tk-frame.with-ext, .tk.gx .tk-frame.side-open, .tk.gx .tk-frame.with-ext.side-open { grid-template-rows: auto minmax(0, 1fr); }
  .tk.gx .tk-tabs { width: auto; }
  .tk.gx .gx-tab .tcard, .tk.gx .gx-tab .composer { padding: 14px; border-radius: 18px; }
  .tk.gx .tk-foot { bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-width: 100%; margin: 0 0 10px; padding: 5px; }
  .tk.gx .tk-foot .act { padding: 0 10px; font-size: 12.5px; }
  .tk.gx .tk-actions .btn { height: 34px; padding: 0 14px; }
  .gx-next { max-width: 100%; flex: 1 1 100%; justify-content: flex-start !important; }
  .gx-next .gx-next-t { flex: 1; text-align: left; }
}

/* ================================================================ Project tab (.ps) - also in the quick view */
.ps { gap: 10px; }
.ps-stage, .ps-mine, .ps-sheet, .ps-more { background: var(--panel); border: 0 !important; border-radius: 20px; box-shadow: var(--glass-edge), var(--sh-1); }
/* blur only where the cards sit on the page mesh; inside the quick view the sheet is already frosted */
.tk.gx .ps-mine, .tk.gx .ps-sheet { -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.qv-sheet .ps-stage, .qv-sheet .ps-mine, .qv-sheet .ps-sheet, .qv-sheet .ps-more { background: rgb(255 255 255 / .78); }
.ps-skel div { border-radius: 20px; background: linear-gradient(90deg, rgb(255 255 255 / .4), rgb(255 255 255 / .85), rgb(255 255 255 / .4)); background-size: 200% 100%; }

/* stage: pill + folded stepper */
.ps-stage > summary { padding: 12px 16px; gap: 10px; border-radius: 20px; }
.ps-stage > summary:hover { background: rgb(255 255 255 / .4); }
.ps-phase { background: linear-gradient(180deg, var(--sg-blue-lift), var(--sg-blue)); color: #fff; padding: 4px 12px; font-size: 12.5px; font-weight: 650; letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 4px 10px rgb(var(--sg-blue-rgb) / .28); }
.ps-stage-link { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ps-stage[open] .ps-stage-link .ico { transform: rotate(180deg); }
.ps-stage-link .ico { transition: transform .2s var(--ease-out); }
.ps-stepper { gap: 10px 14px; padding: 2px 16px 10px; }
.ps-grp-l { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.ps-grp-b { gap: 5px; }
.ps-grp-b .bp-step { height: 30px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; color: var(--ink-2); padding: 0 12px; min-width: 0; }
.ps-grp-b .bp-step:hover:not(:disabled) { background: #fff; }
.ps-grp-b .bp-step.done { background: rgb(var(--mod-rgb) / .08); color: var(--mod); box-shadow: none; }
.ps-grp-b .bp-step.current { background: linear-gradient(180deg, var(--sg-blue-lift), var(--sg-blue)); color: #fff; box-shadow: 0 4px 10px rgb(var(--sg-blue-rgb) / .3); }
.ps-stage > .muted { padding: 0 16px 12px; }

/* Now + Your part */
.ps-mine { padding: 14px 16px 12px; }
.ps-now { position: relative; gap: 14px; align-items: center; padding: 14px 16px 14px 20px; border-radius: 16px; border: 0; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(120deg, rgb(var(--mod-rgb) / .12), rgb(var(--mod-rgb) / .05)); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .14); }
.ps-now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mod); }
.ps-now.now-late { background: linear-gradient(120deg, rgb(196 50 28 / .12), rgb(196 50 28 / .04)); box-shadow: inset 0 0 0 1px rgb(196 50 28 / .16); } .ps-now.now-late::before { background: var(--bad); }
.ps-now.now-soon { background: linear-gradient(120deg, rgb(var(--sg-gold-rgb) / .22), rgb(var(--sg-gold-rgb) / .07)); box-shadow: inset 0 0 0 1px rgb(var(--sg-gold-rgb) / .3); } .ps-now.now-soon::before { background: var(--sg-gold-deep); }
.ps-now.now-ok { background: linear-gradient(120deg, rgb(var(--mod-rgb) / .12), rgb(var(--mod-rgb) / .04)); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .16); }
.ps-now.now-wait { background: linear-gradient(120deg, rgb(16 22 43 / .06), rgb(16 22 43 / .02)); box-shadow: inset 0 0 0 1px var(--line-2); } .ps-now.now-wait::before { background: var(--faint); }
.ps-now.flash { animation: gx-flash 1.4s var(--ease-out); }
@keyframes gx-flash { 0%, 35% { box-shadow: 0 0 0 4px rgb(var(--mod-rgb) / .35); } 100% { box-shadow: 0 0 0 4px transparent; } }
.ps-now-eye, .ps-eye { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.ps-now-eye .sunny-mark { margin: -4px 0; }
.ps-now-head { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 3px; color: var(--ink); }
.ps-now-why { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ps-now-act .btn { height: 36px; padding: 0 18px; border-radius: var(--r-pill); font-size: 13px; }
.ps-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 9px; border: 0; background: #fff; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12); color: var(--mod); }
.ps-chip.late { color: var(--bad); } .ps-chip.soon { color: var(--accent-text); } .ps-chip.ok { color: var(--mod); } .ps-chip.wait { color: var(--muted); }
.ps-mine-head { align-items: center; padding: 0 2px; }
.ps-title { font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 1px; }
.ps-sub { font-size: 12.5px; }
.ps-jobchip { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 0; background: rgb(16 22 43 / .06); color: var(--ink-2); }
.ps-jobchip.warranty { background: var(--good-bg); color: var(--good); }
.ps-jobchip.unknown { background: rgb(var(--sg-gold-rgb) / .18); color: var(--accent-text); }
.ps-list { margin-top: 10px; }
.ps-item { padding: 10px 8px; border-top: 0; border-radius: 12px; gap: 12px; transition: background .12s; }
.ps-item + .ps-item { box-shadow: 0 -1px 0 var(--line); }
.ps-item.open:hover { background: rgb(255 255 255 / .75); box-shadow: none; }
.ps-item.open:hover + .ps-item { box-shadow: none; }
.ps-item.open:active { background: rgb(var(--mod-rgb) / .08); }
.ps-tick { width: 20px; height: 20px; border: 1.5px solid rgb(16 22 43 / .25); }
.ps-item.open:hover .ps-tick { border-color: var(--mod); }
.ps-item.done .ps-tick { background: var(--good); border-color: var(--good); }
.ps-t { font-size: 13.5px; font-weight: 500; }
.ps-t small { font-size: 12px; font-weight: 400; }
.ps-item.done .ps-t { font-weight: 400; }
.ps-item .btn { height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12.5px; }
.ps-item .btn:not(.btn-primary) { background: rgb(255 255 255 / .8); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.ps-go { font-weight: 600; color: var(--mod); display: inline-flex; align-items: center; gap: 2px; }
.ps-wait { padding: 0 8px; }
.ps-fold { padding: 0 6px; }
.ps-fold > summary { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.ps-fold > summary::-webkit-details-marker { display: none; }
.ps-fold > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-out); }
.ps-fold[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.ps-who { font-weight: 650; color: var(--ink); }
.ps-everyone li.open::marker { color: var(--accent-strong); }

/* the sheet */
.ps-sheet { overflow: visible; }
.ps-sheet-head { padding: 16px 18px 10px; }
.ps-sheet-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.ps-sec { border-top: 1px solid var(--line); }
.ps-sec > summary { padding: 13px 18px; gap: 12px; }
.ps-sec > summary:hover { background: rgb(255 255 255 / .45); }
.ps-sec > summary:active { background: rgb(var(--mod-rgb) / .06); }
.ps-sec-t { font-weight: 650; font-size: 13.5px; letter-spacing: -.008em; min-width: 132px; }
.ps-sec-sum { font-size: 12.5px; }
.ps-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; background: rgb(var(--sg-gold-rgb) / .2); color: var(--accent-text); }
.ps-sec[open] > summary { background: rgb(255 255 255 / .35); }
.ps-sec[open] > summary .ps-sec-t { color: var(--mod); }
.ps-sec-b { padding: 6px 18px 16px; }
.ps-grid { gap: 10px 14px; margin-bottom: 10px; }
.ps-f { font-size: 12px; gap: 5px; }
.ps-f > span:first-child { color: var(--ink-2); font-weight: 550; }
.ps input:not([type=checkbox]):not([type=radio]), .ps select, .ps textarea { border: 0; border-radius: var(--r-ctl); background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px var(--line-2); min-height: 36px; padding: 7px 12px; font-size: 13px; transition: box-shadow .15s, background .15s; }
.ps input:not([type=checkbox]):not([type=radio]):hover, .ps select:hover, .ps textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.ps input:not([type=checkbox]):not([type=radio]):focus, .ps select:focus, .ps textarea:focus { background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .55), 0 0 0 4px rgb(var(--mod-rgb) / .16); }
.ps input:disabled, .ps select:disabled, .ps textarea:disabled { background: rgb(255 255 255 / .4); color: var(--muted); }
.ps .ro-value { min-height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-ctl); background: rgb(16 22 43 / .04); color: var(--ink-2); font-size: 13px; }
.ps-f.flash, .ps-lines.flash { animation: gx-fflash 1.6s var(--ease-out); border-radius: var(--r-ctl); }
@keyframes gx-fflash { 0%, 40% { box-shadow: 0 0 0 4px rgb(var(--mod-rgb) / .35); } 100% { box-shadow: 0 0 0 4px transparent; } }
.ps-facts { background: rgb(var(--mod-rgb) / .05); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .1); }
.ps-scope-read pre { background: rgb(255 255 255 / .7); border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ps-note { border-radius: 12px; }
.ps-flat { background: rgb(var(--sg-gold-rgb) / .1); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px rgb(var(--sg-gold-rgb) / .25); }
.ps .btn { border-radius: var(--r-pill); }
.ps .row .btn:not(.btn-primary):not(.btn-gold) { background: rgb(255 255 255 / .8); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.ps .link { font-weight: 550; }
.ps-bar { position: sticky; bottom: 10px; z-index: 4; margin: 0 10px 10px; padding: 7px 7px 7px 16px; border: 0; border-radius: var(--r-pill); gap: 10px;
  background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: var(--glass-edge), var(--sh-1); transition: box-shadow .2s, background .2s; }
.ps-bar.dirty { background: rgb(255 249 233 / .92); box-shadow: 0 0 0 1px rgb(var(--sg-gold-rgb) / .45), var(--sh-pop); }
.ps-bar .btn { height: 32px; padding: 0 18px; }
.ps-state { font-weight: 550; }
.ps-bar.dirty .ps-state { color: var(--accent-text); }
.ps-kbd { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding: 2px 7px; border-radius: 6px; background: rgb(16 22 43 / .05); box-shadow: inset 0 -1px 0 rgb(16 22 43 / .08); }
.ps-bar:not(.dirty) .ps-kbd { display: none; }
.ps-more > summary { border-radius: 20px; }
.ps-more > summary:hover { background: rgb(255 255 255 / .45); }
.ps-before { background: rgb(var(--mod-rgb) / .06); border-radius: 14px; padding: 10px 14px; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .12); }
@media (prefers-reduced-motion: reduce) { .ps-now.flash, .ps-f.flash, .ps-lines.flash { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .ps-bar, .tk.gx .tk-foot, .tk.gx .save-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 700px) {
  .ps-mine { padding: 12px; }
  .ps-item { flex-wrap: wrap; } .ps-item .ps-t { flex: 1 1 calc(100% - 40px); } .ps-item > .btn, .ps-item > .ps-acts { margin-left: 32px; }
  .ps-now { padding: 12px 12px 12px 16px; }
  .ps-now-head { font-size: 17px; }
  .ps-now-act { width: 100%; } .ps-now-act .btn { flex: 1; }
  .ps-sec > summary { padding: 12px 14px; } .ps-sec-b { padding: 4px 14px 14px; } .ps-sec-t { min-width: 0; }
  .ps-sheet-head { padding: 14px 14px 8px; }
  .ps-bar { margin: 0 6px 8px; }
  .ps-kbd { display: none; }
}

/* ================================================================ Command Center lanes (.sh.gxh) - the ProjectOS topband */
.sh.gxh { gap: 12px; max-width: 1880px; margin: 0 auto; }
.gxh .sh-head { align-items: center; gap: 14px; flex-wrap: nowrap; }
.gxh .sh-head .mod-tile { width: 44px; height: 44px; border-radius: 13px; }
.gxh .sh-head .mod-tile .ico { width: 22px; height: 22px; }
.gxh .sh-titles { min-width: 0; }
.gxh .sh-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mod); }
.gxh .sh-head h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; margin: 2px 0 2px; }
.gxh .sh-sub { font-size: 13px; color: var(--muted); }
.gxh .sh-ident { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px; border-radius: var(--r-pill); background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); white-space: nowrap; }
.gxh .sh-ident .av { width: 30px; height: 30px; border: 0; background: rgb(var(--mod-rgb) / .14); color: var(--mod); font-weight: 800; font-size: 11px; }
.gxh .sh-ident small { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; }
.gxh .sh-ident b { font-size: 12.5px; line-height: 1.2; }
.gxh .sh-jumps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.gxh .sh-jumps a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 550; color: var(--ink-2);
  background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75), 0 1px 2px rgb(var(--sg-blue-rgb) / .06); white-space: nowrap; transition: background .15s, transform .1s; }
.gxh .sh-jumps a:hover { background: #fff; text-decoration: none; }
.gxh .sh-jumps a:active { transform: scale(.96); }
.gxh .sh-jumps a .ico { color: var(--muted); }
.gxh .sh-jumps a i { font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: #EA580C; color: #fff; }
.gxh .sh-sunny-show { border: 0; padding: 4px; border-radius: 50%; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); cursor: pointer; display: grid; place-items: center; }
.gxh .sh-sunny-show:active { transform: scale(.94); }

.gxh .sh-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 8px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.gxh .sh-tabs { border: 0; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: rgb(var(--sg-blue-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); min-width: 0; max-width: 100%; }
.gxh .sh-tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill); font-weight: 500; font-size: 13px; color: var(--muted); transition: background .15s, color .15s; }
.gxh .sh-tabs button:hover { color: var(--ink); background: rgb(255 255 255 / .5); }
.gxh .sh-tabs button.on { color: var(--mod); font-weight: 650; background: #fff; border: 0; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12), 0 4px 10px rgb(var(--sg-blue-rgb) / .1); }
.gxh .sh-tabs button i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: var(--r-pill); background: rgb(var(--mod-rgb) / .12); color: var(--mod); margin-left: 2px; }
.gxh .sh-tools { margin-left: auto; gap: 8px; flex-wrap: nowrap; }
.gxh .sh-search { position: relative; display: inline-flex; align-items: center; }
.gxh .sh-search .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.gxh .sh-tools input, .gxh .sh-tools select, .gxh .sh-segs select { height: 36px; min-height: 36px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 14px; font-size: 13px; }
.gxh .sh-tools select { padding-right: 30px; }
.gxh .sh-tools .sh-search input { width: 250px; padding-left: 34px; }
.gxh .sh-tools input:focus, .gxh .sh-tools select:focus { background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .55), 0 0 0 4px rgb(var(--mod-rgb) / .16); }
.gxh .sh-refresh { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px var(--line-2); }
.gxh .sh-refresh:hover { background: #fff; }
.gxh .sh-controls > .sh-segs { flex-basis: 100%; padding: 2px 4px 2px; }
.gxh .sh-segs-l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.gxh .sh-seg { height: 28px; padding: 0 13px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 550; font-size: 12px; color: var(--muted); transition: background .15s, color .15s; }
.gxh .sh-seg:hover { background: #fff; color: var(--ink); }
.gxh .sh-seg.on { background: rgb(var(--mod-rgb) / .12); color: var(--mod); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .3); font-weight: 650; }

/* KPI tiles */
.gxh .sh-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.gxh .sh-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 94px; border: 0; border-radius: 18px; padding: 14px 16px 13px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); transition: transform .15s var(--ease-out), box-shadow .15s; }
.gxh .sh-kpi:hover { transform: translateY(-1px); box-shadow: var(--glass-edge), var(--sh-hover); }
.gxh .sh-kpi:active { transform: scale(.97); }
.gxh .sh-kpi.on { background: #fff; box-shadow: 0 0 0 2px rgb(var(--mod-rgb) / .5), var(--sh-hover); }
.gxh .sh-kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mod); opacity: 0; transition: opacity .15s; }
.gxh .sh-kpi.on::before, .gxh .sh-kpi:hover::before { opacity: 1; }
.gxh .sh-kpi.alert::before { background: var(--bad); }
.gxh .sh-kpi b { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.gxh .sh-kpi span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.gxh .sh-kpi.alert b { color: var(--bad); }
.gxh .sh-kpi.relayk b { color: var(--mod); }

/* Sunny strip */
.gxh .sh-sunny { display: flex; align-items: center; gap: 18px; padding: 14px 18px 14px 16px; border-radius: var(--r-card);
  background: linear-gradient(120deg, rgb(255 244 214 / .88), rgb(255 255 255 / .7) 46%, rgb(var(--mod-rgb) / .08)); box-shadow: var(--glass-edge), var(--sh-1);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
.gxh .sh-sunny-main { flex: 1; min-width: 0; }
.gxh .sh-sunny-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.gxh .sh-sunny-head b { font-size: 16px; letter-spacing: -.015em; }
.gxh .sh-sunny-head span { font-size: 12.5px; color: var(--muted); }
.gxh .sh-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.gxh .sh-tip { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgb(255 255 255 / .78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 1px 2px rgb(var(--sg-blue-rgb) / .06); overflow: hidden; }
.gxh .sh-tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mod); }
.gxh .sh-tip.t-late::before { background: var(--bad); } .gxh .sh-tip.t-soon::before, .gxh .sh-tip.t-next::before { background: var(--sg-gold-deep); }
.gxh .sh-tip.t-relay::before { background: #EA580C; } .gxh .sh-tip.t-ok::before { background: var(--good); } .gxh .sh-tip.t-owner::before { background: #6D4ED8; }
.gxh .sh-tip-t { flex: 1; min-width: 0; }
.gxh .sh-tip-t b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.gxh .sh-tip-t span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxh .sh-tip-a { display: flex; gap: 6px; flex: none; }
.gxh .sh-tip-a .btn { height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12.5px; }
.gxh .sh-tip-a .btn:not(.btn-primary) { background: rgb(255 255 255 / .85); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
.gxh .sh-sunny-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: flex-start; }
.gxh .sh-rules { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.gxh .sh-sunny-side .link { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line-2); }

.gxh .sh-filter button { border: 0; background: rgb(var(--mod-rgb) / .1); color: var(--mod); box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .25); padding: 2px 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* lanes and cards (the ProjectOS lane and job card, on glass) */
.gxh .sh-board { grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; align-items: start; padding: 2px 2px 8px; }
.gxh .sh-lane { position: relative; padding: 0; gap: 0; border: 0; border-radius: 20px; background: rgb(255 255 255 / .42); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65), var(--sh-1);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); min-height: 220px; overflow: hidden; --lane: #94a3b8; }
.gxh .sh-lane::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--lane); }
.gxh .sh-lane.lt-slate { --lane: #94a3b8; } .gxh .sh-lane.lt-violet { --lane: #8b5cf6; } .gxh .sh-lane.lt-amber { --lane: #f59e0b; }
.gxh .sh-lane.lt-blue { --lane: #2563eb; } .gxh .sh-lane.lt-green { --lane: #16a34a; } .gxh .sh-lane.lt-teal { --lane: #0d9488; }
.gxh .sh-lane-h { padding: 15px 12px 10px 14px; }
.gxh .sh-lane-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gxh .sh-lane-h b { font-size: 13px; font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxh .sh-lane-h .n { margin: 0; min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-pill); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700;
  background: rgb(255 255 255 / .8); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.gxh .sh-lane-h small { margin-top: 2px; font-size: 11.5px; line-height: 15px; min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gxh .sh-cards { display: flex; flex-direction: column; gap: 8px; padding: 0 9px 10px; }
.gxh .sh-card { position: relative; border: 0; border-radius: 14px; padding: 11px 12px 10px; background: rgb(255 255 255 / .86); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 1px 2px rgb(var(--sg-blue-rgb) / .07), 0 3px 10px rgb(var(--sg-blue-rgb) / .05);
  transition: transform .15s var(--ease-out), box-shadow .15s; }
.gxh .sh-card:hover { transform: translateY(-1px); background: #fff; box-shadow: var(--glass-edge), var(--sh-hover); }
.gxh .sh-card:active { transform: scale(.985); }
.gxh .sh-card.today { opacity: .8; }
.gxh .sh-card-top { gap: 6px; font-size: 11px; }
.gxh .u-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #3b82f6; }
.gxh .sh-card.u-late .u-dot { background: var(--bad); box-shadow: 0 0 0 3px rgb(196 50 28 / .14); }
.gxh .sh-card.u-soon .u-dot { background: var(--sg-gold-deep); box-shadow: 0 0 0 3px rgb(var(--sg-gold-rgb) / .2); }
.gxh .sh-card.u-done .u-dot { background: var(--good); }
.gxh .sh-card .num { font-weight: 800; color: var(--mod); font-variant-numeric: tabular-nums; }
.gxh .sh-card .age { color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gxh .sh-segtag { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: var(--r-pill); }
.gxh .sh-new { border-radius: var(--r-pill); padding: 1px 7px; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(180deg, var(--sg-blue-lift), var(--sg-blue)); }
.gxh .sh-done { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--good-bg); }
.gxh .sh-mine { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.gxh .sh-card h4 { font-size: 13.5px; line-height: 1.32; margin: 6px 0 6px; font-weight: 650; letter-spacing: -.01em; }
.gxh .sh-card .sub { font-size: 11.5px; margin-top: 1px; }
.gxh .sh-card .next { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.38; color: var(--ink-2); }
.gxh .sh-card .next small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1px; }
.gxh .sh-card .next.none { color: var(--accent-text); }
.gxh .sh-empty { padding: 26px 10px; text-align: center; font-size: 12px; color: var(--faint); }
.gxh .sh-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; font-size: 11.5px; color: var(--muted); padding: 0 6px; }
.gxh .sh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gxh .sh-legend i { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; }
.gxh .sh-legend i.u-soon { background: var(--sg-gold-deep); } .gxh .sh-legend i.u-late { background: var(--bad); } .gxh .sh-legend i.u-done { background: var(--good); }
.gxh .sh-more { padding: 0 4px; }
.gxh .sh-more > summary { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.gxh .sh-more .card { border: 0; border-radius: 20px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); }
.gxh .table-wrap .table { border: 0; border-radius: 18px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); }
.gxh .table-wrap .table th { background: rgb(255 255 255 / .5); }
.gxh .sh-lane.ps-skel { min-height: 220px; display: block; } .gxh .sh-lane.ps-skel div { height: 100%; min-height: 220px; border-radius: 20px; }

@media (max-width: 1500px) { .gxh .sh-board { grid-template-columns: repeat(6, minmax(200px, 1fr)); overflow-x: auto; } }
@media (max-width: 1180px) { .gxh .sh-jumps a { padding: 0 9px; } .gxh .sh-jumps a .ico { display: none; } }
@media (max-width: 1280px) { .gxh .sh-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gxh .sh-tools { margin-left: 0; } }
@media (max-width: 980px) {
  .gxh .sh-board { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
  .gxh .sh-jumps { display: none; }
  .gxh .sh-lane { min-height: 0; }
  .gxh .sh-tools { flex-wrap: wrap; width: 100%; } .gxh .sh-search { flex: 1; } .gxh .sh-tools .sh-search input { width: 100%; }
  .gxh .sh-lane-h small { min-height: 0; }
  .gxh .sh-sunny-side { flex-direction: row; align-items: center; }
}
@media (max-width: 700px) {
  .gxh .sh-head { flex-wrap: wrap; gap: 10px; }
  .gxh .sh-head .mod-tile { width: 38px; height: 38px; border-radius: 11px; }
  .gxh .sh-head h1 { font-size: 23px; }
  .gxh .sh-ident { display: none; }
  .gxh .sh-controls { border-radius: 20px; padding: 6px; }
  .gxh .sh-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .gxh .sh-tools select { flex: 1; min-width: 0; }
  .gxh .sh-kpis { gap: 8px; margin: 0 -12px; padding: 2px 12px 4px; scroll-padding: 0 12px; }
  .gxh .sh-kpis .sh-kpi { flex: 0 0 8.4rem; min-height: 78px; padding: 10px 12px 9px; border-radius: 14px; }
  .gxh .sh-kpi b { font-size: 22px; }
  .gxh .sh-kpi span { font-size: 9.5px; letter-spacing: .05em; margin-top: 4px; }
  .gxh .sh-sunny { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 12px; }
  .gxh .sh-sunny > .sunny-mark { --s: 44px !important; }
  .gxh .sh-sunny-main { display: contents; }
  .gxh .sh-sunny-head { margin: 0; padding-right: 54px; flex-direction: column; gap: 0; }
  .gxh .sh-tips { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .gxh .sh-sunny-side { position: absolute; right: 12px; top: 18px; }
  .gxh .sh-rules { display: none; }
  .gxh .sh-tip { flex-wrap: wrap; }
  .gxh .sh-tip-t span { white-space: normal; }
  .gxh .sh-tip-a { width: 100%; } .gxh .sh-tip-a .btn { flex: 1; }
  .gxh .sh-legend { justify-content: flex-start; }
}
@media (prefers-reduced-transparency: reduce) { .gxh .sh-lane, .gxh .sh-controls, .gxh .sh-sunny { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; } }

/* ================================================================ Relay */
.rl-page { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.rl-head { display: flex; align-items: center; gap: 14px; }
.rl-head .mod-tile { width: 44px; height: 44px; border-radius: 13px; } .rl-head .mod-tile .ico { width: 22px; height: 22px; }
.rl-head h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 2px; }
.rl-sub { font-size: 13px; color: var(--muted); }
.rl-seg .tabs { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: var(--r-pill); background: rgb(var(--sg-blue-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); max-width: 100%; overflow-x: auto; margin: 0; }
.rl-seg .tab { height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); gap: 6px; }
.rl-seg .tab:hover { color: var(--ink); background: rgb(255 255 255 / .5); }
.rl-seg .tab.active { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgb(var(--sg-blue-rgb) / .12), 0 4px 10px rgb(var(--sg-blue-rgb) / .1); }
.rl-seg .tab .tab-count { order: 2; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; background: rgb(var(--mod-rgb) / .14); color: var(--mod); }
.rl-page .empty { border: 0; border-radius: 20px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); padding: 40px 20px; }
.rl-page .sh-more > summary { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 4px; }

/* a Relay ask (Relay page, the ticket Relay tab, the lanes fold) */
.relay { position: relative; border: 0; border-radius: 20px; padding: 14px 18px 12px; margin-bottom: 10px; background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); }
.relay.mine::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mod); }
.relay.overdue::before { background: var(--bad); }
.relay.closed { opacity: .72; }
.relay .msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.relay .msg-head .av { border: 0; background: rgb(var(--mod-rgb) / .14); color: var(--mod); font-weight: 800; }
.relay .rl-who { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.relay .rl-who .ico { color: var(--faint); }
.relay .rl-when { color: var(--faint); }
.relay .msg-head .badge { height: 22px; border-radius: var(--r-pill); padding: 0 9px; font-size: 11px; font-weight: 600; }
.relay-kind { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-pill); background: rgb(var(--mod-rgb) / .1); color: var(--mod); }
.rl-due { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-pill); background: rgb(16 22 43 / .05); color: var(--ink-2); }
.rl-due.late { background: var(--bad-bg); color: var(--bad); }
.relay .msg-body { font-size: 15px; line-height: 1.45; letter-spacing: -.008em; color: var(--ink); font-weight: 500; }
.rl-rec { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px; padding: 4px 10px 4px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  background: rgb(255 255 255 / .8); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.rl-rec span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-rec .ico { color: var(--mod); flex: none; }
.rl-rec .ico:last-child { color: var(--faint); }
.rl-rec:hover { text-decoration: none; background: #fff; }
.relay-answer { margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--good-bg); color: var(--ink); font-size: 13px; }
.relay-answer span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--good); margin-bottom: 2px; }
.relay .rl-answer { margin: 10px 0 0; flex-wrap: nowrap; }
.relay .rl-answer input { height: 36px; min-height: 36px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 16px; }
.relay .rl-answer input:focus { background: #fff; box-shadow: inset 0 0 0 1px rgb(var(--mod-rgb) / .55), 0 0 0 4px rgb(var(--mod-rgb) / .16); }
.relay .rl-answer .btn { height: 36px; padding: 0 18px; border-radius: var(--r-pill); flex: none; }
.relay-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rl-act { height: 28px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .75); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer;
  transition: background .15s, transform .1s; }
.rl-act:hover { background: #fff; color: var(--ink); }
.rl-act:active { transform: scale(.96); }
.rl-act:first-child { color: var(--good); }
.rl-note { font-size: 12px; color: var(--muted); padding: 0 4px; }
@media (max-width: 700px) {
  .rl-head h1 { font-size: 23px; } .rl-head .mod-tile { width: 38px; height: 38px; }
  .relay { padding: 12px 14px 10px; border-radius: 18px; }
  .relay .msg-body { font-size: 14px; }
}
