:root {
  --ink: #17231f;
  --ink-soft: #35443e;
  --muted: #6a7772;
  --line: #dce4e0;
  --line-strong: #c9d6d1;
  --canvas: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --accent: #176b57;
  --accent-strong: #0f5848;
  --accent-soft: #e5f2ed;
  --danger: #ad3f3f;
  --danger-soft: #fbecec;
  --new-bg: #fff9e8;
  --new-line: #ead8a3;
  --new-ink: #795c12;
  --submitted-bg: #ecf8f1;
  --submitted-line: #a8d8bc;
  --submitted-ink: #17613f;
  --revision-bg: #fff1f5;
  --revision-line: #e4b6c5;
  --revision-ink: #923e5d;
  --urgent-bg: #fff0ee;
  --urgent-line: #e7ada6;
  --urgent-ink: #a23c35;
  --shadow-sm: 0 2px 8px rgba(28, 53, 44, 0.06);
  --shadow-md: 0 18px 56px rgba(28, 53, 44, 0.16);
  --radius-card: 16px;
  --radius-field: 12px;
  --radius-button: 10px;
  --ease: 180ms ease;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: ui-sans-serif, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
.hidden { display: none !important; }

.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; background: var(--surface-soft); }
.auth-brand { padding: 68px clamp(42px, 7vw, 112px); display: flex; flex-direction: column; color: #eef7f3; background: #173f35; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 15px; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; }
.auth-brand h1 { margin: 46px 0 10px; font-size: clamp(38px, 4vw, 50px); line-height: 1.12; }
.auth-brand p { margin: 0; color: #b8d0c8; font-size: 16px; }
.auth-brand dl { margin: auto 0 0; display: grid; }
.auth-brand dl div { padding: 17px 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); }
.auth-brand dt { color: #a9c4bb; }
.auth-brand dd { margin: 0; font-weight: 700; }
.auth-panel { width: min(470px, calc(100% - 40px)); margin: auto; }
.auth-tabs { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #eaf0ed; }
.auth-tabs button { flex: 1; min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; transition: color var(--ease), background var(--ease), box-shadow var(--ease); }
.auth-tabs button.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 700; }
.auth-form { padding: 34px 2px; display: grid; gap: 18px; }
.auth-form h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.auth-form header p { margin: 8px 0 10px; color: var(--muted); }

label, .field-label { display: grid; gap: 8px; color: var(--ink-soft); font-weight: 650; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
input, textarea, select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-field); color: var(--ink); background: var(--surface); outline: none; transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); }
input::placeholder, textarea::placeholder { color: #8a9691; }
input:hover, textarea:hover, select:hover { border-color: #adbfb8; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,107,87,.12); }
textarea { min-height: 128px; resize: vertical; line-height: 1.7; }

.primary, .secondary, .danger, .quiet, .logout, .filter-button, .deadline-option { min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-button); font-weight: 700; white-space: nowrap; transition: transform var(--ease), border-color var(--ease), color var(--ease), background var(--ease), box-shadow var(--ease); }
.primary { color: #fff; background: var(--accent); box-shadow: 0 5px 14px rgba(23,107,87,.16); }
.primary:hover { background: var(--accent-strong); box-shadow: 0 7px 18px rgba(23,107,87,.22); }
.secondary { border-color: #b7d1c7; color: var(--accent-strong); background: var(--surface); }
.secondary:hover { border-color: #8eb6a7; background: #f3faf7; }
.danger, .logout { border-color: #efc9c9; color: var(--danger); background: var(--surface); }
.danger:hover, .logout:hover { background: var(--danger-soft); }
.quiet { border-color: var(--line); color: #53615b; background: var(--surface); }
.quiet:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-soft); }
.compact { min-height: 36px; padding: 0 12px; font-size: 13px; }
button:active, .file-card:active { transform: scale(.98); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(23,107,87,.22); outline-offset: 2px; }

.app { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 28px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(28,53,44,.02); }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 800; }
.logo b { font-size: 17px; }
.topbar nav { height: 100%; margin-left: 44px; display: flex; align-items: center; gap: 6px; }
.topbar nav button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; color: #5e6b66; background: transparent; font-weight: 600; transition: color var(--ease), background var(--ease); }
.topbar nav button:hover { color: var(--ink); background: var(--surface-soft); }
.topbar nav button.active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 750; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--accent-strong); background: var(--accent-soft); font-weight: 800; }
.account-copy { min-width: 86px; max-width: 160px; display: grid; line-height: 1.25; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.workspace { width: min(1380px, 100%); margin: auto; padding: 36px 34px 68px; }
.page-head { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head h1 { margin: 0; font-size: 29px; line-height: 1.25; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.actions, .table-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.summary-grid { margin-bottom: 26px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric { min-width: 0; padding: 21px 23px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 7px; overflow: hidden; color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.toolbar { margin: 18px 0 16px; display: flex; align-items: center; gap: 12px; }
.search-field { position: relative; width: min(360px,100%); }
.search-field input { padding-left: 42px; background: var(--surface); }
.search-field::before { content: ""; position: absolute; z-index: 1; left: 16px; top: 50%; width: 10px; height: 10px; border: 2px solid #7c8984; border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.search-field::after { content: ""; position: absolute; z-index: 1; left: 27px; top: 27px; width: 7px; height: 2px; border-radius: 2px; background: #7c8984; transform: rotate(45deg); pointer-events: none; }
.toolbar .spacer { flex: 1; }
.result-count { color: var(--muted); white-space: nowrap; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button { min-height: 38px; padding: 0 13px; border-color: var(--line); color: var(--muted); background: var(--surface); font-size: 12px; }
.filter-button.active { border-color: var(--accent); color: #fff; background: var(--accent); }

.order-list { display: grid; gap: 13px; }
.order-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid var(--new-line); border-radius: var(--radius-card); background: var(--new-bg); box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.order-card:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(28,53,44,.1); }
.order-card.status-new { border-color: var(--new-line); background: var(--new-bg); }
.order-card.status-submitted { border-color: var(--submitted-line); background: var(--submitted-bg); }
.order-card.status-revision { border-color: var(--revision-line); background: var(--revision-bg); }
.order-card.status-urgent { border-color: var(--urgent-line); background: var(--urgent-bg); }
.order-main { min-width: 0; padding: 21px 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 26px; }
.order-heading { min-width: 0; }
.order-heading-row { display: flex; align-items: center; gap: 10px; }
.status-chip, .badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 26px; padding: 0 9px; border-radius: 8px; font-size: 11px; font-weight: 750; }
.status-new .status-chip { color: var(--new-ink); background: #f6e7b8; }
.status-submitted .status-chip { color: var(--submitted-ink); background: #cfead9; }
.status-revision .status-chip { color: var(--revision-ink); background: #f1d2dc; }
.status-urgent .status-chip { color: var(--urgent-ink); background: #f2ccc7; }
.order-title { margin: 0; overflow-wrap: anywhere; font-size: 19px; line-height: 1.4; }
.order-meta { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px 19px; color: #5f6d67; font-size: 12px; }
.order-meta span { display: inline-flex; align-items: center; gap: 5px; }
.order-meta b { color: var(--ink-soft); font-weight: 650; }
.deadline-overdue { color: var(--danger) !important; font-weight: 700; }
.order-price { min-width: 140px; text-align: right; }
.order-price strong { display: block; color: var(--ink); font-size: 26px; font-variant-numeric: tabular-nums; }
.order-price span { color: var(--muted); font-size: 11px; }
.order-actions { min-width: 190px; padding: 19px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-left: 1px solid rgba(75,96,87,.12); }
.empty { min-height: 180px; padding: 48px 22px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); text-align: center; background: rgba(255,255,255,.62); }
.loading-state { display: grid; gap: 12px; }
.skeleton { height: 126px; border-radius: var(--radius-card); background: #e7ece9; }

@media (prefers-reduced-motion:no-preference) {
  .skeleton { background: linear-gradient(90deg,#e7ece9 25%,#f4f7f5 42%,#e7ece9 62%); background-size: 300% 100%; animation: skeleton-shift 1.4s ease infinite; }
}
@keyframes skeleton-shift { from { background-position: 100% 0; } to { background-position: 0 0; } }

.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 780px; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { padding: 15px 16px; border-bottom: 1px solid #e7ece9; text-align: left; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table th { color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { margin-top: 3px; color: var(--muted); }
.data-table .money { color: var(--accent-strong); font-weight: 750; font-variant-numeric: tabular-nums; }
.table-actions button { min-height: 34px; padding: 0 10px; font-size: 12px; }
.badge { color: #6f5719; background: #fff0bd; }
.badge.admin { color: #65438a; background: #eee4f8; }
.badge.dispatcher { color: var(--accent-strong); background: var(--accent-soft); }
.badge.off { color: #943d3d; background: #f8dddd; }

.modal { position: fixed; inset: 0; z-index: 50; padding: 24px; display: grid; place-items: center; background: rgba(21,34,29,.54); backdrop-filter: blur(4px); }
.modal-card { width: min(760px,100%); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); }
.modal-card.modal-wide { width: min(880px,100%); }
.modal-card.modal-detail { width: min(1080px,100%); }
.modal-card > header { position: sticky; top: 0; z-index: 5; min-height: 68px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.modal-card h2 { margin: 0; font-size: 19px; }
.close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; color: #64716b; background: transparent; font-size: 26px; line-height: 1; }
.close:hover { color: var(--ink); background: var(--surface-soft); }
.modal-card form, .modal-content { padding: 24px; display: grid; gap: 20px; }
.form-section { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 0; }
.form-section + .form-section { padding-top: 21px; border-top: 1px solid var(--line); }
.form-section legend { grid-column: 1/-1; width: 100%; margin-bottom: 1px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide, .form-grid .wide, .form-section .wide { grid-column: 1/-1; }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }

.deadline-picker { display: grid; gap: 13px; }
.deadline-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.deadline-option { min-height: 42px; padding: 0 8px; border-color: var(--line); color: var(--ink-soft); background: var(--surface); font-size: 12px; }
.deadline-option:hover { border-color: #95b8aa; background: #f5faf8; }
.deadline-option.active { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.deadline-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deadline-summary { min-height: 42px; padding: 10px 13px; display: flex; align-items: center; border-radius: 11px; color: #52615b; background: var(--surface-soft); font-size: 12px; font-weight: 550; }

.dropzone { position: relative; min-height: 126px; padding: 24px; display: grid; place-items: center; gap: 5px; border: 1px dashed #91b5a7; border-radius: 14px; color: var(--accent-strong); text-align: center; background: #f4faf7; transition: border-color var(--ease), background var(--ease); }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #eaf6f1; }
.dropzone-title { display: block; font-size: 14px; font-weight: 750; }
.dropzone-hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.file-input { position: absolute; inset: 0; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.selected-files { display: grid; gap: 7px; }
.selected-file { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; color: var(--ink-soft); background: var(--surface-soft); font-size: 12px; }
.selected-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-actions, .modal-actions { position: sticky; bottom: 0; z-index: 4; margin: 2px -24px -24px; padding: 16px 24px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }

.detail-shell { display: grid; gap: 20px; }
.detail-overview { padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; border: 1px solid var(--new-line); border-radius: var(--radius-card); background: var(--new-bg); }
.detail-overview.status-submitted { border-color: var(--submitted-line); background: var(--submitted-bg); }
.detail-overview.status-revision { border-color: var(--revision-line); background: var(--revision-bg); }
.detail-overview.status-urgent { border-color: var(--urgent-line); background: var(--urgent-bg); }
.detail-overview h3 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 24px; line-height: 1.35; }
.detail-price { min-width: 150px; text-align: right; }
.detail-price strong, .detail-price span { display: block; }
.detail-price strong { font-size: 29px; font-variant-numeric: tabular-nums; }
.detail-price span { color: var(--muted); font-size: 12px; }
.detail-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.detail-fact { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); background: var(--surface); }
.detail-fact:last-child { border: 0; }
.detail-fact span, .detail-fact strong { display: block; }
.detail-fact span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.detail-fact strong { overflow-wrap: anywhere; font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.35fr); align-items: start; gap: 20px; }
.content-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.content-panel h4, .timeline-head h4 { margin: 0; font-size: 16px; }
.requirement-copy { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-files { margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel-files h5 { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.timeline-panel { min-width: 0; }
.timeline-head { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.timeline-head span { color: var(--muted); font-size: 12px; }
.version-list { position: relative; display: grid; gap: 11px; }
.version { position: relative; padding: 16px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.version.submission { border-color: var(--submitted-line); background: var(--submitted-bg); }
.version.revision { border-color: var(--revision-line); background: var(--revision-bg); }
.version-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.version-title { display: flex; align-items: center; gap: 8px; }
.version h5 { margin: 0; font-size: 14px; }
.version time { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.version p { margin: 10px 0 0; color: #53615b; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.version-tag { min-height: 23px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 10px; font-weight: 750; }
.file-list { margin-top: 12px; display: grid; gap: 8px; }
.file-card { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(72,99,88,.16); border-radius: 11px; color: var(--ink); background: rgba(255,255,255,.82); text-decoration: none; transition: border-color var(--ease), background var(--ease), transform var(--ease); }
.file-card:hover { border-color: #8eb6a7; background: #fff; }
.file-type { width: 42px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.file-copy { min-width: 0; display: grid; }
.file-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.file-action { color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.no-files, .no-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.settlement-amount { padding: 22px; text-align: center; border: 1px solid #e8c1c1; border-radius: 14px; background: #fff7f7; }
.settlement-amount span, .settlement-amount strong, .settlement-amount small { display: block; }
.settlement-amount span { color: #8f4040; }
.settlement-amount strong { margin: 8px 0 4px; color: #b82d2d; font-size: 32px; font-variant-numeric: tabular-nums; }
.payment-qr { max-width: 340px; max-height: 360px; margin: auto; display: block; border: 1px solid var(--line); border-radius: 14px; }
.invite-code { padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent-strong); background: var(--accent-soft); text-align: center; font-size: 22px; font-weight: 800; word-break: break-all; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(380px,calc(100% - 32px)); padding: 13px 17px; border-radius: 12px; color: #fff; background: #263c34; box-shadow: var(--shadow-md); }
.toast.error { background: #963d3d; }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width:980px) {
  .account-copy, .account-avatar { display: none; }
  .order-card { grid-template-columns: 1fr; }
  .order-actions { min-width: 0; padding: 14px 20px 18px; border-top: 1px solid rgba(75,96,87,.12); border-left: 0; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width:760px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { min-height: 225px; padding: 30px 28px; }
  .auth-brand h1 { margin: 22px 0 5px; font-size: 34px; }
  .auth-brand dl { display: none; }
  .auth-panel { padding: 26px 0; }
  .topbar { height: auto; min-height: 66px; padding: 10px 12px; flex-wrap: wrap; gap: 7px; }
  .logo b { display: none; }
  .topbar nav { order: 3; width: 100%; height: 44px; margin: 0; overflow-x: auto; }
  .topbar nav button { flex: 1; }
  .account { gap: 7px; }
  .workspace { padding: 25px 14px 54px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-head h1 { font-size: 25px; }
  .actions > button { flex: 1; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 16px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:last-child { grid-column: 1/-1; border-top: 1px solid var(--line); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .toolbar .spacer { display: none; }
  .filters { width: 100%; }
  .result-count { align-self: flex-end; }
  .order-main { padding: 18px; grid-template-columns: 1fr; gap: 15px; }
  .order-heading-row { align-items: flex-start; flex-direction: column; }
  .order-price { min-width: 0; text-align: left; }
  .order-actions { justify-content: stretch; }
  .order-actions button { flex: 1; padding: 0 10px; }
  .modal { padding: 8px; align-items: end; }
  .modal-card, .modal-card.modal-wide, .modal-card.modal-detail { width: 100%; max-height: calc(100dvh - 8px); border-radius: 18px 18px 0 0; }
  .modal-card > header { min-height: 62px; padding: 0 17px; }
  .modal-card form, .modal-content { padding: 18px; }
  .form-section, .form-grid, .deadline-custom, .detail-overview, .detail-facts { grid-template-columns: 1fr; }
  .wide, .form-grid .wide, .form-section .wide { grid-column: auto; }
  .deadline-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deadline-option:last-child { grid-column: 1/-1; }
  .detail-overview { align-items: start; }
  .detail-price { min-width: 0; text-align: left; }
  .detail-fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-fact:last-child { border-bottom: 0; }
  .version-top { flex-direction: column; gap: 6px; }
  .file-card { grid-template-columns: 38px minmax(0,1fr); }
  .file-type { width: 38px; }
  .file-action { display: none; }
  .form-actions, .modal-actions { margin: 2px -18px -18px; padding: 14px 18px; }
  .form-actions button, .modal-actions button { flex: 1; }
  .toast { right: 16px; bottom: 16px; }
}
