/* PC layout (job 69b69264): html.desk is set by app.js on windows 1024 px or wider. Sidebar rail, list
   pane, main pane, side pane; sheets become centred dialogs, toasts sit bottom right. Nothing here
   applies to the phone layout, except .post-tools staying hidden. */

.post-tools { display: none; }

html.desk, html.desk body { overflow: hidden; }
html.desk body { background: var(--bg); }
html.desk .phone.desk-shell {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; border-radius: 0; box-shadow: none;
  display: flex; --top: 0px; --bottom: 0px; --bpad: 12px;
}
html.desk .tabbar { display: none; }

/* rail */
.rail { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 6px;
  background: var(--surface); border-right: .5px solid var(--line-2); z-index: 6; }
html.dark .rail { background: #141518; }
.rail-top { padding: 2px 0 12px; }
.rail-tabs { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.rtab { position: relative; width: 64px; height: 58px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .01em; transition: background-color var(--t-fast), color var(--t-fast); }
.rtab svg.i { width: 23px; height: 23px; stroke-width: 1.8; }
.rtab:hover { background: var(--fill); color: var(--text-2); }
.rtab.on { background: var(--accent-soft); color: var(--accent-text); }
.rtab.on svg.i { stroke-width: 2.1; }
.rtab .badge { position: absolute; top: 4px; right: 7px; box-shadow: 0 0 0 2px var(--surface); }
html.dark .rtab .badge { box-shadow: 0 0 0 2px #141518; }
.rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rbtn { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--text-3); position: relative; }
.rbtn:hover { background: var(--fill); color: var(--text-2); }
.rbtn.on { color: var(--accent-text); }
.rbtn svg.i { width: 21px; height: 21px; }
.rbtn.assist.on { background: var(--accent-soft); }
.rbtn-me .av { --s: 34px; }
.rail[hidden] { display: none; }
html.desk .pane-main .lt-top .acts button[data-go="settings"] { display: none; }
.rail :focus-visible, .pane :focus-visible, .sheet :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* panes */
.pane { position: relative; min-width: 0; height: 100%; }
.pane[hidden] { display: none !important; }
.pane-list { flex: none; width: 320px; border-right: .5px solid var(--line-2); background: var(--bg); }
.pane-main { flex: 1; min-width: 0; background: var(--bg); }
.pane-side { flex: none; width: 400px; border-left: .5px solid var(--line-2); background: var(--bg); }
.pane-assist { flex: none; width: 430px; border-left: .5px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; }
.desk-shell.has-side .pane-assist { display: none !important; }
@media (max-width: 1279px) { .pane-list { width: 292px; } .pane-side { width: 368px; } .pane-assist { width: 380px; } }
@media (min-width: 1680px) { .pane-list { width: 344px; } .pane-side { width: 460px; } .pane-assist { width: 480px; } }
.pviews { position: absolute; inset: 0; }
.pane .view { position: absolute; inset: 0; }
html.desk .view.enter, html.desk .view.enter-back { animation: view-fade var(--t-mid) var(--ease) both; }
html.desk .view.leave, html.desk .view.leave-back { display: none; }

/* desktop scrollbars */
html.desk .scroll { scrollbar-width: thin; scrollbar-color: var(--fill-2) transparent; }
html.desk .scroll::-webkit-scrollbar { display: block; width: 10px; }
html.desk .scroll::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 5px; border: 2px solid var(--bg); }
html.desk .scroll.has-tabs, html.desk .phone.staff .scroll.has-tabs { padding-bottom: 36px; }

/* navigation bars: title on the left, no back button at a pane's root */
html.desk .nav { padding-top: 0; }
html.desk .nav-row { height: 58px; grid-template-columns: auto 1fr auto; padding: 0 12px 0 14px; }
html.desk .nav-title { text-align: left; padding-left: 4px; }
html.desk .nav-title > b { font-size: 17px; line-height: 22px; }
html.desk .nav-title > b[style*="justify-content:center"] { justify-content: flex-start !important; }
html.desk .atl-head { justify-content: flex-start; }
html.desk .pane-main.root .nav-row .l, html.desk .pane-side .nav-row .l { display: none; }
html.desk .pane-side .nav-row { padding-right: 52px; }
.side-x { position: absolute; top: 13px; right: 12px; z-index: 8; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--text-2); display: grid; place-items: center; }
.side-x:hover { background: var(--fill-2); }
.side-x svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.side-x.static { position: static; flex: none; }

