:root {
  --orange: #ff7a1a;
  --orange-dark: #d95a00;
  --orange-soft: #fff0e4;
  --gold: #ffc233;
  --ink: #171717;
  --muted: #74706c;
  --line: #ece2d9;
  --surface: #fffaf4;
  --card: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --blue: #2563eb;
  --purple: #7c3aed;
  --shadow: 0 10px 30px rgba(90, 54, 22, 0.08);
  --font-scale: 1.04;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eee7de;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: #eee7de;
  line-height: 1.45;
  letter-spacing: 0;
}

body[data-font-size="small"] {
  --font-scale: 0.98;
}

body[data-font-size="large"] {
  --font-scale: 1.14;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), var(--shadow);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(255, 250, 244, 0.96);
  border-bottom: 1px solid rgba(236, 226, 217, 0.78);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.2);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--orange-dark);
  font-size: calc(11px * var(--font-scale));
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
b {
  font-weight: 720;
}

.top-bar h1 {
  margin: 0;
  font-size: calc(19px * var(--font-scale));
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: 0;
}

.icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.24);
}

.icon-button.secondary {
  color: var(--ink);
  background: #f3eee8;
  box-shadow: none;
}

.icon-button.danger {
  color: var(--red);
  background: #fee2e2;
  box-shadow: none;
}

.view-area {
  min-height: calc(100svh - 78px);
  padding: 18px 18px calc(92px + env(safe-area-inset-bottom));
}

.screen-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.screen-title h2 {
  margin: 0 0 6px;
  font-size: calc(26px * var(--font-scale));
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.screen-title p {
  margin: 0;
  color: var(--muted);
  font-size: calc(13px * var(--font-scale));
  line-height: 1.45;
}

.date-chip,
.status-chip,
.plain-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: #ffffff;
  font-size: calc(12px * var(--font-scale));
  font-weight: 750;
  white-space: nowrap;
}

button.date-chip,
.clickable-chip {
  cursor: pointer;
  font-weight: 800;
}

button.date-chip:active,
button.date-chip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.date-control {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.date-control label {
  display: grid;
  gap: 5px;
}

.date-control label span {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 750;
}

.date-control input {
  min-height: 42px;
  text-align: center;
  font-weight: 700;
}

.hero-band {
  margin: 0 -18px 18px;
  padding: 16px 18px 18px;
  color: #ffffff;
  background: var(--orange);
}

.hero-band h2 {
  margin-bottom: 8px;
  font-size: calc(24px * var(--font-scale));
  font-weight: 780;
  line-height: 1.15;
}

.hero-band p {
  margin: 0;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(13px * var(--font-scale));
  line-height: 1.45;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.hero-metric {
  min-height: 74px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: calc(12px * var(--font-scale));
  font-weight: 650;
}

.hero-metric strong {
  display: block;
  margin-top: 7px;
  font-size: calc(18px * var(--font-scale));
  font-weight: 780;
  line-height: 1.1;
  word-break: keep-all;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card,
.record-card,
.section-card,
.summary-row,
.settlement-row,
.setting-row,
.ad-strip,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.record-action {
  cursor: pointer;
}

.record-action:active,
.record-action:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.35);
  outline-offset: 2px;
  background: #fff4ea;
}

.kpi-card {
  min-height: 122px;
  padding: 14px;
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.kpi-card p,
.summary-row span,
.settlement-row span,
.setting-row span {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 650;
}

.kpi-card strong {
  display: block;
  margin-top: 16px;
  font-size: calc(22px * var(--font-scale));
  font-weight: 720;
  line-height: 1.05;
  word-break: keep-all;
}

.kpi-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  line-height: 1.35;
}

.auction-total-card {
  grid-column: 1 / -1;
}

.channel-bar {
  display: flex;
  height: 12px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e6dc;
}

.channel-segment {
  width: var(--segment-width);
  min-width: 0;
}

.channel-segment.onsite {
  background: var(--orange);
}

.channel-segment.online {
  background: var(--blue);
}

.channel-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.channel-legend span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
  color: #4a443f;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
}

.channel-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.channel-legend i.onsite {
  background: var(--orange);
}

.channel-legend i.online {
  background: var(--blue);
}

.channel-legend strong {
  display: inline;
  margin: 0;
  font-size: 12px;
  line-height: inherit;
}

.icon-badge {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--orange);
  background: var(--orange-soft);
}

.icon-badge.green {
  color: var(--green);
  background: #dcfce7;
}

.icon-badge.red {
  color: var(--red);
  background: #fee2e2;
}

.icon-badge.blue {
  color: var(--blue);
  background: #dbeafe;
}

.icon-badge.purple {
  color: var(--purple);
  background: #ede9fe;
}

.section {
  margin-top: 18px;
}

.top-section {
  margin-top: 0;
  margin-bottom: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.section-heading p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.task-heading {
  align-items: flex-start;
}

.alert-chip {
  min-width: 74px;
  border-color: #ffd1b0;
  color: var(--orange-dark);
  background: #fff7ed;
}

.alert-chip .inline-icon svg {
  width: 16px;
  height: 16px;
}

.danger-chip {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f1;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.task-card,
.alert-item {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
  text-align: left;
}

.task-card {
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  min-height: 78px;
  padding: 11px;
}

.task-card:last-child {
  grid-column: 1 / -1;
}

.task-card.quiet {
  opacity: 0.72;
}

.task-card.red {
  border-left: 4px solid var(--red);
}

.task-card.orange {
  border-left: 4px solid var(--orange);
}

.task-card.blue {
  border-left: 4px solid var(--blue);
}

.task-card.purple {
  border-left: 4px solid var(--purple);
}

.task-card.green {
  border-left: 4px solid var(--green);
}

.task-card strong,
.task-card small,
.alert-item strong,
.alert-item small {
  display: block;
}

.task-card strong {
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
  line-height: 1.2;
}

.task-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  font-weight: 560;
  line-height: 1.3;
}

.task-card b {
  font-size: calc(20px * var(--font-scale));
  font-weight: 720;
  line-height: 1;
}

.alert-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.alert-item {
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
}

.alert-item.red {
  border-left: 4px solid var(--red);
}

.alert-item.orange {
  border-left: 4px solid var(--orange);
}

.alert-item.blue {
  border-left: 4px solid var(--blue);
}

.alert-item.purple {
  border-left: 4px solid var(--purple);
}

.alert-item strong {
  font-size: calc(13px * var(--font-scale));
  font-weight: 760;
  line-height: 1.2;
}

.alert-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  font-weight: 560;
  line-height: 1.35;
}

