/* Master Marketing Team · the team app: navigation shell, home, board, team, activity, request detail, login.
   Built on styles.css. Layout: Prussian navigation (sidebar on a computer, top bar and tab bar on a phone)
   around a Cultured work area with white surfaces. */

:root { --side-w: 244px; --rail-w: 76px; --top-h: 56px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.shell.side-rail { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.shell.is-board .main { height: 100dvh; overflow: hidden; }

/* ---------- sidebar ---------- */
.side {
  --focus: var(--focus-on-dark);
  position: sticky; top: 0; height: 100dvh; overflow-x: hidden; overflow-y: auto; z-index: 20;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 10px;
  background: var(--side-bg); color: var(--side-fg); scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.side ::selection { background: rgba(255, 98, 61, .4); }
.side-top { display: flex; align-items: center; gap: 4px; padding: 2px 0 12px 6px; }
.side-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: #FFFFFF; text-decoration: none; border-radius: var(--r-md); }
.side-mark { width: 26px; height: auto; flex: none; }
.side-name { display: flex; flex-direction: column; min-width: 0; }
.side-name b { color: #FFFFFF; font: 600 13.5px/1.2 var(--font); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-name span { color: var(--side-fg-3); font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-toggle { width: 28px; height: 28px; color: var(--side-fg-3); }
.side-toggle:hover { background: var(--side-hover); color: #FFFFFF; }
.ws-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-bottom: 8px; padding: 6px 8px;
  border: 1px solid var(--side-line); border-radius: var(--r-md); background: var(--side-raise); color: #FFFFFF; text-align: left; cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}
.ws-btn:hover, .ws-btn[aria-expanded="true"] { background: var(--side-hover); }
.ws-btn > .ic { color: var(--side-fg-3); }
.ws-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-name { font: 550 13px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-sub { color: var(--side-fg-3); font-size: 11.5px; line-height: 1.2; }
.side-new { width: 100%; justify-content: flex-start; margin-bottom: 12px; padding: 0 10px; box-shadow: none; }
.side-new .nav-lbl { flex: 1; text-align: left; }
.side-new kbd { background: rgba(16, 24, 40, .1); border-color: rgba(16, 24, 40, .2); color: var(--on-orange); }
.side-new:focus-visible { outline-color: #FFFFFF; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px;
  border: 0; border-radius: 7px; background: none; color: var(--side-fg); text-align: left; cursor: pointer;
  font: 500 13.5px/1 var(--font); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.nav-ic { display: inline-grid; place-items: center; flex: none; }
.nav-item .ic { color: var(--side-fg-3); transition: color var(--d1) var(--ease); }
.nav-item:hover { background: var(--side-hover); color: #FFFFFF; }
.nav-item:hover .ic { color: #FFFFFF; }
.nav-item.on { background: var(--side-active); color: #FFFFFF; }
.nav-item.on .ic { color: var(--orange); }
/* Active marker: a slanted stripe, like the MM isotype. */
.nav-item.on::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 18px; margin-top: -9px; background: var(--orange);
  clip-path: polygon(0 4px, 100% 0, 100% calc(100% - 4px), 0 100%);
}
.nav-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-n { color: var(--side-fg-3); font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.nav-item:hover .nav-n, .nav-item.on .nav-n { color: #DCE3EE; }
.nav-n.hot {
  min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--orange); color: var(--on-orange); font-weight: 600;
}
.side-sec { margin-top: 18px; }
.side-sec-h button {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--side-fg-3); font: 500 12px/1 var(--font); cursor: pointer;
}
.side-sec-h button::after {
  content: ""; width: 12px; height: 12px; background: currentColor; transition: transform var(--d1) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.side-sec-h button[aria-expanded="false"]::after { transform: rotate(-90deg); }
.side-sec-h button:hover { color: #FFFFFF; }
.side-sec-list { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.nav-item.sub { height: 32px; font-size: 13px; }
.side-foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--side-line); }
.me-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 8px; border: 0; border-radius: var(--r-md);
  background: none; color: #FFFFFF; text-align: left; cursor: pointer; transition: background-color var(--d1) var(--ease);
}
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--side-hover); }
.me-btn > .ic { color: var(--side-fg-3); }
.me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-txt b { font: 550 13px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { color: var(--side-fg-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rail: tablets, or a computer with the menu folded. Labels stay under the icons, so it works by touch. */
.side-rail .side { padding: 10px 8px; }
.side-rail .side-top { flex-direction: column; gap: 6px; padding: 2px 0 8px; }
.side-rail .side-brand { flex: none; }
.side-rail .side-name { display: none; }
.side-rail .ws-btn { justify-content: center; padding: 6px 0; min-height: 0; border-color: transparent; background: none; }
.side-rail .ws-btn:hover { background: var(--side-hover); }
.side-rail .ws-txt, .side-rail .ws-btn > .ic { display: none; }
.side-rail .side-new { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 8px 0; }
.side-rail .side-new .nav-lbl { flex: none; font-size: 10.5px; }
.side-rail .side-new kbd { display: none; }
.side-rail .nav-item { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 52px; padding: 7px 2px 6px; text-align: center; }
.side-rail .nav-item .nav-lbl { flex: none; max-width: 100%; font-size: 10.5px; line-height: 1.15; white-space: normal; }
.side-rail .nav-item.on::before { left: -8px; }
.side-rail .nav-n { position: absolute; top: 3px; left: calc(50% + 3px); right: auto; }
.side-rail .nav-n.hot { box-shadow: 0 0 0 2px var(--side-bg); }
.side-rail .nav-n:not(.hot) { display: none; }
.side-rail .side-sec { display: none; }
.side-rail .me-btn { justify-content: center; padding: 6px 0; }
.side-rail .me-txt, .side-rail .me-btn > .ic { display: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: var(--top-h); padding: 0 24px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.crumb-ws {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; min-width: 0; padding: 0 8px 0 4px; border: 0; border-radius: 7px;
  background: none; color: var(--ink-2); font: 500 13.5px/1 var(--font); cursor: pointer; transition: background-color var(--d1) var(--ease);
}
.crumb-ws > span:not(.ws-tile) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-ws:hover, .crumb-ws[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.crumb-ws .ws-tile { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.crumb-ws .ws-tile .bmark { height: 12px; }
.crumb-ws .ws-tile.both .bmark { height: 9px; }
.crumb-ws .ws-tile.both .bmark:first-child { left: 2px; top: 3px; }
.crumb-ws .ws-tile.both .bmark:last-child { right: 2px; bottom: 3px; }
.crumb-ws > .ic { color: var(--ink-3); }
.crumb-ws:disabled { cursor: default; color: var(--ink-2); background: none; }
.crumb-ws:disabled > .ic { display: none; }
.crumb-sep { color: var(--line-3); font-size: 16px; }
.page-title { color: var(--ink); font: 600 15px/1.2 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.search { position: relative; display: flex; align-items: center; width: 280px; }
.search > .ic { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 34px; padding-left: 34px; padding-right: 34px; background: var(--surface-2); box-shadow: none; }
.search input:focus { background: var(--surface); }
.search-kbd { position: absolute; right: 8px; pointer-events: none; }
.search input:focus ~ .search-kbd, .search input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.top-search, .top-me { display: none; }
.main > .banner { margin: 14px 24px 0; }

/* ---------- filters ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 24px 4px; min-width: 0; }
.tb-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tb-div { width: 1px; height: 18px; margin: 0 2px; background: var(--line-2); flex: none; }
.tb-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tb-count { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 10px; flex: none;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-xs);
  font: 500 13px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.fbtn:hover, .fbtn[aria-expanded="true"] { border-color: var(--line-3); background: var(--surface-2); }
.fbtn-l { color: var(--ink-3); }
.fbtn-v { color: var(--ink); }
.fbtn > .ic { color: var(--ink-3); }
.fbtn.on { border-color: var(--sel-line); background: var(--sel-bg); }
.fbtn.on .fbtn-v, .fbtn.on .fbtn-l { color: var(--sel-fg); }

/* ---------- views ---------- */
.view { flex: 1; min-width: 0; padding: 16px 24px 40px; }
.view.enter { animation: view-in var(--d2) var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.sec-h { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-bottom: 10px; }
.sec-h h2 { color: var(--ink); font: 600 15px/1.2 var(--font); letter-spacing: -.01em; }
.sec-n { color: var(--ink-3); font: 500 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.sec-h .linkbtn { margin-left: auto; font-size: 12.5px; }
.sec-note { padding: 4px 2px; color: var(--ink-3); font-size: 13px; }

/* Rows: requests in lists */
.list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-top: 1px solid var(--line-soft); transition: background-color var(--d1) var(--ease); }
.list > .row:first-child, .bucket + .row, .panel-list > .row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.row:has(.row-open:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.row-st {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: -5px -3px; flex: none;
  border: 0; border-radius: 7px; background: none; cursor: pointer; transition: background-color var(--d1) var(--ease);
}
.row-st:hover, .row-st[aria-expanded="true"] { background: var(--hover); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { margin: 0; color: var(--ink); font: 500 14px/1.35 var(--font); letter-spacing: -.005em; }
.row-open, .card-open {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit;
  text-align: left; cursor: pointer;
}
.row-open::after, .card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.row-open:focus-visible, .card-open:focus-visible { outline: none; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.row-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; }
.row-meta > * { flex: none; }
.row-meta .req { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row-type::before, .row-meta .req::before { content: "·"; margin-right: 6px; color: var(--line-3); }
.row-side { display: flex; align-items: center; gap: 6px; flex: none; }
.row-side .who { position: relative; z-index: 1; }
.row.is-done .row-title { color: var(--ink-2); }
.row-compact { min-height: 46px; padding: 8px 14px; gap: 10px; }
.row-compact .row-title { font-size: 13.5px; }
.req { min-width: 0; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req b { color: var(--ink-2); font-weight: 500; }
.who { display: inline-flex; flex: none; }
.bucket {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; margin: 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
  color: var(--ink-2); font: 600 12px/1.2 var(--font);
}
.list > .bucket:first-child { border-top: 0; }
.bucket .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.bucket.b-late { color: var(--danger-ink); }
.bucket.b-inbox { color: var(--sel-fg); }
.list-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-3); font-size: 13.5px;
}

/* ---------- home ---------- */
.home { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.home-h { display: flex; flex-direction: column; gap: 16px; }
.hello { color: var(--ink); font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.hello-sub { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.stats-wrap { display: flex; flex-direction: column; gap: 8px; }
.stats-l { color: var(--ink-3b); font: 500 12.5px/1.3 var(--font); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line-soft); box-shadow: var(--sh-xs); }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-width: 0; padding: 12px 16px;
  border: 0; background: var(--surface); text-align: left; cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat:focus-visible { position: relative; z-index: 1; }
.stat b { color: var(--ink); font: 600 20px/1 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.stat.alert b { color: var(--danger-ink); }
.stat:focus-visible { outline-offset: -2px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.home-aside { display: flex; flex-direction: column; gap: 26px; position: sticky; top: calc(var(--top-h) + 16px); }
.next { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); }
.next-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.next-h h2 { color: var(--ink); font: 600 14px/1.2 var(--font); }
.next .row { min-height: 0; padding: 8px 16px 16px; border-top: 0; }
.next .row:hover { background: none; }
.next .row-title { font-size: 16px; font-weight: 550; }
.next .row-side .due { display: none; }
.aside-sec { min-width: 0; }
.mini-feed, .load { list-style: none; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.mini-item {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: var(--r-md); background: none; color: var(--ink-2); text-align: left; cursor: pointer;
  font: 400 13px/1.4 var(--font); transition: background-color var(--d1) var(--ease);
}
.mini-item:hover { background: var(--surface-2); }
.mini-item .av { margin-top: 1px; }
.mini-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mini-txt b { color: var(--ink); font-weight: 550; }
.mini-task { color: var(--ink); }
.mini-item time { color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.load-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-md);
  background: none; text-align: left; cursor: pointer; transition: background-color var(--d1) var(--ease);
}
.load-row:hover { background: var(--surface-2); }
.load-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.load-name b { color: var(--ink); font: 500 13px/1.3 var(--font); }
.load-name small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-n { min-width: 22px; color: var(--ink); font: 600 14px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.tip { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.tip-ic { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--sel-bg); color: var(--sel-fg); }
.tip-txt { flex: 1; min-width: 0; }
.tip-txt b { font: 600 13.5px/1.3 var(--font); }
.tip-txt p { margin-top: 2px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.how { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.how-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.how-h h2 { font: 600 16px/1.3 var(--font); }
.how ol { padding: 0; list-style: none; counter-reset: how; display: grid; gap: 12px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 2px; }
.how li::before {
  content: counter(how); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sel-bg); color: var(--sel-fg); font: 600 12px/1 var(--font);
}
.how li b { font-weight: 600; }
.how li span { color: var(--ink-3); font-size: 13px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.panel-who { flex: 1; min-width: 0; }
.panel-name { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 14px/1.25 var(--font); }
.you { padding: 3px 6px; border-radius: var(--r-xs); background: var(--sel-bg); color: var(--sel-fg); font: 600 11px/1 var(--font); }
.panel-role { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-n { text-align: right; }
.panel-n b { display: block; color: var(--ink); font: 600 20px/1 var(--font); font-variant-numeric: tabular-nums; }
.panel-n small { color: var(--ink-3); font-size: 12px; }
.panel-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.panel-list { border-top: 1px solid var(--line-soft); }
.panel-empty { padding: 14px 16px; color: var(--ink-3); font-size: 13px; }
.panel-more {
  width: 100%; height: 38px; border: 0; border-top: 1px solid var(--line-soft); background: none; color: var(--ink-2);
  font: 500 12.5px/1 var(--font); cursor: pointer; transition: background-color var(--d1) var(--ease);
}
.panel-more:hover { background: var(--surface-2); color: var(--ink); }
.panel-foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line-soft); background: var(--surface-2); color: var(--ink-3); font-size: 12px; }

/* ---------- board ---------- */
.shell.is-board .view { display: flex; flex-direction: column; min-height: 0; padding: 4px 0 0; }
.board {
  flex: 1; min-height: 0; display: flex; gap: 10px; padding: 4px 20px 16px; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-padding-inline: 20px;
}
.col {
  flex: 1 0 216px; min-width: 216px; max-width: 360px; min-height: 0; display: flex; flex-direction: column;
  border-radius: var(--r-lg); background: var(--lane); transition: background-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.col-h { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; flex: none; }
.col-h h2 { color: var(--ink); font: 600 13px/1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-n { color: var(--ink-3); font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.col-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 6px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.col.is-over { background: var(--lane-over); box-shadow: inset 0 0 0 1.5px var(--sel-line); }
.col.is-over .col-empty { display: none; }
.col-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--ink-3); font-size: 12.5px; line-height: 1.45;
}
.col-hint { font-size: 12px; color: var(--ink-3); }
.col-more {
  flex: none; height: 32px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2);
  font: 500 12.5px/1 var(--font); cursor: pointer;
}
.col-more:hover { background: var(--hover); color: var(--ink); }
.col.is-collapsed { flex: 0 0 46px; min-width: 46px; max-width: 46px; }
.col-expand {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 10px 0;
  border: 0; border-radius: var(--r-lg); background: none; color: var(--ink-2); cursor: pointer;
}
.col-expand:hover { background: var(--hover); }
.col-expand .ic { color: var(--ink-3); }
.col-vlabel { writing-mode: vertical-rl; color: var(--ink); font: 600 13px/1 var(--font); }
.drop-slot {
  flex: none; height: var(--h); border: 1.5px dashed var(--sel-line); border-radius: 10px; background: var(--lane-over);
  animation: slot-in 150ms var(--ease);
}
@keyframes slot-in { from { height: 0; opacity: 0; } }
.board.is-skel .col-body { gap: 8px; }
.board.is-skel .skel { height: 96px; }

/* Card */
.card {
  position: relative; flex: none; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px;
  border: 1px solid var(--card-bd); border-radius: 10px; background: var(--surface); box-shadow: var(--sh-xs);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.card:hover { border-color: var(--line-3); box-shadow: var(--sh-sm); }
.card:has(.card-open:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-meta { display: flex; align-items: center; gap: 6px; min-width: 0; height: 22px; color: var(--ink-3); font-size: 12px; }
.card-type { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card-type > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more { position: absolute; z-index: 1; top: 7px; right: 6px; opacity: 0; transition: opacity var(--d1) var(--ease), background-color var(--d1) var(--ease); }
.card-meta { padding-right: 28px; }
.card:hover .card-more, .card:focus-within .card-more, .card-more[aria-expanded="true"] { opacity: 1; }
.card-title { margin: 0; color: var(--ink); font: 500 14px/1.38 var(--font); letter-spacing: -.005em; }
.card-title .clamp { -webkit-line-clamp: 3; }
.props-row { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.card .biz .bmark, .row .biz .bmark, .feed .biz .bmark { filter: grayscale(1); opacity: .72; }
.prop.type { min-width: 0; padding-left: 0; background: none; color: var(--ink-3); }
.prop.type > span { overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.card.is-done .card-title { color: var(--ink-2); }
.card.is-lifted { border: 1.5px dashed var(--line-3); background: transparent; box-shadow: none; }
.card.is-lifted > * { visibility: hidden; }
.card.is-landing { visibility: hidden; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.drag-ghost > .card { border-color: var(--line-3); box-shadow: var(--sh-drag); transform: rotate(1.5deg) scale(1.02); animation: lift 160ms var(--ease); }
.drag-ghost > .card .card-more { opacity: 0; }
@keyframes lift { from { transform: none; box-shadow: var(--sh-sm); } }
.drag-ghost.settle { transition: transform 200ms var(--ease); }
.drag-ghost.settle > .card { transform: none; box-shadow: var(--sh-sm); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
html.dragging, html.dragging * { cursor: grabbing !important; }
.flash { animation: flash 600ms var(--ease); }
@keyframes flash { from { box-shadow: 0 0 0 3px rgba(255, 98, 61, .45); } }
.row.flash { animation-name: row-flash; }
@keyframes row-flash { from { background: var(--orange-tint); } }

/* Phone board: one column at a time */
.board-focus { display: flex; flex-direction: column; }
.col-tabs { display: flex; gap: 6px; padding: 10px 32px 10px 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.col-tabs::-webkit-scrollbar { display: none; }
.col-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--ink-2);
  font: 500 13px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.col-tab .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.col-tab[aria-selected="true"] { background: var(--prussian); border-color: var(--prussian); color: #FFFFFF; }
.col-tab[aria-selected="true"] .n { color: rgba(255, 255, 255, .78); }
.col-tab[aria-selected="true"] .stg { --st-c: #FFFFFF; }
.col-tab[aria-selected="true"] .stg-tick { stroke: var(--prussian); }
.col-panel { display: flex; flex-direction: column; gap: 8px; min-height: 50vh; padding: 4px 16px 16px; }

/* ---------- activity ---------- */
.feed-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.feed-scope { color: var(--ink-3); font-size: 13px; }
.feed-day > .bucket { padding: 0 2px 8px; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; }
.feed { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-xs); }
.feed-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.feed-item:first-child { border-top: 0; }
.feed-item.fresh { background: color-mix(in srgb, var(--sel-bg) 55%, var(--surface)); }
.feed-what { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.feed-what .unseen { margin-right: 6px; vertical-align: 1px; }
.feed-what b { color: var(--ink); font-weight: 550; }
.feed-what .st-chip { margin-left: 6px; }
.feed-note { margin-top: 6px; padding: 8px 12px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-task { margin-top: 6px; }
.feed-open {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 6px 3px 3px; margin-left: -3px;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); text-align: left; cursor: pointer; font: 500 12.5px/1.2 var(--font);
}
.feed-open:hover { background: var(--hover); color: var(--ink); }
.feed-open > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item time { color: var(--ink-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); opacity: 0; transition: opacity var(--d2) var(--ease); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); display: flex; flex-direction: column;
  border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateX(24px); transition: transform var(--d3) var(--ease), opacity var(--d2) var(--ease);
}
.sheet.open { opacity: 1; transform: none; }
.sheet[data-kind="form"], .sheet[data-kind="pin"] { width: min(580px, 100vw); }
@media (min-width: 701px) {
  body:has(#sheet.open) .toast { left: calc((100vw - min(640px, 100vw)) / 2); }
  body:has(#sheet.open[data-kind="form"]) .toast, body:has(#sheet.open[data-kind="pin"]) .toast { left: calc((100vw - min(580px, 100vw)) / 2); }
}
.sheet-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.sheet-head-r { display: flex; align-items: center; gap: 2px; }
.sheet-title { flex: 1; min-width: 0; font: 600 16px/1.3 var(--font); letter-spacing: -.01em; }
.d-type { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 28px; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

/* Request detail */
.d-title-input {
  display: block; width: calc(100% + 16px); height: auto; margin: 0 -8px; padding: 4px 8px; overflow: hidden; resize: none;
  border: 0; border-radius: var(--r-md); background: transparent; box-shadow: none;
  color: var(--ink); font: 600 21px/1.3 var(--font); letter-spacing: -.015em;
}
.d-title-input:hover:not(:focus) { background: var(--hover); }
.d-title-input:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--focus-ring), inset 0 0 0 1px var(--focus); }
.d-sub { margin: 6px 0 18px; color: var(--ink-3); font-size: 12.5px; }
.props { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.prop-row { display: contents; }
.prop-k { display: flex; align-items: center; min-height: 36px; color: var(--ink-3); font-size: 13px; }
.prop-v { display: flex; align-items: center; min-width: 0; min-height: 36px; }
.prop-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 32px; margin-left: -8px; padding: 0 8px;
  border: 0; border-radius: 7px; background: none; color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer;
  transition: background-color var(--d1) var(--ease);
}
.prop-btn > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-btn:hover, .prop-btn[aria-expanded="true"] { background: var(--hover); }
.prop-btn > .ic:last-child { color: var(--ink-3); opacity: 0; transition: opacity var(--d1) var(--ease); }
.prop-btn:hover > .ic:last-child, .prop-btn:focus-visible > .ic:last-child, .prop-btn[aria-expanded="true"] > .ic:last-child { opacity: 1; }
.prop-btn .ws-tile { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.prop-static { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: 13.5px; }
.prop-static b { font-weight: 500; }
.prop-static .ic { color: var(--ink-3); }
.due-pick { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.due-late { color: var(--danger-ink); }
.due-today { color: var(--warn-ink); }
.due-done { color: var(--ok-ink); }
.date-hidden { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.date-hidden.is-visible { position: static; width: auto; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); opacity: 1; pointer-events: auto; }
.inline-edit { width: 100%; min-width: 0; }
.inline-val {
  display: flex; align-items: flex-start; gap: 8px; width: calc(100% + 8px); margin-left: -8px; padding: 6px 8px;
  border: 0; border-radius: 7px; background: none; color: var(--ink); text-align: left; cursor: text; font: 400 13.5px/1.5 var(--font);
  transition: background-color var(--d1) var(--ease);
}
.inline-val:hover { background: var(--hover); }
.inline-pen { margin-left: auto; color: var(--ink-3); opacity: 0; transition: opacity var(--d1) var(--ease); }
.inline-val:hover .inline-pen, .inline-val:focus-visible .inline-pen { opacity: 1; }
.inline-add {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 7px;
  background: none; color: var(--ink-3); font: 400 13.5px/1 var(--font); cursor: pointer;
}
.inline-add:hover { background: var(--hover); color: var(--ink-2); }
.inline-edit input, .inline-edit textarea { width: 100%; }
.inline-btns { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.inline-btns .hint { margin-left: auto; }
.inline-edit.multi .inline-val { min-height: 40px; }
.d-notes { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-block { margin-bottom: 18px; }
.d-lbl { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ink); font: 600 13px/1.2 var(--font); }
.d-track { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.d-track-ic { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
.d-track-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-track-txt b { font: 550 13px/1.3 var(--font); }
.d-track-txt span { color: var(--ink-3); font-size: 12.5px; }
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.btn-wa .ic { color: #12924B; }
.d-tl { padding-top: 18px; border-top: 1px solid var(--line-soft); }
.d-tl .sec-note { margin-top: 10px; }
.tl-fold { padding-left: 2px; }
.tl-fold .linkbtn { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.confirm { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid var(--danger-line); border-radius: 10px; background: var(--danger-tint); color: var(--danger-ink); font-size: 13.5px; }
.composer { display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 40px; max-height: 160px; resize: none; }
.send-btn { height: 40px; flex: none; }

/* Request form */
.due-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.due-row input[type="date"] { width: auto; height: 32px; }
.form-sub { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.chips-prio .pg-urgente { color: var(--danger); }
.chip[aria-pressed="true"] .pg-alta, .chip[aria-pressed="true"] .pg-normal { color: inherit; }

/* Team and settings */
.set-block { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.set-block:first-child { padding-top: 0; border-top: 0; }
.set-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 14px/1.2 var(--font); }
.tm-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.set-h + .tm-row { border-top: 0; padding-top: 8px; }
.tm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-fields { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 8px; }
.tm-fields > * { width: 100%; }
.tm-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; }
.tm-status { display: inline-flex; align-items: center; gap: 6px; }
.tm-row.inactive { opacity: .6; }
.tm-add .tm-fields { margin: 10px 0; }
.tm-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-mail input { flex: 1 1 240px; min-width: 0; }
.set-sub { margin: 20px 0 6px; font: 600 13.5px/1.2 var(--font); }
.mail-steps { margin: 12px 0 4px; padding: 0; list-style: none; counter-reset: ms; display: flex; flex-direction: column; gap: 12px; }
.mail-steps li { counter-increment: ms; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.mail-steps li::before { content: counter(ms); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--sel-bg); color: var(--sel-fg); font: 600 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.mail-steps .row-btns { margin-top: 8px; }
.mail-on { margin-top: 10px; }
.mail-status { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.mail-status.bad { color: var(--danger); }
.mail-more { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.mail-more summary { cursor: pointer; width: max-content; }
.mail-more .hint { margin: 6px 0; }
.mail-block .copy-row + .hint, .mail-block .hint + .hint { margin-top: 8px; }
.mail-wf { width: 100%; min-height: 96px; resize: vertical; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; background: var(--bg); }
.login-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px;
  background: var(--side-bg); color: #FFFFFF;
}
.login-logos { display: flex; align-items: center; gap: 20px; }
.login-logos img { height: 30px; width: auto; }
.login-logos img + .sep + img { height: 25px; }
.login-logos .sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .25); }
.login-glyph { display: block; width: 88px; height: auto; margin: 0 0 22px -2px; }
.login-copy h1 { font: 600 40px/1.05 var(--font); letter-spacing: -.035em; }
.login-copy p { max-width: 34ch; margin-top: 14px; color: var(--side-fg); font-size: 16px; line-height: 1.5; }
.login-main { display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login-h h2, .login-card > h2 { font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.lead { margin-top: 6px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.pk-sec h3 { margin: 0 0 8px; color: var(--ink-3); font: 500 12.5px/1 var(--font); }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pk {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); text-align: left; cursor: pointer; box-shadow: var(--sh-xs);
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.pk:hover { border-color: var(--line-3); box-shadow: var(--sh-sm); }
.pk > .ic { margin-left: auto; color: var(--ink-3); }
.pk-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pk-txt b { font: 550 14px/1.2 var(--font); }
.pk-txt small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-txt small.first { align-self: flex-start; padding: 2px 6px; border-radius: var(--r-xs); background: var(--sel-bg); color: var(--sel-fg); font-weight: 500; }
.who-big { display: flex; align-items: center; gap: 14px; }
.who-big b { display: block; font: 600 20px/1.2 var(--font); letter-spacing: -.015em; }
.who-big span:not(.av) { color: var(--ink-3); font-size: 14px; }
.pin-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-sm); }
.pin-title { color: var(--ink-2); font: 500 14px/1.3 var(--font); }
.pin-dots { display: flex; align-items: center; gap: 12px; height: 16px; }
.pin-dots i { width: 12px; height: 12px; border: 1.5px solid var(--line-3); border-radius: 50%; transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), transform var(--d1) var(--ease); }
.pin-dots i.on { border-color: var(--prussian); background: var(--prussian); transform: scale(1.08); }
.pin-dots i.opt:not(.on) { border-style: dashed; opacity: .6; }
@media (prefers-color-scheme: dark) { .pin-dots i.on { border-color: var(--focus); background: var(--focus); } }
.pin-err { min-height: 18px; color: var(--danger-ink); font-size: 13px; font-weight: 500; text-align: center; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; }
.key {
  height: 60px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink);
  font: 500 22px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 100ms var(--ease), transform 100ms var(--ease);
}
.key:hover { background: var(--surface-3); }
.key:active { transform: scale(.96); background: var(--line); }
.key-fn { color: var(--ink-3); display: grid; place-items: center; }
.key-go { border-color: transparent; background: var(--orange); color: var(--on-orange); font: 600 15px/1 var(--font); }
.key-go:hover { background: var(--orange-hover); }
.key-go:disabled { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; transform: none; }
.shake { animation: shake 360ms var(--ease); }
@keyframes shake { 15%, 85% { transform: translateX(-3px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-6px); } }
.login-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; text-align: center; }
.login-card > .banner { margin: 0; }

/* ---------- bottom tab bar (phone) ---------- */
.bottom-nav { display: none; }
.ptr { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 50%; z-index: 35; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-md); transform: translateY(var(--pull, 0)); }
.ptr.ready { color: var(--orange-ink); }
.ptr.spin .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 1023px) {
  .side-toggle { display: none; }
  .toolbar { overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .tb-filters { flex-wrap: nowrap; flex-shrink: 0; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .search { width: 220px; }
}
@media (max-width: 700px) {
  .shell, .shell.side-rail { display: block; }
  .shell.is-board .main { height: auto; overflow: visible; }
  .side { display: none; }
  .topbar {
    flex-wrap: wrap; gap: 0 4px; min-height: 0; padding: env(safe-area-inset-top) 6px 0 16px; border-bottom: 0;
    background: var(--side-bg); color: #FFFFFF;
  }
  .topbar :focus-visible { outline-color: var(--focus-on-dark); }
  .crumbs { flex-direction: column-reverse; align-items: flex-start; gap: 1px; min-height: 56px; justify-content: center; }
  .crumb-sep { display: none; }
  .page-title { color: #FFFFFF; font-size: 18px; letter-spacing: -.015em; }
  .crumb-ws { height: 22px; margin-left: -1px; padding: 0 4px 0 0; gap: 6px; color: var(--side-fg); font-size: 12.5px; }
  .crumb-ws:hover, .crumb-ws[aria-expanded="true"] { background: none; color: #FFFFFF; }
  .crumb-ws > .ic { color: var(--side-fg-3); }
  .crumb-ws .ws-tile { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
  .crumb-ws .ws-tile .bmark { height: 9px; }
  .crumb-ws .ws-tile.both .bmark { height: 7px; }
  .top-search, .top-me { display: inline-grid; }
  .top-search { width: 44px; height: 44px; color: var(--side-fg); }
  .top-search:hover, .top-search[aria-expanded="true"] { background: var(--side-hover); color: #FFFFFF; }
  .top-me { width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; }
  .search { display: none; order: 10; width: 100%; padding: 0 10px 12px 0; }
  body.search-open .search { display: flex; }
  .search input { height: 42px; background: var(--surface); }
  .search-kbd { display: none; }
  .main > .banner { margin: 12px 16px 0; }
  .toolbar { gap: 8px; padding: 12px 32px 2px 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .toolbar::-webkit-scrollbar { display: none; }
  .tb-filters { flex-wrap: nowrap; flex-shrink: 0; }
  .fbtn { height: 36px; }
  .tb-count { display: none; }
  .view { padding: 14px 16px calc(88px + env(safe-area-inset-bottom)); }
  .view[data-view="board"] { padding: 0 0 calc(88px + env(safe-area-inset-bottom)); }
  .tip { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 10px; }
  .tip-ic { grid-row: 1 / span 2; }
  .tip-txt { grid-column: 2; grid-row: 1; }
  .tip > .btn { grid-column: 2; grid-row: 2; justify-self: start; }
  .tip > .icon-btn { grid-column: 3; grid-row: 1; margin: -6px -4px 0 0; }
  .col-tabs { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 5; background: var(--bg); }
  body.search-open .col-tabs { top: calc(110px + env(safe-area-inset-top)); }
  .card { padding: 12px 14px; gap: 8px; }
  .card-title { font-size: 15px; }
  .card-more { opacity: 1; }
  .hello { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 10px 14px; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat b { font-size: 18px; }
  .stat span { font-size: 12px; white-space: normal; line-height: 1.2; }
  .home-aside { display: flex; align-items: stretch; }
  .row { flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; padding: 12px 14px; }
  .row-st { margin-top: -4px; }
  .row-main { flex: 1 1 calc(100% - 46px); }
  .row-side { flex-wrap: wrap; width: 100%; padding-left: 36px; }
  .row-side:empty { display: none; }
  .row-compact .row-side { width: auto; padding-left: 0; }
  .row-compact { flex-wrap: nowrap; align-items: center; }
  .row-compact .row-main { flex: 1; }
  .team-grid { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 14px; }
  .feed-item time { grid-column: 2; grid-row: 2; margin-top: -4px; }
  .sheet {
    top: max(10px, env(safe-area-inset-top)); left: 0; width: 100%; border-left: 0; border-radius: 18px 18px 0 0;
    opacity: 1; transform: translateY(100%);
  }
  .sheet[data-kind="form"], .sheet[data-kind="pin"] { width: 100%; }
  .sheet.open { transform: none; }
  .sheet-head { padding: 8px 8px 8px 18px; }
  .sheet-body { padding: 18px 18px 28px; }
  .sheet-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .hide-sm { display: none; }
  .d-title-input { font-size: 19px; }
  .props { grid-template-columns: 100px minmax(0, 1fr); }
  .prop-btn > .ic:last-child { opacity: 1; }
  .tm-fields { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand { gap: 22px; padding: calc(22px + env(safe-area-inset-top)) 20px 26px; }
  .login-logos img { height: 24px; }
  .login-logos img + .sep + img { height: 20px; }
  .login-glyph { width: 58px; margin-bottom: 12px; }
  .login-copy h1 { font-size: 28px; }
  .login-copy p { margin-top: 8px; font-size: 15px; }
  .login-main { place-items: start center; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
  .pk-grid { grid-template-columns: 1fr; }
  .key { height: 62px; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line); background: var(--surface);
  }
  .bottom-nav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
    border: 0; background: none; color: var(--ink-3); font: 500 11px/1 var(--font); cursor: pointer;
  }
  .bottom-nav button.on { color: var(--sel-fg); }
  .bottom-nav button.on::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 3px; margin-left: -12px; background: var(--orange);
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  }
  .bn-ico { display: grid; place-items: center; }
  .bn-badge {
    position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--prussian); color: #FFFFFF; font: 600 11px/18px var(--font); text-align: center; font-variant-numeric: tabular-nums;
  }
  .bn-badge.hot { background: var(--orange); color: var(--on-orange); }
  .bn-new { color: var(--ink-2); }
  .bn-plus { width: 46px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); box-shadow: var(--sh-sm); }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
  body:has(#sheet.open) .toast { bottom: calc(118px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .stat span { font-size: 11.5px; }
  .props { grid-template-columns: 92px minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .nav-item { height: 40px; }
  .prop-btn { height: 38px; }
  .row-st { width: 36px; height: 36px; margin: -6px -4px; }
}
@media (prefers-color-scheme: dark) {
  .bn-badge { background: var(--surface-3); color: var(--ink); }
  .bn-badge.hot { background: var(--orange); color: var(--on-orange); }
  .col-tab[aria-selected="true"] { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-fg); }
  .col-tab[aria-selected="true"] .stg { --st-c: var(--sel-fg); }
  .col-tab[aria-selected="true"] .stg-tick { stroke: var(--sel-bg); }
  .chip[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-fg); }
  input[type="checkbox"]:checked { background: var(--focus); border-color: var(--focus); }
  input[type="checkbox"]::before { background: var(--bg); }
  .ws-tile { background: #F2F2F2; }
}

/* Touch screens keep no hover look after a tap. */
@media (hover: none) {
  .row:hover, .next .row:hover, .mini-item:hover, .load-row:hover, .stat:hover, .feed-open:hover, .col-more:hover, .panel-more:hover { background: none; }
  .card:hover { border-color: var(--card-bd); box-shadow: var(--sh-xs); }
  .prop-btn:hover:not([aria-expanded="true"]), .inline-val:hover, .inline-add:hover, .crumb-ws:hover:not([aria-expanded="true"]) { background: none; }
  .d-title-input:hover:not(:focus) { background: transparent; }
  .pk:hover { border-color: var(--line); box-shadow: var(--sh-xs); }
}

/* Secondary text that sits straight on the Cultured ground or a board lane uses the darker tone (AA). */
.hello-sub, .sec-n, .sec-note, .feed-scope, .tb-count, .list-empty, .col-n, .col-empty, .col-hint, .col-expand .ic,
.lead, .pk-sec h3, .login-foot, .who-big span:not(.av), .col-more { color: var(--ink-3b); }
