:root {
  color-scheme: light;
  --ink: #26352f;
  --muted: #748078;
  --line: #e6e9e5;
  --paper: #f5f7f4;
  --card: #ffffff;
  --green: #355a48;
  --green-dark: #294737;
  --green-soft: #eaf2eb;
  --gold: #a8844b;
  --gold-soft: #f7f1e7;
  --red: #a74b49;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: var(--green); color: white; font-family: Georgia, serif; font-size: 21px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.topnav a { text-decoration: none; color: #526057; }
.topnav a:hover, .back-link:hover, .text-link:hover { color: var(--green); }
.topnav form { margin: 0; }
.nav-button { border: 0; padding: 8px 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.page { width: min(1120px, calc(100% - 36px)); margin: 42px auto 72px; min-height: calc(100vh - 180px); }
.footer { padding: 22px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 11px; }
.eyebrow { margin: 0 0 9px; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 45px); font-weight: 500; letter-spacing: -.025em; }
h2 { margin-bottom: 15px; font-size: 17px; font-weight: 650; }
h3 { margin-bottom: 5px; font-size: 15px; }
.muted { color: var(--muted); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.page-heading > div:first-child > p:last-child { margin-bottom: 0; font-size: 14px; }
.live-badge, .payment-status, .connection-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: var(--gold-soft); color: #806639; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #d3a857; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.summary-card, .card, .order-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgb(34 54 42 / 3%); }
.summary-card { min-height: 116px; padding: 18px 20px; }
.summary-card span, .summary-card small { display: block; color: var(--muted); font-size: 12px; }
.summary-card strong { display: inline-block; margin: 8px 8px 3px 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.summary-card small { display: inline-block; font-size: 10px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { margin-bottom: 14px; }
.sort-label { margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.order-list { display: grid; gap: 12px; }
.order-card { display: block; padding: 19px 21px; text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.order-card:hover { border-color: #b9c9bd; transform: translateY(-1px); box-shadow: 0 10px 24px rgb(34 54 42 / 7%); }
.order-card-top, .order-card-main, .order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.order-card-main { margin: 17px 0 14px; }
.store-pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 7px; background: #edf2ee; color: #48604f; font-size: 11px; font-weight: 650; }
.order-time { color: var(--muted); font-size: 11px; }
.order-card-main .muted { margin-bottom: 0; font-size: 12px; }
.order-total { font-size: 15px; font-weight: 650; white-space: nowrap; }
.order-card-bottom { justify-content: flex-start; padding-top: 12px; border-top: 1px solid #eef0ed; }
.payment-status { padding: 5px 9px; font-size: 10px; }
.payment-status .status-dot { background: #5c9571; }
.payment-status.status-pending { background: #fcf1df; color: #84652e; }
.payment-status.status-pending .status-dot { background: #d3a857; }
.order-status { color: var(--muted); font-size: 10px; }
.arrow { margin-left: auto; color: var(--green); font-size: 11px; font-weight: 650; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(28px, 8vw, 100px); min-height: 65vh; }
.login-copy { max-width: 460px; }
.login-copy h1 { font-size: clamp(42px, 6vw, 60px); line-height: 1.06; }
.login-copy > .muted { max-width: 390px; line-height: 1.65; }
.security-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--green); font-size: 12px; font-weight: 600; }
.security-note .status-dot { background: #5c9571; }
.card { padding: 22px; }
.login-card { padding: 27px; }
.login-card > .muted { margin-bottom: 24px; font-size: 12px; }
label { display: block; margin: 16px 0; color: #4a574f; font-size: 11px; font-weight: 650; }
input { display: block; width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid #dfe5df; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; outline: none; }
input:focus { border-color: #789984; box-shadow: 0 0 0 3px rgb(80 127 96 / 12%); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 0; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 650; }
.button-primary { background: var(--green); color: white; cursor: pointer; }
.button-primary:hover { background: var(--green-dark); }
.full-width { width: 100%; margin-top: 8px; }
.button-disabled { background: #f0f2ef; color: #89918b; cursor: not-allowed; }
.fine-print { margin: 15px 0 0; color: #8a928c; font-size: 10px; text-align: center; }
.notice { margin-bottom: 17px; padding: 12px 14px; border-radius: 8px; font-size: 11px; line-height: 1.5; }
.notice-error { background: #fff1ef; color: #963d38; }
.notice-error p { margin: 6px 0 0; }
.notice-info { margin-top: 18px; background: #eef4ef; color: #48604f; }
.notice-info p { margin: 6px 0 0; }
.order-filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(150px, 1fr)); gap: 12px; margin: 5px 0 14px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.order-filters label { margin: 0; }
.order-filters input, .order-filters select { height: 40px; }
.filter-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
[hidden] { display: none !important; }
.back-link, .text-link { display: inline-block; margin-bottom: 22px; color: var(--green); font-size: 12px; text-decoration: none; }
.detail-heading { align-items: center; margin-bottom: 23px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.detail-grid .card { min-height: 210px; }
.item-row, .total-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0ec; font-size: 12px; }
.item-row strong { color: var(--muted); }
.total-row { margin-top: 12px; padding-top: 15px; font-weight: 650; }
.address-block { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #526057; font-size: 12px; line-height: 1.45; }
.address-block a { color: var(--green); text-decoration: none; }
.carrier-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.carrier-card h2 { margin-bottom: 7px; }
.carrier-card .muted { max-width: 620px; margin-bottom: 0; font-size: 12px; line-height: 1.55; }
.demo-controls, .notification-settings { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.demo-controls h2, .notification-settings h2 { margin-bottom: 6px; }
.demo-controls .muted, .notification-settings .muted { max-width: 650px; margin-bottom: 0; font-size: 12px; line-height: 1.55; }
.workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.workflow-actions form { margin: 0; }
.workflow-actions .notice { margin: 0; }
.print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.print-toolbar .back-link { margin: 0; }
.demo-label { width: min(100%, 520px); margin: 0 auto; padding: 34px; border: 2px dashed #7d8980; background: white; color: #26352f; }
.demo-label h1 { margin-top: 24px; font-size: 30px; }
.demo-label p { margin: 22px 0; font-size: 14px; line-height: 1.6; }
.label-brand { padding: 10px; background: #f7f1e7; color: #806639; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.tracking-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 750; letter-spacing: .08em; }
.demo-label .label-warning { padding-top: 14px; border-top: 1px solid var(--line); color: var(--red); font-size: 11px; font-weight: 700; }
#app-notification { padding: 12px 18px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; text-align: center; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.integration-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.carrier-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 800; }
.postnl-icon { background: #fff0ef; color: #c83d32; }
.postnord-icon { background: #eaf1fa; color: #244b7a; }
.connection-badge { padding: 6px 9px; background: #f1f3f1; color: #747d76; font-size: 10px; }
.integration-card p { margin-bottom: 14px; font-size: 12px; }
.integration-card .setting-note { margin: 12px 0; }
.settings-spaced { margin-top: 15px; }
.setting-note { min-height: 48px; margin: 17px 0; padding: 12px; border-radius: 8px; background: #f7f8f6; color: #68746c; font-size: 11px; line-height: 1.45; }
.setup-warning { max-width: 620px; margin: 12vh auto 0; }
.setup-warning p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.7; }

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 0 16px; }
  .topnav { gap: 14px; font-size: 11px; }
  .page { width: min(100% - 28px, 600px); margin-top: 28px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .summary-grid { gap: 8px; margin-bottom: 25px; }
  .summary-card { min-height: 96px; padding: 13px 12px; }
  .summary-card span { font-size: 10px; }
  .summary-card strong { margin-right: 4px; font-size: 24px; }
  .summary-card small { display: block; font-size: 9px; }
  .order-card { padding: 15px; }
  .order-card-main { align-items: flex-start; }
  .order-card-bottom { flex-wrap: wrap; }
  .arrow { width: 100%; margin: 2px 0 0; }
  .login-layout { grid-template-columns: 1fr; gap: 22px; padding: 14px 0; }
  .login-copy h1 { max-width: 420px; font-size: 43px; }
  .login-copy .security-note { margin-top: 18px; }
  .login-card { padding: 22px; }
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .carrier-card { align-items: flex-start; flex-direction: column; }
  .demo-controls, .notification-settings { align-items: flex-start; flex-direction: column; }
  .order-filters { grid-template-columns: 1fr; gap: 8px; }
  .print-toolbar { align-items: flex-start; flex-direction: column; }
  .demo-label { padding: 24px; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .topnav { gap: 10px; }
  .order-time { font-size: 10px; }
  .order-card-main .muted { max-width: 210px; line-height: 1.4; }
  .store-pill { padding: 5px 8px; font-size: 10px; }
}

@media print {
  body { min-width: 0; background: white; }
  .site-header, .footer, .print-toolbar, #app-notification { display: none !important; }
  .page { width: 100%; margin: 0; }
  .demo-label { width: 100%; border: 1px solid #333; }
}

.landing-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.landing-brand { display: flex; align-items: center; gap: 12px; padding: 22px clamp(18px, 5vw, 72px); background: var(--card); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.landing-secret { padding: 0; border: 0; cursor: pointer; }
.landing-secret:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.landing-secret:disabled { cursor: default; }
.landing-card { width: min(460px, calc(100% - 36px)); align-self: center; justify-self: center; padding: 42px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px rgb(34 54 42 / 6%); text-align: center; }
.landing-card h1 { margin-bottom: 12px; }
.landing-card .muted { margin-bottom: 24px; }
.landing-status { min-height: 24px; margin: 18px 0 0; font-size: 13px; }
.landing-login { color: var(--green); font-weight: 650; }
@media (max-width: 520px) {
  .landing-card { padding: 30px 22px; }
}
