@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --surface: #fffdf9;
  --surface-2: #efede6;
  --ink: #29312d;
  --ink-soft: #4f5852;
  --muted: #737970;
  --line: #dddcd3;
  --line-strong: #c8cbc1;
  --coral: #eb8769;
  --coral-deep: #a84632;
  --coral-soft: #f5dfd6;
  --sage: #e3e9df;
  --sage-deep: #587059;
  --danger: #9e3e35;
  --danger-soft: #fae8e4;
  --shadow: 0 18px 50px rgba(50, 54, 48, .07);
  --radius-lg: 20px;
  --radius-md: 13px;
  --font: "Onest", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(168, 70, 50, .42); outline-offset: 3px; }
::selection { background: #efb6a2; color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 18px; padding: 11px 16px; border-radius: 0 0 9px 9px; background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { top: 0; }

.brand { display: inline-flex; align-items: baseline; font-size: 21px; font-weight: 840; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.brand b { color: var(--coral-deep); font-weight: 840; }
.brand i { margin-left: 3px; color: var(--coral-deep); font-size: 10px; font-style: normal; transform: translateY(-7px); }
.eyebrow { margin: 0 0 9px; color: var(--coral-deep); font-size: 10px; font-weight: 780; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.hint { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.soft-badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--sage); color: var(--sage-deep); font-size: 11px; font-weight: 720; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 24% 18%, rgba(235, 135, 105, .13), transparent 34%), radial-gradient(circle at 80% 82%, rgba(139, 164, 131, .18), transparent 30%), var(--paper); }
.login-card { width: min(100%, 460px); padding: clamp(31px, 6vw, 52px); border: 1px solid var(--line); border-radius: 25px; background: rgba(255, 253, 249, .95); box-shadow: var(--shadow); }
.brand-login { margin-bottom: 57px; }
.login-card h1 { margin: 0 0 15px; font-size: clamp(36px, 8vw, 52px); font-weight: 470; letter-spacing: -.055em; line-height: 1; }
.login-lead { margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-form { display: grid; gap: 18px; }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 93px; }
.password-control .icon-button { position: absolute; top: 50%; right: 7px; width: auto; height: 34px; padding: 0 9px; border: 0; font-size: 11px; transform: translateY(-50%); }
.loading-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 19px; height: 19px; border: 2px solid var(--line-strong); border-top-color: var(--coral-deep); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 250px; padding: 31px 18px 24px; border-right: 1px solid #d9d8cf; background: #eeece5; }
.sidebar-head { padding: 0 13px 29px; }
.admin-label { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 4px; }
.nav-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; width: 100%; min-height: 45px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: #555e58; font-size: 12px; font-weight: 630; text-align: left; transition: background .16s, color .16s; }
.nav-item:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.nav-item.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 4px 18px rgba(48, 53, 47, .05); }
.nav-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; color: var(--coral-deep); font-size: 16px; }
.nav-count { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: var(--sage); color: var(--sage-deep); font-size: 9px; text-align: center; }
.sidebar-foot { display: grid; gap: 15px; margin-top: auto; }
.connection { display: flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--muted); font-size: 10px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #6d8a68; box-shadow: 0 0 0 4px rgba(109, 138, 104, .12); }