.alert-item b {
  font-size: calc(17px * var(--font-scale));
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.task-modal-count {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  margin: 10px 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
}

.task-summary-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf4;
}

.task-summary-head,
.task-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.task-summary-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.task-summary-head strong {
  font-size: calc(14px * var(--font-scale));
  font-weight: 740;
}

.task-summary-head span,
.task-summary-row strong {
  font-size: calc(15px * var(--font-scale));
  font-weight: 760;
  white-space: nowrap;
}

.task-summary-list {
  display: grid;
  gap: 7px;
}

.task-summary-row {
  min-height: 38px;
  border-radius: 7px;
  padding: 8px 9px;
  background: #ffffff;
}

.task-summary-row span {
  overflow: hidden;
  font-size: calc(13px * var(--font-scale));
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-summary-row small {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  white-space: nowrap;
}

.alert-summary-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.done-banner {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #047857;
  background: #dcfce7;
  font-size: 13px;
  font-weight: 720;
}

.auth-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.auth-strip strong,
.auth-strip span {
  display: block;
}

.auth-strip strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 850;
}

.auth-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.auth-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.mini-action {
  display: inline-flex;
  width: auto;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 680;
  white-space: nowrap;
  box-shadow: none;
}

.login-view {
  position: relative;
  z-index: 35;
  display: grid;
  min-height: calc(100svh - 160px);
  place-items: center;
  pointer-events: auto;
}

.login-card {
  position: relative;
  z-index: 36;
  width: min(100%, 420px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(73, 46, 18, 0.08);
}

.service-login-card {
  width: min(100%, 520px);
}

.service-signup-view {
  align-items: start;
  padding-block: 12px;
}

.service-signup-card {
  width: min(100%, 760px);
}

.service-signup-card .signup-form {
  display: grid;
  gap: 14px;
}

.terms-consent-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.terms-consent-box .check-line {
  min-height: 34px;
  margin: 0;
}

.login-form {
  position: relative;
  z-index: 37;
  display: grid;
  gap: 12px;
}

.login-inline-notice {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
}

.login-inline-notice strong,
.login-inline-notice span {
  display: block;
}

.login-inline-notice strong {
  font-size: calc(13px * var(--font-scale));
  font-weight: 800;
}

.login-inline-notice span {
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  line-height: 1.4;
}

.service-login-card label,
.service-signup-card label {
  position: relative;
  z-index: 38;
  display: grid;
  gap: 7px;
  pointer-events: auto;
}

.service-login-card input,
.service-signup-card input,
.service-signup-card textarea,
.service-signup-card select {
  position: relative;
  z-index: 39;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

.auth-role-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.auth-save-line {
  min-height: 34px;
}

.auth-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin-top: 14px;
}

.auth-link-row button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-help-note,
.password-policy-note,
.caps-lock-note,
.pin-help-note {
  color: #64748b;
  font-size: calc(11px * var(--font-scale));
  font-weight: 680;
  line-height: 1.35;
}

.caps-lock-note {
  color: #b45309;
  font-weight: 760;
}

.text-action {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-filter-section {
  margin-bottom: 14px;
}

.seller-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.seller-filter-grid .ghost-button {
  width: auto;
  min-width: 110px;
  padding: 0 14px;
}

.seller-summary-grid {
  margin-bottom: 14px;
}

.seller-metric-card.green {
  border-color: #bbf7d0;
}

.seller-metric-card.blue {
  border-color: #bfdbfe;
}

.seller-metric-card.orange {
  border-color: #fed7aa;
}

.seller-metric-card.red {
  border-color: #fecaca;
}

.seller-comparison-panel {
  margin-bottom: 14px;
}

.compact-stepper {
  display: inline-flex;
  gap: 6px;
}

.compact-stepper .icon-button {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.seller-settlement-list {
  display: grid;
  gap: 10px;
}

.seller-settlement-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.seller-settlement-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: calc(14px * var(--font-scale));
}

.seller-settlement-item span {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 650;
}

.seller-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seller-money-grid span {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 8px;
  background: #fff7ed;
}

.seller-money-grid b {
  color: var(--ink);
  font-size: calc(13px * var(--font-scale));
}

.seller-settlement-item em {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: calc(12px * var(--font-scale));
  font-weight: 780;
  white-space: nowrap;
}

.seller-settlement-item em.positive {
  color: #047857;
  background: #d1fae5;
}

.seller-settlement-item em.warning {
  color: #b45309;
  background: #fef3c7;
}

.ad-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #fff7ed;
}

.ad-strip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.ad-strip small {
  color: var(--muted);
  font-size: 12px;
}

.record-list,
.settlement-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.daily-ledger-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.daily-ledger-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
}

.daily-ledger-table th,
.daily-ledger-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px dotted #d8cec5;
  text-align: center;
  vertical-align: middle;
}

.daily-ledger-table th {
  height: 46px;
  padding: 8px 10px;
  background: #eee9e6;
  color: var(--ink);
  font-size: calc(15px * var(--font-scale));
  font-weight: 760;
}

.daily-ledger-table td {
  height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: calc(16px * var(--font-scale));
  font-weight: 620;
}

.daily-ledger-table th:last-child,
.daily-ledger-table td:last-child {
  border-right: 0;
}

.daily-ledger-table th:nth-child(1),
.daily-ledger-table td:nth-child(1) {
  width: 19%;
}

.daily-ledger-table th:nth-child(2),
.daily-ledger-table td:nth-child(2) {
  width: 25%;
}

.daily-ledger-table th:nth-child(3),
.daily-ledger-table td:nth-child(3) {
  width: 15%;
}

.daily-ledger-table th:nth-child(4),
.daily-ledger-table td:nth-child(4) {
  width: 20%;
}

