:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink:#151a2e; --muted:#606982; --line:#e7eaf2; --surface:#fff; --bg:#f6f7fb;
  --accent:#3849ce; --accent-dark:#2839b4; --radius:17px;
  font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink);font-size:14px}
button,input,select,textarea {font:inherit}
button,a,input,select,textarea {touch-action:manipulation}
button {cursor:pointer}
a {color:inherit;text-decoration:none}
button:disabled {opacity:.5;cursor:default}
:focus-visible {outline:3px solid #7888ff;outline-offset:3px}
.icon {width:19px;height:19px;display:inline-block;vertical-align:middle;flex:none}
.sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#shell {display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}
#sidebar {background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;overflow:auto;z-index:5}
.brand {display:flex;align-items:center;gap:11px;padding:27px 23px 32px}
.brand-mark {display:grid;place-items:center;width:39px;height:39px;background:#3648d3;color:white;border-radius:12px;box-shadow:0 4px 9px #3648d335}
.brand-mark svg {width:27px;height:27px}
.brand strong {display:block;font-size:24px;line-height:1;letter-spacing:-1.3px}
.brand strong span {color:var(--accent)}
.brand small {display:block;font-size:8px;letter-spacing:.22em;margin-top:5px;color:var(--muted);font-weight:800}
#nav {padding:0 12px}
.nav-label {font-size:10px;letter-spacing:.12em;color:#707a92;font-weight:750;padding:0 12px 10px}
.nav-label.second {margin-top:24px}
#nav a {display:flex;gap:10px;align-items:center;padding:0 11px;min-height:42px;margin:2px 0;border-radius:9px;color:#505b73;font-weight:600;font-size:13px}
#nav a:hover {background:#f4f5fb}
#nav a[aria-current] {background:#eef0ff;color:#3445c4}
.sidebar-footer {display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);margin-top:auto;padding:16px 13px}
.sidebar-footer strong,.sidebar-footer small {display:block;font-size:11px}
.sidebar-footer small {margin-top:4px;color:var(--muted)}
.avatar {height:35px;width:35px;background:#edf0ff;color:#394ac5;border-radius:50%;display:inline-grid;place-items:center;font-weight:750;flex:none}
.account-dot,.mode-banner>span:first-child {background:#35a47e;width:7px;height:7px;border-radius:50%;flex:none}
.account-dot {margin-left:auto}
.topbar {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:67px;padding:10px clamp(18px,3vw,40px);background:#fff;border-bottom:1px solid var(--line)}
.breadcrumb {display:flex;align-items:center;gap:10px;color:var(--muted);white-space:nowrap}
.breadcrumb strong {color:var(--ink);font-weight:650}
.global-tools {display:flex;align-items:center;justify-content:flex-end;gap:10px}
.search {display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:0 10px;border-radius:9px;background:#f8f9fc;color:var(--muted);width:clamp(150px,24vw,290px);min-width:0}
.search input {border:0;background:transparent;min-width:0;width:100%;height:36px;outline:none;color:var(--ink)}
.search:focus-within {outline:2px solid #7888ff}
kbd {color:var(--muted);border:1px solid #dfe3ed;padding:1px 5px;border-radius:4px}
.client-filter select {max-width:172px}
select,input:not(.search input),textarea {width:100%;border:1px solid #dce1ec;background:#fff;color:var(--ink);border-radius:9px;padding:9px 10px;min-height:38px}
textarea {min-height:86px;resize:vertical}
.icon-button.mobile-menu {display:none}
main {max-width:1530px;margin:auto;padding:24px clamp(18px,3vw,40px) 42px}
.mode-banner,.warning {padding:10px 12px;border:1px solid #e5e9fd;background:#eef0ff;border-radius:9px;color:#46538c;margin-bottom:20px;font-size:12px}
.mode-banner {display:flex;align-items:center;gap:8px}
.mode-banner>span:first-child {background:#6575e3}
.warning {background:#fff5e4;border-color:#f5e4bf;color:#785213}
.page-heading {display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 24px}
.date-line {display:flex;gap:6px;align-items:center;color:#56627e;font-size:12px;font-weight:650}
.date-line .icon {width:15px;height:15px}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(31px,4vw,49px);line-height:1.04;letter-spacing:-.047em;margin:8px 0}
.page-heading p,.panel-heading p,.detail-title p {color:var(--muted);line-height:1.5}
.button,.icon-button {display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px;border:1px solid transparent;border-radius:9px;padding:8px 12px;white-space:nowrap;font-weight:650;color:var(--ink);background:#fff}
.button .icon {width:16px;height:16px}
.button.primary {background:var(--accent);color:white;box-shadow:0 2px 4px #2736aa22}
.button.primary:hover {background:var(--accent-dark)}
.button.secondary,.icon-button {border-color:var(--line)}
.button.secondary:hover,.button.quiet:hover,.icon-button:hover {background:#eef0ff}
.button.quiet {color:var(--accent)}
.kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}
.kpi,.panel {background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 4px #1b245104}
.kpi {padding:15px;display:grid;gap:5px}
.kpi:hover {border-color:#c5ccf9}
.kpi-top {display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;color:#77829b}
.kpi-label {color:#525e77;font-size:13px;font-weight:650}
.kpi strong {font-size:33px;letter-spacing:-.05em;line-height:1.08}
.kpi small {color:var(--muted);font-size:11px}
.tile-icon {display:inline-grid;place-items:center;width:35px;height:35px;border-radius:10px;flex:none}
.blue {background:#ebefff;color:#3b50d2}
.violet {background:#f0ecff;color:#6b4ac3}
.mint {background:#e7f7f0;color:#147450}
.amber {background:#fff3dd;color:#8d5d0d}
.property {background:#edf1fc;color:#5365a6}
.dashboard-grid,.settings-grid {display:grid;grid-template-columns:1.08fr 1fr;gap:17px}
.panel {min-width:0;margin-bottom:17px;overflow:hidden}
.panel-heading {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 19px 13px}
.panel-heading h2 {font-size:17px;letter-spacing:-.025em}
.panel-heading p {margin-top:4px;font-size:12px}
.subtle-link,.external {color:var(--accent);font-weight:650;font-size:12px}
.subtle-link {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.subtle-link .icon {width:14px}
.chart {padding:8px 19px 20px;display:grid;gap:17px}
.chart-row {display:grid;grid-template-columns:86px minmax(0,1fr) 25px;gap:9px;align-items:center;color:#4e5a75;font-size:12px}
.chart-row strong {text-align:right;color:var(--ink)}
meter {appearance:none;width:100%;height:12px;border-radius:6px;background:transparent}
meter::-webkit-meter-bar {background:#edf0f8;border:0;height:12px;border-radius:6px}
meter::-webkit-meter-optimum-value {background:currentColor;border-radius:6px}
meter::-moz-meter-bar {background:currentColor;border-radius:6px}
.agenda {padding:0 18px 11px}
.agenda button {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;width:100%;background:white;border:0;border-bottom:1px solid var(--line);color:var(--ink);padding:7px 0}
.agenda button:hover {color:var(--accent)}
.agenda button:last-child {border-bottom:0}
.agenda strong,.agenda small,.table-job small,.sidebar-footer small,.access-row small {display:block}
.agenda strong {font-size:12px}
.agenda small {color:var(--muted);font-size:11px;margin-top:3px}
.agenda button>.icon {width:15px;color:#76819b}
.date-box {display:grid;place-items:center;min-width:38px;padding:3px 5px;background:#eef0ff;color:#3b4bc3;border-radius:8px}
.date-box small {text-transform:uppercase;color:inherit;font-weight:750;font-size:8px;margin:0}
.date-box b {font-size:16px}
.table-wrap {overflow-x:auto}
table {width:100%;border-collapse:collapse;text-align:left;font-size:12px}
th {background:#f7f8fc;color:#56617b;font-weight:650;white-space:nowrap}
td,th {padding:9px 10px;border-top:1px solid var(--line)}
td:first-child,th:first-child {padding-left:18px}
td:last-child,th:last-child {padding-right:18px}
td:nth-last-child(3) {white-space:nowrap}
tbody tr:hover {background:#fafaff}
.table-job {background:transparent;border:0;display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink);padding:0;min-width:160px}
.table-job:hover strong {color:var(--accent)}
.table-job small {color:var(--muted);margin-top:4px;font-size:11px}
.pill {display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:30px;font-size:10px;font-weight:750;white-space:nowrap}
.pill i,.lane h3 i {width:5px;height:5px;border-radius:50%;background:currentColor;display:inline-block}
.mobile-cards {display:none}
.board {display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;padding:8px 18px 18px}
.lane {background:#f5f6fb;padding:9px;border-radius:12px;min-width:0}
.lane h3 {display:flex;align-items:center;gap:6px;font-size:13px;padding:4px}
.lane h3 span {margin-left:auto;color:var(--muted)}
.job-card {display:grid;gap:7px;width:100%;background:white;color:var(--ink);border:1px solid var(--line);border-radius:11px;text-align:left;padding:11px;margin:7px 0;min-width:0;overflow-wrap:anywhere}
.job-card:hover {border-color:#b8c0f6}
.job-card>span:not(.job-card-top) {color:var(--muted);font-size:11px}
.job-card-top,.job-meta {display:flex;align-items:center;gap:5px;justify-content:space-between;flex-wrap:wrap}
.job-meta .icon {width:13px;height:13px}
.job-meta span {margin-left:auto}
.segments {display:flex;gap:3px;background:#edf0f8;padding:3px;border-radius:9px}
.segments button {border:0;background:none;color:var(--muted);border-radius:7px;padding:8px;min-height:38px;white-space:nowrap}
.segments button[aria-pressed=true] {background:#fff;color:var(--accent);box-shadow:0 1px 4px #26335015}
.directory,.linked-list {display:grid;gap:9px;padding:0 18px 18px}
.directory {grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}
.directory-card,.linked-list article {display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0;flex-wrap:wrap}
.directory-card>div,.linked-list article>div:first-of-type {flex:1;min-width:125px;overflow-wrap:anywhere}
.directory-card h3 {font-size:14px}
.directory-card p,.linked-list p {color:var(--muted);font-size:12px;white-space:pre-wrap;margin-top:4px}
.linked-jobs {display:flex;flex-wrap:wrap;flex-basis:100%}
.linked-jobs:empty {display:none}
.linked-jobs .button {white-space:normal;text-align:left}
.empty,.loading {padding:22px 18px;color:var(--muted)}
.stack {display:grid;align-content:start;gap:12px;padding:0 18px 18px}
.stack label,.invite-result label {display:grid;gap:5px;font-weight:650}
.stack button {justify-self:start}
.access-row,.invite-result {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
.access-row small,.stack small {color:var(--muted)}
.invite-result {margin:0 18px 15px}
.invite-result label {flex:1;min-width:0}
#detail {width:min(645px,100%);height:100dvh;max-height:none;max-width:none;position:fixed;inset:0 0 0 auto;margin:0;border:0;background:#f8f9fc;color:var(--ink);padding:0;box-shadow:-10px 0 60px #18224730}
#detail::backdrop {background:#11193362}
.drawer-top {display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;padding:11px 20px;background:#fff;border-bottom:1px solid var(--line)}
.drawer-top>span {color:#546386;font-size:11px;font-weight:750;letter-spacing:.07em}
.drawer-content {padding:20px clamp(15px,4vw,28px) 36px}
.detail-title h2 {font-size:clamp(25px,5vw,37px);letter-spacing:-.04em;margin:8px 0 5px;overflow-wrap:anywhere}
.field-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.field-grid div,.shoot-brief {background:white;border:1px solid var(--line);border-radius:11px;padding:12px}
.field-grid dt {color:var(--muted);font-size:11px;font-weight:650;margin-bottom:5px}
.field-grid dd {margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.shoot-brief {margin-bottom:12px;background:#eef0ff;border-color:#dfe4ff}
.shoot-brief h3,.contact-group h3 {font-size:14px;margin-bottom:5px}
.shoot-brief p,.contact-group p {margin:5px 0;color:#4c5975;white-space:pre-wrap}
.drawer-content details {background:#fff;border:1px solid var(--line);border-radius:10px;margin:7px 0}
.drawer-content summary {cursor:pointer;padding:13px;font-weight:650}
.fold-body {padding:0 12px 12px}
.fold-body .field-grid {margin:5px 0}
.fold-body .stack {padding:9px 0 0}
.contact-group {margin:9px 0}
.contact-group article {display:grid;gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}
.contact-group small,.timeline small {color:var(--muted)}
.timeline {padding-left:22px}
.timeline li {margin:10px 0;overflow-wrap:anywhere}
.timeline small {display:block}
.timeline p {margin-top:4px;white-space:pre-wrap}
.actions-grid {display:grid;grid-template-columns:1fr 1fr;gap:14px}
fieldset {border:1px solid var(--line);border-radius:9px}
.stack .checkbox {display:flex;align-items:center}
.checkbox input {width:auto!important;min-height:20px!important}
#toast:not(:empty) {position:fixed;bottom:14px;right:14px;max-width:calc(100vw - 28px);background:#212947;color:white;padding:12px 16px;border-radius:10px;z-index:20;box-shadow:0 3px 16px #18224740}
.signed-out {display:block!important}
.signed-out #sidebar,.signed-out .topbar {display:none}
.signin {max-width:460px;margin:12vh auto;padding:25px}
.signin h1 {font-size:34px;margin:12px 0}
.signin p {color:var(--muted);margin-bottom:14px}
@media(max-width:1100px) {
  #shell {grid-template-columns:183px minmax(0,1fr)}
  #nav a {font-size:12px;padding:0 8px;gap:7px}
  .brand {padding-left:16px}
  .kpis {gap:9px}
  .kpi {padding:12px}
}
@media(max-width:850px) {
  #shell {display:block}
  #sidebar {display:none;position:fixed;inset:0 auto 0 0;width:min(240px,78vw);height:100dvh;box-shadow:10px 0 42px #18224735}
  #sidebar.open {display:flex;top:61px;height:calc(100dvh - 61px)}
  .icon-button.mobile-menu {display:inline-flex}
  .topbar {min-height:61px;gap:8px}
  .breadcrumb {margin-right:auto}
  .breadcrumb span {display:none}
}
@media(max-width:660px) {
  .topbar {flex-wrap:wrap;padding:8px 13px}
  .global-tools {width:100%;justify-content:stretch}
  .search {flex:1}
  kbd {display:none}
  main {padding:15px 13px 28px}
  .page-heading {align-items:start;flex-wrap:wrap;margin-bottom:17px}
  .page-heading p {font-size:13px}
  .mode-banner {margin-bottom:15px}
  .kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid,.settings-grid,.actions-grid {grid-template-columns:1fr;gap:0}
  .table-wrap {display:none}
  .mobile-cards {display:grid;gap:6px;padding:0 11px 12px}
  .mobile-cards .job-card {margin:0}
  .panel-heading {padding:14px 12px 10px}
  .board {grid-template-columns:1fr;padding:0 10px 10px}
  .client-filter select {max-width:135px}
}
