:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  color: #18263b;
  background: #f4f7fb;
  --ink: #18263b;
  --muted: #516178;
  --line: #e1e8f0;
  --surface: #fff;
  --nav: #101d31;
  --teal: #087f77;
  --aqua: #58e4ce;
  --shadow: 0 1px 2px #172a4b0a, 0 6px 24px #223f6d06;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #0aa99d; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, strong, a, p, dd { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 3vw, 2.22rem); line-height: 1.14; letter-spacing: -.04em; }
h2 { font-size: 1.06rem; letter-spacing: -.018em; }
h3 { font-size: 1rem; line-height: 1.5; }
p { line-height: 1.55; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

.shell {
  --sidebar-width: 250px;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.sidebar {
  position: sticky; top: 0; height: 100dvh; background: var(--nav); color: #c2cfe1;
  display: flex; flex-direction: column; padding: 17px 15px 12px; gap: 13px; z-index: 8;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 5px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: #f2f7ff; font-size: 1.12rem; font-weight: 750; white-space: nowrap; letter-spacing: -.035em; }
.brand img { display: block; width: auto; height: 22px; }
.brand-divider { color: #9bb0c5; font-weight: 400; }
.brand-accent { color: var(--aqua); }
.workspace {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px;
  border: 1px solid #61738c3b; background: #ffffff07; border-radius: 11px;
}
.workspace-mark { font-size: .69rem; display: grid; width: 32px; height: 32px; flex: none; place-items: center; color: #a6f8e9; background: #255451; border-radius: 9px; font-weight: 740; }
.workspace strong, .workspace small, .profile strong, .profile small { display: block; }
.workspace strong { color: #eaf1fa; font-size: .74rem; }
.workspace small, .profile small { font-size: .72rem; color: #a6b7ce; margin-top: 3px; }
.sidebar nav { display: grid; gap: 1px; align-content: start; overflow: auto; }
.nav-section { color: #a4b4cc; font-size: .69rem; font-weight: 690; text-transform: uppercase; letter-spacing: .09em; padding: 4px 11px 3px; }
.nav-section:not(:first-child) { margin-top: 7px; }
.sidebar nav a { display: flex; gap: 9px; align-items: center; min-height: 35px; padding: 5px 11px; border-radius: 8px; font-size: .86rem; font-weight: 560; }
.sidebar nav a:hover { background: #26394e; color: white; }
.sidebar nav a[aria-current] { background: #183a43; color: #93f5e3; box-shadow: inset 3px 0 #49ddca; }
.sidebar nav a svg { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; padding: 8px 3px 1px; border-top: 1px solid #ffffff20; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile strong { font-size: .82rem; color: white; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #29405e; color: #c7dbf3; display: grid; place-items: center; flex: none; }
.avatar svg { width: 17px; height: 17px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid transparent; border-radius: 9px; color: inherit; background: transparent; }
.icon-button:hover { background: #52688720; }
.close-sidebar, .collapse-sidebar, .expand-sidebar { display: none; }
.js-sidebar .collapse-sidebar { width: 31px; height: 35px; }
.expand-sidebar { border-color: var(--line); color: var(--muted); }
.shade, .mobile-nav { display: none; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 20; padding: 10px; background: white; }
.skip:focus { top: 12px; }

.topbar {
  display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px clamp(15px, 3vw, 38px); background: white; border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: .82rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.topbar-start { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.account-top { border-color: var(--line); color: var(--muted); padding: 0; }
.account-top .avatar { width: 30px; height: 30px; background: #edf3fa; color: #3a5977; }
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main-frame { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: 30px clamp(15px, 3vw, 38px) 34px; min-width: 0; }
.platform-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  max-width: 1500px; margin-inline: auto; padding: 14px clamp(15px, 3vw, 38px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px;
  font-size: .78rem; line-height: 1.5;
}
.footer-signature { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.footer-signature strong { color: #087169; }
.footer-city { white-space: nowrap; }
.heading p { margin-top: 8px; color: var(--muted); font-size: .93rem; }
.main > .heading, .page-heading { margin-bottom: 23px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.button {
  background: white; display: inline-flex; width: fit-content; min-height: 39px; align-items: center;
  justify-content: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 8px; font-weight: 660; font-size: .83rem; color: #284058; text-align: center;
}
.button svg { width: 16px; height: 16px; }
.button:hover { background: #f0f5fa; border-color: #adbdce; }
.button.primary { background: #087a73; color: white; border-color: #087a73; }
.button.primary:hover { background: #05625d; border-color: #05625d; }
.button.full { width: 100%; justify-content: space-between; min-height: 45px; }
.subtle-link { color: #086d67; font-weight: 690; font-size: .82rem; display: inline-flex; align-items: center; gap: 5px; }
.subtle-link:hover, .project-name:hover, .timeline-table a:hover { text-decoration: underline; }
.subtle-link svg { height: 15px; width: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.main > .card, .dashboard-panels, .detail-panels { margin-bottom: 18px; }
.section-head { min-height: 58px; padding: 16px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head p { font-size: .83rem; color: var(--muted); margin-top: 4px; }
.inner { padding: 0 19px 19px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 14px 14px 15px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 34px; color: #42546c; font-weight: 680; font-size: .84rem; }
.stat-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.stat-icon svg { width: 18px; height: 18px; }
.stat > strong { display: block; font-size: 1.92rem; letter-spacing: -.045em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat > small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.dashboard-panels, .detail-panels { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.bars { display: grid; padding: 0 19px 18px; gap: 9px; }
.bar-row > div { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; gap: 12px; margin-bottom: 3px; }
.bar-row strong { font-size: .78rem; }
progress { display: block; appearance: none; width: 100%; height: 7px; border: none; border-radius: 20px; background: #e9eff4; }
progress::-webkit-progress-bar { background: #e9eff4; border-radius: 20px; }
progress::-webkit-progress-value { background: #0b9b8e; border-radius: 20px; }
progress::-moz-progress-bar { background: #0b9b8e; border-radius: 20px; }
.deliveries { padding: 0 19px 12px; }
.deliveries a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #edf1f5; font-size: .83rem; }
.deliveries a:hover strong { color: #087a73; }
.deliveries a > span:nth-child(2) { flex: 1; min-width: 0; }
.deliveries small { display: block; color: var(--muted); margin-top: 3px; }
.date-chip { flex: none; min-width: 44px; padding: 5px; border-radius: 8px; text-align: center; background: #edf9f7; color: #0c625b; }
.empty { min-height: 155px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 19px; }
.empty p { color: var(--muted); font-size: .84rem; max-width: 32ch; }
.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #edf4fa; color: #53718a; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 8px; font-size: .72rem; font-weight: 670; line-height: 1.18; }
.badge::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.neutral { background: #eef2f7; color: #495d75; }
.blue { background: #e9f1ff; color: #31599a; }
.teal { background: #ddf8f4; color: #066d64; }
.green { background: #e1f6eb; color: #1c6b49; }
.red { background: #ffebeb; color: #a43645; }
.amber { background: #fff0d8; color: #825414; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
thead { background: #f5f8fb; }
th, td { text-align: left; padding: 11px 11px; border-top: 1px solid #e8edf3; vertical-align: middle; }
thead th { color: #52647a; white-space: nowrap; font-size: .74rem; font-weight: 690; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
tbody tr:hover { background: #f9fbfd; }
.project-table { min-width: 700px; }
.project-table td:nth-child(4), .project-table td:nth-child(5) { white-space: nowrap; }
.project-name { display: grid; gap: 3px; min-width: 145px; }
.project-name small, .project-code, .kanban-project > small { color: #087169; font-weight: 680; font-size: .72rem; }
.project-name strong { font-weight: 680; line-height: 1.3; }
.regular-table { min-width: 500px; }
.change-table { table-layout: fixed; }
.change-table th:first-child { width: 21%; }

.tabs { display: flex; flex-wrap: wrap; gap: 2px 13px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.tabs a { padding: 9px 7px; font-weight: 650; font-size: .85rem; color: #50617a; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: #087169; border-color: #0a9488; }
.filter-card { padding: 14px 16px; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3,minmax(105px, 1fr)) auto; gap: 10px; align-items: end; }
.search-field > div { position: relative; }
.search-field input { padding-left: 36px; }
.search-field svg { position: absolute; top: 10px; left: 10px; color: #5a7089; width: 17px; height: 17px; pointer-events: none; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 12px; overflow: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.board-column { background: #ecf1f7; border: 1px solid #dfe7f1; border-radius: 12px; padding: 10px; min-height: 180px; scroll-snap-align: start; }
.column-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 0 10px; }
.column-head h2 { font-size: .78rem; min-width: 0; }
.column-head span { flex: none; padding: 3px 6px; border-radius: 12px; background: #e0e8f2; color: #385572; font-size: .73rem; font-weight: 720; }
.column-empty { font-size: .79rem; text-align: center; color: var(--muted); padding: 14px 4px; }
.kanban-card { display: grid; gap: 8px; background: white; border: 1px solid #dce6ef; border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.kanban-card:hover, .kanban-card:focus-within { border-color: #42a79d; }
.kanban-project { display: grid; min-width: 0; gap: 8px; }
.kanban-card strong { font-size: .85rem; line-height: 1.35; }
.kanban-project div { display: flex; gap: 5px; flex-wrap: wrap; }
.kanban-info { color: var(--muted); font-size: .73rem; display: flex; gap: 4px; align-items: center; }
.kanban-info svg { width: 13px; height: 13px; }
.timeline-table { min-width: 695px; }
.timeline-table th:not(:first-child) { text-align: center; }
.timeline-table th:first-child { min-width: 190px; max-width: 240px; }
.timeline-table .week-cell { min-width: 57px; padding-inline: 3px; }
.week-fill { display: block; border-radius: 9px; height: 9px; background: #8dd9ce; }
.week-fill.milestone { position: relative; background: #62c6b7; }
.week-fill.milestone::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #04685e; position: absolute; right: 6px; top: -1px; }

.form-card { display: grid; padding: 20px; gap: 17px; max-width: 960px; }
.form-card.narrow { max-width: 590px; }
.form-card h2:not(:first-child) { padding-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid.date-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span, .field > label, .check-field { font-weight: 650; font-size: .82rem; color: #35485f; }
.field small, .muted { color: var(--muted); font-size: .83rem; }
.required { color: #a43645; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-width: 0; border: 1px solid #cad6e2; border-radius: 8px;
  color: var(--ink); background: white; padding: 8px 10px; min-height: 39px; font-size: .87rem;
}
input[type=file] { padding: 7px; }
input::file-selector-button { border: 0; background: #e4eef7; padding: 5px 8px; border-radius: 5px; margin-right: 5px; color: #26425c; cursor: pointer; }
textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.check-field, .inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form { align-items: end; }
.form-buttons { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.alert { border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 12px; margin-bottom: 13px; font-size: .87rem; line-height: 1.35; }
.alert.error { color: #913245; background: #ffe8ed; border: 1px solid #f8c6d2; }
.alert.success { color: #14694a; background: #e3f7ee; border: 1px solid #bce5d2; }
.project-back { margin-bottom: 11px; }
.project-meta, .record-meta, .add-items { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.project-meta { margin-bottom: 9px; }
.project-heading { align-items: flex-end; }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.details dt { color: var(--muted); font-size: .76rem; margin-bottom: 4px; }
.details dd { font-size: .88rem; font-weight: 600; white-space: pre-wrap; }
.inline-details { grid-template-columns: repeat(auto-fit,minmax(115px,1fr)); }
.task-summary { display: flex; align-items: center; gap: 8px; margin: 15px 0 8px; font-size: .86rem; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.muted-form { margin-bottom: 16px; }
.record-list { display: grid; padding: 0 19px 19px; gap: 10px; }
.record { padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 9px; }
.record-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.record-title .button { min-height: 33px; }
.record-meta { font-size: .76rem; color: var(--muted); }
.record > p, .result { font-size: .87rem; }
.result { border-left: 3px solid #8ed5ca; background: #f0faf8; padding: 8px 10px; border-radius: 5px; }
.result strong { font-size: .77rem; color: #146d65; }
.attachments { list-style: none; padding: 0 19px 13px; margin: 0; display: grid; gap: 6px; }
.record .attachments { padding: 0; }
.attachments a { display: flex; align-items: center; gap: 9px; color: #087169; font-size: .84rem; padding: 7px; background: #f4f8fc; border-radius: 8px; }
.attachments a:hover { text-decoration: underline; }
.attachments small { margin-left: auto; white-space: nowrap; color: var(--muted); }
.audit-list { padding: 5px 18px 16px; }
.audit-event { padding: 0; border-bottom: 1px solid var(--line); }
.audit-event summary { display: flex; align-items: center; cursor: pointer; gap: 11px; padding: 10px 0; }
.audit-event summary::after { content: "+"; color: #087169; font-weight: 700; }
.audit-event[open] summary::after { content: "−"; }
.audit-icon { background: #edf3fa; color: #45617c; width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.audit-icon svg { width: 16px; height: 16px; }
.audit-event-title { flex: 1; font-size: .86rem; }
.audit-event-title small, .audit-event time { display: block; color: var(--muted); font-size: .74rem; }
.audit-body { padding: 4px 0 12px; }

.auth { display: grid; grid-template-columns: minmax(310px, .85fr) minmax(410px, 1.15fr); grid-template-rows: 1fr auto; min-height: 100dvh; background: white; }
.auth-side { background: radial-gradient(ellipse at 100% 100%, #185c61 0, #101d31 60%); position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px,6vw,72px); color: white; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth .platform-footer { grid-column: 1 / -1; }
.auth .brand { gap: clamp(8px, 1vw, 14px); font-size: clamp(1.25rem, 2vw, 1.9rem); }
.auth .brand img { height: clamp(32px, 3.3vw, 46px); }
.auth-message { padding-bottom: clamp(40px,12vh,160px); }
.eyebrow { color: #8beedf; font-size: .75rem; font-weight: 690; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.auth-message h1 { font-size: clamp(2rem,4.5vw,4.1rem); max-width: 12ch; line-height: 1.04; }
.auth-message h1 + p { margin-top: 16px; color: #c7dfec; max-width: 34ch; }
.auth-decoration { position: absolute; height: 440px; width: 440px; z-index: -1; right: -190px; bottom: -215px; transform: rotate(-31deg); }
.auth-decoration span { position: absolute; inset: 0; border: 1px solid #68cbcc44; border-radius: 60px; }
.auth-decoration span:nth-child(2) { inset: 35px; }
.auth-decoration span:nth-child(3) { inset: 70px; }
.auth-main { display: grid; place-items: center; padding: 28px; }
.auth-content { width: min(100%,365px); }
.auth-content.wide { width: min(100%,500px); }
.auth-content h2 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-content .muted { margin-bottom: 18px; }
.auth-brand { display: none; }
.auth .button { margin-top: 4px; }
.password-control { position: relative; }
.password-control:has(.password-toggle:not([hidden])) input { padding-inline-end: 46px; }
.password-toggle { position: absolute; inset: 50% 2px auto auto; transform: translateY(-50%); color: #486880; width: 41px; min-height: 35px; height: calc(100% - 4px); }
.password-toggle span { display: grid; place-items: center; }
.remember-choice { align-items: flex-start; gap: 10px; padding: 3px 0; cursor: pointer; line-height: 1.5; }
.remember-choice input { accent-color: #087a73; width: 17px; height: 17px; flex: none; margin: 1px 0 0; }
.remember-choice small { display: block; color: var(--muted); font-size: .74rem; font-weight: 450; }

@media (max-width: 1160px) {
  .shell { --sidebar-width: 220px; }
  .sidebar-top .brand { gap: 5px; font-size: 1.05rem; }
  .sidebar { padding-inline: 12px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)) auto; }
  .filters .search-field { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.date-grid { grid-template-columns: repeat(2,minmax(0, 1fr)); }
}
@media (min-width: 781px) {
  .js-sidebar .collapse-sidebar { display: grid; }
  .sidebar { width: var(--sidebar-width); }
  .sidebar-motion .shell { transition: grid-template-columns .38s cubic-bezier(.25,.75,.3,1); }
  .sidebar-motion .sidebar { animation: sidebar-expand .43s both; }
  .sidebar-collapsed .shell { grid-template-columns: 0 minmax(0,1fr); }
  .sidebar-collapsed .sidebar { visibility: hidden; transform: translateX(-100%); }
  .sidebar-motion.sidebar-collapsed .sidebar {
    animation: sidebar-retract .38s both;
    transition: visibility 0s .38s;
  }
  .sidebar-collapsed .expand-sidebar { display: grid; }
  .sidebar-collapsed .main:has(.board) { max-width: none; padding-inline: clamp(14px,2vw,30px); }
  .sidebar-collapsed .board { grid-auto-flow: row; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
}
@keyframes sidebar-expand {
  0% { transform: translateX(-100%); animation-timing-function: cubic-bezier(.2,.75,.32,1); }
  73% { transform: translateX(8px); }
  87% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
@keyframes sidebar-retract {
  0% { transform: translateX(0); }
  19% { transform: translateX(6px); animation-timing-function: cubic-bezier(.45,0,.75,.38); }
  100% { transform: translateX(-100%); }
}
@media (min-width: 960px) {
  .sidebar-collapsed .board { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .sidebar-collapsed .board-column { padding: 8px; }
  .sidebar-collapsed .kanban-card { padding: 8px; }
}
@media (min-width: 1280px) {
  .board { grid-auto-flow: row; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
  .board-column, .kanban-card { padding: 8px; }
}
@media (max-width: 780px) {
  .shell { display: block; min-height: 100dvh; }
  .sidebar { visibility: hidden; position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(87vw,310px); transform: translateX(-100%); transition: transform .19s ease, visibility .19s; padding-top: max(17px, env(safe-area-inset-top)); padding-bottom: max(14px,env(safe-area-inset-bottom)); }
  .menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .close-sidebar { display: grid; }
  .shade { display: block; position: fixed; inset: 0; background: #0c1b3478; z-index: 7; }
  .mobile-nav { display: flex; align-items: stretch; justify-content: space-evenly; position: fixed; inset: auto 0 0; z-index: 6; background: white; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #19365412; padding: 3px 5px max(3px,env(safe-area-inset-bottom)); }
  .mobile-nav a, .mobile-nav button { min-width: 0; flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 47px; border: 0; border-radius: 8px; background: white; color: #52637a; font-size: .67rem; font-weight: 650; }
  .mobile-nav a[aria-current] { color: #076f66; background: #e9f8f6; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .main { padding-bottom: 24px; padding-top: 22px; }
  .main-frame { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-signature { justify-content: center; }
  .topbar { min-height: 58px; }
  .breadcrumb > span { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 32px 24px; background: radial-gradient(ellipse at 50% 0%, #eaf9f7 0, white 57%); }
  .auth-brand { display: block; margin-bottom: 35px; text-align: center; }
  .auth-brand .brand { gap: 10px; font-size: clamp(1.22rem, 6vw, 1.62rem); }
  .auth-brand .brand img { height: clamp(32px, 9vw, 41px); }
  .auth-brand .brand-divider { color: #5b748c; }
  .auth-brand .brand-accent { color: #087169; }
  .auth .form-stack input:not([type=checkbox]) { min-height: 46px; }
  .auth .button.full { min-height: 48px; }
}
@media (max-width: 560px) {
  .dashboard-panels, .detail-panels { grid-template-columns: minmax(0,1fr); }
  .stats { gap: 8px; }
  .stat { padding: 10px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-top { font-size: .75rem; }
  .stat > strong { font-size: 1.6rem; }
  .stat > small { font-size: .7rem; }
  .section-head { padding: 14px; }
  .inner, .bars, .record-list, .deliveries, .audit-list { padding-inline: 14px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board { grid-auto-columns: minmax(205px, 78%); }
  .form-card { padding: 14px; }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .project-table, .regular-table { min-width: 0; }
  .project-table thead, .regular-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .project-table tbody, .regular-table tbody { display: grid; gap: 9px; padding: 0 10px 10px; }
  .project-table tbody tr, .regular-table tbody tr { display: grid; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; grid-template-columns: minmax(0,1fr); }
  .project-table td, .regular-table td, .regular-table tbody th { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .project-table td:first-child, .regular-table tbody th { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  [data-label]::before { content: attr(data-label); color: var(--muted); font-size: .75rem; font-weight: 630; }
  .project-table td:first-child::before { display: none; }
  .change-table td { display: block; }
  .change-table td::before { display: block; margin-bottom: 4px; }
  .audit-event summary { gap: 7px; }
}
@media (max-width: 380px) {
  .form-grid { grid-template-columns: 1fr; }
  .topbar-actions { gap: 4px; }
  .account-top { width: 34px; height: 34px; }
  .account-top .avatar { width: 28px; height: 28px; }
  .main { padding-inline: 10px; }
  .footer-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { transition: none !important; animation: none !important; }
}
@media print {
  body, :root { background: white; }
  .shell { display: block; }
  .mobile-nav, .topbar, .sidebar, .button, .skip, .inline-form, .platform-footer { display: none !important; }
  .main { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.account-card { min-width: 0; }
.account-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 2.5vw, 25px);
  border-radius: 13px 13px 0 0;
  color: white;
  background: linear-gradient(115deg, #101d31, #19494d);
}
.account-identity h2 { font-size: 1.25rem; }
.account-identity p { margin: 4px 0 8px; color: #d0e4ef; overflow-wrap: anywhere; font-size: .86rem; }
.avatar-large {
  width: 76px;
  height: 76px;
  border: 2px solid #ffffff88;
  background: #245a62;
  color: #b5f3ea;
}
.avatar-large svg { width: 35px; height: 35px; }
.account-content, .account-security { display: grid; align-content: start; gap: 13px; padding: clamp(16px, 2.5vw, 24px); }
.account-app { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; grid-column: 1 / -1; padding: 16px clamp(16px, 2.5vw, 24px); }
.account-card-title { display: flex; align-items: center; gap: 11px; }
.account-card-title p { margin-top: 5px; color: var(--muted); font-size: .83rem; }
.account-section-icon { flex: none; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #def4ef; color: #086c63; }

.kanban-move {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid #e2eaf2;
  border-radius: 6px;
  background: #f5f9fc;
  color: #365471;
  font-weight: 650;
  font-size: .75rem;
  cursor: grab;
}
.kanban-move:hover { color: #087169; border-color: #62b4ab; }
.kanban-move svg { width: 15px; height: 15px; }
.kanban-card.is-dragging { opacity: .48; }
.board-column.is-drop-target { border-color: #078c7e; background: #dbf4ee; box-shadow: inset 0 0 0 1px #078c7e; }
.move-dialog { width: min(440px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 55px #101d3140; padding: 19px; color: var(--ink); }
.move-dialog::backdrop { background: #101d3166; }
.move-dialog form { display: grid; gap: 12px; }
.move-dialog [data-move-title] { overflow-wrap: anywhere; }
@media (max-width: 900px) and (min-width: 781px), (max-width: 600px) {
  .account-layout { grid-template-columns: minmax(0,1fr); }
}
@media (pointer: coarse) {
  .kanban-move { min-height: 42px; cursor: pointer; }
}
