:root {
  --ink: #18252b;
  --muted: #68777c;
  --line: #d9e1df;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --teal: #0d6f72;
  --teal-dark: #075356;
  --teal-soft: #e4f2ef;
  --blue: #3964a6;
  --blue-soft: #e9effa;
  --amber: #a46714;
  --amber-soft: #fff1db;
  --red: #ae4740;
  --red-soft: #fce9e6;
  --shadow: 0 10px 28px rgba(27, 51, 53, 0.06);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 20; padding: 8px 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { display: flex; min-height: 100vh; }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: flex-end; padding: 0 max(10vw, 42px) 0 48px; overflow: hidden; background: #101f51 url("/assets/login-tech-bg.png") center / cover no-repeat; }
.login-frame { width: 430px; max-width: 100%; min-width: 0; padding: 0; position: relative; }
.login-form-shell { position: relative; padding: 42px 30px 44px; border: 1px solid #0ba1f8; background: rgba(11, 161, 248, .1); box-shadow: 0 0 30px rgba(0, 0, 0, .1); }
.login-form-shell::before, .login-form-shell::after { content: ""; position: absolute; width: 29px; height: 29px; pointer-events: none; }
.login-form-shell::before { left: -2px; top: -2px; border-top: 3px solid #0ba1f8; border-left: 3px solid #0ba1f8; }
.login-form-shell::after { right: -2px; bottom: -2px; border-right: 3px solid #0ba1f8; border-bottom: 3px solid #0ba1f8; }
.login-form-shell h1 { margin: 0 0 25px; color: #00bef7; text-align: center; font-size: 20px; font-weight: 400; }
.login-form { display: grid; gap: 15px; }
.login-input { min-height: 49px; display: flex; align-items: center; margin: 0; border: 2px solid rgba(11, 161, 248, .4); background: rgba(6, 135, 205, .3); }
.login-input-icon { width: 40px; flex: 0 0 40px; color: rgba(255, 255, 255, .35); text-align: center; font-family: "Segoe UI Symbol", sans-serif; font-size: 15px; }
.login-input input { width: 100%; height: 45px; min-width: 0; padding: 0 14px 0 0; border: 0; outline: 0; color: rgba(255, 255, 255, .9); background: transparent; font-size: 13px; }
.login-input input::placeholder { color: rgba(255, 255, 255, .35); }
.login-captcha { padding-right: 0; }
.captcha-image { width: 100px; height: 30px; display: block; margin-right: 0; cursor: pointer; background: #123b69; }
.login-remember { display: flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .42); font-size: 13px; }
.login-remember input { accent-color: #0ba1f8; }
.login-submit { width: 100%; min-height: 45px; margin-top: 0; border: 0; border-radius: 4px; color: #fff; background: #0ba1f8; font-size: 15px; cursor: pointer; }
.login-submit:hover { background: #28b1fa; }
.login-error { min-height: 0; color: #ffd8d8; font-size: 12px; }
.sidebar { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; background: #18373a; color: #dbeae7; padding: 26px 16px 18px; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 8px 32px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #90c6bc; color: #e9fcf7; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 15px; letter-spacing: 0; }
.brand-block span { margin-top: 4px; color: #9db9b6; font-size: 11px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 0; border-left: 3px solid transparent; color: #b8ceca; background: transparent; text-align: left; font-size: 13px; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: #234b4d; }
.nav-item.is-active { border-left-color: #8dd2c5; color: #fff; background: #245256; }
.nav-symbol { width: 25px; color: #80aaa6; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-item.is-active .nav-symbol { color: #b5eee0; }
.sidebar-footer { margin-top: auto; padding: 20px 8px 0; border-top: 1px solid #31575a; color: #9db9b6; }
.connection-dot { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.connection-dot span { width: 7px; height: 7px; border-radius: 50%; background: #78d4ad; box-shadow: 0 0 0 3px rgba(120, 212, 173, .16); }
.sidebar-footer small { display: block; margin-top: 11px; font-size: 10px; color: #769693; }
.main-content { width: min(100%, 1480px); min-width: 0; margin: 0 auto; padding: 28px 42px 52px; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.breadcrumb span { padding: 0 6px; color: #b4c1be; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.1; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 1.2; letter-spacing: 0; }
h3 { font-size: 14px; }
.top-actions, .filter-row, .form-actions { display: flex; align-items: center; gap: 10px; }
.last-updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
.user-chip { max-width: 150px; overflow: hidden; padding: 0 4px; color: var(--teal-dark); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 650; transition: background .15s, border-color .15s, color .15s; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover, .button-primary:focus-visible { background: var(--teal-dark); }
.button-quiet { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-quiet:hover, .button-quiet:focus-visible { border-color: var(--teal); color: var(--teal-dark); }
.text-button { padding: 4px 0; border: 0; color: var(--teal); background: transparent; font-size: 12px; font-weight: 650; }
.text-button:hover, .text-button:focus-visible { color: var(--teal-dark); text-decoration: underline; }
.page-status { min-height: 28px; padding-top: 12px; color: var(--muted); font-size: 12px; }
.page-status.is-error { color: var(--red); }
.view { display: block; }
.is-hidden { display: none !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.metric-card { min-height: 132px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal); box-shadow: var(--shadow); }
.metric-amber { border-top-color: #d4973d; }
.metric-red { border-top-color: #d36d60; }
.metric-blue { border-top-color: #6d8fc9; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 11px; font-size: 33px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric-foot { margin-top: 17px; color: var(--muted); font-size: 11px; }
.metric-foot strong { color: var(--ink); font-size: 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; }
.panel-kicker { display: block; margin-bottom: 6px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.panel-caption { color: var(--muted); font-size: 11px; }
.chart-panel { min-height: 245px; }
.status-bars { display: grid; gap: 17px; padding: 15px 22px 23px; }
.status-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 62px; align-items: center; gap: 12px; font-size: 12px; }
.status-label { color: var(--muted); }
.bar-track { height: 10px; overflow: hidden; background: #edf1ef; }
.bar-fill { height: 100%; min-width: 2px; background: var(--teal); }
.bar-fill.amber { background: #d4973d; }
.bar-fill.red { background: #cf6558; }
.bar-width-0 { width: 0; min-width: 0; }
.bar-width-5 { width: 5%; } .bar-width-10 { width: 10%; } .bar-width-15 { width: 15%; } .bar-width-20 { width: 20%; }
.bar-width-25 { width: 25%; } .bar-width-30 { width: 30%; } .bar-width-35 { width: 35%; } .bar-width-40 { width: 40%; }
.bar-width-45 { width: 45%; } .bar-width-50 { width: 50%; } .bar-width-55 { width: 55%; } .bar-width-60 { width: 60%; }
.bar-width-65 { width: 65%; } .bar-width-70 { width: 70%; } .bar-width-75 { width: 75%; } .bar-width-80 { width: 80%; }
.bar-width-85 { width: 85%; } .bar-width-90 { width: 90%; } .bar-width-95 { width: 95%; } .bar-width-100 { width: 100%; }
.status-number { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.compact-list { padding: 0 22px 16px; }
.compact-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf1ef; }
.compact-item:first-child { border-top: 0; }
.compact-title { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.compact-meta { margin-top: 5px; color: var(--muted); font-size: 11px; }
.table-panel { margin-top: 18px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
th { padding: 11px 22px; color: var(--muted); background: #f7f9f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; white-space: nowrap; }
td { padding: 14px 22px; border-bottom: 1px solid #edf1ef; color: var(--ink); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfc; }
.cell-primary { font-weight: 650; }
.cell-secondary { margin-top: 4px; color: var(--muted); font-size: 11px; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 3px; font-size: 11px; white-space: nowrap; }
.status-normal, .status-finish, .status-repaired { color: #236d5b; background: var(--teal-soft); }
.status-repairing, .status-pending { color: #8d5b13; background: var(--amber-soft); }
.status-scrapped { color: #99453f; background: var(--red-soft); }
.status-registered { color: #3f5f9a; background: var(--blue-soft); }
.status-overdue { color: #99453f; background: var(--red-soft); }
.status-cancelled { color: var(--muted); background: #eef1f0; }
.row-actions { display: flex; justify-content: end; gap: 8px; white-space: nowrap; }
.small-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--teal-dark); background: #fff; font-size: 11px; }
.row-actions a.small-action { display: inline-flex; align-items: center; text-decoration: none; }
.small-action:hover, .small-action:focus-visible { border-color: var(--teal); background: var(--teal-soft); }
.small-action.danger:hover, .small-action.danger:focus-visible { border-color: #d36d60; background: var(--red-soft); }
.empty-state, .error-state { padding: 35px 22px; color: var(--muted); text-align: center; font-size: 12px; }
.error-state { color: var(--red); }
.view-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 9px 0 17px; }
.view-toolbar h2 { font-size: 23px; }
.filter-row select, .search-field input { height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font-size: 12px; outline: none; }
.filter-row select:focus, .search-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,111,114,.12); }
.search-field input { width: 220px; }
.table-summary { min-height: 40px; padding: 13px 22px 0; color: var(--muted); font-size: 11px; }
.pagination { display: flex; justify-content: end; gap: 6px; padding: 14px 22px 18px; }
.page-button { min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #fff; font-size: 11px; }
.page-button.is-current { border-color: var(--teal); color: #fff; background: var(--teal); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }
.modal { width: min(520px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; overflow-y: auto; background: transparent; }
.modal-wide { width: min(720px, calc(100% - 30px)); }
.modal::backdrop { background: rgba(18, 37, 39, .46); }
.modal-card { padding: 23px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 55px rgba(18, 37, 39, .18); }
.modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.modal-subtitle { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.icon-button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #fff; font-size: 22px; line-height: 1; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--teal); color: var(--teal-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 0; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 13px; outline: none; }
.field input, .field select { height: 40px; padding-top: 0; padding-bottom: 0; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,111,114,.12); }
.field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.field-check { display: flex; align-items: center; align-self: end; min-height: 40px; gap: 9px; }
.field-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.field-check span { color: var(--ink); }
.dynamic-fields { display: grid; gap: 16px; padding: 22px 0; }
.dynamic-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.dynamic-field input, .dynamic-field select, .dynamic-field textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 13px; outline: none; }
.dynamic-field input:focus, .dynamic-field select:focus, .dynamic-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,111,114,.12); }
.dynamic-field-check { display: flex; align-items: center; gap: 9px; }
.dynamic-field-check input { width: 18px; min-height: 18px; accent-color: var(--teal); }
.form-actions { justify-content: end; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-card { width: min(650px, 100%); }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 0; }
.detail-meta-item { padding: 10px 12px; background: #f7f9f8; }
.detail-meta-label { color: var(--muted); font-size: 10px; }
.detail-meta-value { margin-top: 5px; font-size: 12px; font-weight: 650; }
.detail-section { border-top: 1px solid var(--line); padding-top: 18px; }
.timeline { display: grid; gap: 0; margin-top: 13px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0 10px 14px; border-left: 2px solid #c8ddd8; }
.timeline-item::before { content: ""; position: absolute; top: 14px; left: -5px; width: 7px; height: 7px; background: var(--teal); }
.timeline-time { color: var(--muted); font-size: 11px; }
.timeline-name { font-size: 12px; font-weight: 650; }
.timeline-content { margin-top: 4px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: min(360px, calc(100% - 44px)); padding: 11px 14px; border: 1px solid #b9d8d0; color: #1c5e50; background: #f1fbf7; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; font-size: 12px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.management-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 18px; border: 1px solid var(--line); background: var(--surface); }
.management-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 64px; padding: 14px 20px; border-left: 1px solid var(--line); }
.management-summary > div:first-child { border-left: 0; }
.management-summary span { color: var(--muted); font-size: 12px; }
.management-summary strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.management-panel { margin-top: 18px; }
.management-heading { align-items: end; }
.management-heading .filter-row { flex-wrap: wrap; justify-content: end; }
.management-table { min-width: 1080px; }
.mode-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.mode-tabs { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.mode-tab { min-height: 36px; padding: 0 15px; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 12px; }
.mode-tab:first-child { border-left: 0; }
.mode-tab.is-active { color: #fff; background: var(--teal); }
.form-section { padding: 19px 0; border-top: 1px solid var(--line); }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.form-section-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.repeat-editor { display: grid; gap: 10px; }
.repeat-row { display: grid; align-items: end; gap: 10px; padding: 12px; border: 1px solid #e5ebe9; background: #fafcfb; }
.assignment-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.plan-field-row { grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 95px minmax(120px, 1fr) auto auto; }
.repeat-row .field-check { align-self: end; }
.repeat-remove { margin-bottom: 5px; }
.attachment-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.attachment-list { display: grid; gap: 0; min-height: 90px; }
.attachment-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1ef; }
.attachment-item:last-child { border-bottom: 0; }
.attachment-name { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.attachment-meta { margin-top: 5px; color: var(--muted); font-size: 10px; }
.attachment-actions { display: flex; gap: 7px; }

@media (max-width: 1100px) {
  .sidebar { width: 192px; flex-basis: 192px; }
  .main-content { padding: 25px 27px 45px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: auto; padding: 14px 16px 10px; }
  .brand-block { padding: 0 3px 12px; }
  .attachment-upload { grid-template-columns: 1fr; }
  .nav-list { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 3px; }
  .nav-item { justify-content: center; gap: 5px; padding: 9px 2px; border-left: 0; border-bottom: 3px solid transparent; text-align: center; font-size: 12px; white-space: nowrap; }
  .nav-item.is-active { border-bottom-color: #8dd2c5; border-left-color: transparent; }
  .nav-symbol { display: none; }
  .sidebar-footer { display: none; }
  .main-content { padding: 20px 15px 34px; }
  .topbar { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 18px; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .last-updated { width: 100%; }
  .user-chip { margin-right: auto; }
  h1 { font-size: 26px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 118px; padding: 14px; }
  .metric-value { font-size: 28px; }
  .panel-heading { padding-left: 15px; padding-right: 15px; }
  .status-bars, .compact-list { padding-left: 15px; padding-right: 15px; }
  th { padding-left: 15px; padding-right: 15px; }
  td { padding-left: 15px; padding-right: 15px; }
  .view-toolbar { align-items: start; flex-direction: column; }
  .filter-row { width: 100%; flex-wrap: wrap; }
  .search-field { flex: 1 1 180px; }
  .search-field input { width: 100%; }
  .filter-row select { max-width: 100%; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .management-summary { grid-template-columns: 1fr; }
  .management-summary > div { border-top: 1px solid var(--line); border-left: 0; }
  .management-summary > div:first-child { border-top: 0; }
  .management-heading { align-items: start; flex-direction: column; }
  .management-heading .filter-row { width: 100%; justify-content: start; }
  .management-heading .search-field { flex-basis: 100%; }
  .plan-field-row { grid-template-columns: 1fr 1fr; }
  .plan-field-row .repeat-remove { justify-self: end; }
}
@media (max-width: 430px) {
  .login-screen { justify-content: center; padding: 16px; background-position: 35% center; }
  .login-frame { width: 430px; }
  .login-form-shell { padding: 34px 20px 36px; }
  .login-form-shell h1 { font-size: 18px; }
}

/* m8-compatible admin shell: dense AdminLTE/FastAdmin proportions and palette. */
:root {
  --ink: #333;
  --muted: #777;
  --line: #e5e5e5;
  --surface: #fff;
  --canvas: #ecf0f5;
  --teal: #3c8dbc;
  --teal-dark: #367fa9;
  --teal-soft: #e8f2f8;
  --blue: #3c8dbc;
  --blue-soft: #e8f2f8;
  --shadow: 0 1px 1px rgba(0,0,0,.08);
}
body { background: var(--canvas); font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif; }
.sidebar { width: 230px; flex-basis: 230px; padding: 0; background: #222d32; color: #b8c7ce; }
.brand-block { min-height: 50px; padding: 0 15px; gap: 9px; background: #367fa9; color: #fff; }
.brand-mark { width: 31px; height: 31px; border: 0; color: #fff; font-size: 11px; }
.brand-block strong { color: #fff; font-size: 15px; font-weight: 400; }
.brand-block span { display: none; }
.nav-list { gap: 0; padding-top: 10px; }
.nav-item { min-height: 44px; padding: 12px 15px; border-left: 3px solid transparent; color: #b8c7ce; font-size: 14px; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: #1e282c; }
.nav-item.is-active { border-left-color: #3c8dbc; color: #fff; background: #1e282c; }
.nav-symbol { width: 22px; color: #8aa4af; font-size: 11px; }
.nav-item.is-active .nav-symbol { color: #fff; }
.sidebar-footer { padding: 15px; border-top: 1px solid #37454a; color: #8aa4af; }
.main-content { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0 15px 35px; }
.topbar { min-height: 50px; align-items: center; margin: 0 -15px 15px; padding: 0 15px; border: 0; background: #3c8dbc; }
.breadcrumb { display: none; }
.topbar h1 { color: #fff; font-size: 18px; font-weight: 400; }
.top-actions { gap: 6px; }
.last-updated { color: rgba(255,255,255,.8); font-size: 11px; }
.user-chip { color: #fff; font-weight: 400; }
.top-actions .button { min-height: 32px; border-color: rgba(255,255,255,.3); color: #fff; background: transparent; font-size: 12px; font-weight: 400; }
.top-actions .button:hover, .top-actions .button:focus-visible { background: rgba(0,0,0,.12); }
.top-actions .button-primary { border-color: transparent; background: #00a65a; }
.page-status { min-height: 22px; padding-top: 0; }
.metric-grid { gap: 15px; margin: 0 0 15px; }
.metric-card { min-height: 104px; padding: 16px; border: 0; border-top: 0; box-shadow: var(--shadow); }
.metric-label { color: #777; font-size: 12px; }
.metric-value { margin-top: 8px; color: #333; font-size: 30px; }
.metric-foot { margin-top: 11px; font-size: 11px; }
.panel { border: 0; border-radius: 3px; box-shadow: var(--shadow); }
.panel-heading { padding: 15px; border-bottom: 1px solid #f0f0f0; }
.panel-kicker { margin-bottom: 4px; color: #999; font-size: 10px; letter-spacing: .4px; }
.panel-heading h2 { color: #444; font-size: 16px; font-weight: 400; }
.content-grid { gap: 15px; }
.chart-panel { min-height: 220px; }
.status-bars { gap: 12px; padding: 14px 15px 18px; }
.compact-list { padding: 0 15px 12px; }
.table-panel { margin-top: 15px; }
th { padding: 10px 15px; color: #666; background: #f5f5f5; border-color: #e5e5e5; font-size: 12px; font-weight: 600; }
td { padding: 11px 15px; border-color: #f0f0f0; font-size: 12px; }
tbody tr:hover td { background: #f8fbfd; }
.view-toolbar { padding: 0 0 15px; }
.view-toolbar h2 { color: #444; font-size: 20px; font-weight: 400; }
.button { min-height: 34px; border-radius: 3px; font-size: 12px; font-weight: 400; }
.button-primary { background: #3c8dbc; }
.button-primary:hover, .button-primary:focus-visible { background: #367fa9; }
.button-quiet { border-color: #d2d6de; color: #555; }
.filter-row select, .search-field input { height: 34px; border-color: #d2d6de; border-radius: 3px; font-size: 12px; }
.filter-row select:focus, .search-field input:focus { border-color: #3c8dbc; box-shadow: none; }
.search-field input { width: 240px; }
.status-badge { min-height: 22px; border-radius: 2px; }
.small-action { border-color: #d2d6de; color: #3c8dbc; background: #fff; }
.small-action:hover, .small-action:focus-visible { border-color: #3c8dbc; color: #367fa9; background: #f5fbff; }
.pagination { padding: 12px 15px 15px; }
.page-button { border-color: #d2d6de; }
.page-button.is-current { border-color: #3c8dbc; background: #3c8dbc; }
.management-summary { margin: 0 0 15px; border: 0; box-shadow: var(--shadow); }
.management-summary > div { min-height: 58px; padding: 12px 15px; border-color: #f0f0f0; }
.mode-tabs { border-color: #d2d6de; }
.mode-tab { min-height: 34px; }
.mode-tab.is-active { background: #3c8dbc; }
.modal-card { border: 0; border-radius: 3px; box-shadow: 0 5px 15px rgba(0,0,0,.25); }
.field input, .field select, .field textarea, .dynamic-field input, .dynamic-field select, .dynamic-field textarea { border-color: #d2d6de; border-radius: 3px; }
.field input:focus, .field select:focus, .field textarea:focus, .dynamic-field input:focus, .dynamic-field select:focus, .dynamic-field textarea:focus { border-color: #3c8dbc; box-shadow: none; }
.field-check input, .dynamic-field-check input { accent-color: #3c8dbc; }
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: auto; flex-basis: auto; padding: 0 0 8px; }
  .brand-block { min-height: 48px; padding: 0 12px; }
  .nav-list { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 2px; padding: 6px 8px 0; }
  .nav-item { min-height: 40px; justify-content: center; gap: 4px; padding: 8px 2px; border-left: 0; border-bottom: 3px solid transparent; text-align: center; font-size: 12px; }
  .nav-item.is-active { border-bottom-color: #3c8dbc; border-left-color: transparent; }
  .nav-symbol { display: none; }
  .main-content { padding: 0 10px 25px; }
  .topbar { margin: 0 -10px 12px; padding: 0 10px; }
  .topbar h1 { font-size: 17px; }
  .top-actions { width: 100%; flex-wrap: wrap; }
  .last-updated { width: auto; margin-right: auto; }
  .search-field input { width: 100%; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 110px; }
  .metric-foot { margin-top: 12px; }
  .button { padding-left: 11px; padding-right: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .mode-toolbar, .form-section-heading { align-items: stretch; flex-direction: column; }
  .mode-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .assignment-row, .plan-field-row { grid-template-columns: 1fr; }
  .repeat-row .repeat-remove { justify-self: end; }
}
