:root {
  color-scheme: light;
  --color-primary: #126b8f;
  --color-primary-strong: #095777;
  --color-primary-container: #d9f0fa;
  --color-on-primary-container: #07384c;
  --color-bg: #e8edf0;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f6f7;
  --color-text: #182125;
  --color-text-secondary: #5c686e;
  --color-border: #d5dde1;
  --color-success: #167653;
  --color-warning: #a85d00;
  --color-danger: #b8322a;
  --radius-control: 10px;
  --radius-panel: 14px;
  --shadow-app: 0 24px 60px rgba(31, 48, 56, 0.18);
  font-family: Roboto, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-text);
}

button, input { font: inherit; }
button { color: inherit; }
button, label, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(18, 107, 143, .28); outline-offset: 2px; }
::selection { background: var(--color-primary-container); color: var(--color-on-primary-container); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

.app-shell {
  position: relative;
  width: 375px;
  height: 667px;
  overflow: hidden;
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-app);
}

.view { height: 100%; }

.login-view {
  display: flex;
  flex-direction: column;
  padding: 44px 28px 22px;
  background: var(--color-surface);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(18, 107, 143, .22);
}
.brand-mark svg { width: 30px; height: 30px; }
.login-heading { margin-top: 28px; }
.brand-name { margin: 0 0 6px; color: var(--color-primary); font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.login-heading h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.login-heading > p:last-child { margin: 8px 0 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.55; }
.login-form { display: grid; gap: 16px; margin-top: 30px; }
.field-group { display: grid; gap: 8px; color: var(--color-text); font-size: 13px; font-weight: 650; }
.field-group > input, .password-field {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface-soft);
}
.field-group > input, .password-field input { padding: 0 15px; border: 0; color: var(--color-text); background: transparent; font-size: 16px; outline: none; }
.field-group > input { border: 1px solid var(--color-border); }
.field-group > input:focus, .password-field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(18, 107, 143, .12); }
.password-field { display: flex; align-items: center; }
.password-field input { flex: 1; min-width: 0; height: 50px; }
.icon-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-secondary); cursor: pointer; }
.eye-closed, .icon-button.is-visible .eye-open { display: none; }
.icon-button.is-visible .eye-closed { display: block; }
.form-error { margin-top: -7px; color: var(--color-danger); font-size: 13px; line-height: 1.4; }
.remember-row { display: flex; align-items: center; gap: 10px; width: max-content; min-height: 40px; color: var(--color-text-secondary); font-size: 14px; cursor: pointer; }
.remember-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary); }
.primary-button, .logout-button, .danger-button, .text-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-control);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.primary-button { min-height: 56px; color: #fff; background: var(--color-primary); box-shadow: 0 10px 20px rgba(18, 107, 143, .18); }
.primary-button:hover { background: var(--color-primary-strong); }
.primary-button:active, .logout-button:active, .task-row:active, .work-entry:active { transform: scale(.985); }
.login-footer { display: grid; gap: 5px; margin-top: auto; text-align: center; }
.app-version { margin: 0; color: var(--color-text-secondary); font-size: 13px; font-weight: 650; }
.prototype-note { margin: 0; color: #839097; font-size: 12px; }

.app-view { display: grid; grid-template-rows: 64px minmax(0, 1fr) 72px; background: var(--color-surface-soft); }
.top-bar { display: flex; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.top-bar.simple h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.warehouse-button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font-size: 16px; font-weight: 750; cursor: pointer; }
.warehouse-button svg { width: 20px; height: 20px; color: var(--color-primary); }
.page-scroll { min-height: 0; overflow-y: auto; padding: 22px 18px 28px; scrollbar-width: thin; scrollbar-color: #b5c2c8 transparent; }
.page-title h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
.page-title p { margin: 7px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.task-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.summary-filter { min-height: 82px; padding: 13px 12px; border: 2px solid transparent; border-radius: var(--radius-panel); text-align: left; cursor: pointer; transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.summary-filter span { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; }
.summary-filter strong { display: block; margin-top: 5px; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-filter.inbound-summary { color: #084c68; background: #d5eff9; }
.summary-filter.outbound-summary { color: #774900; background: #ffedcf; }
.summary-filter.inventory-summary { color: #0a624c; background: #dcf2e9; }
.summary-filter[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 5px 14px rgba(24, 45, 54, .12); }
.summary-filter:active { transform: scale(.97); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 10px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading span { color: var(--color-text-secondary); font-size: 13px; }
.task-list { overflow: hidden; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: 0 4px 16px rgba(36, 54, 62, .07); }
.task-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 76px; padding: 12px; border: 0; border-bottom: 1px solid var(--color-border); background: transparent; text-align: left; cursor: pointer; }
.task-row:last-child { border-bottom: 0; }
.task-icon, .work-icon, .settings-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.inbound { color: #09678a; background: #dff2f9; }
.outbound { color: #8a5300; background: #fff0d8; }
.inventory { color: #087158; background: #ddf3eb; }
.task-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.task-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small, .work-entry small, .settings-row small { color: var(--color-text-secondary); font-size: 12px; }
.status-chip { padding: 5px 7px; border-radius: 7px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-chip.running { color: #086044; background: #dff3eb; }
.status-chip.pending { color: #696047; background: #f1eee5; }
.bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 12px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.nav-item { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 56px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #748087; font-size: 12px; font-weight: 650; cursor: pointer; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: var(--color-primary); background: var(--color-primary-container); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.work-entry { display: grid; justify-items: start; gap: 8px; min-height: 152px; padding: 18px; border: 0; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: 0 4px 16px rgba(36, 54, 62, .07); text-align: left; cursor: pointer; }
.work-icon { width: 48px; height: 48px; }
.work-entry strong { margin-top: 4px; font-size: 16px; }
.work-hint { display: flex; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--radius-panel); background: #e7ecef; color: #35444b; }
.work-hint > svg { color: var(--color-primary); }
.work-hint strong { font-size: 13px; }
.work-hint p { margin: 5px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.workbench-scroll { padding-top: 18px; }
.work-section { margin-top: 20px; }
.work-section h2 { margin: 0 0 10px; font-size: 14px; line-height: 1.2; }
.operation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.operation-grid.two-columns { grid-template-columns: repeat(2, 78px); gap: 18px; }
.operation-entry { display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; min-height: 106px; padding: 0 2px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 650; cursor: pointer; }
.operation-entry:active { background: #e5ecef; transform: scale(.97); }
.operation-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 17px; }
.operation-icon svg { width: 32px; height: 32px; }
.operation-icon.receive { color: #4e3c75; background: #eee8f8; }
.operation-icon.move { color: #43642e; background: #e8f0df; }
.operation-icon.transfer { color: #6953a0; background: #ece8f8; }
.operation-icon.search { color: #385d71; background: #e4edf2; }
.profile-scroll { padding-top: 18px; }
.profile-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-panel); background: var(--color-primary); color: #fff; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); }
.profile-card > div:last-child { display: grid; gap: 5px; }
.profile-card strong { font-size: 17px; }
.profile-card span { color: rgba(255,255,255,.78); font-size: 13px; }
.settings-group { overflow: hidden; margin-top: 18px; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: 0 4px 16px rgba(36,54,62,.07); }
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.settings-icon { color: var(--color-primary); background: var(--color-primary-container); }
.settings-row > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.row-value { color: var(--color-primary); font-size: 13px; font-weight: 700; }
.logout-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 22px; border: 1px solid #e5b5b1; color: var(--color-danger); background: var(--color-surface); }
.scrim { position: absolute; inset: 0; z-index: 10; background: rgba(12, 22, 27, .46); }
.bottom-sheet { position: absolute; inset: auto 0 0; z-index: 11; padding: 8px 18px max(20px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--color-surface); box-shadow: 0 -14px 38px rgba(20,35,42,.22); }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: #c3ccd0; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; }
.sheet-header h2, .dialog h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.warehouse-list { display: grid; margin-top: 4px; }
.warehouse-list button { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px; border: 0; border-top: 1px solid var(--color-border); background: transparent; cursor: pointer; }
.selection-check { visibility: hidden; color: var(--color-primary); }
.warehouse-list button.selected { color: var(--color-primary); font-weight: 700; }
.warehouse-list button.selected .selection-check { visibility: visible; }
.sheet-header p { margin: 3px 0 8px; color: var(--color-text-secondary); font-size: 13px; }
.material-sheet { max-height: 78%; }
.material-option-list { display: grid; overflow-y: auto; max-height: 430px; margin: 2px -4px 0; }
.material-option-list button { display: grid; gap: 4px; min-height: 84px; padding: 12px 8px; border: 0; border-top: 1px solid var(--color-border); background: transparent; color: var(--color-text); text-align: left; cursor: pointer; }
.material-option-list button:active { background: var(--color-surface-soft); }
.material-option-list strong { color: var(--color-primary); font-size: 13px; }
.material-option-list span { font-size: 14px; font-weight: 700; line-height: 1.35; }
.material-option-list small { color: var(--color-text-secondary); font-size: 12px; }
.location-option-list { display: grid; margin-top: 2px; }
.location-option-list button { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 8px; border: 0; border-top: 1px solid var(--color-border); background: transparent; text-align: left; cursor: pointer; }
.location-option-list strong { font-size: 15px; }
.location-option-list span { color: var(--color-text-secondary); font-size: 13px; }
.snackbar { position: absolute; z-index: 20; left: 18px; right: 18px; bottom: 86px; padding: 14px 16px; border-radius: 10px; color: #fff; background: #25343b; box-shadow: 0 10px 28px rgba(24,35,40,.24); font-size: 13px; line-height: 1.4; }
.dialog { position: absolute; z-index: 12; top: 50%; left: 50%; width: calc(100% - 44px); padding: 22px; border-radius: 18px; background: var(--color-surface); box-shadow: 0 20px 50px rgba(16,28,34,.28); transform: translate(-50%, -50%); }
.dialog p { margin: 10px 0 20px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.text-button, .danger-button { min-width: 84px; min-height: 48px; padding: 0 14px; background: transparent; }
.text-button { color: var(--color-primary); }
.danger-button { color: #fff; background: var(--color-danger); }
.flow-view { display: grid; grid-template-rows: 64px minmax(0, 1fr); background: var(--color-surface-soft); }
.flow-topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.flow-topbar > div { display: grid; gap: 2px; }
.flow-topbar h1 { margin: 0; font-size: 18px; line-height: 1.2; }
.flow-topbar span { color: var(--color-text-secondary); font-size: 12px; }
.flow-scroll { min-height: 0; overflow-y: auto; padding: 18px; }
.scan-hero { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 0; border-radius: var(--radius-panel); background: var(--color-primary); color: #fff; text-align: left; cursor: pointer; }
.scan-hero > svg { width: 32px; height: 32px; }
.scan-hero span { display: grid; gap: 4px; }
.scan-hero strong { font-size: 15px; }
.scan-hero small { color: rgba(255,255,255,.76); font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 50px; margin-top: 14px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface); }
.search-field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(18,107,143,.12); }
.search-field svg { width: 20px; height: 20px; color: var(--color-text-secondary); }
.search-field input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; }
.putaway-list-heading { margin-top: 20px; }
.putaway-task-list { display: grid; gap: 10px; }
.putaway-task-item { display: grid; gap: 7px; width: 100%; min-height: 112px; padding: 14px; border: 0; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: 0 4px 16px rgba(36,54,62,.07); text-align: left; cursor: pointer; }
.task-item-top, .task-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-item-top strong { font-size: 14px; }
.task-item-top em { font-style: normal; }
.task-item-meta, .task-item-foot { color: var(--color-text-secondary); font-size: 12px; }
.task-item-foot b { color: var(--color-primary); }
.linear-progress { height: 5px; overflow: hidden; border-radius: 3px; background: #e1e8eb; }
.linear-progress i { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.inline-empty { display: grid; justify-items: center; gap: 6px; padding: 42px 20px; color: var(--color-text-secondary); text-align: center; }
.inline-empty svg { width: 36px; height: 36px; color: #93a1a8; }
.inline-empty strong { color: var(--color-text); font-size: 15px; }
.inline-empty span { font-size: 13px; }
.putaway-work-view { display: grid; grid-template-rows: 64px minmax(0, 1fr) 86px; background: var(--color-surface-soft); }
.other-inbound-view { display: grid; grid-template-rows: 64px minmax(0, 1fr) 86px; background: var(--color-surface-soft); }
.work-taskbar { padding-right: 8px; }
.work-taskbar > div { flex: 1; }
.work-taskbar h1 { font-size: 17px; }
.terminate-task-action { min-width: 66px; min-height: 38px; padding: 0 9px; border: 0; border-radius: 8px; background: #fb2323; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.putaway-work-scroll { padding: 14px 14px 24px; }
.operation-block { padding: 14px; border-radius: var(--radius-panel); background: var(--color-surface); }
.operation-block + .operation-block { margin-top: 10px; }
.block-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.block-heading h2 { margin: 0; font-size: 14px; }
.block-heading > span { color: var(--color-text-secondary); font-size: 12px; }
.inline-action { min-height: 38px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.scan-state { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px dashed #7fa9ba; border-radius: var(--radius-control); background: #edf7fa; color: var(--color-primary); text-align: left; cursor: pointer; }
.scan-state.secondary { border-color: var(--color-border); background: var(--color-surface-soft); color: var(--color-text); }
.scan-state span { display: grid; gap: 3px; }
.scan-state strong { font-size: 13px; }
.scan-state small { color: var(--color-text-secondary); font-size: 11px; }
.inline-error { margin: 6px 0 0; color: var(--color-danger); font-size: 12px; }
.selected-material { display: grid; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); }
.selected-material > div { display: grid; gap: 3px; }
.material-code { color: var(--color-primary); font-size: 14px; font-weight: 700; }
.selected-material strong { font-size: 14px; }
.selected-material small, .material-progress { color: var(--color-text-secondary); font-size: 12px; }
#selectedMaterialMeta { font-size: 13px; white-space: pre-wrap; }
.material-package { font-size: 13px !important; font-weight: 650; }
.material-progress { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 7px 9px; border-radius: 7px; background: var(--color-surface-soft); }
.material-progress .received { color: var(--color-success); font-weight: 700; }
.material-progress .remaining { color: var(--color-danger); font-weight: 700; }
.selected-detail-row { display: flex !important; grid-template-columns: none; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #eaf5f9; }
.selected-detail-row > span { display: grid; gap: 2px; color: var(--color-primary); font-size: 13px; font-weight: 700; }
.selected-detail-row small { color: var(--color-text-secondary); font-size: 13px; font-weight: 500; }
.detail-option-list { display: grid; gap: 10px; }
.detail-option-list > button { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; text-align: left; background: var(--color-surface); }
.detail-option-list > button span { display: grid; gap: 3px; }
.detail-option-list > button span:nth-child(2) { grid-column: span 1; }
.detail-option-list b { color: var(--color-text-secondary); font-size: 13px; font-weight: 500; }
.detail-option-list strong { font-size: 14px; }
.quantity-block .block-heading > span { font-size: 14px; font-weight: 700; }
.package-grid { display: grid; gap: 8px 6px; }
.package-grid.many-levels { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.package-grid.many-levels label:nth-child(-n+3) { grid-column: span 2; }
.package-grid.many-levels label:nth-child(n+4) { grid-column: span 3; }
.package-grid.compact-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-grid label, .quantity-fields label { display: grid; gap: 5px; color: var(--color-text-secondary); font-size: 11px; }
.package-grid input, .quantity-fields input { width: 100%; height: 42px; padding: 0 7px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-soft); font-size: 14px; }
.quantity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.putaway-confirm-bar { display: grid; grid-template-columns: 1fr 142px; align-items: center; gap: 10px; padding: 9px 14px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.putaway-confirm-bar > div { color: var(--color-text-secondary); font-size: 12px; line-height: 1.35; }
.putaway-confirm-bar .primary-button { min-height: 54px; }
.success-dialog { text-align: center; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; color: var(--color-success); background: #dff3ea; }
.success-mark svg { width: 26px; height: 26px; }
.success-dialog .record-note { margin: 10px 0 18px; padding: 10px; border-radius: 8px; color: var(--color-text-secondary); background: var(--color-surface-soft); font-size: 13px; line-height: 1.5; }
.success-dialog .primary-button { width: 100%; }
.primary-button:disabled { cursor: not-allowed; box-shadow: none; background: #afbdc3; }
.demo-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; margin-top: 4px; border-top: 1px solid var(--color-border); }
.demo-switch > span { display: grid; gap: 3px; }
.demo-switch strong { font-size: 13px; }
.demo-switch small { color: var(--color-text-secondary); font-size: 11px; }
.demo-switch input { width: 22px; height: 22px; accent-color: var(--color-primary); }
.sheet-danger-action { width: 100%; min-height: 50px; margin-top: 4px; border: 1px solid #e5b5b1; border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-danger); font-weight: 700; }
.primary-button.compact { min-width: 98px; min-height: 48px; padding: 0 14px; box-shadow: none; }
.dialog-field { display: grid; gap: 7px; margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.dialog-field textarea { resize: none; padding: 10px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-soft); font: 13px/1.4 inherit; }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  body { display: block; }
  .app-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    box-shadow: none;
  }
}

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