/* list pane */
.pane-list .lt-head { padding: 12px 14px 0; }
.pane-list .lt-top { height: 40px; }
.pane-list .lt { font-size: 25px; line-height: 31px; }
.pane-list .lt-top .acts button[data-go="settings"] { display: none; }
.pane-list .pad { padding: 0 10px; }
.pane-list .seg { margin-top: 12px !important; }
.pane-list .quick { gap: 6px; }
.pane-list .ws-h { padding-left: 6px; }
.pane-list .group { border-radius: 14px; }
.pane-list .ch { min-height: 48px; padding: 0 12px; border-radius: 0; }
.pane-list .ch .mid { padding: 7px 0; }
.pane-list .ch .nm { font-size: 15px; }
.pane-list .ch .pv { font-size: 13px; }
.pane-list .ch.sel { background: var(--accent-soft); }
.pane-list .ch.sel .nm { color: var(--accent-text); }
.pane-list .ac { padding: 12px 14px 14px; border-radius: 16px; }
.pane-list .ac .ac-amt b { font-size: 22px; line-height: 26px; }
.pane-list .ac.sel { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
.pane-list .row.sel { background: var(--accent-soft); }
.pane-list .member-note, .pane-list .new-task { margin-left: 2px; margin-right: 2px; }
html.desk button.ch:hover, html.desk button.row:hover, html.desk .lane:hover { background: color-mix(in srgb, var(--fill) 70%, var(--surface)); }
html.desk .pane-list .ch.sel:hover { background: var(--accent-soft); }

/* main pane: readable widths, dashboards in columns */
html.desk .pane-main .lt-head { max-width: 1480px; margin: 0 auto; padding: 22px 32px 0; }
html.desk .pane-main .scroll > .pad { max-width: 1480px; margin: 0 auto; padding: 0 32px 8px; }
html.desk .pane-main .lt-head .search { max-width: 560px; }
html.desk .pane-main .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
html.desk .pane-main .kpi { padding: 14px 18px; }
html.desk .pane-main .kpi b { font-size: 28px; line-height: 32px; }
.blocks { columns: auto 440px; column-gap: 28px; }
.blk { break-inside: avoid; padding-bottom: 14px; }
.blocks .blk > .sec:first-child, .blocks .blk > .big-sec:first-child { padding-top: 14px; }
.blk.lead { margin-bottom: 4px; }
.blocks.one { columns: auto; }
.blocks.one > .blk { max-width: 960px; }
.blk.foot { max-width: 720px; padding-top: 4px; }
.blk.foot > .btn.block { max-width: 420px; }
html.desk [data-r="w-returns"] .blk.lead > .btn.ink { max-width: 520px; height: 64px !important; }
html.desk [data-r="w-home"] .blk.lead { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-items: start; padding-top: 6px; }
html.desk [data-r="w-home"] .blk.lead .wk + .wk { margin-top: 0; }
html.desk [data-r="w-home"] .blk.lead > .btn { grid-column: 1 / -1; max-width: 420px; }
html.desk [data-r="team"] .scroll > .pad { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
html.desk [data-r="team"] .scroll > .pad > .sec, html.desk [data-r="team"] .scroll > .pad > .set-foot, html.desk [data-r="team"] .scroll > .pad > div:not(.lane) { grid-column: 1 / -1; }
html.desk [data-r="team"] .lane + .lane { margin-top: 0; }
html.desk [data-r="team"] .week { max-width: 620px; }
html.desk [data-r="settings"] .prof { padding-top: 22px; }
html.desk [data-r="settings"] .blocks { columns: auto 420px; }

/* single-column screens keep a reading width */
html.desk .pane-main [data-r="approval"] .scroll > .pad, html.desk .pane-main [data-r="search"] .scroll > .pad,
html.desk .pane-main [data-r="count"] .scroll > .pad, html.desk .pane-main [data-r^="r-"] .scroll > .pad,
html.desk .pane-main [data-r="r-done"] .done-wrap { max-width: 760px; }
html.desk .pane-main [data-r^="r-"] .steps { max-width: 760px; margin: 0 auto; padding: 8px 32px 0; }
html.desk .pane-main [data-r="r-photos"] .shots { grid-template-columns: repeat(4, 1fr) !important; }
html.desk .pane-main .foot-cta { display: flex; flex-direction: column; align-items: center; }
html.desk .pane-main .foot-cta > * { width: 100%; max-width: 696px; }
html.desk .pane-main .foot-cta .btn { height: 52px; font-size: 17px; }
html.desk .pane-main [data-r="atlas"] .msgs, html.desk .pane-main [data-r="atlas"] .composer-wrap > * { max-width: 880px; margin-left: auto; margin-right: auto; }
html.desk .pane-main [data-r="atlas"] .msgs { padding: 18px 32px; }
html.desk .done-wrap { margin: 0 auto; }

/* chat: wider posts, hover tools, selectable text */
html.desk .post { padding: 7px 24px; }
html.desk .pane-side .post { padding: 7px 16px; }
html.desk .post:hover { background: color-mix(in srgb, var(--fill) 50%, transparent); }
html.desk .post.hl:hover { background: color-mix(in srgb, var(--mention-bg) 70%, transparent); }
html.desk .post .tx { font-size: 15.5px; line-height: 22px; user-select: text; -webkit-user-select: text; }
html.desk .post.tapme:active { background: none; }
html.desk .post-tools { position: absolute; top: -14px; right: 18px; display: none; gap: 2px; padding: 3px; z-index: 4;
  background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-pop), 0 0 0 .5px var(--line-2); }
html.desk .post:hover .post-tools, html.desk .post:has(:focus-visible) .post-tools { display: flex; }
html.desk .feed:hover .post:not(:hover) .post-tools { display: none; }  /* one toolbar at a time: the hovered message */
.post-tools button { width: 32px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; color: var(--text-2); }
.post-tools button:hover { background: var(--fill); }
.post-tools svg.i { width: 17px; height: 17px; }
html.desk .post .photos { max-width: 520px; }
html.desk .pane-main .composer-wrap { padding: 10px 24px 14px; }
html.desk .composer .box textarea { font-size: 15.5px; }
html.desk .dayline, html.desk .newline { padding-left: 24px; padding-right: 24px; }
html.desk .pinbar { margin: 0; }
.view.dropping::after { content: "Drop to attach"; position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 18px; z-index: 40;
  background: color-mix(in srgb, var(--accent-soft) 80%, transparent); display: grid; place-items: center; font: 650 19px/24px var(--font-display); color: var(--accent-text); pointer-events: none; }

/* sheets become dialogs, toasts bottom right */
html.desk .layer { position: fixed; }
html.desk .sheet { left: 50%; top: 50%; right: auto; bottom: auto; width: min(520px, calc(100vw - 48px)); max-height: min(86vh, 880px);
  border-radius: 20px; padding: 20px 24px 22px; transform: translate(-50%, -47%) scale(.98); opacity: 0; scrollbar-width: thin;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease); box-shadow: var(--shadow-pop); }
