/* ================================================================
   YELLOW BELLY HQ — "Studio Editorial"
   Matched to yellowbellyphoto.com: airy white, hairline rules,
   huge tight-tracked headlines, cream (#F2EEE2) hover sweeps,
   yellow (#F4E40B) as a rare accent. Slow expensive easing.
   ================================================================ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --ac: #f4e40b;         /* signature yellow — used sparingly */
  --cream: #f2eee2;      /* warm highlight sweep */
  --grey: #757570;
  --hair: rgba(0,0,0,.14);   /* hairline rules */
  --hair-soft: rgba(0,0,0,.08);
  --danger: #c92f2f;
  --ease: cubic-bezier(.19,1,.22,1);   /* the site's signature ease */
  --font: "Helvetica Neue", Helvetica, "Inter", Arial, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.01em;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
::selection { background: var(--ac); color: var(--fg); }

/* editorial micro-label */
.eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* cream sweep hover — the site's signature interaction */
.sweep { position: relative; z-index: 0; }
.sweep::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .9s var(--ease);
}
.sweep:hover::before { transform: scaleX(1); transform-origin: left; }

/* ================= LOGIN ================= */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 460px;
  text-align: center;
  padding: 56px 40px;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}
.login-logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 16px;
}
.login-logo .logo-svg { height: 24px; }
.hl { color: var(--grey); font-weight: 400; font-size: 14px; letter-spacing: .04em; }

/* split layout — sign-in on the left, brand-yellow panel on the right */
.login-split { align-items: stretch; justify-content: stretch; padding: 0; }
.login-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; min-width: 0; }
.login-split .login-card { border: 0; padding: 0; max-width: 380px; }
.login-brand-side { flex: 0 0 45%; max-width: 620px; background: #f1df44; color: #17130f; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-brand-inner { text-align: center; }
.login-brand-logo { width: min(86%, 380px); height: auto; display: block; margin: 0 auto; }
.login-brand-tag { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; margin-top: 22px; }
@media (max-width: 768px) {
  .login-brand-side { display: none; }
}
.login-title { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 22px 0 10px; }
.login-sub { color: var(--grey); margin-bottom: 32px; font-size: 14px; line-height: 1.55; }
.login-note { color: var(--grey); font-size: 11px; letter-spacing: .03em; line-height: 1.6; margin-top: 22px; }
.login-error { color: var(--danger); font-size: 13px; margin-top: 14px; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--fg);
  background: var(--bg);
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
  position: relative; z-index: 0;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--cream);
  transform: scaleX(0); transform-origin: right;
  transition: transform .9s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary::before { background: var(--ac); }
.btn-primary:hover { color: var(--fg); }
.btn-yellow { background: var(--bg); }
.btn-yellow::before { background: var(--ac); }
.btn-kpi { background: #1a2d05; color: #fff; border-color: #1a2d05; }
.btn-kpi::before { background: #2c4a0a; }
.btn-kpi:hover { color: #fff; }
.btn-ghost { border-color: transparent; color: var(--grey); }
.btn-ghost:hover { color: var(--fg); }
.btn-danger { color: var(--danger); border-color: transparent; }
.btn-danger:hover { border-color: var(--danger); }
.btn-danger::before { background: #fbeaea; }
.btn-lg { padding: 14px 24px; font-size: 12px; width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 10px; }
.link-btn { font-size: 11px; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 3px; color: var(--grey); }
.link-btn:hover { color: var(--fg); }
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .3s; opacity: .75;
}
.icon-btn:hover { opacity: 1; }

/* ================= APP LAYOUT: SIDEBAR + BODY ================= */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; flex: none;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--fg);
  padding: 26px 26px 30px;
  display: flex; flex-direction: column; gap: 52px;
  background: var(--bg);
}
.app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.logo { display: flex; align-items: center; gap: 10px; cursor: default; }
.logo .hl { font-size: 12px; letter-spacing: .04em; }
.logo-svg { height: 13px; aspect-ratio: 626 / 67; width: auto; display: block; fill: currentColor; }

/* live city clocks under the logo — compact 2-up grid */
.sidebar-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; margin-top: -22px; }
.sb-clock { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-clock-name { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-clock-time { font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }

.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.nav-link {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding: 2px 0 4px;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.sidebar-foot .nav-link { display: inline-flex; align-items: center; }

/* mobile hamburger toggle (shown only on small screens) */
.hamburger { display: none; width: 42px; height: 42px; flex: none; margin-left: auto; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.app.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.app.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.app.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* slim top bar inside the body — bell / profile / preview switcher */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 40px;
  height: 60px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.topbar-right { display: flex; align-items: center; gap: 18px; }

.demo-switcher { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--hair); padding: 4px 2px; }
.demo-tag { font-size: 9px; letter-spacing: .16em; color: var(--grey); }
.demo-switcher.previewing { border-bottom-color: var(--grey); }
.demo-switcher.previewing .demo-tag { color: var(--grey); font-weight: 600; }
.demo-switcher select { border: 0; background: transparent; font-size: 12px; outline: 0; max-width: 170px; cursor: pointer; }

/* avatars — quiet cream circles */
.me-btn { padding: 0; border-radius: 999px; }
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--cream); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; letter-spacing: .04em;
  border: 1px solid var(--hair);
  object-fit: cover; overflow: hidden; flex: none;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 8.5px; }
.avatar.lg { width: 88px; height: 88px; font-size: 22px; }

/* ================= NOTIFICATIONS ================= */
.bell-wrap { position: relative; }
.bell-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--ac);
  border-radius: 999px;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.notif-panel {
  position: absolute; right: 0; top: 48px;
  width: 380px; max-height: 480px;
  background: var(--bg);
  border: 1px solid var(--fg);
  overflow: hidden; display: flex; flex-direction: column;
  animation: rise .5s var(--ease);
}
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--fg);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.notif-list { overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--hair-soft);
  cursor: pointer; text-align: left; width: 100%;
  position: relative; z-index: 0;
}
.notif-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream);
  transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease);
}
.notif-item:hover::before { transform: scaleX(1); transform-origin: left; }
.notif-item.unread { background: #fffdf0; }
.notif-body { flex: 1; font-size: 13px; }
.notif-body b { font-weight: 600; }
.notif-time { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.notif-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ac); margin-top: 6px; flex: none; }
.notif-empty { padding: 40px 18px; text-align: center; color: var(--grey); font-size: 13px; }

/* ================= MAIN / PAGE ================= */
.main { padding: 48px 40px 100px; width: 100%; max-width: 1480px; margin: 0 auto; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 8px; padding-bottom: 24px;
  border-bottom: 1px solid var(--fg);
}
.page-title {
  font-size: clamp(20px, 2.75vw, 32px);
  font-weight: 500; letter-spacing: -.03em; line-height: 1;
}
.page-title .count { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--grey); margin-left: 8px; vertical-align: super; white-space: nowrap; }
.page-sub { color: var(--grey); margin-top: 12px; font-size: 13px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 4px; }