.workspace { min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 91px; padding: 18px clamp(26px, 4vw, 61px); border-bottom: 1px solid rgba(212, 212, 203, .86); background: rgba(246, 243, 236, .92); backdrop-filter: blur(18px); }
.topbar h1 { margin: 2px 0 0; font-size: 24px; font-weight: 520; letter-spacing: -.035em; }
.topbar-kicker { margin: 0; color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.save-area { display: flex; align-items: center; gap: 17px; }
.save-state { color: var(--muted); font-size: 10px; text-align: right; }
.save-state.is-dirty { color: var(--coral-deep); font-weight: 700; }
.menu-button { display: none; width: 43px; height: 43px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.menu-button span { display: block; width: 100%; height: 1.5px; margin: 5px 0; background: var(--ink); }
.mobile-nav { position: sticky; z-index: 14; top: 77px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 22px rgba(48, 53, 47, .08); }
.mobile-nav .nav-item { margin: 2px 0; }

.main-content { width: min(100%, 1420px); margin: 0 auto; padding: clamp(29px, 4vw, 60px); }
.panel-section { animation: panel-in .25s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }
.section-intro, .section-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-intro h2, .section-toolbar h2 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); font-weight: 470; letter-spacing: -.055em; line-height: 1; }
.section-intro > p, .section-copy { max-width: 440px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.section-toolbar .section-copy { margin-top: 12px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 15px; }
.summary-card { position: relative; overflow: hidden; min-height: 153px; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.summary-card:nth-child(2) { background: var(--sage); }
.summary-card:nth-child(3) { background: #f2e5dc; }
.summary-card::after { position: absolute; right: -18px; bottom: -38px; width: 95px; height: 95px; border: 1px solid rgba(92, 95, 86, .12); border-radius: 50%; content: ""; }
.summary-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.summary-value { display: block; margin-top: 22px; font-size: 41px; font-weight: 470; letter-spacing: -.055em; line-height: 1; }
.summary-note { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 15px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 9px 30px rgba(49, 52, 46, .025); }
.form-card { padding: clamp(23px, 3vw, 35px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); }
.form-card > .card-head { margin: -5px -4px 27px; padding: 0 4px 20px; }
.card-head h3 { margin: 0; font-size: 21px; font-weight: 520; letter-spacing: -.035em; }
.text-button { padding: 3px 0; border: 0; border-bottom: 1px solid #9c9e95; background: none; color: var(--ink-soft); font-size: 10px; font-weight: 720; }
.text-button:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.readiness-list, .activity-list { padding: 8px 27px 21px; }
.readiness-row { display: grid; grid-template-columns: 1fr auto; gap: 17px; padding: 17px 0; border-bottom: 1px solid #ebeae4; }
.readiness-row:last-child { border-bottom: 0; }
.readiness-row strong { display: block; margin-bottom: 5px; font-size: 12px; }
.readiness-row span { color: var(--muted); font-size: 10px; }
.progress { align-self: center; width: 92px; height: 6px; overflow: hidden; border-radius: 99px; background: #ebece6; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.activity-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ebeae4; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--sage-deep); font-size: 12px; }
.activity-item p { margin: 0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.activity-item time { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.filter-bar { display: flex; gap: 11px; margin-bottom: 14px; }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.search-field input { flex: 1; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.compact-field select { min-width: 182px; height: 45px; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f0eee8; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #e9e8e2; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfaf6; }
.product-cell { display: grid; grid-template-columns: 51px minmax(130px, 1fr); align-items: center; gap: 12px; }
.product-thumb { display: grid; place-items: center; overflow: hidden; width: 51px; height: 51px; border-radius: 9px; background: #eceae4; color: var(--muted); font-size: 15px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell strong { display: block; margin-bottom: 4px; font-size: 12px; }
.product-cell span { color: var(--muted); font-size: 9px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; background: var(--sage); color: #466048; font-size: 9px; font-weight: 740; white-space: nowrap; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: #668465; content: ""; }
.status-badge.is-draft { background: #eeeae4; color: #73756e; }
.status-badge.is-draft::before { background: #96978f; }
.badge-secondary { display: inline-flex; margin-top: 4px; color: var(--coral-deep); font-size: 8px; font-weight: 760; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-soft); font-size: 16px; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.icon-button.is-danger:hover { border-color: #d8aaa2; background: var(--danger-soft); color: var(--danger); }
.empty-state { padding: 39px 24px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

.stack-list { display: grid; gap: 10px; }
.stack-item { display: grid; grid-template-columns: 42px minmax(150px, 1fr) minmax(140px, .65fr) auto; align-items: center; gap: 15px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.drag-handle { color: #a1a49c; font-size: 17px; text-align: center; user-select: none; }
.stack-item .field { margin: 0; }
.inline-check { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.inline-check input, .check-field input { width: 18px; height: 18px; accent-color: var(--coral-deep); }
.order-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.style-editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.style-editor { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf6; }
.style-preview { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 9px; background: #e8e9e2; }
.style-preview img { width: 100%; height: 100%; object-fit: cover; }
.style-preview span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.style-editor .field { margin-top: 11px; }
.style-id { display: inline-flex; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.price-editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-editor { display: grid; gap: 7px; }
.price-editor span { font-size: 11px; font-weight: 720; }
.price-input { position: relative; }
.price-input input { padding-right: 47px; }
.price-input small { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 9px; transform: translateY(-50%); }
.content-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.content-fields .field-wide { grid-column: 1 / -1; }
.expense-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.expense-stat { padding: 19px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.expense-stat span { display: block; color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.expense-stat strong { display: block; margin-top: 9px; font-size: 25px; font-weight: 530; letter-spacing: -.04em; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span:first-child, .field > label:first-child { font-size: 10px; font-weight: 720; }
.field b { color: var(--coral-deep); }
.field small, .field-help { margin: 0; color: var(--muted); font-size: 9px; font-weight: 450; line-height: 1.45; }
input:not([type="checkbox"]):not([type="file"]), select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: #fffefa; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:not([type="checkbox"]):not([type="file"]):focus, select:focus, textarea:focus { border-color: #a66a59; box-shadow: 0 0 0 3px rgba(168, 70, 50, .10); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: #a3a59e; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.three-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.form-error { margin: 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
.check-stack { display: grid; gap: 8px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf6; }
.check-field input { flex: none; margin: 1px 0 0; }
.check-field strong, .check-field small { display: block; }
.check-field strong { margin-bottom: 3px; font-size: 10px; }
.check-field small { color: var(--muted); font-size: 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 43px; padding: 11px 17px; border: 1px solid transparent; border-radius: 99px; font-size: 11px; font-weight: 760; line-height: 1.2; text-align: center; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { background: var(--coral); color: #202a26; }
.button-primary:hover { background: #ef967b; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #414b45; }
.button-light { background: white; color: var(--ink); }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { border-color: var(--line-strong); background: rgba(255,255,255,.55); }
.button-wide { width: 100%; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px clamp(26px, 4vw, 61px) 0; padding: 14px 17px; border: 1px solid #e0b7ae; border-radius: 11px; background: var(--danger-soft); color: #72342e; }
.notice div { display: grid; gap: 4px; }
.notice strong { font-size: 11px; }
.notice span { font-size: 10px; line-height: 1.45; }
.notice .icon-button { flex: none; background: transparent; }

.dialog { width: min(calc(100% - 28px), 590px); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(28, 36, 31, .22); }
.dialog-wide { width: min(calc(100% - 28px), 1040px); }
.dialog::backdrop { background: rgba(35, 42, 38, .52); backdrop-filter: blur(3px); }
.dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 25px 28px 19px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.045em; }
.dialog-close { flex: none; width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.dialog-close:hover { background: var(--surface-2); }
.dialog-body { overflow-y: auto; padding: 25px 28px; }
.product-form-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 30px; }
.form-column { display: grid; align-content: start; gap: 15px; }
.media-column { padding-left: 28px; border-left: 1px solid var(--line); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px 20px; border-top: 1px solid var(--line); background: #f7f5ef; }
.dialog-error { margin: 0 28px 14px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); }
.image-picker { display: grid; gap: 10px; }
.image-preview { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1 / 1; border: 1px dashed #babdb4; border-radius: 11px; background: #e9ebe4; color: var(--muted); font-size: 10px; text-align: center; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-label { position: relative; overflow: hidden; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100% - 32px)); }
.toast { padding: 13px 16px; border: 1px solid #bdcbb9; border-radius: 10px; background: #f5faf2; color: #38533b; font-size: 11px; line-height: 1.5; box-shadow: var(--shadow); animation: toast-in .2s ease both; }
.toast.is-error { border-color: #ddb3ab; background: var(--danger-soft); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .style-editors { grid-template-columns: 1fr; }
  .style-editor { display: grid; grid-template-columns: minmax(160px, .55fr) 1fr; gap: 18px; }
  .style-preview { grid-row: span 4; margin: 0; }
  .product-form-grid { grid-template-columns: 1.25fr .75fr; gap: 22px; }
  .media-column { padding-left: 21px; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 77px; padding: 13px 16px; }
  .topbar > div:nth-child(2) { margin-right: auto; }
  .topbar h1 { font-size: 20px; }
  .menu-button { display: block; flex: none; }
  .save-state { display: none; }
  .main-content { padding: 30px 17px 45px; }
  .notice { margin: 13px 16px 0; }
  .section-intro, .section-toolbar { align-items: flex-start; margin-bottom: 26px; }
  .section-intro { display: grid; gap: 15px; }
  .section-toolbar h2, .section-intro h2 { font-size: 41px; }
  .product-form-grid { grid-template-columns: 1fr; }
  .media-column { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .content-fields { grid-template-columns: 1fr; }
  .content-fields .field-wide { grid-column: auto; }
  .stack-item { grid-template-columns: 32px 1fr auto; }
  .stack-item .inline-check { grid-column: 2; }
  .stack-item .order-controls { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 620px) {
  .topbar { align-items: center; }
  .topbar-kicker { display: none; }
  .save-area .button { min-width: 104px; padding-inline: 14px; }
  .section-toolbar { display: grid; gap: 19px; }
  .section-toolbar .button { width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .summary-card { min-height: 132px; padding: 17px; }
  .summary-value { margin-top: 18px; font-size: 34px; }
  .filter-bar { display: grid; }
  .compact-field select { width: 100%; }
  .data-table { min-width: 700px; }
  .settings-grid { grid-template-columns: 1fr; }
  .price-editors { grid-template-columns: 1fr; }
  .expense-summary { grid-template-columns: 1fr; }
  .style-editor { display: block; }
  .style-preview { margin-bottom: 16px; }
  .two-columns, .three-columns { grid-template-columns: 1fr; }
  .dialog-head, .dialog-body { padding-left: 20px; padding-right: 20px; }
  .dialog-actions { padding: 14px 20px 18px; }
  .dialog-actions .button { flex: 1; padding-inline: 12px; }
  .notice { align-items: flex-start; }
  .notice .button { flex: none; padding-inline: 12px; }
}

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