:root {
  color-scheme: light;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: #111111;
  --muted: #575757;
  --accent-ink: #715800;
  --graphite: #080a0b;
  --rail: #101518;
  --brand: #ffd400;
  --brand-hover: #ffe879;
  --line: #d3d3ce;
  --paper: #fff;
  --canvas: #f5f5f2;
}
* { box-sizing: border-box; }
body { min-width: 300px; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #826a00; outline-offset: 3px; }
button svg, .metric-icon svg, .blocked svg, .read-only svg, .dependencies h3 svg, .search svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin: 0; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; border-radius: 8px; padding: 10px 15px; background: #fff; color: var(--accent-ink); }
.loading { padding: 24px; }
.muted { color: var(--muted); }
.brand-logo { display: block; width: 149px; height: 55px; object-fit: contain; object-position: left center; }

#app:has(.login), #app[aria-busy="true"] { min-height: 100dvh; color: #f6f5ef; background: var(--graphite); }
#app:has(.login) { display: grid; place-items: center; padding: clamp(20px, 5vw, 40px) 16px; }
.login { width: min(480px, 100%); padding: clamp(24px, 6vw, 36px); background: #151b20; border: 1px solid #56646c; border-top: 3px solid var(--brand); border-radius: 4px; box-shadow: 0 18px 60px #0000003d; }
.login-intro { display: grid; gap: 8px; margin-bottom: 24px; }
.login-intro .brand-logo { width: min(300px, 100%); height: auto; aspect-ratio: 3 / 1; }
.login h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; letter-spacing: -.025em; }
.login-profiles h2 { font-size: 1.25rem; line-height: 1.3; }
.login-profiles .muted { color: #bac7c9; font-size: .9rem; }
.login :focus-visible { outline-color: var(--brand); }

.workspace { min-height: 100dvh; display: grid; grid-template-columns: 219px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 18px 11px 24px; background: var(--rail); color: #edf0e9; border-right: 1px solid #354044; }
.sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 9px 18px; margin-bottom: 13px; border-bottom: 1px solid #354044; }
.sidebar-brand .brand-logo { width: 100%; height: auto; aspect-ratio: 3 / 1; }
.sidebar-brand span { color: #b8c3c5; font-size: .78rem; font-weight: 700; }
.group-nav { display: grid; gap: 6px; }
.nav-label { color: #a7b5ba; padding: 17px 11px 4px; font-weight: 650; font-size: .75rem; }
.group-button { min-height: 44px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 4px; padding: 8px 10px; text-align: left; background: none; color: #d5dfe1; font-size: .88rem; font-weight: 650; }
.group-button:hover { background: #253034; border-color: #465155; color: #fff; }
.group-button.active { background: #253034; border-color: #8b999f; color: #fff; }
.sidebar .page-navigation .active { background: var(--brand); border-color: var(--brand); color: var(--graphite); }
.sidebar :focus-visible { outline-color: var(--brand); }
.group-dot { width: 8px; height: 8px; margin: 0 6px; flex: none; border-radius: 50%; background: #ccd4d6; }
.dot-1 { background: #e3c179; }
.dot-2 { background: #a3b8f1; }

.main-area { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 73px; padding: 10px clamp(17px, 3vw, 42px); background: var(--paper); border-bottom: 1px solid var(--line); }
.top-context { color: var(--muted); font-size: .84rem; font-weight: 500; }
.top-context span { padding: 0 6px; color: #666; }
.top-context strong { color: var(--ink); font-weight: 700; }
.mobile-brand { display: none; }
.profile-menu { position: relative; z-index: 3; }
.profile-menu summary { display: flex; align-items: center; gap: 9px; list-style: none; border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px 5px 5px; cursor: pointer; background: white; min-height: 44px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-name strong, .profile-name small { display: block; line-height: 1.25; }
.profile-name strong { font-size: .83rem; }
.profile-name small { font-size: .73rem; color: var(--muted); }
.chevron { color: var(--muted); padding-bottom: 4px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; font-size: .74rem; font-weight: 800; color: #111111; background: #e7e9e6; }
.profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 193px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 11px 35px #1111111c; }
.profile-dropdown p { padding: 7px 8px; color: var(--muted); font-weight: 650; font-size: .74rem; }
.profile-dropdown button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; min-height: 37px; text-align: left; border: 0; background: white; border-radius: 6px; font-size: .84rem; }
.profile-dropdown button:hover { background: #f3f3ef; }
.profile-dropdown .sign-out { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }

.main-content { max-width: 1460px; margin-inline: auto; padding: clamp(23px, 3.1vw, 48px) clamp(17px, 3vw, 42px) 42px; }
.page-heading, .activity-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.page-heading h1 { font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 750; letter-spacing: -.065em; line-height: 1.12; }
.page-heading p { color: var(--muted); margin-top: 6px; font-size: .94rem; }
.heading-actions, .dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; min-height: 43px; padding: 8px 12px; white-space: nowrap; font-size: .86rem; font-weight: 700; }
.button svg { width: 18px; height: 18px; }
.primary { background: var(--brand); border-color: #8a7300; color: var(--graphite); }
.primary:hover { background: var(--brand-hover); }
.secondary, .icon-button { background: white; color: var(--ink); border-color: var(--line); }
.secondary:hover, .icon-button:hover { background: #f3f3ef; border-color: #8b8c85; }
.icon-button { min-width: 43px; padding: 8px; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.metric { display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; }
.metric:hover, .metric.selected { border-color: #8a7300; background: #fff9d8; }
.metric-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: none; border-radius: 10px; }
.metric-todo { background: #ecedeb; color: #414745; }
.metric-doing { background: #faf0d9; color: #815411; }
.metric-done { background: #e0f1e5; color: #236647; }
.metric small, .metric strong { display: block; }
.metric small { color: var(--muted); font-size: .79rem; font-weight: 650; }
.metric strong { font-size: 1.7rem; line-height: 1.12; letter-spacing: -.05em; }

.activity { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.activity-heading { padding: 16px 17px 10px; }
.activity-heading h2 { font-size: 1.22rem; letter-spacing: -.035em; }
.activity-heading p { color: var(--muted); font-size: .8rem; }
.view-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #ededeb; }
.view-toggle button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 4px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: .78rem; font-weight: 680; }
.view-toggle button[aria-pressed="true"] { background: white; border-color: var(--line); }
.view-toggle svg { width: 16px; height: 16px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 17px 15px; }
.filters label { margin: 0; }
.filters select, .search { border: 1px solid var(--line); border-radius: 8px; background-color: #fff; }
.filters select { min-height: 40px; padding: 6px 9px; font-size: .81rem; }
.search { flex: 1 1 156px; display: flex; align-items: center; gap: 8px; min-width: 140px; max-width: 285px; padding: 0 9px; color: var(--muted); min-height: 40px; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: none; padding: 6px 0; font-size: .85rem; }
.search:focus-within { outline: 3px solid #826a00; outline-offset: 2px; }
.own-filter { min-height: 40px; display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 5px; font-size: .82rem; font-weight: 620; }
input[type="checkbox"] { accent-color: var(--accent-ink); width: 16px; height: 16px; flex: none; margin: 0; }

.task-list-header, .task-card { display: grid; grid-template-columns: minmax(190px, 2.6fr) minmax(77px, 1fr) minmax(61px, .64fr) minmax(70px, .74fr) minmax(103px, .92fr) 18px; gap: 8px; align-items: center; }
.task-list-header { background: #f2f2ef; color: var(--muted); padding: 8px 17px; font-weight: 700; font-size: .75rem; }
.task-card { width: 100%; min-height: 65px; background: white; padding: 10px 17px; border: 0; border-top: 1px solid #ededeb; text-align: left; font-size: .82rem; }
.task-card:hover { background: #f8f8f6; }
.task-card:focus-visible { outline-offset: -3px; }
.task-card > span { min-width: 0; overflow-wrap: anywhere; }
.task-name strong, .task-name small { display: block; }
.task-name strong { font-size: .91rem; line-height: 1.3; }
.task-name small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; color: var(--muted); line-height: 1.2; font-size: .74rem; }
.waiting { color: #835514; display: inline-flex; align-items: center; gap: 3px; font-weight: 690; }
.waiting svg { width: 12px; height: 12px; }
.task-date { color: var(--muted); }
.task-arrow { justify-self: end; color: #515754; }
.task-arrow svg { width: 17px; height: 17px; }
.state, .priority, .read-only { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 6px; white-space: nowrap; font-size: .72rem; line-height: 1.34; font-weight: 720; }
.state span, .priority span { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.state { background: #efefed; color: #515451; }
.state-doing { background: #fbf0d7; color: #77520c; }
.state-done { background: #e3f3e7; color: #245e43; }
.priority-high { background: #f9e8e2; color: #8a4131; }
.priority-medium { background: #faf0df; color: #77541d; }
.priority-low { background: #ecf0f7; color: #4e6080; }
.empty-state { display: grid; place-items: center; padding: 42px 14px; color: var(--muted); text-align: center; gap: 4px; }
.empty-state svg { width: 26px; height: 26px; color: var(--accent-ink); }
.empty-state p { font-size: .84rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 9px; padding: 0 12px 12px; }
.board-column { min-width: 0; min-height: 133px; border-radius: 10px; padding: 8px; background: #f2f2ef; }
.board-column h3 { display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 8px; color: var(--muted); font-size: .83rem; }
.board-column > p { padding: 6px; font-size: .8rem; }
.board .task-card { grid-template-columns: 1fr auto; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.board .task-card + .task-card { margin-top: 7px; }
.board .task-name { grid-column: 1 / -1; }
.board .task-status, .board .task-arrow { display: none; }
.board .task-date { grid-column: 1 / -1; font-size: .77rem; }

dialog { width: min(570px, calc(100vw - 30px)); max-height: min(89dvh, 820px); padding: 0; border: 1px solid #8a8b85; border-radius: 17px; color: var(--ink); background: white; box-shadow: 0 22px 72px #080a0b42; }
dialog::backdrop { background: #080a0b88; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); background: #f7f7f5; }
.dialog-header p { margin-bottom: 3px; color: var(--accent-ink); font-size: .75rem; font-weight: 750; }
.dialog-header h2 { font-size: clamp(1.35rem, 4vw, 1.78rem); line-height: 1.18; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dialog-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.dialog-actions { justify-content: flex-end; }
.detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.detail-tags > span { font-size: .78rem; }
.read-only { color: var(--muted); background: #eeefed; }
.read-only svg { width: 14px; height: 14px; }
.detail-description { font-size: .94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.detail-fields div { background: #f4f4f0; padding: 8px; border-radius: 7px; }
.detail-fields dt { color: var(--muted); font-size: .76rem; }
.detail-fields dd { margin: 2px 0 0; font-size: .86rem; font-weight: 720; }
.dependencies h3 { display: flex; align-items: center; gap: 6px; font-size: .98rem; }
.dependencies h3 svg { width: 17px; height: 17px; color: var(--accent-ink); }
.dependencies p { font-size: .84rem; }
.dependencies ul { margin: 4px 0; padding: 0; list-style: none; }
.dependencies li { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.dependency-link { min-height: 38px; padding: 4px 0; background: none; border: 0; color: var(--accent-ink); font-weight: 680; font-size: .83rem; text-align: left; overflow-wrap: anywhere; }
.dependency-link:hover { text-decoration: underline; }
.blocked { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px; border-radius: 7px; color: #71470e; background: #fff1d6; }
.blocked svg { width: 16px; height: 16px; }
.dialog-body label { display: grid; gap: 4px; font-weight: 680; font-size: .85rem; }
.dialog-body label input:not([type="checkbox"]), .dialog-body textarea, .dialog-body select { width: 100%; min-height: 41px; min-width: 0; border: 1px solid #8a8b85; border-radius: 7px; padding: 7px 8px; background: white; font-weight: 400; }
.dialog-body textarea { resize: vertical; }
.dialog-body input[readonly] { background: #f2f2ee !important; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
fieldset { min-width: 0; min-inline-size: 0; border: 1px solid var(--line); border-radius: 7px; margin: 0; padding: 4px 8px 8px; }
legend { padding: 0 5px; font-size: .85rem; font-weight: 680; }
.check-list { max-height: 145px; overflow: auto; font-size: .81rem; }
.dialog-body .check-list label { display: flex; align-items: center; min-height: 34px; gap: 7px; font-weight: 450; line-height: 1.2; }
.error-message { color: #903c2b; background: #fff1ed; border-radius: 7px; padding: 7px 9px; font-size: .83rem; }
.error-message:empty { display: none; }
.login-profiles .error-message { margin-top: 8px; color: #ffded5; background: #4b241d; border: 1px solid #b06d5a; border-radius: 4px; }
.feedback { position: fixed; z-index: 5; bottom: 18px; right: 18px; max-width: min(340px, calc(100vw - 36px)); border-radius: 9px; padding: 9px 13px; color: white; background: var(--rail); box-shadow: 0 9px 24px #080a0b36; font-size: .84rem; }
.feedback:empty { display: none; }

@media (min-width: 1001px) { .group-filter { display: none; } }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-brand { display: block; width: 122px; padding: 2px 6px; border-radius: 4px; background: var(--rail); }
  .mobile-brand .brand-logo { width: 108px; height: 34px; }
  .topbar > div:first-child { display: flex; align-items: center; gap: 9px; }
  .top-context span { padding: 0 3px; }
}
@media (max-width: 700px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading p { font-size: .84rem; }
  .metrics { margin: 17px 0; gap: 6px; }
  .metric { min-height: 71px; border-radius: 9px; padding: 8px; gap: 5px; }
  .metric-icon { width: 26px; height: 26px; border-radius: 6px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .metric small { font-size: clamp(.61rem, 2.25vw, .79rem); }
  .metric strong { font-size: 1.35rem; }
  .activity-heading { padding-inline: 11px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-inline: 11px; }
  .search { grid-column: 1 / -1; max-width: none; }
  .filters select { width: 100%; }
  .task-list-header { display: none; }
  .task-card { grid-template-columns: repeat(2, minmax(0, 1fr)) 15px; padding: 10px 11px; gap: 5px; }
  .task-name { grid-column: 1 / 3; }
  .task-assignee { grid-row: 2; grid-column: 1; }
  .task-priority { grid-row: 3; grid-column: 1; }
  .task-date { grid-row: 2; grid-column: 2 / -1; }
  .task-status { grid-row: 3; grid-column: 2 / -1; }
  .task-arrow { grid-row: 1; grid-column: 3; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board .task-assignee { grid-row: 2; grid-column: 1; }
  .board .task-priority { grid-row: 2; grid-column: 2; }
  .board .task-date { grid-row: 3; }
  .profile-name { max-width: 98px; }
  .profile-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 450px) {
  .top-context { display: none; }
  .activity-heading h2 { font-size: 1.04rem; }
  .view-toggle button { font-size: .68rem; padding: 3px 5px; }
  .view-toggle svg { width: 13px; height: 13px; }
  .copy-link { margin-right: auto; }
  .dialog-header, .dialog-body { padding-inline: 13px; }
}

.sidebar { overflow-y: auto; }
.sidebar .page-navigation { display: grid; gap: 3px; border-bottom: 1px solid #354044; padding-bottom: 13px; margin-bottom: 13px; }
.sidebar .page-navigation svg, .mobile-pages svg { width: 17px; height: 17px; flex: none; }
.mobile-pages { display: none; }
.portal-form { display: grid; gap: 12px; }
.login-profiles .portal-form { margin-top: 15px; }
.portal-form label, .inline-form label, .scene-editor label { display: grid; gap: 5px; min-width: 0; font-weight: 650; }
.portal-form input:not([type=checkbox]), .portal-form select, .portal-form textarea,
.inline-form input:not([type=checkbox]), .inline-form select, .inline-form textarea, .scene-editor input,.scene-editor select {
  min-width: 0; width: 100%; min-height: 41px; border: 1px solid #8a8b85; border-radius: 8px; padding: 8px 10px; background: #fff; font-weight: 400;
}
.login-profiles .portal-form input { min-height: 50px; border: 1px solid #78868c; border-radius: 4px; color: #f6f5ef; background: var(--graphite); }
.login-profiles .portal-form .primary { min-height: 46px; border-color: var(--brand); border-radius: 4px; }
.portal-form input[readonly], .inline-form input[readonly] { background: #f2f2ee; }
.portal-form .check-line, .check-line { display: flex; align-items: flex-start; gap: 8px; }
.portal-form input[type=file], .inline-form input[type=file] { max-width: 100%; }
.portal-form textarea { resize: vertical; }
.portal-form .button[type=submit] { justify-self: start; }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.inline-form > label { flex: 1 1 100px; }
.inline-form > .error-message { flex: 1 1 100%; margin: 0; }
.invite-panel { border-left: 3px solid var(--brand); }
.invite-panel .inline-form label { flex-basis: 230px; }
.compact-form { margin-top: 12px; }
.compact-form > label { font-size: .85rem; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-journal { display: grid; gap: 14px; }
.task-journal p { margin-block: 0 3px; }
.task-journal summary { cursor: pointer; font-weight: 700; }
.task-journal small { color: var(--muted); }
.feature-content { display: grid; gap: 14px; }
.feature-panel { display: grid; gap: 11px; align-content: start; min-width: 0; padding: clamp(17px, 2.4vw, 25px); background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.feature-panel h2 { margin: 0; font-size: 1.17rem; color: #111111; overflow-wrap: anywhere; }
.feature-panel p { margin: 0; }
.feature-panel a:not(.button) { color: #715800; text-underline-offset: 3px; overflow-wrap: anywhere; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr)); gap: 14px; }
.feature-grid:has(> article:only-child) { grid-template-columns: minmax(0,1fr); }
.feature-toolbar, .feature-heading, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feature-heading { justify-content: space-between; }
.record-meta { color: var(--muted); font-size: .83rem; }
.feature-editor { max-width: 1000px; }
.feature-panel ol { margin-block: 3px; padding-inline-start: 20px; }
.feature-filters { display: flex; align-items: flex-end; }
.feature-filters label { flex-basis: 135px; }
.feature-content [data-results] { display: grid; gap: 12px; }
.feature-content .button, .file-list .button { text-decoration: none; }
.file-list { margin: 0; padding: 0; list-style: none; display: grid; }
.file-list.feature-panel { padding: clamp(17px, 2vw, 24px); }
.file-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 9px; align-items: center; justify-content: space-between; min-width: 0; }
.file-list li:last-child { border-bottom: 0; }
.file-list strong { overflow-wrap: anywhere; }
.file-list small { display: block; color: var(--muted); }
.feature-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.feature-table th, .feature-table td { text-align: left; padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feature-table th { background: #f2f2ef; color: #202322; }
.table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
.policy-row { min-inline-size: 0; border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 9px; }
.policy-row legend { padding: 0 4px; font-weight: 700; }
.policy-row .button { justify-self: start; }
.template-rows { display: grid; gap: 10px; }
.scene-editor { display: grid; gap: 12px; min-width: 0; }
.scene-controls, .scene-properties { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.scene-properties label { flex: 1 1 130px; }
.scene-scroll { min-width: 0; max-height: min(560px, 60vh); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background-color: #f5f5f2; background-image: radial-gradient(#cececa 1px, transparent 1px); background-size: 16px 16px; }
.scene { display: block; max-width: none; }
.scene-node { color: #161a1c; }
.scene-node[data-node] { cursor: grab; }
.scene-node[data-node]:active { cursor: grabbing; }
.scene-node rect, .scene-node ellipse, .scene-node polygon { fill: #ebedee; stroke: #60686d; stroke-width: 2; }
.scene-node[data-kind="diamond"] polygon { fill: #fff0c9; stroke: #a98237; }
.scene-node[data-kind="oval"] ellipse { fill: #d9edf6; stroke: #497795; }
.scene-node[data-kind="note"] rect { fill: #fff0bf; stroke: #aa8b37; }
.scene-node text, .scene-edge-label { fill: #171b1d; font-size: 13px; font-weight: 650; dominant-baseline: middle; pointer-events: none; }
.scene-edge { stroke: #535b5e; stroke-width: 2; fill: none; }
.scene-arrow { fill: #535b5e; }
.scene-edge-label { text-anchor: middle; paint-order: stroke; stroke: #f5f5f2; stroke-width: 4; }
.report-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); margin: 0; gap: 10px; }
.report-totals div { border: 1px solid var(--line); padding: 10px 12px; border-radius: 9px; background: #fafaf8; }
.report-totals dt { font-size: .82rem; color: var(--muted); }
.report-totals dd { margin: 2px 0 0; font-size: 1.27rem; font-weight: 740; }
@media(max-width:1000px) {
  .mobile-pages { display: block; margin: 0 0 20px; padding: 5px; border: 1px solid #354044; border-radius: 5px; background: var(--rail); }
  .mobile-pages .page-navigation { display: flex; flex-wrap: wrap; gap: 5px; }
  .mobile-pages button { width: auto; padding: 7px 8px; flex: 0 0 auto; }
  .mobile-pages button.active { color: var(--graphite); background: var(--brand); border-color: var(--brand); }
  .mobile-pages button:focus-visible { outline-color: var(--brand); outline-offset: -3px; }
}
@media(max-width:550px) {
  .feature-panel .row-actions { flex-grow: 1; }
  .file-list li { flex-wrap: wrap; }
  .task-journal .inline-form { width: 100%; }
}
