:root {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1d2c3a;
  background: #f3f6fa;
  --paper: #fff;
  --canvas: #f3f6fa;
  --ink: #142636;
  --text: #283a4a;
  --muted: #526578;
  --soft: #e1e8ef;
  --line: #dbe4ed;
  --nav: #152536;
  --nav-deep: #102031;
  --nav-muted: #a7bacb;
  --mint: #56dfb6;
  --accent: #07765c;
  --accent-dark: #005a46;
  --teal-wash: #e6f7f1;
  --danger: #a92338;
  --warning: #9a5308;
  --radius: 15px;
  --shadow: 0 1px 2px #162b4310, 0 7px 20px #323c5110;
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 300px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .63; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #14ad88; outline-offset: 3px; }
[hidden] { display: none !important; }
svg.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 99; padding: 8px 14px; border-radius: 6px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.boot { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.brand-mark { position: relative; isolation: isolate; display: grid; place-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--nav); background: var(--mint); font-weight: 850; font-size: 1.35rem; line-height: 1; letter-spacing: -.12em; padding-right: .1em; box-shadow: inset 0 0 0 1px #dbfff56a; }
.brand-mark::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 1px; right: 6px; top: 6px; background: #155241; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: #f7fbff; }
.brand-lockup strong { display: block; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.025em; }
.brand-lockup small { display: block; margin-top: 3px; color: var(--nav-muted); font-size: .75rem; letter-spacing: .06em; }
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: linear-gradient(165deg, var(--nav), var(--nav-deep)); color: #e7f0f8; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; z-index: 20; min-width: 0; }
.sidebar-brand { padding: 24px 21px 17px; display: flex; justify-content: space-between; align-items: center; }
.sidebar nav { flex: 1; min-height: 0; overflow: auto; scrollbar-color: #405b73 transparent; padding: 3px 13px 16px; }
.sidebar-group { margin-top: 12px; }
.sidebar-group summary { list-style: none; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.nav-heading { text-transform: uppercase; color: var(--nav-muted); font-size: .7rem; font-weight: 750; letter-spacing: .09em; }
.sidebar-group .nav-heading { padding: 6px 9px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.sidebar-group .nav-heading:hover { background: #ffffff12; }
.sidebar-group[open] .nav-heading .icon { transform: rotate(180deg); }
.nav-link { text-decoration: none; color: #c7d5e0; display: flex; align-items: center; gap: 10px; padding: 7px 9px; min-height: 35px; border-radius: 8px; font-size: .878rem; font-weight: 560; overflow: hidden; }
.nav-link > span:last-child { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.nav-link .icon { color: #99aebf; }
.nav-link:hover { background: #ffffff10; color: #fff; }
.nav-link[aria-current="page"] { background: #255b55; color: #fff; font-weight: 680; box-shadow: inset 2px 0 var(--mint); }
.nav-link[aria-current="page"] .icon { color: #98f1d5; }
.side-bottom { border-top: 1px solid #ffffff18; min-width: 0; }
.side-bottom .nav-link { margin: 9px 12px; }
.side-profile { border-top: 1px solid #ffffff18; padding: 12px 13px; display: flex; align-items: center; gap: 9px; }
.side-profile .avatar { background: #29465b; color: #effafa; font-size: .74rem; }
.side-profile .profile-text { flex: 1; min-width: 0; }
.side-profile strong, .side-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile strong { color: #f1f7fc; font-size: .85rem; }
.side-profile small { color: var(--nav-muted); font-size: .73rem; }
.avatar { display: inline-grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 10px; font-weight: 780; background: var(--teal-wash); color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.sidebar .icon-button { color: #c1d2df; }
.sidebar .icon-button:hover { background: #ffffff14; color: #fff; }
.side-curtain { display: none; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; z-index: 10; top: 0; min-height: 63px; background: #fffffffa; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px clamp(14px, 2.4vw, 34px); }
.topbar-left, .topbar-right, .inline, .actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wrap { flex-wrap: wrap; }
.topbar-right { justify-content: flex-end; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--muted); font-weight: 550; }
.crumb > strong { color: var(--ink); font-weight: 690; }
.crumb .icon { width: 1em; }
.company-picker { position: relative; align-items: center; display: flex; gap: 8px; padding: 2px 3px 2px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent-dark); }
.company-picker select { background: transparent; padding-block: 7px; padding-left: 0; border: 0; color: var(--ink); width: 100%; max-width: 235px; font-size: .855rem; font-weight: 680; }
.menu-trigger, .sidebar-close { display: none !important; }
.env-badge { color: #75510c; background: #fff0c7; border: 1px solid #eddbad; border-radius: 999px; font-size: .72rem; line-height: 1; padding: 6px 8px; font-weight: 750; white-space: nowrap; }
.today-top { color: var(--muted); font-size: .82rem; white-space: nowrap; margin-right: 3px; }
.main { flex: 1; width: min(100%, 1560px); margin: 0 auto; padding: 25px clamp(14px, 2.4vw, 34px) 48px; min-width: 0; }
.page-header { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-header > div:first-child { min-width: 0; }
.page-header .actions { padding-top: 3px; justify-content: flex-end; }
.eyebrow { display: block; color: var(--accent-dark); font-weight: 780; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.page-title { color: var(--ink); font-size: clamp(1.65rem, 2.7vw, 2.28rem); line-height: 1.14; letter-spacing: -.042em; font-weight: 780; overflow-wrap: anywhere; }
.subtitle { color: var(--muted); font-size: .95rem; margin-top: 7px; }
.button { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; text-decoration: none; font-size: .85rem; font-weight: 680; line-height: 1.35; text-align: center; white-space: nowrap; }
.button:hover { border-color: #9fb5c3; background: #f6f9fb; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px #00745826; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.danger { color: var(--danger); background: #fff; border-color: #edc8cf; }
.button.danger:hover { background: #fff0f1; }
.button.subtle { border-color: transparent; background: transparent; }
.button.subtle:hover { background: #edf3f7; }
.button.compact { min-height: 32px; padding: 4px 8px; }
.icon-button { display: inline-grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; color: var(--muted); padding: 0; background: transparent; border: 0; border-radius: 8px; }
.icon-button:hover { background: #eaf0f5; color: var(--ink); }
.text-link { color: var(--accent-dark); text-decoration: none; font-weight: 680; font-size: .87rem; }
.text-link:hover { text-decoration: underline; }
.card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px #162b4309; min-width: 0; }
.card:hover.surface-link { border-color: #8ac8b3; box-shadow: var(--shadow); }
.surface-link { text-decoration: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 17px 19px 13px; }
.panel-head h2, .panel-head h3 { color: var(--ink); font-size: 1.03rem; letter-spacing: -.012em; font-weight: 730; }
.panel-head p { color: var(--muted); font-size: .81rem; margin-top: 2px; }
.panel-body { padding: 0 19px 17px; }
.panel + .panel { margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi { padding: 13px 15px; display: grid; gap: 8px; }
.kpi-label { font-weight: 640; color: var(--muted); font-size: .82rem; }
.kpi strong { line-height: 1; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi .inline { justify-content: space-between; gap: 5px; }
.tile-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: var(--teal-wash); color: var(--accent-dark); font-size: 1rem; }
.tile-icon.blue { background: #e9f2fc; color: #265b95; }
.tile-icon.amber { background: #fff1d9; color: #9a5308; }
.tile-icon.purple { background: #f1ecfc; color: #614498; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 15px; margin-bottom: 15px; }
.dashboard-layout .panel + .panel { margin-top: 0; }
.chart-list { list-style: none; padding: 2px 0; margin: 0; }
.chart-row { display: grid; gap: 8px; grid-template-columns: minmax(106px, 1fr) minmax(42px, 3.5fr) 2ch; align-items: center; color: var(--text); font-size: .81rem; }
.chart-row + .chart-row { margin-top: 11px; }
.chart-row strong { font-size: .79rem; text-align: right; }
.bar-track { display: block; height: 8px; border-radius: 15px; overflow: hidden; background: #eaf0f5; }
.bar-fill { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #25a887; }
.bar-fill.alt { background: #659dd2; }
.bar-fill.third { background: #7561af; }
.activity, .quick-links { margin: 0; padding: 0; list-style: none; }
.activity-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 0; }
.activity-item + .activity-item { border-top: 1px solid #ecf0f4; }
.activity-item .tile-icon { width: 29px; height: 29px; border-radius: 7px; font-size: .87rem; }
.activity-item .activity-copy { flex: 1; min-width: 0; }
.activity-copy strong, .activity-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.activity-copy strong { font-size: .84rem; font-weight: 700; color: var(--ink); }
.activity-copy small, .activity-item time { color: var(--muted); font-size: .75rem; }
.activity-item a:hover { color: var(--accent-dark); }
.quick-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.quick-link { min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #f9fbfd; border-radius: 8px; padding: 9px; font-size: .83rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.quick-link .icon { color: var(--accent-dark); }
.quick-link:hover { border-color: #8cc4b3; color: var(--accent-dark); }
.list-panel { overflow: clip; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.toolbar .actions { flex-wrap: wrap; }
.search-control { position: relative; display: flex; align-items: center; min-width: 0; flex: 0 1 335px; }
.search-control .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search-control input { padding-left: 33px; }
.control { width: 100%; min-height: 40px; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid #c8d5e0; border-radius: 8px; font-size: .9rem; }
.control:hover { border-color: #9aafc0; }
.control::placeholder { color: #64798b; }
select { appearance: none; padding-right: 30px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 6 5-6' fill='none' stroke='%23526578' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
select[multiple] { appearance: auto; padding: 8px !important; background-image: none; min-height: 110px; }
select[multiple] option { padding: 4px 7px; }
textarea.control { resize: vertical; min-height: 86px; }
input[type=checkbox], input[type=radio] { inline-size: 17px; block-size: 17px; accent-color: var(--accent); }
.filter { width: auto; min-width: 115px; max-width: 225px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8fafc; color: var(--muted); font-size: .77rem; padding: 8px 13px; min-width: 95px; font-weight: 720; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 16px; }
tr:last-child td { border-bottom: 0; }
td { vertical-align: middle; padding: 10px 13px; color: var(--text); font-size: .87rem; border-bottom: 1px solid #eaf0f5; }
td:first-child { font-weight: 675; color: var(--ink); }
td .record-number { color: var(--muted); font-size: .73rem; font-weight: 540; display: block; }
td .row-link { display: inline-block; text-decoration: none; }
td .row-link:hover { color: var(--accent-dark); text-decoration: underline; }
td .clamp { display: block; max-width: 32ch; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
tbody tr:hover { background: #f9fcfe; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; gap: 7px; font-size: .83rem; color: var(--muted); border-top: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; max-width: 100%; border-radius: 999px; color: #365269; background: #eaf0f5; padding: 3px 8px; font-size: .74rem; font-weight: 700; line-height: 1.32; white-space: nowrap; }
.badge.good { color: #096044; background: #def5e9; }
.badge.warn { color: #86490a; background: #fff0d4; }
.badge.bad { color: #a32037; background: #fdebed; }
.badge.info { color: #285584; background: #e7f0fb; }
.empty, .failure { display: grid; justify-items: center; text-align: center; gap: 7px; padding: 32px 18px; color: var(--muted); }
.empty h3, .failure h3 { color: var(--ink); font-size: 1.02rem; }
.empty > p, .failure > p { max-width: 55ch; font-size: .89rem; }
.empty .button, .failure .button { margin-top: 5px; }
.empty.compact { border: 1px dashed var(--line); border-radius: 9px; padding: 15px 10px; justify-items: start; text-align: left; font-size: .84rem; }
.failure .tile-icon { background: #fce9ed; color: var(--danger); }
.banner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; padding: 8px 10px; border-radius: 8px; background: #e9f4fd; color: #294d6c; font-size: .85rem; }
.banner.warn { background: #fff0d9; color: #80450b; }
.banner.error { background: #fce9ed; color: #921c34; }
.banner .icon { margin-top: 2px; }
.skeleton { min-height: 115px; padding: 17px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2px solid #c2dbd4; border-top-color: var(--accent); border-radius: 100%; animation: spin .75s linear infinite; display: inline-block; margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.editor { padding: 16px 19px 19px; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 16px; }
.field { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field-label, legend.field-label { color: var(--ink); font-weight: 680; font-size: .85rem; }
.field-label .required { color: var(--danger); }
.hint { color: var(--muted); font-size: .77rem; }
.check-field { display: flex; align-items: center; gap: 7px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.form-foot .push { margin-right: auto; }
.line-editor { margin: 0; padding: 8px 9px 9px; border: 1px solid var(--line); border-radius: 8px; }
.line-row { display: grid; min-width: 0; gap: 8px; grid-template-columns: repeat(auto-fit,minmax(104px,1fr)); padding: 8px; background: #f6f9fb; border-radius: 7px; margin: 0 0 8px; align-items: end; }
.line-row .icon-button { align-self: end; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.meta-key { color: var(--muted); font-size: .77rem; }
.meta-value { color: var(--ink); font-size: .89rem; font-weight: 660; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0,3.1fr) minmax(225px,1fr); gap: 14px; align-items: start; }
.detail-layout .panel + .panel { margin-top: 0; }
.detail-aside .detail-grid { grid-template-columns: 1fr; }
.week-controller { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.week-controller strong { color: var(--ink); font-size: .89rem; }
.week-scroll { overflow: auto; border-bottom: 1px solid var(--line); }
.week-grid { display: grid; grid-template-columns: repeat(7,minmax(115px,1fr)); min-width: 805px; }
.week-day { padding: 8px; min-height: 140px; }
.week-day + .week-day { border-left: 1px solid var(--line); }
.week-day.is-today { background: #f1fbf8; }
.week-day > strong { font-size: .78rem; color: var(--muted); display: block; margin-bottom: 7px; }
.week-event { display: block; overflow-wrap: anywhere; text-decoration: none; padding: 4px 6px; border: 1px solid #cce6df; border-radius: 6px; margin-bottom: 5px; color: var(--accent-dark); background: #eaf8f4; font-size: .76rem; font-weight: 670; }
.week-event:hover { background: #d6f2e9; }
.week-event time { display: block; font-size: .73rem; font-weight: 520; }
.site-hero { background: linear-gradient(135deg,#1d3d42,#146454); color: white; border-radius: var(--radius); padding: 19px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-hero .eyebrow { color: #b9f1df; }
.site-hero h2 { color: #fff; font-size: 1.35rem; letter-spacing: -.024em; }
.site-hero p { color: #e1f4f0; font-size: .87rem; }
.site-date { margin-top: 16px; }
.site-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; text-decoration: none; }
.site-item + .site-item { border-top: 1px solid var(--line); }
.site-item .site-copy { flex: 1; min-width: 0; }
.site-item strong { display: block; color: var(--ink); font-size: .94rem; }
.site-item small { display: block; color: var(--muted); font-size: .79rem; }
.site-item:hover strong { color: var(--accent-dark); }
.selections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 13px 0; }
.selections .check-field { align-items: flex-start; }
dialog { width: min(620px,calc(100% - 22px)); max-height: calc(100dvh - 22px); border: 1px solid var(--line); border-radius: 14px; padding: 0; color: var(--text); box-shadow: 0 28px 95px #182c4160; overflow: auto; }
dialog::backdrop { background: #10223586; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head h2 { color: var(--ink); font-size: 1.07rem; }
.dialog-inner { padding: 13px 16px 16px; }
.dialog-inner > p { color: var(--muted); font-size: .91rem; }
.import-preview { margin-top: 9px; max-height: 320px; overflow: auto; }
.import-note { margin-top: 6px; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(325px, 1fr) minmax(450px, 1.05fr); background: #fff; }
.auth-visual { background: radial-gradient(ellipse at 94% 81%, #215b59, transparent 49%), linear-gradient(143deg,#102233,#1c3545); position: relative; overflow: hidden; min-width: 0; padding: clamp(22px, 5vw, 70px); display: flex; flex-direction: column; justify-content: space-between; gap: 42px; color: #f2faf9; }
.auth-visual::before, .auth-visual::after { content: ""; width: clamp(300px,36vw,520px); aspect-ratio: 1; border-radius: 82px; position: absolute; border: 1px solid #97dfd32a; right: -83px; bottom: -259px; transform: rotate(38deg); pointer-events: none; }
.auth-visual::after { right: -115px; bottom: -185px; border-color: #97dfd320; }
.auth-story { max-width: 530px; position: relative; z-index: 1; }
.auth-story h2 { font-size: clamp(2.2rem,4.65vw,4.45rem); letter-spacing: -.06em; line-height: 1.05; font-weight: 790; }
.auth-story p { margin-top: 13px; color: #c6dbe1; max-width: 36ch; font-size: clamp(.95rem, 1.2vw, 1.12rem); }
.auth-visual .eyebrow { color: #8fe5ca; margin-bottom: 9px; }
.auth-companies { color: #cfdee7; position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: .81rem; flex-wrap: wrap; }
.auth-box { display: flex; justify-content: center; align-items: center; padding: 22px 26px; }
.auth-form { width: min(100%, 385px); }
.auth-form h1 { color: var(--ink); font-size: 2.12rem; letter-spacing: -.045em; line-height: 1.13; }
.auth-form > p { color: var(--muted); margin: 7px 0 19px; }
.auth-form > .field + .field { margin-top: 12px; }
.auth-form .control { min-height: 44px; }
.auth-form .submit { width: 100%; margin-top: 16px; min-height: 44px; }
.auth-form .banner { margin-top: 13px; margin-bottom: 0; }
.password-entry { position: relative; }
.password-entry input { padding-right: 45px; }
.password-entry button { position: absolute; right: 3px; top: 4px; }
.notifications { position: fixed; z-index: 99; right: 14px; bottom: 14px; display: grid; gap: 6px; width: min(360px,calc(100% - 28px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #bbe0d4; padding: 8px 10px; background: #eaf9f2; color: #174b3e; border-radius: 9px; font-size: .88rem; box-shadow: var(--shadow); }
.toast.error { color: var(--danger); border-color: #efd0d7; background: #fff0f3; }
.toast .icon-button { width: 28px; height: 28px; }
.mobile-card { display: none; }
@media (max-width: 1140px) {
  .app-shell { grid-template-columns: 218px minmax(0,1fr); }
  .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside .detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 910px) {
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .today-top { display: none; }
}
@media (max-width: 740px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(285px,calc(100% - 38px)); transform: translateX(-104%); transition: transform .22s ease-out; visibility: hidden; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .menu-trigger, .sidebar-close { display: inline-grid !important; }
  .menu-open .side-curtain { display: block; position: fixed; inset: 0; z-index: 19; background: #10223685; border: 0; }
  .topbar { min-height: 57px; padding: 6px 11px; }
  .crumb .crumb-root, .crumb .icon { display: none; }
  .crumb strong { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding-top: 15px; padding-bottom: 25px; }
  .page-header { flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
  .page-header .actions { padding-top: 0; }
  .auth-layout { grid-template-columns: 1fr; grid-template-rows: min-content 1fr; }
  .auth-visual { gap: 13px; padding: 17px 19px 20px; }
  .auth-story h2 { font-size: 1.58rem; }
  .auth-story p, .auth-story .eyebrow { display: none; }
  .auth-box { padding-top: 23px; align-items: start; }
  .auth-companies { font-size: .72rem; gap: 7px; }
  .auth-form h1 { font-size: 1.68rem; }
}
@media (max-width: 540px) {
  .page-header .actions { justify-content: flex-start; }
  .company-picker { gap: 4px; }
  .company-picker .icon { width: .95em; }
  .company-picker select { font-size: .76rem; max-width: 150px; }
  .topbar-left, .topbar-right { gap: 4px; }
  .toolbar { padding: 9px; flex-wrap: wrap; gap: 7px; }
  .toolbar .actions { justify-content: flex-start; }
  .search-control { flex-basis: 100%; }
  .table-scroll.responsive-table { display: none; }
  .mobile-card { display: grid; gap: 3px; padding: 9px 10px; border-bottom: 1px solid #eaf0f5; }
  .mobile-card .record-name { font-size: .94rem; color: var(--ink); text-decoration: none; font-weight: 720; }
  .mobile-card .record-name:hover { text-decoration: underline; }
  .mobile-card small { color: var(--muted); font-size: .78rem; }
  .detail-aside .detail-grid { grid-template-columns: 1fr 1fr; }
  .editor { padding: 12px 11px; }
  .editor-grid { grid-template-columns: 1fr; gap: 10px; }
  .kpis { gap: 7px; }
  .kpi { padding: 9px; }
  .kpi .tile-icon { width: 26px; height: 26px; border-radius: 6px; font-size: .81rem; }
  .kpi-label { font-size: .78rem; }
  .panel-head { padding: 12px 11px 9px; }
  .panel-body { padding: 0 11px 11px; }
  .quick-link { padding: 7px; font-size: .78rem; }
  .site-hero { align-items: flex-start; flex-direction: column; padding: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .sidebar,.topbar,.page-header .actions,.form-foot { display:none !important; } .app-shell { display:block; } .main { max-width:none; padding:0; } }
.chart-progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 12px; border: 0; overflow: hidden; background: #eaf0f5; color: #25a887; }
.chart-progress::-webkit-progress-bar { background: #eaf0f5; }
.chart-progress::-webkit-progress-value { border-radius: 12px; background: currentColor; }
.chart-progress::-moz-progress-bar { border-radius: 12px; background: currentColor; }
.chart-tone-1 { color: #659dd2; }
.chart-tone-2 { color: #7561af; }
.calendar-wrapper, .project-back { margin-bottom: 14px; }
.week-grid + .week-grid { border-top: 2px solid var(--line); }
.project-back { font-size: .86rem; color: var(--muted); }
.import-note { font-size: .81rem; }
.import-note summary { color: var(--accent-dark); cursor: pointer; }
.dialog-inner > .field { margin-top: 10px; }
.editor-extras { margin-top: 13px; }
.detail-aside > * + * { margin-top: 12px; }
.detail-actions { display: grid; gap: 6px; margin-top: 12px; }
.detail-actions .button { justify-content: start; white-space: normal; text-align: left; }
.project-links,.folder-list { list-style: none; padding: 0; margin: 0; }
.project-links li { display: flex; align-items: center; gap: 9px; justify-content: space-between; padding: 3px 0; }
.project-links a { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.folder-list { font-size: .84rem; color: var(--muted); padding-bottom: 9px; }
.upload-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-form .field { flex: 1 1 280px; }
.company-picker select, select.control { background-color: #fff; }
select.control, .company-picker select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 6 5-6' fill='none' stroke='%23526578' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
select.control[multiple] { background-image: none; }
.activity-copy .row-link { text-decoration: none; }
.activity-copy .row-link:hover { text-decoration: underline; }
.signature-control { grid-column: 1/-1; display: grid; gap: 5px; max-width: 590px; }
.signature-pad { width: 100%; display: block; aspect-ratio: 450 / 136; border: 1px dashed #97aebf; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.month-counters { display: flex; flex-wrap: wrap; gap: 12px 27px; padding: 12px 15px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.month-counters strong, .month-counters small { display: block; }
.month-counters strong { color: var(--ink); }
.month-counters small { color: var(--muted); font-size: .8rem; }
@media (max-width:540px) {
  .topbar .crumb { display: none; }
  .topbar-right { flex-shrink: 0; }
  .company-picker select { min-width: min(45vw,146px); max-width: min(46vw,190px); }
}
@media (max-width:360px) { .env-badge { padding-inline: 6px; font-size: .66rem; } }