.daily-ledger-table th:nth-child(5),
.daily-ledger-table td:nth-child(5) {
  width: 21%;
}

.daily-ledger-row {
  cursor: pointer;
}

.daily-ledger-row:hover,
.daily-ledger-row:focus-visible {
  background: #fff6ed;
  outline: none;
}

.record-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
}

.record-main {
  min-width: 0;
}

.record-main strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: calc(14px * var(--font-scale));
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-main span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-amount {
  text-align: right;
  font-size: calc(14px * var(--font-scale));
  font-weight: 720;
  white-space: nowrap;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--ink);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(480px, 100vw);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.97);
  backdrop-filter: blur(18px);
}

.nav-button {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  color: #8a8580;
  background: transparent;
  font-size: calc(11px * var(--font-scale));
  font-weight: 700;
}

.nav-icon,
.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg,
.inline-icon svg,
.icon-button svg,
.icon-badge svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.nav-button.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.nav-button.is-restricted {
  display: none;
}

body[data-account-role="seller"] .bottom-nav {
  display: none;
}

body[data-account-role="seller"] .view-area {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.desktop-only-nav {
  display: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.overview-tabs {
  margin-bottom: 14px;
}

.entry-mode-tabs {
  margin-bottom: 10px;
}

.segmented button {
  min-height: 45px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.segmented button.active {
  color: #ffffff;
  background: var(--orange);
}

.segmented.auth-role-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented.auth-role-tabs button {
  width: 100%;
  justify-self: stretch;
}

.form-card {
  margin-top: 14px;
  padding: 15px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field,
.wide-field {
  display: grid;
  gap: 7px;
}

.field-grid > label,
.field-grid > .party-field {
  min-width: 0;
}

.wide-field {
  grid-column: 1 / -1;
}

.party-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.party-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
  min-width: 0;
}

.pin-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
}

.pin-button.active {
  color: #ffffff;
  border-color: var(--orange);
  background: var(--orange);
}

.pin-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.suggestion-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(73, 46, 18, 0.12);
}

.suggestion-list button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: #fff7ed;
  font-size: calc(15px * var(--font-scale));
  font-weight: 620;
  line-height: 1.35;
  text-align: left;
}

.customer-hint {
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: calc(12px * var(--font-scale));
  font-weight: 640;
  line-height: 1.35;
  word-break: keep-all;
}

.buyer-default-note {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  line-height: 1.35;
  word-break: keep-all;
}

label {
  color: #35312e;
  font-size: calc(13px * var(--font-scale));
  font-weight: 690;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf9;
  font-size: calc(15px * var(--font-scale));
  font-weight: 620;
  line-height: 1.35;
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #aaa39d;
  font-weight: 560;
  opacity: 1;
}

input[type="date"] {
  white-space: nowrap;
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.35em;
  text-align: left;
}

select {
  text-overflow: ellipsis;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #6f6a65;
  background: #f2eee9;
  -webkit-text-fill-color: #6f6a65;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.check-line {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  color: #35312e;
  font-weight: 760;
}

.check-line input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--orange);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.amount-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-right: 12px;
  background: #fffdf9;
}

.amount-box input {
  border: 0;
  box-shadow: none;
}

.amount-box span {
  color: var(--muted);
  font-weight: 720;
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.quick-buttons button,
.ghost-button,
.primary-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 720;
}

.ghost-button.mini-action,
.primary-button.mini-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 680;
}

.primary-button.mini-action {
  width: auto;
  box-shadow: none;
}

.quick-buttons button,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 9px 18px rgba(255, 122, 26, 0.22);
}

.danger-button {
  border: 0;
  color: var(--red);
  background: #fee2e2;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  margin-top: 14px;
}

.form-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.secondary-entry-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #e2cbb7;
  border-radius: 8px;
  background: #fff7ed;
}

.secondary-entry-panel strong,
.secondary-entry-panel span {
  display: block;
}

.secondary-entry-panel strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.secondary-entry-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.secondary-entry-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-heading {
  margin-bottom: 8px;
}

.summary-list {
  display: grid;
  gap: 9px;
}

.summary-row,
.setting-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.summary-row strong,
.setting-row strong {
  font-size: calc(16px * var(--font-scale));
  font-weight: 780;
  text-align: right;
  white-space: nowrap;
}

.settlement-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  padding: 13px;
  color: inherit;
  font: inherit;
  text-align: left;
}

.settlement-action {
  border: 1px solid var(--line);
  border-left-width: 4px;
}

.settlement-action:active,
.settlement-action:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.35);
  outline-offset: 2px;
  background: #fff4ea;
}

.settlement-row.buyer-row {
  border-left-color: #2563eb;
}

.settlement-row.seller-row {
  border-left-color: var(--orange);
}

.settlement-row.mixed-row {
  border-left-color: var(--purple);
}

.settlement-row.own-row {
  border-left-color: var(--green);
}

.settlement-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.settlement-title-line h4 {
  min-width: 0;
  margin: 0;
  font-size: calc(15px * var(--font-scale));
  font-weight: 760;
  overflow-wrap: anywhere;
}

.role-chip {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: calc(10px * var(--font-scale));
  font-weight: 780;
  line-height: 1.1;
}

.role-chip.buyer-row {
  color: #1d4ed8;
  background: #dbeafe;
}

.role-chip.seller-row {
  color: #c2410c;
  background: #ffedd5;
}

.role-chip.mixed-row {
  color: #6d28d9;
  background: #ede9fe;
}

.role-chip.own-row {
  color: #047857;
  background: #dcfce7;
}

.status-chip {
  flex: 0 0 auto;
  min-height: auto;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  font-size: calc(10px * var(--font-scale));
  font-weight: 780;
  line-height: 1.1;
}

.status-chip.positive {
  color: #047857;
  background: #dcfce7;
}

.status-chip.negative {
  color: #b91c1c;
  background: #fee2e2;
}

.status-chip.warning {
  color: #a16207;
  background: #fef3c7;
}

.status-chip.neutral {
  color: #475569;
  background: #e2e8f0;
}

.seller-link-chip,
.seller-connection-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: calc(10px * var(--font-scale));
  font-weight: 780;
  line-height: 1.1;
}