html.desk .layer.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
html.desk .sheet .grab { display: none; }
html.desk .toast { top: auto; bottom: 20px; right: 20px; left: auto; width: 380px; transform: translateY(calc(100% + 40px)); }
html.desk .toast.show { transform: none; }
html.desk .offline { top: 10px; }
html.desk .hud { position: fixed; }

/* quick find */
.quick-find .search { height: 46px; font-size: 16px; }
.quick-find .search input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--text); }
.quick-find .qlist { margin-top: 12px; max-height: 440px; overflow-y: auto; }
.quick-find .qlist .row.sel { background: var(--accent-soft); }

/* sign-in on a computer */
html.desk .signin.desk-signin { position: relative; inset: auto; min-height: 100%; display: grid; place-items: center; padding: 32px; }
.ds-card { display: grid; grid-template-columns: 1.05fr 1fr; width: min(960px, 100%); background: var(--surface); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-card), 0 30px 80px -40px rgba(0, 0, 0, .35); }
.ds-left { padding: 48px 48px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.ds-left h2 { margin: 18px 0 4px !important; }
.ds-left p { max-width: none !important; }
.ds-left .acct { width: 100%; margin-top: 20px; }
.ds-left .err { text-align: left !important; }
.ds-btns { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.ds-left .fine { justify-content: flex-start !important; text-align: left !important; margin-top: 20px !important; }
.ds-right { padding: 40px 40px 34px; background: var(--fill); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ds-right[hidden] { display: none; }
.ds-right > b { font: 650 18px/24px var(--font-display); margin-top: 18px; }
.ds-right ol { text-align: left; margin: 10px 0 12px; padding-left: 22px; font-size: 14.5px; line-height: 24px; color: var(--text-2); }
.qr-box { width: 248px; height: 248px; border-radius: 18px; background: #fff; padding: 8px; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-2); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-short { font-size: 13.5px; color: var(--text-3); min-height: 20px; }
.qr-short b { font: 600 15px/20px var(--mono); color: var(--text); letter-spacing: .08em; }
.qr-timer { font-size: 12.5px; color: var(--text-3); margin-top: 4px; min-height: 18px; }
@media (max-width: 1100px) { .ds-left { padding: 36px; } .ds-right { padding: 32px; } }

/* scan station */
html.desk .station { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; max-width: 1180px !important; padding-top: 26px !important; align-items: start; }
.st-card { background: var(--surface); border-radius: 22px; padding: 26px 26px 22px; box-shadow: var(--shadow-card); }
html:not(.dark) .st-card { box-shadow: 0 0 0 .5px rgba(20,20,18,.07), var(--shadow-card); }
.st-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.st-ic svg.i { width: 27px; height: 27px; }
.st-card h2 { font: 700 24px/30px var(--font-display); letter-spacing: -.02em; margin: 14px 0 6px; }
.st-card p { color: var(--text-2); font-size: 15px; line-height: 22px; margin: 0 0 18px; }
.st-in { display: flex; gap: 10px; }
.st-in input { flex: 1; min-width: 0; height: 58px; border-radius: 15px; background: var(--fill); border: 0; padding: 0 18px; font: 600 20px/1 var(--mono);
  letter-spacing: .04em; color: var(--text); outline: none; }
.st-in input::placeholder { font: 500 16px/1 var(--font); letter-spacing: 0; color: var(--text-3); }
.st-in input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.st-in .btn { height: 58px; }
.st-hint { display: flex; gap: 8px; font-size: 13px; line-height: 18px; color: var(--text-3); margin-top: 14px; }
.st-hint svg.i { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.st-cam-h { display: flex; align-items: center; gap: 10px; }
.st-cam-h b { font: 650 17px/22px var(--font-display); }
.st-cam-h span { flex: 1; color: var(--text-3); font-size: 13px; }
.st-cam .cam { position: relative; inset: auto; height: 320px; border-radius: 16px; margin-top: 14px; }
.st-cam .cam[hidden] { display: none; }
.st-cam .cam .scene { inset: 0; filter: none; }
.st-cam .cam .vf { left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); width: 230px; height: 170px; }
.st-cam .cam.mode-upc .vf { width: 280px; height: 110px; margin: 0; top: 50%; }
.st-cam .cam .hintc, .st-cam .cam .foundchip { top: auto; bottom: 14px; }
.st-cam .cam .nocam { top: 30%; }

/* webcam photo */
.webcam { position: relative; border-radius: 16px; overflow: hidden; background: #0b0b0c; aspect-ratio: 16 / 10; }
.webcam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.webcam .nocam { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; color: rgba(255,255,255,.86); text-align: center; padding: 24px; font-size: 15px; line-height: 22px; }
.webcam .nocam[hidden] { display: none; }
.webcam .nocam b { display: block; color: #fff; font: 650 18px/24px var(--font-display); }

/* the person's own assistant beside the team app */
.assist-h { flex: none; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: .5px solid var(--line-2); }
.assist-h b { font: 600 16px/20px var(--font-display); }
.assist-h a.btn { text-decoration: none; }
.assist-h span { flex: 1; font-size: 12.5px; color: var(--text-3); }
.pane-assist iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
.assist-note { flex: none; margin: 0; padding: 8px 14px 10px; font-size: 12px; line-height: 16px; color: var(--text-3); border-top: .5px solid var(--line-2); }