/* ================= KPI REPORT (Ownership view) ================= */
.kpi-report { border: 1px solid var(--hair); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.kpi-report-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: var(--bg); border: 0; cursor: pointer; text-align: left; }
.kr-chev { font-size: 11px; color: var(--grey); transition: transform .25s var(--ease); flex: none; }
.kpi-report.collapsed .kr-chev { transform: rotate(-90deg); }
.kr-title { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.kr-count { font-size: 11px; letter-spacing: .06em; color: var(--grey); }
.kr-overall { margin-left: auto; font-size: 11px; letter-spacing: .04em; color: var(--grey); }
.kpi-report-body { padding: 2px 18px 14px; }
.kpi-report.collapsed .kpi-report-body { display: none; }
.kr-empty { padding: 14px 0; color: var(--grey); font-size: 13px; }
.kr-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid var(--hair-soft); }
.kr-row:first-child { border-top: 0; }
.kr-rank { font-size: 11px; color: var(--grey); width: 16px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.kr-rank.top { color: #1a2d05; font-weight: 500; }
.kr-name { font-size: 13.5px; width: 160px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-track { flex: 1; height: 9px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.kr-track i { display: block; height: 100%; background: #1a2d05; border-radius: 99px; transition: width .5s var(--ease); }
.kr-stat { font-size: 12px; width: 46px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.kr-stat b { font-weight: 500; }
.kr-pct { font-size: 11px; color: var(--grey); width: 38px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.kr-name .kr-sub { display: block; font-size: 11px; color: var(--grey); font-weight: 400; margin-top: 1px; }

/* Team Reports — per-studio breakdown under each manager */
.sr-breakdown { padding: 4px 0 10px 45px; }
.sr-studio { display: flex; align-items: center; gap: 11px; padding: 5px 0; }
.sr-studio-name { font-size: 12px; color: var(--fg); width: 131px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-studio .kr-track { height: 6px; }
.sr-studio .kr-track i { background: #4a6b1e; }
.sr-studio-stat { font-size: 11px; color: var(--grey); width: 40px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.sr-studio-pct { font-size: 11px; color: var(--grey); width: 38px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.sr-studio.sr-none { color: var(--grey); font-size: 12px; font-style: italic; }
.sr-studio-link { width: 100%; font: inherit; background: none; border: 0; cursor: pointer; border-radius: 6px; padding: 5px 8px; margin-left: -8px; transition: background .25s var(--ease); }
.sr-studio-link:hover { background: var(--cream); }
.sr-studio-link:hover .sr-studio-name { color: #1a2d05; text-decoration: underline; text-underline-offset: 2px; }

/* toolbar */
.toolbar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}
.seg { display: inline-flex; gap: 18px; }
.seg button {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.seg button:hover { color: var(--fg); }
.seg button.active { color: var(--fg); border-bottom-color: var(--fg); }
.filter-select {
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 4px 22px 4px 0; font-size: 12px; background: transparent; outline: 0; cursor: pointer;
  letter-spacing: .02em;
  transition: border-color .3s;
}
.filter-select:hover, .filter-select:focus { border-bottom-color: var(--fg); }
.toolbar-spacer { flex: 1; }

/* ================= BOARD ================= */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 0;
  align-items: start;
  overflow-x: auto;
  background: #f4f4f4;
  border: 1px solid var(--hair-soft);
  border-radius: 16px;
  padding: 22px 8px;
}
.col {
  padding: 0 14px;
  min-height: 160px;
  border-left: 1px solid var(--hair);
}
.col:first-child { border-left: 0; }
.col.drag-over { background: #e9e9e9; border-radius: 10px; }
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 0 9px; margin-bottom: 4px;
}
.col-title {
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.col-dot { width: 10px; height: 10px; border-radius: 99px; border: 1px solid rgba(0,0,0,.25); }
.col-count { font-size: 10px; letter-spacing: .1em; color: var(--grey); }
.col-cards { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }

.card {
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 10px 11px 9px;
  cursor: pointer;
  position: relative; z-index: 0;
  transition: border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--cream);
  transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease);
}
.card:hover { border-color: var(--fg); }
.card:hover::before { transform: scaleX(1); transform-origin: left; }
.card.dragging { opacity: .4; }
.card-title { font-weight: 500; font-size: 11.5px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 7px; }
.card-title.done { text-decoration: line-through; color: var(--grey); }
.card-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card-avatars .avatar.sm { width: 20px; height: 20px; font-size: 8px; }
.card-avatars { display: flex; }
.card-avatars .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg); }
.card-avatars .avatar:first-child { margin-left: 0; }
.card-comments { font-size: 10px; letter-spacing: .08em; color: var(--grey); display: inline-flex; align-items: center; gap: 4px; }
.detail-created { font-size: 13px; }

/* chips — small square editorial tags */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid transparent;
}
.chip-high { background: var(--fg); color: #fff; }
.chip-med  { background: var(--ac); color: var(--fg); }
.chip-low  { background: transparent; color: var(--fg); border-color: var(--hair); }
.chip-due  { background: transparent; border-color: transparent; color: var(--grey); letter-spacing: .06em; }
.chip-due.today { background: #ff521a; color: #fff; }
.chip-due.overdue { color: var(--danger); border-color: var(--danger); }
.chip-status { background: var(--cream); color: var(--fg); }
.chip-kpi { background: #1a2d05; color: #fff; border-color: #1a2d05; border-radius: 999px; padding-left: 10px; padding-right: 10px; }
.chip-recur { background: var(--cream); color: var(--fg); border-color: var(--hair); border-radius: 999px; text-transform: none; letter-spacing: .02em; }
.recur-badge { font-size: 12px; color: var(--grey); line-height: 1; cursor: default; }

/* weekly day multi-select in the task editor */
.recur-days { margin-top: 10px; }
.recur-days .pill-list { margin-bottom: 4px; }
.recur-days .pill { padding: 4px 11px; font-size: 12px; }

/* ================= CALENDAR VIEWS (week + month) ================= */
.cal-nav {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.cal-steps { display: flex; gap: 4px; }
.cal-arrow {
  width: 30px; height: 30px;
  border: 1px solid var(--hair); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; color: var(--fg);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cal-arrow:hover { border-color: var(--fg); background: var(--cream); }
.cal-label {
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  min-width: 190px;
}
.cal-today { margin-left: auto; }

.cal-pill {
  display: flex; align-items: center; gap: 6px;
  width: 100%; text-align: left;
  padding: 4px 7px;
  border: 1px solid var(--hair); border-radius: 7px;
  background: var(--bg);
  font-size: 11.5px; line-height: 1.25;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cal-pill:hover { border-color: var(--fg); background: var(--cream); }
.cal-pill-dot { width: 7px; height: 7px; border-radius: 99px; flex: none; border: 1px solid var(--fg); }
.cal-pill.pri-high .cal-pill-dot { background: var(--fg); }
.cal-pill.pri-med  .cal-pill-dot { background: var(--ac); }
.cal-pill.pri-low  .cal-pill-dot { background: var(--bg); }
.cal-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-pill.done .cal-pill-text { text-decoration: line-through; color: var(--grey); }
.cal-pill.is-kpi { border-left: 3px solid #1a2d05; }

.cal-more {
  font-size: 10.5px; letter-spacing: .04em; color: var(--grey);
  padding: 2px 4px; text-align: left; width: 100%;
}
.cal-more:hover { color: var(--fg); text-decoration: underline; }

/* --- week --- */
.week-grid {
  display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr));
  border: 1px solid var(--hair-soft); border-radius: 14px; overflow: hidden;
  background: var(--bg);
}
.week-col { border-left: 1px solid var(--hair-soft); min-height: 300px; padding: 0 8px 12px; }
.week-col:first-child { border-left: 0; }
.week-col.today { background: #fffdf0; }
.week-col-head {
  display: flex; align-items: baseline; gap: 7px;
  padding: 12px 4px 10px; margin: 0 -8px 8px;
  border-bottom: 1px solid var(--hair-soft);
}
.week-dow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.week-dom { font-size: 16px; font-weight: 500; }
.week-col.today .week-dom {
  background: var(--ac); border-radius: 999px;
  min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.week-col-body { display: flex; flex-direction: column; gap: 6px; min-height: 40px; cursor: copy; }

/* --- month --- */
.month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--hair-soft); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden;
}
.month-dow {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
  padding: 12px 10px; border-top: 1px solid var(--hair-soft); background: var(--bg);
}
.month-dow:first-child { border-radius: 14px 0 0 0; }
.month-dow:nth-child(7) { border-radius: 0 14px 0 0; }
.month-cell {
  min-height: 110px; padding: 8px;
  border-left: 1px solid var(--hair-soft); border-top: 1px solid var(--hair-soft);
  display: flex; flex-direction: column; gap: 4px; cursor: copy;
  transition: background .3s var(--ease);
}
.month-cell:nth-child(7n+1) { border-left: 0; }
.month-cell:hover { background: #fbfaf5; }
.month-cell.muted { background: #fafafa; }
.month-cell.muted .month-daynum { color: #c9c9c9; }
.month-cell.today { background: #fffdf0; }
.month-daynum { font-size: 12.5px; font-weight: 500; align-self: flex-start; }
.month-cell.today .month-daynum {
  background: var(--ac); border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
}
.month-cell-body { display: flex; flex-direction: column; gap: 3px; }
.month-cell-body .cal-pill { padding: 2px 6px; border-radius: 5px; font-size: 11px; }

/* --- unscheduled strip --- */
.cal-unscheduled { margin-top: 20px; border-top: 1px solid var(--hair); padding-top: 16px; }
.cal-unscheduled-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.cal-unscheduled-body {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px;
}

/* ================= STUDIO CHECKLIST ================= */
/* city toggle — show the managing team member under each city */
.seg-city { gap: 28px; }
.seg-city button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.studio-city-mgr { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 400; color: var(--grey); }
.studio-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.studio-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-size: 12px; letter-spacing: .05em; padding: 9px 16px; color: var(--grey);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.studio-tab:hover { color: var(--fg); }
.studio-tab.active { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }
.studio-tab-note { font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: 400; margin-top: 2px; }
.studio-check-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
/* week navigation */
.sc-weeknav { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sc-week-arrow { width: 28px; height: 28px; border: 1px solid var(--hair); background: var(--bg); border-radius: 999px; font-size: 15px; line-height: 1; cursor: pointer; color: var(--fg); transition: border-color .2s var(--ease), opacity .2s; }
.sc-week-arrow:hover:not(:disabled) { border-color: var(--fg); }
.sc-week-arrow:disabled { opacity: .3; cursor: default; }
.sc-week-label { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.sc-week-when { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.sc-week-range { font-size: 14px; font-weight: 500; color: var(--fg); }
.chip-past { background: var(--cream); color: var(--grey); border-color: var(--hair); font-size: 9px; letter-spacing: .05em; text-transform: none; }
.sc-task-ro { font-size: 14px; color: var(--fg); }
.sc-ro-cell { font-size: 13px; color: var(--fg); }
.sc-ro-cell .sc-dash { color: #b7b7b0; }
.sc-archive input[type="checkbox"] { cursor: default; }
/* Team Reports — leaderboard week toggle */
.sr-weekseg { margin-bottom: 16px; }
.sr-weekseg button:disabled { opacity: .35; cursor: default; }
.studio-check { width: 100%; border-collapse: collapse; min-width: 800px; }
.studio-check th {
  text-align: left; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); font-weight: 500; padding: 0 14px 10px 0; border-bottom: 1px solid var(--fg);
  vertical-align: bottom;
}
.sc-hint {
  display: block; margin-top: 4px; max-width: 200px;
  font-size: 9px; letter-spacing: 0; text-transform: none; font-weight: 400;
  color: #b0b0a9; line-height: 1.4;
}
.studio-check td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; }
.studio-check .sc-tick { width: 34px; }
.studio-check .sc-tick input { width: 17px; height: 17px; accent-color: #1a2d05; cursor: pointer; }
.sc-task { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.sc-task-input {
  border: 0; border-bottom: 1px solid transparent; background: transparent;
  padding: 3px 0; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--fg);
  outline: 0; max-width: 240px; width: 200px;
  transition: border-color .3s var(--ease);
}
.sc-task-input:hover { border-bottom-color: var(--hair); }
.sc-task-input:focus { border-bottom-color: var(--fg); }
tr.sc-done .sc-task-input { color: var(--grey); text-decoration: line-through; }
.sc-notes, .sc-actions {
  width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  padding: 5px 0; font: inherit; font-size: 13px; outline: 0; color: var(--fg);
  transition: border-color .3s var(--ease);
}
.sc-notes:focus, .sc-actions:focus { border-bottom-color: var(--fg); }
.sc-checked { font-size: 10px; letter-spacing: .02em; color: #1a2d05; margin-top: 3px; font-variant-numeric: tabular-nums; }
.sc-x { color: #c2c2bb; font-size: 16px; line-height: 1; padding: 0 2px; transition: color .2s; }
.sc-x:hover { color: var(--danger); }
.sc-empty { color: var(--grey); font-size: 13px; padding: 20px 0; }
.sc-add { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.sc-add input[type="text"] {
  flex: 1; min-width: 180px; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  padding: 7px 0; font: inherit; font-size: 14px; outline: 0; color: var(--fg);
}
.sc-add input[type="text"]:focus { border-bottom-color: var(--fg); }
/* the Weekly toggle is text-only, so centre it (override the pill's dot-padding) */
#sc-add-weekly { justify-content: center; padding: 4px 12px; }

/* ================= TABLE VIEW ================= */
.table-wrap { overflow: auto; }
table.tasks { width: 100%; border-collapse: collapse; min-width: 900px; }
table.tasks th {
  text-align: left; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); font-weight: 500;
  padding: 8px 12px 6px; border-bottom: 1px solid var(--fg);
  background: var(--bg);
}
table.tasks td { padding: 6px 12px; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; font-size: 11.5px; }
table.tasks tbody tr { cursor: pointer; transition: background .4s var(--ease); }
table.tasks tbody tr:hover { background: var(--cream); }
/* compact chips + avatars so table rows sit tighter */
table.tasks .chip { font-size: 8px; padding: 2px 6px; }
table.tasks .avatar.sm { width: 20px; height: 20px; font-size: 8px; }
.td-title { font-weight: 500; }
.td-title.done { text-decoration: line-through; color: var(--grey); }
.cell-people { display: flex; align-items: center; gap: 5px; }
.status-select {
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 2px 2px; font-size: 10.5px; letter-spacing: .03em;
  background: transparent; outline: 0; cursor: pointer;
  transition: border-color .3s;
}
.status-select:hover { border-bottom-color: var(--fg); }

/* ================= SUPPLIER CONTACTS ================= */
.supplier-search {
  border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  padding: 4px 0; font: inherit; font-size: 12px; outline: 0; color: var(--fg); min-width: 220px;
}
.supplier-search:focus { border-bottom-color: var(--fg); }
.supplier-search::placeholder { color: var(--grey); }
table.supplier-table { width: 100%; border-collapse: collapse; min-width: 900px; }
table.supplier-table th {
  text-align: left; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); font-weight: 500;
  padding: 8px 12px 6px; border-bottom: 1px solid var(--fg); background: var(--bg);
}
table.supplier-table td { padding: 9px 12px; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; font-size: 12.5px; }
table.supplier-table tbody tr { cursor: pointer; transition: background .4s var(--ease); }
table.supplier-table tbody tr:hover { background: var(--cream); }
.supplier-table .sup-name { font-weight: 500; }
.supplier-table .sup-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
.supplier-table .chip.supplier-cat { font-size: 9px; background: var(--cream); color: var(--fg); border-color: var(--hair); border-radius: 999px; white-space: nowrap; }
.supplier-email { text-decoration: underline; text-underline-offset: 2px; color: var(--fg); cursor: pointer; }
.supplier-email:hover { color: var(--ac-strong, #b8860b); opacity: .7; }
.sup-dash { color: #b7b7b0; }
.sup-actions { text-align: right; white-space: nowrap; }

/* ================= EMPTY STATES ================= */
.empty {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 56px 20px; text-align: center; color: var(--grey);
}
.empty b { color: var(--fg); display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 7vh 20px 40px;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 620px;
  background: var(--bg);
  border: 1px solid var(--fg);
  animation: rise .6s var(--ease);
}
.modal.wide { max-width: 780px; }
/* near-fullscreen modal (Add KPIs) */
.modal-overlay.full { padding: 2.5vh 2.5vw; align-items: stretch; }
.modal.full { max-width: none; width: 100%; display: flex; flex-direction: column; }
.modal.full > div { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.modal.full .modal-body { flex: 1 1 auto; overflow-y: auto; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 28px 32px 0;
}
.modal-title { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.modal-body { padding: 20px 32px 28px; }
.modal-close { font-size: 24px; line-height: 1; color: var(--grey); padding: 0 4px; transition: color .3s; }
.modal-close:hover { color: var(--fg); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 32px;
  border-top: 1px solid var(--hair);
}
.modal-foot:empty { display: none; }
.foot-spacer { flex: 1; }

/* forms — underline fields, editorial */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--grey); margin-bottom: 7px;
}
.field input[type=text], .field input[type=date], .field input[type=email],
.field select, .field textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 7px 0; background: transparent; outline: 0; font-size: 15px;
  border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--fg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field .hint { font-size: 11.5px; color: var(--grey); margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 400; }

/* pill checkboxes — quiet, cream when on */
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--hair);
  padding: 4px 12px 4px 5px; font-size: 12px; cursor: pointer; user-select: none;
  background: var(--bg);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.pill:hover { border-color: var(--fg); }
.pill.on { background: var(--cream); border-color: var(--fg); }
.pill.disabled { opacity: .35; pointer-events: none; }

/* people picker — dropdown with role groups */
.ppl-select { display: flex; flex-direction: column; gap: 12px; }
.ppl-tokens { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 26px; align-items: center; }
.ppl-none { color: var(--grey); font-size: 12.5px; }
.ppl-token {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px;
  border-bottom: 1px solid var(--hair);
  padding: 2px 0 3px;
}
.ppl-x {
  color: var(--grey); font-size: 15px; line-height: 1; padding: 0 2px;
  transition: color .3s;
}
.ppl-x:hover { color: var(--fg); }
.ppl-add-wrap { position: relative; align-self: flex-start; }
.ppl-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  background: var(--bg); border: 1px solid var(--fg);
  width: 300px; max-height: 320px; overflow-y: auto;
  animation: rise .4s var(--ease);
}
.ppl-menu input.ppl-search {
  position: sticky; top: 0; z-index: 2;
  width: 100%; box-sizing: border-box;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 10px 16px; font-size: 14px; background: var(--bg); outline: 0;
}
.ppl-search::placeholder { color: var(--grey); }
.ppl-search:focus { border-bottom-color: var(--fg); }
.ppl-empty { padding: 14px; font-size: 13px; color: var(--grey); }
.ppl-menu-label {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); padding: 12px 14px 6px;
  border-bottom: 1px solid var(--hair-soft);
}
.ppl-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 14px; font-size: 13px;
  transition: background .3s var(--ease);
}
.ppl-row:hover { background: var(--cream); }
.ppl-row.on { background: #fffdf0; }
.ppl-group { font-weight: 500; }
.ppl-check {
  width: 15px; height: 15px; flex: none;
  border: 1px solid var(--hair);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
}
.ppl-row.on .ppl-check { background: var(--ac); border-color: var(--fg); }
.ppl-n { margin-left: auto; font-size: 10px; letter-spacing: .08em; color: var(--grey); }

/* KPI toggle (task editor) */
.kpi-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); background: var(--bg);
  transition: all .3s var(--ease);
}
.kpi-toggle:hover { border-color: #1a2d05; color: #1a2d05; }
.kpi-toggle .kpi-dot {
  width: 11px; height: 11px; border-radius: 3px; flex: none;
  border: 1px solid var(--hair); background: var(--bg);
  transition: all .3s var(--ease);
}
.kpi-toggle.on { background: #1a2d05; color: #fff; border-color: #1a2d05; }
.kpi-toggle.on .kpi-dot { background: var(--ac); border-color: var(--ac); }

/* generic multi-select dropdown (departments) */
.tag-select { position: relative; }
.tag-select-btn {
  width: 100%; text-align: left; min-width: 0;
  border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  padding: 6px 18px 6px 0; font: inherit; font-size: 13px; color: var(--fg); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .3s;
}
.tag-select-btn:hover { border-bottom-color: var(--fg); }
.tag-placeholder { color: #b3b3ad; }
.tag-sep { color: var(--hair); margin: 0 5px; }
.tag-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  background: var(--bg); border: 1px solid var(--fg);
  min-width: 200px; max-height: 260px; overflow-y: auto;
  animation: rise .35s var(--ease);
}
.tag-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 12px; font-size: 13px; background: none; border: 0; cursor: pointer;
  transition: background .25s var(--ease);
}
.tag-opt:hover { background: var(--cream); }
.tag-opt.on { background: #fffdf0; }
.tag-check {
  width: 15px; height: 15px; flex: none; border: 1px solid var(--hair);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
}
.tag-opt.on .tag-check { background: var(--ac); border-color: var(--fg); }

/* departments management rows */
.dept-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
.dept-row-name { font-weight: 500; font-size: 14px; flex: 1; }
.dept-row-count { font-size: 12px; color: var(--grey); white-space: nowrap; }
.dept-row-actions { flex: none; display: flex; gap: 6px; }
.st-dept-text { font-size: 12px; color: var(--grey); }

/* Settings → Studios */
.studio-city-group { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 16px 0 2px; }
.studio-city-group:first-child { margin-top: 4px; }
.studio-row { display: flex; align-items: center; gap: 16px; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--hair-soft); }
.studio-row-name { font-weight: 500; font-size: 14px; flex: 1; display: flex; align-items: center; gap: 9px; }
.studio-row-count { font-size: 12px; color: var(--grey); white-space: nowrap; }
.studio-row-actions { flex: none; display: flex; gap: 6px; }
.chip-owneronly { background: var(--cream); color: var(--grey); border-color: var(--hair); font-size: 9px; letter-spacing: .05em; }
.sd-owner-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin-top: 2px; }
.sd-owner-check span { color: var(--grey); font-size: 12px; }
.sd-owner-check input { width: 15px; height: 15px; cursor: pointer; }

/* segmented radios */
.seg-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-radio {
  border: 1px solid var(--hair);
  padding: 5px 12px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; user-select: none; background: var(--bg);
  transition: all .3s var(--ease);
}
.seg-radio:hover { border-color: var(--fg); }
.seg-radio.on { background: var(--fg); color: #fff; border-color: var(--fg); }

/* KPI banner in the Add KPI modal */
.kpi-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border-left: 3px solid #1a2d05;
  padding: 11px 14px; margin-bottom: 20px; font-size: 12.5px; color: #333;
}
.kpi-banner b { font-weight: 600; }

/* Add KPIs — list/table view */
.kpi-table-wrap { overflow-x: auto; margin-bottom: 4px; }
.kpi-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.kpi-table th {
  text-align: left; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1px solid var(--fg);
}
.kpi-table th.sortable { cursor: pointer; user-select: none; transition: color .2s; }
.kpi-table th.sortable:hover, .kpi-table th.active { color: var(--fg); }
.kpi-caret { font-size: 11px; color: #b3b3ad; margin-left: 2px; }
.kpi-table th.sortable:hover .kpi-caret, .kpi-table th.active .kpi-caret { color: var(--fg); }
.kpi-table td { vertical-align: top; }
.kpi-table td:not(:first-child) { padding-top: 14px; }

/* per-row subtasks in the KPI table */
.kpi-subtoggle {
  display: inline-block; margin-top: 4px;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: #1a2d05; cursor: pointer; background: none; border: 0; padding: 0;
}
.kpi-subtoggle:hover { text-decoration: underline; }
.kpi-subpanel { margin-top: 8px; padding: 10px 12px; background: #f7f7f4; border-radius: 8px; max-width: 460px; }
.kpi-sublist { display: flex; flex-direction: column; gap: 4px; }
.kpi-sublist:not(:empty) { margin-bottom: 8px; }
.kpi-subadd { display: flex; gap: 8px; align-items: center; }
.kpi-subadd input {
  flex: 1; border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  padding: 5px 0; font: inherit; font-size: 13px; outline: 0; color: var(--fg);
}
.kpi-subadd input:focus { border-bottom-color: var(--fg); }
.kpi-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; }
.kpi-title-input {
  border: 0; background: transparent; padding: 3px 0; outline: 0;
  font: inherit; font-size: 14px; color: var(--fg); width: 100%;
}
.kpi-title-input::placeholder { color: #b3b3ad; }
.kpi-date {
  border: 0; background: transparent; padding: 3px 0; outline: 0;
  font: inherit; font-size: 13px; color: var(--fg); max-width: 130px;
}
.kpi-pri { display: inline-flex; border: 1px solid var(--hair); }
.kpi-pri span { font-size: 10px; letter-spacing: .06em; padding: 3px 9px; color: var(--grey); cursor: pointer; }
.kpi-pri span.on-high { background: var(--fg); color: #fff; }
.kpi-pri span.on-med { background: var(--ac); color: var(--fg); }
.kpi-pri span.on-low { background: var(--cream); color: var(--fg); }
.kpi-assign {
  border: 0; border-bottom: 1px solid var(--hair); background: transparent;
  font: inherit; font-size: 13px; color: var(--fg); padding: 3px 2px; outline: 0; cursor: pointer;
  max-width: 150px;
}
.kpi-assign:hover { border-bottom-color: var(--fg); }
.kpi-x { color: #c2c2bb; font-size: 17px; line-height: 1; padding: 0 2px; transition: color .2s; }
.kpi-x:hover { color: var(--danger); }
.kpi-addrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #1a2d05; margin-top: 14px; cursor: pointer;
}
.kpi-addrow:hover { text-decoration: underline; }

/* ================= SUBTASKS / CHECKLIST ================= */
/* editor: simple text items with remove */
.subtask-edit { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.subtask-edit:empty { margin-bottom: 0; }
.subtask-edit-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--hair); padding: 5px 0; font-size: 13.5px;
}
.subtask-add { display: flex; gap: 8px; align-items: center; }
.subtask-add input {
  flex: 1; border: 0; border-bottom: 1px solid var(--hair);
  padding: 6px 0; background: transparent; outline: 0; font-size: 14px;
  transition: border-color .3s var(--ease);
}
.subtask-add input:focus { border-bottom-color: var(--fg); }
.subtask-x { color: var(--grey); font-size: 17px; line-height: 1; padding: 0 4px; transition: color .3s; }
.subtask-x:hover { color: var(--danger); }

/* detail: checkboxes */
.checklist { border-top: 1px solid var(--hair); margin-top: 20px; padding-top: 16px; }
.checklist-head { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.checklist-progress { color: var(--grey); margin-left: 4px; }
.subtask-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.subtask-check { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
/* the checklist label sits inside a .field in the editor — stop it
   inheriting the uppercase/tiny field-label styling */
.field .subtask-check {
  display: flex; align-items: center; gap: 12px;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  color: var(--fg); font-size: 14px; margin: 0;
}
.subtask-check input { width: 15px; height: 15px; accent-color: #1a2d05; cursor: pointer; flex: none; }
.subtask-text { font-size: 14px; }
.subtask-text.done { text-decoration: line-through; color: var(--grey); }

/* ================= TASK DETAIL ================= */
.detail-grid {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px 20px;
  margin: 20px 0 4px; font-size: 13.5px; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--hair);
}
.detail-desc { white-space: pre-wrap; color: #333; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.detail-people { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.person-tag {
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--hair);
  padding: 2px 2px 3px 0; font-size: 13px;
}

/* comments */
.comments { border-top: 1px solid var(--fg); margin-top: 26px; padding-top: 18px; }
.comments-title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment-bubble { flex: 1; border-left: 1px solid var(--hair); padding: 2px 0 2px 14px; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.comment-name { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.comment-text { font-size: 14px; white-space: pre-wrap; line-height: 1.55; }
.comment-text .mention { background: var(--ac); padding: 0 3px; font-weight: 500; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.comment-input-wrap { flex: 1; position: relative; }
.comment-form textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 6px 0; min-height: 40px; resize: vertical; outline: 0; font-size: 14px;
  transition: border-color .4s var(--ease);
}
.comment-form textarea:focus { border-bottom-color: var(--fg); }
.mention-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20;
  background: var(--bg); border: 1px solid var(--fg);
  width: 260px; max-height: 220px; overflow-y: auto;
  animation: rise .4s var(--ease);
}
.mention-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 12px; font-size: 13px;
  transition: background .3s var(--ease);
}
.mention-item:hover, .mention-item.sel { background: var(--cream); }

/* ================= DOCS PAGE ================= */
.section-block { margin-bottom: 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px;
  flex-wrap: wrap;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--fg);
}
.section-name {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 12px;
}
.section-count { font-weight: 400; color: var(--grey); font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.section-actions { display: flex; gap: 6px; }
.doc-row {
  display: flex; align-items: center; gap: 12px 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair-soft);
  position: relative; z-index: 0;
}
.doc-row::before {
  content: ""; position: absolute; inset: 0 -12px; z-index: -1;
  background: var(--cream);
  transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease);
}
.doc-row:hover::before { transform: scaleX(1); transform-origin: left; }
.doc-icon {
  width: 34px; height: 42px;
  border: 1px solid var(--fg);
  background: var(--bg); position: relative; flex: none;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  font-size: 7.5px; font-weight: 600; letter-spacing: .08em;
}
.doc-icon::before {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 10px; height: 10px;
  background: var(--ac); border-left: 1px solid var(--fg); border-bottom: 1px solid var(--fg);
}
.doc-main { flex: 1 1 200px; min-width: 0; }
.doc-name { font-weight: 500; font-size: 14.5px; word-break: break-word; display: inline; }
.doc-restricted { background: var(--fg); color: #fff; border-color: var(--fg); vertical-align: 1px; margin-left: 6px; }
.doc-sub { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.doc-assignees { display: flex; align-items: center; gap: 4px; }
.doc-actions { display: flex; gap: 6px; flex: none; }
.docs-empty-row { padding: 20px 0; color: var(--grey); font-size: 13px; border-bottom: 1px solid var(--hair-soft); }
.assigned-banner {
  border-top: 1px solid var(--fg);
  background: var(--ac);
  padding: 16px 18px; margin-bottom: 34px;
}
.assigned-banner b { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.assigned-banner .doc-link { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 500; }

/* Company Docs — core values */
.core-values { margin-bottom: 40px; background: #f1df44; border-radius: 14px; padding: 18px 22px 20px; }
.cv-head { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #17130f; font-weight: 500; margin-bottom: 15px; }
.cv-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.cv-tile { padding: 2px 16px; border-left: 1px solid rgba(0,0,0,.18); cursor: default; }
.cv-tile:first-child { border-left: 0; padding-left: 2px; }
.cv-num { font-size: 11px; color: rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.cv-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: #17130f; margin-top: 6px; line-height: 1.15; }
.cv-tag { font-size: 11px; color: rgba(0,0,0,.68); line-height: 1.32; margin-top: 3px; }
@media (max-width: 860px) {
  .cv-row { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .cv-tile:nth-child(3n+1) { border-left: 0; padding-left: 2px; }
}
@media (max-width: 520px) {
  .cv-row { grid-template-columns: repeat(2, 1fr); }
  .cv-tile:nth-child(3n+1) { border-left: 1px solid rgba(0,0,0,.18); padding-left: 16px; }
  .cv-tile:nth-child(2n+1) { border-left: 0; padding-left: 2px; }
}

/* ================= TEAM PAGE ================= */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-left: 1px solid var(--hair);
  border-top: 1px solid var(--hair);
}
.member-card {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 22px 24px;
  background: var(--bg); text-align: left;
  position: relative; z-index: 0;
}
.member-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .8s var(--ease);
}
.member-card:hover::before { transform: scaleY(1); transform-origin: top; }
.member-card .avatar { margin: 0 0 16px; }
.member-name { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.member-pronouns { font-size: 11px; letter-spacing: .06em; color: var(--grey); margin-top: 1px; }
.member-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-top: 8px; display: inline-block; line-height: 1.6; }
.member-city { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; font-size: 12px; }
.member-city-name { letter-spacing: .1em; text-transform: uppercase; font-size: 10px; color: var(--grey); }
.member-city-time { font-variant-numeric: tabular-nums; font-weight: 500; }
.member-email { font-size: 12px; color: var(--grey); margin-top: 8px; word-break: break-all; }
.member-phone { font-size: 12px; color: var(--grey); margin-top: 3px; }
.member-phone::before { content: "☎ "; font-size: 10px; }

/* live city clocks strip (Team toolbar) */
.city-clocks { display: flex; align-items: center; gap: 20px; }
.city-clock { display: inline-flex; align-items: baseline; gap: 7px; }
.city-clock-name { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.city-clock-time { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ts, .comment-time, .notif-time, .doc-sub span[title] { cursor: help; }
.member-role-tag { margin-top: 10px; }
.member-edit { margin-top: 14px; }

/* profile modal avatar picker */
.avatar-picker { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar-picker input[type=file] { display: none; }

/* ================= SETTINGS PAGE ================= */
.st-section { margin-bottom: 26px; }
.st-row {
  display: grid;
  grid-template-columns: 32px minmax(150px, 1.3fr) 80px minmax(140px, 1.5fr) 112px 156px 78px 40px;
  align-items: center; gap: 14px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.st-head { display: flex; }
.st-head-btn {
  font-size: 11px; font-weight: 500; padding: 4px 9px;
  border: 1px solid var(--hair); border-radius: 999px;
  background: transparent; color: var(--grey); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.st-head-btn:hover { border-color: var(--fg); color: var(--fg); }
.st-head-btn.on { background: #fbef9a; border-color: #e6d400; color: #3a3400; }
.st-head-tag {
  font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
  background: #fbef9a; color: #3a3400; white-space: nowrap;
}
.section-note { font-size: 12px; color: var(--grey); margin: -4px 0 14px; line-height: 1.55; max-width: 620px; }
.section-note .st-head-tag { padding: 1px 7px; }
.st-main { min-width: 0; }
.st-profile { display: flex; }
.st-profile .btn { padding: 5px 8px; }
.st-name { font-weight: 500; font-size: 14px; }
.st-email { font-size: 11px; color: var(--grey); word-break: break-all; }
.st-title-input {
  width: 100%; min-width: 0;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 5px 0; font-size: 12px; background: transparent; outline: 0;
  transition: border-color .3s;
}
.st-title-input:focus { border-bottom-color: var(--fg); }
.st-title-input:disabled { border-bottom-color: transparent; color: var(--fg); }
.st-select {
  width: 100%; min-width: 0;
  border: 0; border-bottom: 1px solid var(--hair);
  padding: 5px 0; font-size: 12px; background: transparent; outline: 0; cursor: pointer;
  transition: border-color .3s;
}
.st-select:hover, .st-select:focus { border-bottom-color: var(--fg); }
.st-select:disabled { border-bottom-color: transparent; color: var(--fg); opacity: 1; cursor: default; appearance: none; -webkit-appearance: none; }
.st-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* cities & timezones rows */
.city-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hair-soft);
}
.city-row-time { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; width: 56px; flex: none; }
.city-row-main { flex: 1; min-width: 0; }
.city-row-name { font-weight: 500; font-size: 14px; }
.city-row-tz { font-size: 11px; letter-spacing: .04em; color: var(--grey); margin-top: 1px; }
.city-row-count { font-size: 12px; color: var(--grey); white-space: nowrap; }
.city-row-actions { flex: none; }

.role-item { padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.role-item-head { display: flex; align-items: baseline; gap: 10px; }
.role-name { font-weight: 500; font-size: 14px; }
.role-desc { font-size: 13px; color: var(--grey); margin-top: 3px; max-width: 640px; }

/* Page Access matrix */
.section-note.pa-note { margin-top: 12px; }
.pa-wrap { overflow-x: auto; padding-top: 6px; }
.pa-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
.pa-table th, .pa-table td { border-bottom: 1px solid var(--hair-soft); }
.pa-page-h { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); padding: 8px 12px 8px 0; }
.pa-role-h { padding: 8px 4px; width: 92px; vertical-align: bottom; }
.pa-role-h span { display: block; font-size: 11px; font-weight: 600; color: #4a4a47; line-height: 1.25; text-align: center; }
.pa-page { padding: 11px 12px 11px 0; }
.pa-page-name { font-weight: 500; display: block; }
.pa-page-scope { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--grey); background: var(--hair-soft); padding: 1px 8px; border-radius: 10px; }
.pa-page-note { display: block; margin-top: 3px; font-size: 11px; color: var(--grey); }
.pa-cell { text-align: center; padding: 11px 4px; }
.pa-cell input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--yb-teal, #2f7d74); }
.pa-cell input:disabled { cursor: default; opacity: .45; }

.conn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; padding-top: 16px;
}
.conn-card {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: border-color .4s var(--ease);
}
.conn-card:hover { border-color: var(--fg); }
.conn-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.conn-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--cream); border: 1px solid var(--hair);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
}
.conn-name { font-weight: 500; font-size: 15px; }
.conn-desc { font-size: 12.5px; color: var(--grey); flex: 1; }
.conn-card button:disabled { opacity: .4; cursor: default; }

/* ================= BOOKINGS PAGE ================= */
.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin: 26px 0 14px;
}
.tile {
  border: 1px solid var(--hair); border-radius: 12px;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.tile-value { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.tile-sub { font-size: 11px; color: var(--grey); letter-spacing: .02em; margin-top: -3px; }
.tile-grid.bk-loc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .tile-grid.bk-loc-tiles { grid-template-columns: 1fr; } }
.tile-delta { font-size: 11px; letter-spacing: .02em; }
.tile-delta.up { color: #2e8c5c; }
.tile-delta.down { color: var(--danger); }

.bk-charts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.chart-card {
  border: 1px solid var(--hair); border-radius: 12px;
  padding: 18px 18px 10px;
  position: relative;
}
.bk-daily-card, .bk-pie-card { margin-bottom: 14px; }
.bk-pie-sub { font-size: 12px; color: var(--grey); margin: -4px 0 6px; }
.bk-section-head { font-size: 22px; font-weight: 700; margin: 26px 0 12px; letter-spacing: -0.01em; }

/* ---------- Decision Log ---------- */
.dl-table { min-width: 1120px; }
.dl-table td { vertical-align: top; }
.dl-date { white-space: nowrap; color: var(--grey); font-size: 12px; }
.dl-decision { font-weight: 500; max-width: 230px; }
.dl-clip { max-width: 200px; }
.dl-clip-sm { max-width: 120px; }
.dl-decision, .dl-clip, .dl-clip-sm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-dash { color: var(--hair); }
.dl-actions { text-align: right; }
.chip.dl-status { font-weight: 500; }
.chip.dl-status.dl-done { background: #e7f6e7; color: #1f6b1f; }
.chip.dl-status.dl-progress { background: #fbef9a; color: #6b5100; }
.chip.dl-status.dl-hold { background: #ececec; color: #666; }
.chip.dl-cat { background: var(--cream); color: var(--fg); }

/* ================= OUTREACH (prototype) ================= */
/* calm teal accent, scoped to .ot- */
.ot-proto { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #1a2d05; background: #eaf1dd; border: 1px solid #d8e3c4; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 10px; }
.ot-help { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; color: #2c4a0a; cursor: pointer; }
.ot-help:hover { text-decoration: underline; }
.ot-help-i { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #1a2d05; color: #1a2d05; font-size: 11px; font-style: italic; font-weight: 600; font-family: Georgia, serif; }
.ot-help-body { font-size: 14px; line-height: 1.6; }
.ot-help-lede { color: #3a3a38; margin-bottom: 18px; }
.ot-help-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 500; margin: 0 0 10px; }
.ot-help-steps { margin: 0 0 20px; padding-left: 20px; }
.ot-help-steps li { margin-bottom: 12px; }
.ot-help-flow li { margin-bottom: 8px; }
.ot-help-tag { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #2c4a0a; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.ot-help-note { font-size: 13px; color: #55605e; background: #f6f6f2; border: 1px solid var(--hair); border-radius: 8px; padding: 11px 13px; line-height: 1.5; }
.ot-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--hair); margin: 8px 0 18px; padding-bottom: 5px; flex-wrap: wrap; }
.ot-tab { padding: 9px 14px; font-size: 14px; color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.ot-tab:hover { color: var(--fg); }
.ot-tab.on { color: #2c4a0a; border-bottom-color: #1a2d05; font-weight: 500; }
.ot-soon { margin-top: 20px; }
.ot-soon-start { border: 1px solid #d8e3c4; background: #f5f8ee; }
/* the "start here" first tab, styled apart from the rest */
.ot-tab-start { background: #eaf1dd; border: 1px solid #d8e3c4; border-bottom: 1px solid #d8e3c4; border-radius: 999px; color: #2c4a0a; font-weight: 500; padding: 7px 14px 7px 8px; margin-bottom: 2px; }
.ot-tab-start.on { background: #1a2d05; color: #fff; border-color: #1a2d05; }
.ot-tab-start .ot-step { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #1a2d05; color: #fff; font-size: 11px; margin-right: 7px; }
.ot-tab-start.on .ot-step { background: #fff; color: #1a2d05; }
.ot-hint-inline { font-size: 12px; color: var(--grey); font-style: italic; }
.ot-hint-box { font-size: 12px; color: #2c4a0a; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 8px; padding: 9px 12px; margin-top: 6px; line-height: 1.45; }
/* clickable headers + filter menu */
.ot-th { cursor: pointer; user-select: none; white-space: nowrap; }
.ot-th:hover { color: #2c4a0a; }
.ot-th-caret { font-size: 9px; color: #b6b6ae; }
.ot-hmenu { position: fixed; z-index: 200; background: #fff; border: 1px solid var(--fg); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 160px; max-height: 300px; overflow-y: auto; padding: 4px; }
.ot-hmenu-item { display: block; width: 100%; text-align: left; padding: 7px 10px; font-size: 13px; border-radius: 6px; }
.ot-hmenu-item:hover { background: #eaf1dd; }
.ot-hmenu-item.active { background: #1a2d05; color: #fff; }
.ot-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ot-fchip { font-size: 12px; background: #eaf1dd; color: #2c4a0a; border: 1px solid #d8e3c4; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ot-fchip b { font-weight: 400; margin-left: 3px; }
.ot-fchip-sort { background: #f1f1ec; color: #555; border-color: var(--hair); }
.ot-status-click { cursor: pointer; }
.ot-status-click:hover { outline: 2px solid rgba(47,125,116,.35); }

/* ---- templates & sequences ---- */
.ot-tpl-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #f5f8ee; border: 1px solid #d8e3c4; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.ot-tpl-h { font-size: 16px; font-weight: 500; }
.ot-tpl-sub { font-size: 13px; color: #3a3a38; line-height: 1.5; margin-top: 3px; max-width: 640px; }
.ot-tpl-intro .btn-ot { white-space: nowrap; flex: none; }
.ot-gmail-note { font-size: 12.5px; color: #55605e; background: #f6f6f2; border: 1px solid var(--hair); border-radius: 8px; padding: 9px 12px; margin-bottom: 22px; line-height: 1.5; }
.ot-sec2 { margin-bottom: 26px; }
.ot-sec2-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ot-sec2-head h3 { font-size: 14px; font-weight: 500; }
.ot-tpl-group { margin-bottom: 16px; }
.ot-tpl-group-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--grey); margin-bottom: 8px; }
.ot-tpl-cards, .ot-seq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ot-tpl-card, .ot-seq-card { border: 1px solid var(--hair); border-radius: 10px; padding: 13px 15px; cursor: pointer; transition: box-shadow .15s, border-color .15s; background: #fff; }
.ot-tpl-card:hover, .ot-seq-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.06); border-color: #d8e3c4; }
.ot-tpl-name { font-size: 14px; font-weight: 500; }
.ot-tpl-subj { font-size: 12px; color: #2c4a0a; margin: 4px 0 6px; }
.ot-tpl-snip { font-size: 12px; color: var(--grey); line-height: 1.45; }
.ot-seq-meta { font-size: 12px; color: var(--grey); margin: 5px 0 9px; }
.ot-seq-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ot-seq-chip { font-size: 10px; background: #eaf1dd; color: #2c4a0a; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ot-seq-arrow { color: #b6b6ae; font-size: 11px; }
.ot-merge { font-size: 12px; color: var(--grey); margin-top: 10px; }
.ot-merge code { background: #f1f1ec; padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #2c4a0a; }
.ot-tpl-body-edit { min-height: 210px; line-height: 1.55; }
.modal.ot-tpl-modal { max-width: 960px; }
.ot-tpl-modal .ot-tpl-body-edit { min-height: 360px; }

/* Templates & sequences — combined layout */
.ot-getstarted { background: #f5f8ee; border: 1px solid #d8e3c4; border-radius: 14px; padding: 18px 20px 20px; }
.ot-gs-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #1a2d05; }
.ot-gs-h { font-size: 18px; font-weight: 600; margin-top: 4px; }
.ot-gs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ot-gs-tile { display: flex; align-items: center; gap: 11px; text-align: left; border-radius: 12px; padding: 15px 16px; border: 1px solid #d8e3c4; background: #fff; transition: box-shadow .15s; }
.ot-gs-tile:hover { box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.ot-gs-primary { background: #1a2d05; border-color: #1a2d05; color: #fff; }
.ot-gs-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16); color: #fff; flex: none; }
.ot-gs-ic-soft { background: #eaf1dd; color: #1a2d05; }
.ot-gs-tx { display: flex; flex-direction: column; gap: 2px; }
.ot-gs-t { font-size: 15px; font-weight: 600; }
.ot-gs-s { font-size: 12px; color: #757570; }
.ot-gs-primary .ot-gs-s { color: rgba(255,255,255,.8); }

.ot-libbar { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.ot-seg2 { display: inline-flex; background: #f1f0ec; border-radius: 10px; padding: 3px; }
.ot-seg2-btn { font-size: 13px; color: #6a6a64; border-radius: 8px; padding: 7px 18px; }
.ot-seg2-btn.on { background: #1a2d05; color: #fff; font-weight: 500; }
.ot-lib-new { font-size: 12.5px; color: #2c4a0a; display: inline-flex; align-items: center; gap: 5px; }
.ot-lib-plus { font-size: 15px; line-height: 1; }

.ot-md { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.ot-md-list { display: flex; flex-direction: column; gap: 8px; }
.ot-md-group { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9a9a92; margin: 8px 0 1px 2px; }
.ot-md-group:first-child { margin-top: 0; }
.ot-md-item { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--hair); border-radius: 10px; padding: 10px 13px; background: #fff; transition: border-color .15s; }
.ot-md-item:hover { border-color: #d8e3c4; }
.ot-md-item.on { border-color: #1a2d05; background: #f5f8ee; box-shadow: 0 0 0 1px #1a2d05 inset; }
.ot-md-name { font-size: 13px; font-weight: 600; }
.ot-md-item.on .ot-md-name { color: #24350a; }
.ot-md-sub { font-size: 11px; color: #757570; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-md-item.on .ot-md-sub { color: #5c6a44; }
.ot-md-detail { border: 1px solid #d8e3c4; border-radius: 12px; padding: 18px 20px; background: #fff; }
.ot-md-empty { color: var(--grey); font-size: 13px; padding: 8px 0; }
.ot-md-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.ot-md-title-row { display: flex; align-items: center; gap: 9px; }
.ot-md-title { font-size: 16px; font-weight: 600; }
.ot-md-meta { font-size: 12px; color: #757570; margin-top: 2px; }
.ot-md-acts { display: flex; gap: 8px; flex: none; }

.ot-flow { display: flex; flex-direction: column; margin-top: 14px; }
.ot-flow-step { display: flex; align-items: stretch; gap: 12px; text-align: left; }
.ot-flow-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #1a2d05; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.ot-flow-card { flex: 1; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--hair-soft); border-radius: 10px; padding: 11px 13px; }
.ot-flow-step:hover .ot-flow-card { border-color: #d8e3c4; }
.ot-flow-t { font-size: 12.5px; font-weight: 600; }
.ot-flow-sub { font-size: 12px; color: #555; }
.ot-flow-edit { font-size: 11px; color: #2c4a0a; align-self: center; flex: none; }
.ot-flow-wait { font-size: 11px; color: #8a8a82; margin: 6px 0 6px 38px; }
.ot-flow-add { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #2c4a0a; margin-top: 14px; }

.ot-tv-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9a9a92; margin-top: 14px; }
.ot-tv-subj { font-size: 13.5px; margin-top: 4px; }
.ot-tv-body { font-size: 13px; color: #3a3a38; line-height: 1.6; margin-top: 5px; background: #fbfbfa; border: 1px solid var(--hair-soft); border-radius: 8px; padding: 12px 14px; }
.ot-tv-merge { font-size: 11.5px; color: #757570; margin-top: 12px; }
.ot-tv-merge code { font-family: ui-monospace, Menlo, monospace; background: #eaf1dd; color: #2c4a0a; border-radius: 6px; padding: 2px 7px; font-size: 11px; }
.ot-tv-used { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-soft); font-size: 12px; color: #757570; }
.ot-tv-used b { color: #2c4a0a; font-weight: 600; }

/* Insert menu + signature */
.ot-body-label { display: flex; align-items: center; justify-content: space-between; }
.ot-insert-btn { font-size: 12px; color: #2c4a0a; border: 1px solid #d8e3c4; background: #f5f8ee; border-radius: 7px; padding: 4px 10px; }
.ot-insert-btn:hover { background: #eaf1dd; }
.ot-insert-caret { font-size: 10px; }
.ot-insert-menu { min-width: 220px; }
.ot-sig-img { display: block; max-width: 240px; max-height: 90px; margin-top: 8px; }
.ot-confirm-over { z-index: 200; }

/* contact history timeline */
.ot-hist-sum { font-size: 11.5px; color: var(--grey); }
.ot-timeline { display: flex; flex-direction: column; }
.ot-tl-item { display: flex; gap: 12px; text-align: left; width: 100%; background: none; padding: 11px 0; border-bottom: 1px solid var(--hair-soft); }
.ot-tl-item:last-child { border-bottom: 0; }
.ot-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: #1a2d05; margin-top: 5px; flex: none; }
.ot-tl-reply .ot-tl-dot { background: #b07d00; }
.ot-tl-b { flex: 1; min-width: 0; }
.ot-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ot-tl-title { font-size: 13px; font-weight: 600; }
.ot-tl-date { font-size: 12px; color: var(--grey); flex: none; }
.ot-tl-sub { font-size: 12px; color: #555; margin-top: 2px; }
.ot-tl-open { color: #2c4a0a; }
.ot-tl-sent { cursor: pointer; }
.ot-tl-sent:hover .ot-tl-title, .ot-tl-sent:hover .ot-tl-open { text-decoration: underline; }
.ot-tl-note { font-size: 12px; color: #555; margin-top: 3px; }

.pf-sig { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-soft); }
.pf-sig-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pf-sig-head label { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--grey); margin: 0; }
.pf-sig-badge { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1a2d05; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 999px; padding: 1px 8px; }
.pf-sig-text { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--hair); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.5; outline: 0; background: #fff; }
.pf-sig-text:focus { border-color: #1a2d05; }
.pf-sig-imgrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pf-sig-prev:empty { display: none; }
.pf-sig-prev img { display: block; max-height: 46px; max-width: 160px; border: 1px solid var(--hair-soft); border-radius: 6px; }

@media (max-width: 720px) {
  .ot-gs-tiles { grid-template-columns: 1fr; }
  .ot-md { grid-template-columns: 1fr; }
}

/* sequence builder */
.ot-steps { margin: 8px 0 14px; }
.ot-step { display: flex; gap: 12px; padding: 4px 0; }
.ot-step-dot { width: 24px; height: 24px; border-radius: 50%; background: #1a2d05; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ot-step-body { flex: 1; border-left: 2px solid var(--hair); padding: 0 0 16px 16px; margin-left: -12px; margin-top: 3px; }
.ot-step:last-child .ot-step-body { border-left-color: transparent; }
.ot-step-wait { font-size: 12px; color: var(--grey); margin-bottom: 6px; }
.ot-wait { width: 46px; border: 1px solid var(--hair); border-radius: 6px; padding: 3px 6px; font-size: 13px; text-align: center; }
.ot-step-title { font-size: 14px; font-weight: 500; }
.ot-step-tpl { font-size: 12.5px; color: var(--grey); margin-top: 3px; }
.ot-step-copy { width: 100%; min-height: 66px; border: 1px solid var(--hair); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; margin-top: 6px; box-sizing: border-box; }
.ot-step-rm { font-size: 12px; color: #a85; margin-top: 5px; }
.ot-step-rm:hover { color: var(--danger); }

/* send flow */
.ot-send-seqs, .ot-send-recs { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.ot-send-seq { border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.ot-send-seq:hover { border-color: #d8e3c4; }
.ot-send-seq.on { border-color: #1a2d05; background: #f5f8ee; box-shadow: 0 0 0 1px #1a2d05 inset; }
.ot-send-rec { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border: 1px solid var(--hair-soft); border-radius: 8px; cursor: pointer; }
.ot-send-rec:hover { background: #f6f8f0; }
.ot-send-rec input { margin-right: 2px; }
.ot-batch-note { font-size: 12.5px; color: #2c4a0a; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.45; }
.ot-th-check, .ot-td-check { width: 34px; text-align: center; padding-left: 6px !important; padding-right: 2px !important; }
.ot-th-check input, .ot-td-check input { width: 15px; height: 15px; cursor: pointer; accent-color: #1a2d05; vertical-align: middle; }
.ot-send-prevbar { font-size: 13px; color: #3a3a38; margin-bottom: 12px; }
.ot-send-prevbar select { border: 1px solid var(--hair); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 13px; }
.ot-email { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.ot-email-h { padding: 9px 14px; border-bottom: 1px solid var(--hair-soft); font-size: 13px; }
.ot-email-body { padding: 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.ot-fups { display: flex; flex-direction: column; gap: 10px; }
.ot-fup { border: 1px dashed var(--hair); border-radius: 10px; overflow: hidden; }
.ot-fup-when { padding: 6px 14px; background: #fdf3d6; color: #9a6b00; font-size: 12px; font-weight: 500; }
.ot-fup-body { font-size: 13px; color: #444; }
.ot-send-done { text-align: center; padding: 12px 0; }
.ot-send-count { font-size: 46px; font-weight: 600; color: #1a2d05; line-height: 1; }
.ot-send-count-l { font-size: 13px; color: var(--grey); margin-bottom: 16px; }
.ot-preview-only { font-size: 14px; color: #2c4a0a; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 10px; padding: 14px; line-height: 1.5; }
.btn-ot { background: #1a2d05; color: #fff; border: 0; padding: 8px 15px; border-radius: var(--radius, 8px); font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-ot:hover { background: #2c4a0a; }
.ot-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ot-bar-spacer { flex: 1; }
.ot-sel { font-size: 13px; }
.ot-search { border: 1px solid var(--hair); border-radius: 999px; padding: 7px 14px; font-size: 13px; outline: 0; min-width: 220px; }
.ot-search:focus { border-color: #1a2d05; }
.ot-stale-count { font-size: 12px; font-weight: 500; color: #9a6b00; background: #fdf3d6; border: 1px solid #f0dca0; padding: 4px 10px; border-radius: 999px; }
.ot-seg.seg button.active { background: #1a2d05; color: #fff; }

/* board */
.ot-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.ot-col { flex: 0 0 244px; background: #f6f8f0; border: 1px solid var(--hair); border-radius: 12px; padding: 10px; min-height: 120px; }
.ot-col.drag-over { background: #eaf1dd; border-color: #1a2d05; }
.ot-col-head { display: flex; align-items: center; justify-content: space-between; }
.ot-col-name { font-size: 13px; font-weight: 500; }
.ot-col-n { font-size: 12px; color: var(--grey); background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 0 8px; }
.ot-col-hint { font-size: 11px; color: var(--grey); margin: 2px 0 10px; line-height: 1.3; }
.ot-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }

.ot-card { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 10px 11px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .15s, border-color .15s; }
.ot-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.ot-card.dragging { opacity: .5; }
.ot-card.stale { border-left: 3px solid #e0a100; }
.ot-card-top { display: flex; align-items: center; justify-content: space-between; }
.ot-flag { color: #e0a100; font-size: 13px; }
.ot-card-name { font-size: 14px; font-weight: 500; margin: 5px 0 4px; cursor: pointer; }
.ot-card-name:hover { color: #2c4a0a; text-decoration: underline; }
.ot-card-org { font-size: 11px; color: var(--grey); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 16px; }
.ot-fld { display: flex; flex-direction: column; gap: 2px; }
.ot-fld-l { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--grey); }
.ot-fld-v { font-size: 14px; }
.ot-closed-note { font-size: 13px; color: #8a5a5a; background: #f7ecec; border: 1px solid #e6d2d2; border-radius: 8px; padding: 9px 12px; margin-bottom: 16px; }
.ot-card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey); }
.ot-next { font-size: 12px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--hair); color: #3a3a38; line-height: 1.35; }
.ot-next-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.ot-next.ot-closed { color: #8a5a5a; }

/* type + status chips */
.ot-type { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 999px; }
.ot-type-school { background: #eaf1dd; color: #2c4a0a; }
.ot-type-casting { background: #efeafc; color: #5b46a8; }
.ot-type-agent { background: #fdeede; color: #9a5a12; }
.ot-status { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ot-status-to-contact { background: #eee; color: #666; }
.ot-status-contacted { background: #e6f0fb; color: #1f5aa5; }
.ot-status-replied { background: #eaf1dd; color: #2c4a0a; }
.ot-status-scheduling { background: #fdf3d6; color: #9a6b00; }
.ot-status-booked { background: #e7f6e7; color: #1f6b1f; }
.ot-status-delivered { background: #d9efd9; color: #15521a; }
.ot-status-closed { background: #f3e6e6; color: #8a4a4a; }

/* scheduling sub-panel */
.ot-sched { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--hair); }
.ot-sched-step { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--grey); padding: 2px 0; }
.ot-sched-step .ot-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #cbcbc4; flex: none; }
.ot-sched-step.active { color: #9a6b00; font-weight: 500; }
.ot-sched-step.active .ot-dot { border-color: #e0a100; }
.ot-sched-step.done { color: #2c4a0a; }
.ot-sched-step.done .ot-dot { background: #1a2d05; border-color: #1a2d05; }
.ot-sched-actions { margin-top: 7px; }
.ot-sched-actions .btn { font-size: 11px; padding: 4px 9px; }

/* contacts table */
.ot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ot-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--hair); }
.ot-table td { padding: 11px 12px; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; }
.ot-row { cursor: pointer; }
.ot-row:hover { background: #f6f8f0; }
.ot-cell-name { font-weight: 500; }
.ot-region { display: block; font-size: 11px; font-weight: 400; color: var(--grey); }
.ot-people-n { color: var(--grey); }
.ot-muted { color: #a8a8a0; }
.ot-email { font-family: var(--font-mono, monospace); font-size: 12px; }
.ot-star { color: #e0a100; font-size: 11px; }
.ot-open { color: #1a2d05; font-weight: 500; white-space: nowrap; }

/* org detail modal */
.ot-org-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ot-chip-plain { font-size: 12px; color: var(--grey); background: #f1f1ec; padding: 3px 9px; border-radius: 999px; }
.ot-link { text-decoration: none; }
.ot-org-sec { margin-bottom: 18px; }
.ot-sec-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin-bottom: 8px; }
.ot-find { font-size: 12px; font-weight: 500; color: #1a2d05; background: #eaf1dd; border: 1px solid #d8e3c4; border-radius: 999px; padding: 4px 11px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ot-find-warn { font-size: 12px; color: #9a6b00; background: #fdf3d6; border: 1px solid #f0dca0; border-radius: 8px; padding: 8px 11px; margin-bottom: 8px; line-height: 1.4; }
.ot-sugg { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px dashed var(--hair); border-radius: 8px; margin-bottom: 6px; }
.ot-add-sugg { font-size: 12px; color: #1a2d05; border: 1px solid #d8e3c4; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.ot-person { padding: 9px 0; border-bottom: 1px solid var(--hair-soft); }
.ot-person-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ot-person-name { font-size: 14px; font-weight: 500; }
.ot-person-title { font-size: 12px; color: var(--grey); }
.ot-person-email { font-family: var(--font-mono, monospace); font-size: 12px; color: #555; display: block; margin-top: 2px; }
.ot-notes { font-size: 13px; line-height: 1.6; color: #3a3a38; }
.ot-opt { font-weight: 400; color: var(--grey); text-transform: none; letter-spacing: 0; }
.ot-readnote { display: none; }

/* import flow */
.ot-imp-intro { font-size: 13px; color: #3a3a38; line-height: 1.5; margin-bottom: 12px; }
.ot-imp-text { width: 100%; min-height: 150px; border: 1px solid var(--hair); border-radius: 8px; padding: 10px; font-family: var(--font-mono, monospace); font-size: 12px; outline: 0; box-sizing: border-box; }
.ot-map { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ot-map-row { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 8px; }
.ot-map-from { font-family: var(--font-mono, monospace); font-size: 12px; background: #f1f1ec; padding: 6px 10px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-map-arrow { text-align: center; color: var(--grey); }
.ot-map-sel { border: 1px solid var(--hair); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.ot-split { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3a3a38; }
.ot-imp-prev { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.ot-imp-card { border: 1px solid var(--hair); border-radius: 8px; padding: 10px 12px; }
.ot-imp-tag { font-size: 11px; color: var(--grey); margin-top: 4px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .ax { font-size: 10px; fill: var(--grey); font-family: var(--font); }
.chart-svg .bk-loc { font-size: 11px; fill: var(--fg); }
.chart-svg .bk-val { font-size: 11px; fill: var(--grey); }
.chart-svg .bar { transition: opacity .2s; }
.chart-svg .bar:hover { opacity: .75; }
.chart-tip {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--fg); color: #fff;
  font-size: 11.5px; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 6px;
  white-space: nowrap;
}
.bk-connect {
  border: 1px solid var(--fg); border-radius: 12px;
  padding: 20px 22px; margin: 24px 0 10px;
  background: #fffdf0;
}
.bk-error {
  border: 1px solid var(--danger); border-radius: 12px; color: var(--danger);
  padding: 12px 16px; margin-top: 18px; font-size: 13px;
}
.bk-table-card { padding-bottom: 0; }
.bk-table td, .bk-table th { padding: 10px 12px; }
.bk-amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.bk-table th:last-child { text-align: right; }
.bk-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.bk-dot { width: 8px; height: 8px; border-radius: 99px; border: 1px solid rgba(0,0,0,.25); flex: none; }

/* ================= TOASTS ================= */
.toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--fg); color: #fff;
  padding: 11px 22px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  animation: rise .5s var(--ease);
  display: flex; gap: 10px; align-items: center;
}
.toast .tick { color: var(--ac); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .board { grid-template-columns: repeat(5, 250px); }
  .main { padding: 28px 18px 80px; }
  /* sidebar collapses back into a top bar */
  .app { flex-direction: column; }
  .sidebar {
    width: auto; height: auto; position: static;
    flex-direction: row; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px 22px;
    padding: 14px 18px;
    border-right: 0; border-bottom: 1px solid var(--fg);
  }
  .nav { flex-direction: row; gap: 16px; }
  .sidebar-foot { margin-top: 0; flex-direction: row; gap: 16px; }
  .topbar { padding: 8px 18px; height: auto; }
  /* calendars scroll sideways rather than crush on small screens */
  .week-grid, .month-grid { overflow-x: auto; }
  .month-grid { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
  .cal-label { min-width: 0; }
  .cal-nav { flex-wrap: wrap; }
  .week-col-head, table.tasks th { top: 0; }
  /* Settings rows stack/wrap instead of using the wide grid */
  .st-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .st-main { flex: 1 1 150px; }
  .st-title-input { flex: 1 1 160px; width: auto; }
  .st-select { flex: 1 1 130px; width: auto; }
  .st-actions { flex: 1 1 100%; justify-content: flex-start; }
  .logo .hl { display: none; }
  .page-title { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .notif-panel { width: calc(100vw - 36px); right: -60px; }
  .demo-switcher select { max-width: 110px; }
  .demo-tag { display: none; }
}

/* ================= MOBILE (hamburger nav, stacked layout) ================= */
@media (max-width: 768px) {
  /* --- sidebar becomes a sticky header with a hamburger --- */
  .hamburger { display: flex; }
  .sidebar {
    position: sticky; top: 0; z-index: 60;
    flex-wrap: wrap; align-items: center; gap: 0;
    padding: 10px 16px;
    background: var(--bg);
  }
  .sidebar-clocks { display: none; }
  .nav, .sidebar-foot {
    display: none;
    flex-basis: 100%; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0;
  }
  .app.nav-open .nav { display: flex; margin-top: 10px; }
  .app.nav-open .sidebar-foot { display: flex; }
  .nav-link {
    width: 100%; padding: 14px 4px; font-size: 13px; letter-spacing: .1em;
    border-top: 1px solid var(--hair-soft);
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--fg); font-weight: 600; }
  .sidebar-foot .nav-link { justify-content: flex-start; }

  /* --- topbar: static (no double sticky), compact --- */
  .topbar { position: static; padding: 8px 16px; }
  .topbar-right { gap: 12px; }

  /* --- content --- */
  .main { padding: 20px 16px 90px; }
  .page-head { align-items: flex-start; padding-bottom: 18px; }
  .page-sub { font-size: 12.5px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* two-column / multi-column areas stack vertically */
  .board { grid-template-columns: 1fr; overflow-x: visible; padding: 14px 8px; }
  .col { padding: 0 8px 20px; }
  .conn-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .sr-breakdown { padding-left: 20px; }

  /* wide data stays contained and scrolls inside its own box */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* tap-friendly buttons */
  .btn { padding: 12px 18px; }
  .btn-sm { padding: 9px 13px; font-size: 10px; }
  .icon-btn { width: 40px; height: 40px; }

  /* modals fill more of the screen with tighter padding */
  .modal-overlay { padding: 3vh 10px 20px; }
  .modal, .modal.wide { max-width: none; }
  .modal-head { padding: 22px 18px 0; }
  .modal-title { font-size: 20px; }
  .modal-body { padding: 16px 18px 22px; }
  .modal-foot { padding: 14px 18px; flex-wrap: wrap; }

  /* report bubble + panel inset from the edge */
  .report-bubble { right: 16px; bottom: 16px; }
  .report-panel { right: 12px; left: 12px; bottom: 84px; width: auto; }
}

/* ================= TICKETS: bubble, panel, page ================= */
.nav-badge { display: inline-block; margin-left: 7px; font-size: 10px; color: #141310; background: var(--ac); border-radius: 99px; padding: 0 6px; line-height: 16px; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-badge:empty { display: none; }

.report-bubble { position: fixed; right: 26px; bottom: 26px; width: 54px; height: 54px; border-radius: 50%; background: var(--ac); border: none; color: #141310; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .18s var(--ease), box-shadow .18s; }
.report-bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.24); }
.report-bubble.active { transform: scale(.95); }

.report-panel { position: fixed; right: 26px; bottom: 90px; width: 342px; max-width: calc(100vw - 40px); max-height: 74vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 14px 44px rgba(0,0,0,.20); z-index: 61; padding: 16px 16px 18px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.rp-title { font-size: 15px; font-weight: 600; }
.rp-close { font-size: 20px; line-height: 1; color: var(--grey); background: none; border: none; cursor: pointer; }
.rp-seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 99px; overflow: hidden; margin-bottom: 13px; }
.rp-seg button { font-size: 12px; padding: 6px 20px; background: none; border: none; cursor: pointer; color: var(--grey); }
.rp-seg button.on { background: var(--fg); color: #fff; }
.rp-page { font-size: 11px; color: var(--grey); margin-bottom: 10px; }
.rp-page b { color: var(--fg); font-weight: 500; }
.rp-desc { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--hair); border-radius: 10px; padding: 10px 11px; font: inherit; font-size: 13px; outline: 0; box-sizing: border-box; }
.rp-desc:focus { border-color: var(--fg); }
.rp-shots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.rp-thumb { position: relative; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-thumb-x { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.rp-attach { font-size: 12px; color: var(--fg); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.rp-mine-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 16px 0 9px; border-top: 1px solid var(--hair-soft); padding-top: 14px; }
.rp-mine { display: flex; flex-direction: column; gap: 6px; }
.rp-ticket { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: 1px solid var(--hair-soft); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.rp-ticket:hover { background: var(--cream); }
.rp-tk-desc { flex: 1; font-size: 12px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tk-type { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 99px; flex: none; }
.tk-bug { background: #ffe3d8; color: #c23c12; }
.tk-idea { background: #f6efc0; color: #6f5d00; }
.tk-state { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; flex: none; }
.tk-open { background: var(--cream); color: var(--grey); }
.tk-done { background: #1a2d05; color: #fff; }
.tk-chip { font-size: 10px; background: var(--cream); color: var(--fg); padding: 3px 8px; border-radius: 99px; letter-spacing: .03em; }
.tk-view { background: #eef2e6; color: #3b5a12; }

.ticket-modal .tm-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tm-by { font-size: 12px; color: var(--grey); margin-bottom: 13px; }
.tm-desc { font-size: 14px; line-height: 1.55; white-space: pre-wrap; margin-bottom: 15px; }
.tm-none { color: var(--grey); font-style: italic; font-size: 12.5px; }
.tm-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-shot { width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--hair); padding: 0; cursor: pointer; background: var(--cream); }
.tm-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-comments { display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--hair-soft); padding-top: 15px; margin-bottom: 13px; }
.tm-cmt-head { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.tm-cmt-head b { font-weight: 500; }
.tm-cmt-time { color: var(--grey); font-size: 11px; }
.tm-cmt-text { font-size: 13px; line-height: 1.5; margin-top: 4px; padding-left: 27px; white-space: pre-wrap; }
.tm-add { display: flex; gap: 8px; align-items: flex-end; }
.tm-input { flex: 1; min-height: 40px; resize: vertical; border: 1px solid var(--hair); border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 13px; outline: 0; }
.tm-input:focus { border-color: var(--fg); }

.ticket-list { display: flex; flex-direction: column; }
.ticket-row { display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid var(--hair-soft); cursor: pointer; transition: background .3s var(--ease); }
.ticket-row:hover { background: var(--cream); }
.ticket-row.done .tk-desc { color: var(--grey); text-decoration: line-through; }
.tk-check { flex: none; display: flex; }
.tk-check input { width: 16px; height: 16px; cursor: pointer; }
.tk-main { flex: 1; min-width: 0; }
.tk-desc { font-size: 14px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-sub { font-size: 11px; color: var(--grey); margin-top: 2px; }