.seller-link-chip {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 4px 7px;
}

.seller-connection-hint {
  justify-self: start;
  min-height: 24px;
  padding: 5px 8px;
}

.seller-link-chip.positive,
.seller-connection-hint.positive {
  color: #047857;
  background: #dcfce7;
}

.seller-link-chip.warning,
.seller-connection-hint.warning {
  color: #a16207;
  background: #fef3c7;
}

.seller-link-chip.neutral,
.seller-connection-hint.neutral {
  color: #475569;
  background: #e2e8f0;
}

.settlement-heading {
  align-items: center;
}

.settlement-tools {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.compact-search {
  display: inline-flex;
  width: 92px;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(73, 46, 18, 0.04);
  transition: width 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.compact-search:focus-within {
  width: 132px;
  border-color: rgba(255, 122, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12);
}

.compact-search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #aaa39d;
}

.compact-search svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.compact-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.compact-search input::-webkit-search-cancel-button {
  display: none;
}

.settlement-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settlement-metrics span {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.settlement-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.settlement-net {
  align-self: center;
  text-align: right;
  font-size: 17px;
  font-weight: 760;
  white-space: nowrap;
}

.settlement-net span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.settlement-action-bar {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 10px 24px rgba(73, 46, 18, 0.08);
  backdrop-filter: blur(16px);
}

.title-action {
  align-self: start;
  white-space: nowrap;
}

.title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.warning-action {
  color: #b45309;
  border-color: #f7c56b;
  background: #fff7e6;
}

.filter-panel,
.comparison-panel,
.photo-upload-card {
  margin-bottom: 14px;
}

.filter-panel {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fffaf4;
  font-weight: 780;
}

.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.ledger-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.ledger-table th,
.ledger-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.ledger-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #4a443f;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.ledger-table td strong,
.ledger-table td small {
  display: block;
}

.ledger-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.ledger-table .status-chip {
  margin: 2px 3px 2px 0;
}

.neutral-chip {
  color: #4b5563;
  background: #e5e7eb;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-actions .icon-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.ledger-card-list {
  margin-top: 10px;
}

.ledger-table-wrap {
  display: none;
}

.queue-tabs {
  margin-bottom: 12px;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.queue-card.done {
  border-left-color: var(--green);
}

.queue-card-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.queue-card-main .icon-badge {
  display: grid;
  min-width: 38px;
  width: 38px;
  height: 38px;
  align-self: center;
  justify-self: center;
  place-items: center;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.queue-card-main .icon-badge svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  transform: translate(0, 0);
}

.queue-card-main .queue-truck-badge svg {
  width: 24px;
  height: 24px;
  transform: translate(2px, 2px);
  transform-origin: center;
}

.queue-card-main strong,
.queue-card-main span,
.queue-card-main small {
  display: block;
}

.queue-card-main strong {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.queue-card-main span,
.queue-card-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}

.queue-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.comparison-panel {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-band .comparison-panel h3 {
  color: #ffffff;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.comparison-card {
  min-height: 86px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
}

.comparison-card span,
.comparison-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comparison-card strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 19px;
  font-weight: 850;
}

.photo-grid {
  display: grid;
  gap: 10px;
}

.photo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.photo-card strong,
.photo-card span,
.photo-card small {
  display: block;
}

.photo-card strong {
  margin-bottom: 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.photo-card span,
.photo-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.4;
}

.backup-status-list {
  margin-bottom: 18px;
}

.backup-modal-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.backup-modal-summary .summary-row {
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.backup-modal-summary .summary-row span,
.backup-modal-summary .summary-row strong {
  max-width: 100%;
  text-align: left;
  white-space: normal;
  word-break: keep-all;
}

@media (max-width: 520px) {
  .backup-modal-summary {
    grid-template-columns: 1fr;
  }

  .subscription-card-head,
  .plan-inline-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .subscription-card-head .status-chip,
  .plan-inline-notice .ghost-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .subscription-limit-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .seller-filter-grid,
  .seller-settlement-item {
    grid-template-columns: 1fr;
  }

  .seller-filter-grid .ghost-button {
    width: 100%;
  }

  .seller-money-grid {
    grid-template-columns: 1fr;
  }

  .seller-settlement-item em {
    justify-self: start;
  }

  .staff-list-item,
  .account-management-card,
  .seller-connection-item {
    grid-template-columns: 1fr;
  }

  .operator-todo-grid,
  .operator-summary-grid,
  .operator-action-grid {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .form-card .field-grid,
  .directory-form .field-grid {
    grid-template-columns: 1fr;
  }

  .wide-field,
  .form-card .wide-field,
  .field-grid > .wide-field:only-child,
  .field-grid > .wide-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .account-plan-controls {
    grid-template-columns: 1fr;
  }

  .directory-actions,
  .account-management-actions,
  .seller-connection-actions {
    justify-content: stretch;
  }

  .directory-actions .mini-action,
  .account-management-actions .mini-action,
  .seller-connection-actions .mini-action {
    flex: 1 1 120px;
  }

  .daily-ledger-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .daily-ledger-table,
  .daily-ledger-table tbody,
  .daily-ledger-table tr,
  .daily-ledger-table td {
    display: block;
  }

  .daily-ledger-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
  }

  .daily-ledger-table thead {
    display: none;
  }

  .daily-ledger-table tbody {
    display: grid;
    gap: 10px;
  }

  .daily-ledger-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(73, 46, 18, 0.05);
  }

  .daily-ledger-table td,
  .daily-ledger-table td:nth-child(1),
  .daily-ledger-table td:nth-child(2),
  .daily-ledger-table td:nth-child(3),
  .daily-ledger-table td:nth-child(4),
  .daily-ledger-table td:nth-child(5) {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 42px;
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    text-align: left;
    word-break: keep-all;
  }

  .daily-ledger-table td::before {
    color: var(--muted);
    font-size: calc(12px * var(--font-scale));
    font-weight: 760;
  }

  .daily-ledger-table td:nth-child(1)::before {
    content: "판매자";
  }

  .daily-ledger-table td:nth-child(2)::before {
    content: "품목";
  }

  .daily-ledger-table td:nth-child(3)::before {
    content: "금액";
  }

  .daily-ledger-table td:nth-child(4)::before {
    content: "구매자";
  }

  .daily-ledger-table td:nth-child(5)::before {
    content: "비고";
  }

  .toast {
    right: auto;
    left: 50%;
    width: min(320px, calc(100vw - 36px));
    max-width: none;
    min-height: 42px;
    padding: 11px 12px;
    font-size: calc(13px * var(--font-scale));
    line-height: 1.35;
    transform: translate(-50%, 12px);
  }

  .toast.show {
    transform: translate(-50%, 0);
  }
}

.restore-preview {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.restore-preview strong,
.restore-preview span,
.restore-preview small {
  display: block;
}

.restore-preview strong {
  font-size: 14px;
}

.restore-preview span,
.restore-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.restore-compare {
  display: grid;
  gap: 10px;
}

.restore-compare article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.restore-compare strong,
.restore-compare span,
.restore-compare small {
  display: block;
}

.restore-compare span,
.restore-compare small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.history-summary {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.close-checklist {
  display: grid;
  gap: 9px;
}

.close-checklist .check-line {
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pilot-progress-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.pilot-progress-card strong,
.pilot-progress-card small {
  display: block;
}

.pilot-progress-card strong {
  margin-bottom: 3px;
  font-size: calc(17px * var(--font-scale));
  font-weight: 720;
}

.pilot-progress-card small {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  line-height: 1.35;
}

.pilot-action-list {
  margin-top: 12px;
}

.pilot-doc-list {
  display: grid;
  gap: 9px;
}

.pilot-doc-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pilot-doc-list strong {
  font-size: calc(14px * var(--font-scale));
  font-weight: 720;
}

.pilot-doc-list p {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  line-height: 1.45;
}

.pilot-guide-list {
  display: grid;
  gap: 10px;
}

.pilot-guide-list article,
.pilot-guide-note {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pilot-guide-list strong,
.pilot-guide-note strong {
  font-size: calc(15px * var(--font-scale));
  font-weight: 740;
}

.pilot-guide-list p,
.pilot-guide-note p {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  line-height: 1.45;
}

.pilot-guide-list ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.pilot-guide-list li {
  color: #3f3a35;
  font-size: calc(12px * var(--font-scale));
  font-weight: 650;
  line-height: 1.45;
}

.pilot-guide-note {
  margin-top: 12px;
  border-color: #fed7aa;
  background: #fff7ed;
}

.session-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(23, 23, 23, 0.42);
}

.modal-sheet {
  width: min(100%, 480px);
  max-height: calc(100svh - 36px);
  margin: 0 auto;
  overflow: auto;
  padding: 16px;
  border-radius: 12px 12px 8px 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.pilot-docs-modal,
.pilot-guide-modal {
  width: min(100%, 620px);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-heading h3 {
  margin: 0;
  font-size: 22px;
}

.modal-heading .icon-button {
  font-size: 26px;
  line-height: 1;
}

.modal-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-actions {
  position: sticky;
  bottom: -16px;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 8px;
  margin: 14px -16px -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.96);
  backdrop-filter: blur(14px);
}

.signup-sheet .modal-actions {
  position: static;
  margin: 14px 0 0;
  padding: 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.signup-sheet input,
.signup-sheet select,
.signup-sheet textarea {
  pointer-events: auto;
  user-select: text;
}

.single-action {
  grid-template-columns: 1fr;
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.action-list strong,
.action-list small {
  display: block;
}

.action-list strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.action-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-summary {
  margin-bottom: 10px;
}

.import-panel,
.directory-list {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.directory-form .field-grid {
  grid-template-columns: 1fr;
}

.directory-form label {
  font-size: 15px;
}

.directory-form input,
.directory-form textarea {
  min-height: 54px;
  font-size: 16px;
}

.shipping-fields {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
}

.online-customer-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.fulfillment-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #ffffff;
}

.fulfillment-panel {
  display: grid;
  gap: 10px;
}

.fulfillment-panel label {
  display: grid;
  gap: 7px;
}

.import-panel {
  display: grid;
  gap: 8px;
}

.import-panel strong {
  font-size: 14px;
}

.import-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.directory-list {
  display: grid;
  gap: 8px;
}

.directory-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #fff7ed;
}

.directory-item strong {
  font-size: 14px;
}

.directory-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.directory-item small {
  display: block;
  color: #4b5563;
  font-size: calc(12px * var(--font-scale));
  font-weight: 620;
  line-height: 1.35;
}

.staff-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.account-management-list {
  display: grid;
  gap: 10px;
}

.approval-summary-box {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.approval-summary-box p {
  margin: 0;
  color: #1d4ed8;
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.45;
}

.approval-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-summary-box {
  margin-bottom: 12px;
}

.account-management-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-management-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-management-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-management-main strong {
  color: var(--ink);
  font-size: calc(15px * var(--font-scale));
  font-weight: 780;
}

.account-management-main p,
.account-management-main small {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.35;
  word-break: keep-all;
}

.account-plan-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.account-plan-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  font-weight: 760;
}

.account-plan-controls select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: calc(13px * var(--font-scale));
  font-weight: 760;
}

.account-plan-note {
  margin-top: 6px;
}

.account-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.operator-todo-section {
  margin-bottom: 12px;
}

.operator-todo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.operator-todo-card {
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(45, 32, 20, 0.05);
}

.operator-todo-card:hover {
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
}

.operator-todo-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.operator-todo-card.positive {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.operator-todo-card.warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.operator-todo-card.negative {
  background: #fef2f2;
  border-color: #fecaca;
}

.operator-todo-card.neutral {
  background: #f8fafc;
}

.operator-todo-label {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
}

.operator-todo-card strong {
  color: var(--ink);
  font-size: calc(22px * var(--font-scale));
  font-weight: 820;
  line-height: 1.05;
}

.operator-todo-card small {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.35;
  word-break: keep-all;
}

.operator-summary-grid,
.operator-action-grid {
  display: grid;
  gap: 8px;
}

.operator-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.operator-summary-grid article {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
}

.operator-summary-grid span {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
}

.operator-summary-grid strong {
  color: var(--ink);
  font-size: calc(22px * var(--font-scale));
  font-weight: 820;
}

.operator-management-section {
  margin-top: 12px;
}

.operator-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-connection-list {
  display: grid;
  gap: 8px;
}

.seller-connection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.seller-connection-item.compact {
  background: #fff7ed;
}

.seller-connection-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.seller-connection-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.seller-connection-main strong {
  color: var(--ink);
  font-size: calc(14px * var(--font-scale));
  font-weight: 780;
}

.seller-connection-main small,
.seller-link-action-done {
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.35;
}

.seller-connection-actions {
  display: flex;
  justify-content: flex-end;
}

.audit-list,
.info-list {
  display: grid;
  gap: 8px;
}

.audit-item,
.info-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.audit-item {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.audit-item strong,
.info-list strong {
  display: block;
  font-size: 14px;
}

.audit-item span,
.info-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.audit-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.statement-modal {
  width: min(100%, 1180px);
  max-width: 1180px;
  background: #ffffff;
}

.statement-actions {
  position: sticky;
  top: -16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8px;
  margin: -16px -16px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.settlement-statement {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  padding: 9mm 8mm 7mm;
  color: #000000;
  background: #ffffff;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
}

.statement-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 10mm;
  padding: 0 0 4mm;
  border-bottom: 2px solid #000000;
}

.statement-header h2 {
  margin: 0;
  color: #ed7625;
  font-size: 24pt;
  font-weight: 950;
  line-height: 1;
}

.statement-header strong {
  font-size: 13.5pt;
  font-weight: 950;
}

.statement-header span {
  font-size: 9.5pt;
  font-weight: 900;
  white-space: nowrap;
}

.statement-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44mm;
  align-items: start;
  gap: 39mm;
  padding: 7mm 0 5mm;
}

.statement-party-box {
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.statement-head-row,
.statement-value-row {
  display: grid;
  grid-template-columns: 1.65fr 0.85fr;
}

.statement-head-row {
  min-height: 9mm;
  align-items: center;
  background: #eee9e9;
  border-bottom: 2px solid #000000;
}

.statement-head-row strong,
.statement-value-row strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9mm;
  padding: 1mm 3mm;
  font-size: 13pt;
  font-weight: 950;
  text-align: center;
}

.statement-head-row strong + strong,
.statement-value-row strong + strong {
  border-left: 2px solid #000000;
}

.statement-value-row strong {
  min-height: 13mm;
  font-size: 15pt;
}

.statement-money-box {
  background: #efefef;
}

.statement-money-box > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.statement-money-box strong,
.statement-money-box span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9mm;
  font-size: 10pt;
  font-weight: 950;
}

.statement-money-box span {
  min-height: 12mm;
  font-size: 10pt;
}

.statement-account {
  display: flex;
  align-items: baseline;
  gap: 3mm;
  margin: 0 0 4mm;
  font-size: 9.5pt;
  font-weight: 900;
}

.statement-account span {
  font-size: 14pt;
  font-weight: 950;
}

.statement-account em {
  margin-left: auto;
  color: #213a68;
  font-style: normal;
  font-size: 9.5pt;
  text-decoration: underline;
  white-space: nowrap;
}

.statement-notice {
  min-height: 42mm;
  margin-bottom: 5mm;
  font-size: 8.8pt;
  font-weight: 600;
  line-height: 1.35;
}

.statement-notice ol {
  margin: 0;
  padding-left: 5mm;
}

.statement-notice p {
  margin: 1mm 0 0;
  font-weight: 900;
}

.statement-tables {
  display: block;
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.6pt;
}

.statement-table th {
  height: 12mm;
  background: #eee9e9;
  border-bottom: 1px solid #d6d6d6;
  font-size: 10.5pt;
  font-weight: 950;
}

.statement-table td {
  height: 7.4mm;
  box-sizing: border-box;
  padding: 0.8mm 1mm;
  border-top: 1px solid #d6d6d6;
  border-right: 1px dotted #c7c7c7;
  text-align: center;
  font-weight: 850;
  line-height: 1.1;
}

.statement-table th:nth-child(4),
.statement-table td:nth-child(4) {
  border-right: 3px solid #dddddd;
}

.statement-table td:nth-child(1),
.statement-table th:nth-child(1),
.statement-table td:nth-child(5),
.statement-table th:nth-child(5) {
  width: 9.5%;
}

.statement-table td:nth-child(2),
.statement-table th:nth-child(2),
.statement-table td:nth-child(6),
.statement-table th:nth-child(6) {
  width: 19%;
}

.statement-table td:nth-child(3),
.statement-table th:nth-child(3),
.statement-table td:nth-child(7),
.statement-table th:nth-child(7) {
  width: 11%;
}

.statement-table td:nth-child(4),
.statement-table th:nth-child(4),
.statement-table td:nth-child(8),
.statement-table th:nth-child(8) {
  width: 10.5%;
}

.statement-table td:last-child,
.statement-table th:last-child {
  border-right: 0;
}

.statement-no {
  font-weight: 950;
}

.confirm-sheet {
  max-width: 420px;
}

.modal-check {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.danger-primary {
  background: var(--red);
}

.settlement-edit-list {
  display: grid;
  gap: 10px;
}

.settlement-edit-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flat-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.edit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.edit-card-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.edit-card-head span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
}

.compact-grid {
  gap: 9px;
}

.month-switcher {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.month-switcher h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.chart-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 54px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.year-row {
  grid-template-columns: 52px 1fr 70px;
}

.year-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.bar-row span {
  overflow: hidden;
  color: #4f4a45;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ebe5;
}

.bar-fill {
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.settings-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 -18px 18px;
  padding: 18px;
  color: #ffffff;
  background: var(--orange);
}

.settings-profile img {
  width: 66px;
  height: 66px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  object-fit: cover;
}

.settings-profile h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.settings-profile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.settings-title {
  margin-bottom: 14px;
}

.settings-title .status-chip {
  margin-top: 4px;
}

.settings-form-card {
  display: grid;
  gap: 14px;
  padding: 15px;
}

.settings-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.settings-card-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.settings-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.settings-menu-section {
  margin-top: 16px;
}

.first-settings-section {
  margin-top: 0;
}

.support-center-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.support-center-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.support-center-main h3 {
  margin: 0 0 4px;
  font-size: calc(17px * var(--font-scale));
}

.support-center-main p {
  margin: 0;
  color: var(--muted);
  font-size: calc(13px * var(--font-scale));
  font-weight: 700;
  line-height: 1.35;
}

.support-center-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.support-center-lines span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
}

.support-response-list {
  margin-top: 10px;
}

.legal-policy-modal {
  max-width: 720px;
}

.legal-policy-list {
  max-height: min(58svh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.subscription-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid var(--orange);
}

.subscription-card.premium,
.subscription-card.team {
  border-left-color: var(--green);
}

.subscription-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.subscription-card-head h3,
.subscription-card-head p {
  margin: 0;
}

.subscription-card-head h3 {
  font-size: calc(18px * var(--font-scale));
}

.subscription-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.35;
}

.subscription-limit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.subscription-limit-grid div {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.subscription-limit-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  font-weight: 760;
}

.subscription-limit-grid strong {
  display: block;
  font-size: calc(14px * var(--font-scale));
  font-weight: 780;
  line-height: 1.25;
  word-break: keep-all;
}

.subscription-note {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  line-height: 1.45;
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-inline-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
}

.plan-inline-notice strong,
.plan-inline-notice p {
  margin: 0;
}

.plan-inline-notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  line-height: 1.35;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.plan-card.active {
  border-color: var(--orange);
  background: #fff7ed;
}

.plan-card-head {
  display: grid;
  gap: 6px;
}

.plan-card strong {
  font-size: calc(18px * var(--font-scale));
}

.plan-card b {
  font-size: calc(20px * var(--font-scale));
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 720;
  line-height: 1.35;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  line-height: 1.35;
}

.plan-card button:disabled {
  cursor: default;
  opacity: 0.58;
}

.management-grid {
  gap: 9px;
}

.management-grid .management-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(73, 46, 18, 0.05);
}

.management-grid .setting-row:first-child,
.management-grid .setting-row:last-child {
  border-radius: 8px;
}

.management-grid .setting-row + .setting-row {
  border-top: 1px solid var(--line);
}

.management-grid .management-row > span:not(.icon-badge) {
  min-width: 0;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 760;
}

.management-grid .management-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: calc(15px * var(--font-scale));
  font-weight: 780;
  line-height: 1.25;
  text-align: right;
  white-space: normal;
  word-break: keep-all;
}

.font-size-options {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.font-size-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.font-size-option.active {
  border-color: var(--orange);
  background: #fff7ed;
}

.font-size-option strong {
  font-size: calc(16px * var(--font-scale));
  font-weight: 780;
}

.font-size-option span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  font-weight: 650;
}

.font-size-option em {
  display: inline-flex;
  color: var(--orange);
  font-style: normal;
}

.font-size-option em svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.setting-row {
  border-radius: 0;
  box-shadow: none;
}

.management-row {
  width: 100%;
  border: 1px solid var(--line);
  color: inherit;
  text-align: left;
}

.setting-row:first-child {
  border-radius: 8px 8px 0 0;
}

.setting-row:last-child {
  border-radius: 0 0 8px 8px;
}

.setting-row + .setting-row {
  border-top: 0;
}

.empty-state {
  display: grid;
  min-height: 156px;
  place-items: center;
  padding: 18px;
  text-align: center;
  border: 1px dashed #e2d5ca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.is-hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 40;
  max-width: 440px;
  min-height: 46px;
  margin: 0 auto;
  padding: 13px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #241b14;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: calc(100svh - 56px);
    border-radius: 22px;
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 0 0 22px 22px;
  }
}

@media (min-width: 1024px) {
  html,
  body {
    background: #f4efe8;
  }

  body {
    padding: 0;
  }

  .app-shell {
    max-width: none;
    min-height: 100svh;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    background: #f7f2eb;
    box-shadow: none;
  }

  .top-bar {
    position: fixed;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 280px;
    height: 166px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 32px 24px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: rgba(255, 250, 244, 0.98);
    box-shadow: none;
  }

  .top-bar::after {
    content: "웹 운영 콘솔";
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid #ffd0aa;
    border-radius: 999px;
    padding: 0 10px;
    color: var(--orange-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 760;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .eyebrow {
    font-size: calc(12px * var(--font-scale));
  }

  .top-bar h1 {
    font-size: calc(23px * var(--font-scale));
  }

  .bottom-nav {
    position: fixed;
    top: 166px;
    right: auto;
    bottom: 0;
    left: 0;
    width: 280px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    padding: 12px 16px 20px;
    overflow-y: auto;
    transform: none;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 250, 244, 0.98);
    backdrop-filter: none;
  }

  .nav-button {
    grid-template-columns: 28px 1fr;
    min-height: 52px;
    justify-items: start;
    padding: 0 14px;
    border-radius: 8px;
    font-size: calc(14px * var(--font-scale));
    text-align: left;
  }

  .desktop-only-nav {
    display: grid;
  }

  .nav-button.active {
    box-shadow: inset 4px 0 0 var(--orange);
  }

  .view-area {
    min-height: 100svh;
    margin-left: 280px;
    padding: 32px clamp(28px, 4vw, 64px) 52px;
  }

  body[data-account-role="seller"] .top-bar {
    position: sticky;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 18px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-account-role="seller"] .top-bar::after {
    content: "판매자 정산 확인";
  }

  body[data-account-role="seller"] .view-area {
    margin-left: 0;
    padding-top: 28px;
  }

  .view-area > * {
    max-width: 1280px;
  }

  .auth-strip {
    width: fit-content;
    max-width: min(100%, 1280px);
    min-height: 46px;
    margin-left: auto;
    margin-bottom: 18px;
    padding: 8px 10px;
  }

  .auth-strip strong {
    margin-bottom: 1px;
    font-size: calc(12px * var(--font-scale));
  }

  .auth-strip span {
    font-size: calc(11px * var(--font-scale));
    font-weight: 620;
  }

  .auth-actions {
    gap: 6px;
  }

  .auth-actions .mini-action {
    min-height: 34px;
    padding: 0 11px;
  }

  .login-view {
    min-height: calc(100svh - 96px);
  }

  .screen-title {
    align-items: center;
    margin-bottom: 20px;
  }

  .screen-title h2 {
    font-size: calc(30px * var(--font-scale));
  }

  .overview-tabs {
    max-width: 560px;
    margin-bottom: 18px;
  }

  .segmented button {
    min-height: 42px;
  }

  .date-control {
    max-width: 760px;
    grid-template-columns: 46px minmax(320px, 1fr) 46px;
    margin-bottom: 18px;
  }

  .hero-band {
    margin: 0 0 20px;
    border: 1px solid #ffb67a;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(255, 122, 26, 0.16);
  }

  .hero-band .screen-title {
    margin-bottom: 18px;
  }

  .hero-band h2 {
    font-size: calc(28px * var(--font-scale));
  }

  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-metric {
    min-height: 96px;
    padding: 16px;
  }

  .hero-metric strong {
    font-size: calc(24px * var(--font-scale));
  }

  .task-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .task-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 132px;
    align-content: start;
    padding: 15px;
  }

  .task-card:last-child {
    grid-column: auto;
  }

  .task-card b {
    grid-column: 1 / -1;
    justify-self: end;
    align-self: end;
    font-size: calc(32px * var(--font-scale));
  }

  .grid-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .auction-total-card {
    grid-column: span 2;
  }

  .kpi-card {
    min-height: 136px;
    padding: 16px;
  }

  .kpi-card strong {
    font-size: calc(24px * var(--font-scale));
  }

  .section {
    margin-top: 22px;
  }

  .section-heading h3 {
    font-size: calc(22px * var(--font-scale));
  }

  .record-list {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 12px;
  }

  .record-card {
    min-height: 86px;
    padding: 14px;
  }

  .record-main strong {
    font-size: calc(15px * var(--font-scale));
  }

  .record-main span {
    font-size: calc(12px * var(--font-scale));
  }

  .record-amount {
    font-size: calc(15px * var(--font-scale));
  }

  .summary-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .backup-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settlement-action-bar {
    top: 0;
    max-width: 1120px;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr);
    margin-bottom: 18px;
  }

  .filter-panel {
    max-width: 1120px;
    padding: 16px;
  }

  .filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .filter-grid .wide-field {
    grid-column: span 2;
  }

  .ledger-table-wrap {
    display: block;
  }

  .ledger-card-list {
    display: none;
  }

  .queue-list {
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 12px;
  }

  .queue-card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-panel {
    max-width: 760px;
  }

  .hero-band .comparison-panel {
    max-width: none;
  }

  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 12px;
  }

  .history-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .restore-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-row {
    min-height: 82px;
    padding: 16px;
  }

  .settlement-list {
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 12px;
  }

  .settlement-row {
    min-height: 132px;
    padding: 16px;
  }

  .settlement-title-line h4 {
    font-size: calc(17px * var(--font-scale));
  }

  .settlement-metrics {
    gap: 10px;
  }

  .settlement-metrics strong {
    font-size: calc(14px * var(--font-scale));
  }

  .settlement-net {
    font-size: calc(19px * var(--font-scale));
  }

  .compact-search {
    width: 180px;
  }

  .compact-search:focus-within {
    width: 240px;
  }

  .form-card {
    max-width: 1120px;
    padding: 22px;
  }

  .field-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .form-card .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-field {
    grid-column: span 2;
  }

  .form-card .wide-field {
    grid-column: 1 / -1;
  }

  .field-grid > .wide-field:only-child,
  .field-grid > .wide-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .quick-buttons {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .shipping-fields {
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    align-items: end;
  }

  .online-customer-fields {
    grid-column: 1 / -1;
    grid-template-columns: 300px 1fr;
    align-items: start;
  }

  .fulfillment-tabs {
    align-self: start;
  }

  .fulfillment-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .form-actions {
    width: min(420px, 100%);
    margin-left: auto;
  }

  .secondary-entry-panel {
    max-width: 1120px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .secondary-entry-buttons {
    min-width: 300px;
  }

  .settings-menu-section {
    max-width: 1120px;
  }

  .management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .management-grid .management-row {
    min-height: 82px;
    padding: 16px;
  }

  .management-grid .management-row strong {
    font-size: calc(16px * var(--font-scale));
  }

  .modal-backdrop {
    align-items: center;
    justify-items: center;
    padding: 32px;
  }

  .modal-sheet {
    width: min(920px, calc(100vw - 64px));
    max-height: calc(100svh - 64px);
    border-radius: 12px;
  }

  .confirm-sheet {
    max-width: 560px;
  }

  .record-editor {
    max-width: 960px;
  }

  .modal-heading h3 {
    font-size: calc(24px * var(--font-scale));
  }

  .directory-form .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statement-modal {
    width: min(1180px, calc(100vw - 64px));
    max-width: 1180px;
  }

  .toast {
    right: 28px;
    bottom: 28px;
    left: 308px;
    margin: 0;
  }
}

@media (max-width: 360px) {
  .view-area {
    padding-right: 14px;
    padding-left: 14px;
  }

  .grid-2,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .settlement-metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff;
  }

  body.printing-statement .app-shell {
    display: none !important;
  }

  body:not(.printing-statement) .app-shell {
    max-width: none;
    min-height: auto;
    box-shadow: none;
  }

  .top-bar,
  .bottom-nav,
  .date-control,
  .icon-button,
  .ghost-button,
  .toast {
    display: none !important;
  }

  .view-area {
    padding: 0;
  }

  .hero-band {
    margin: 0 0 14px;
  }

  body.printing-statement .modal-backdrop {
    position: static;
    display: block;
    padding: 0;
    background: #ffffff;
  }

  body.printing-statement .statement-modal {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.printing-statement .statement-actions {
    display: none !important;
  }

  body.printing-statement .settlement-statement {
    width: 210mm;
    min-height: 297mm;
    padding: 9mm 8mm 7mm;
    overflow: hidden;
    break-after: avoid;
    page-break-after: avoid;
  }

  body.printing-statement .statement-table tr,
  body.printing-statement .statement-table td,
  body.printing-statement .statement-table th {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
