/* Geometry and light palette from every approved docs/mockup/*.dc.html board.
   The signed common header/footer keep their own stylesheet. */
html.privacy-page { background: #F6F7F9; color-scheme: light; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; line-height: 1.5; }
body > .top { color: #e8ecf8; }
html.privacy-page body > .top .ico, html.privacy-page body > .top button, html.privacy-page body > .top a { min-width: 44px; min-height: 44px; }
#app, .rt-dialog { color: #1B1F24; background: #F6F7F9; font-size: 14px; }
#app { min-height: 75vh; padding-top: 76px; }
#app *, .rt-dialog * { box-sizing: border-box; }
#app a, .rt-dialog a { color: #1A56C4; }
#app a:hover, .rt-dialog a:hover { color: #123E8F; }
#app h1, #app h2, #app h3, #app p, .rt-dialog h2, .rt-dialog p { margin: 0; }
#app h1 { font-size: 26px; line-height: 1.3; font-weight: 700; }
#app h2, .rt-dialog h2 { font-size: 20px; line-height: 1.4; }
#app h3 { font-size: 15px; }
#app ul, #app ol { list-style: none; margin: 0; padding: 0; }
#app small, .rt-dialog small { display: block; font-size: 12px; }
#app button, #app input, #app select, #app textarea, .rt-dialog button, .rt-dialog input, .rt-dialog select, .rt-dialog textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1A56C4; outline-offset: 3px; }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: #fff; border-bottom: 1px solid #E3E6EA; }
.rt-brand, .rt-nav { display: flex; align-items: center; gap: 12px; }
.rt-brand { font-size: 17px; }
.rt-nav { gap: 4px; flex-wrap: wrap; }
#app .rt-nav a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border-radius: 8px; color: #3A424D; font-weight: 500; text-decoration: none; }
#app .rt-nav a.active { background: #EAF0FB; color: #1A56C4; font-weight: 600; }
.rt-badge { border-radius: 10px; background: #B54708; color: #fff; padding: 1px 7px; font-size: 12px; }
.rt-content { max-width: 1280px; margin: 0 auto; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 22px; }
.rt-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rt-heading > div:first-child { flex: 1 1 400px; }
.rt-heading p { margin-top: 4px !important; }
.rt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #1A56C4; border-radius: 8px; background: #1A56C4; color: #fff; font-weight: 600 !important; cursor: pointer; }
.rt-btn:hover { background: #123E8F; }
.rt-btn.rt-plain { border-color: #C9CED6; background: #fff; color: #1B1F24; font-weight: 500 !important; }
.rt-btn.rt-plain:hover { background: #EAF0FB; }
.rt-btn:disabled { cursor: wait; opacity: .65; }
.rt-muted, .rt-field small { color: #5B6470; }
.rt-code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.rt-card { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-wrap: anywhere; }
.rt-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rt-metric { padding: 16px 18px; gap: 6px; }
.rt-metric > span { font-size: 13px; color: #5B6470; }
.rt-metric > strong { font-size: 26px; line-height: 1.3; }
.rt-metric small { color: #5B6470; }
.rt-warning { background: #FFF6ED; border-color: #F5C99A; color: #8A3A05; }
.rt-warning > span, .rt-warning small { color: #8A3A05; }
.rt-list { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; overflow: hidden; }
.rt-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #E3E6EA; align-items: flex-end; }
.rt-filters .rt-field { flex: 0 1 200px; }
.rt-filters .rt-field:first-child { flex: 1 1 280px; }
.rt-field { display: flex; flex-direction: column; gap: 4px; color: #3A424D; font-size: 13px; min-width: 0; }
.rt-field input, .rt-field select, .rt-field textarea { min-height: 44px; padding: 10px 12px; border: 1px solid #C9CED6; border-radius: 8px; background: #fff; color: #1B1F24; width: 100%; }
.rt-field input::placeholder { color: #5B6470; opacity: 1; }
#app a:focus-visible { outline: 3px solid #1A56C4; outline-offset: 3px; }
.rt-field:has(input[type=checkbox]) { flex-direction: row; align-items: center; justify-content: space-between; min-height: 44px; }
.rt-field input[type=checkbox], .rt-pack-item input { width: 22px; height: 22px; min-height: 22px; accent-color: #1A56C4; }
.rt-table-wrap { overflow-x: auto; }
#app table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
#app th { padding: 12px 8px; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .04em; color: #5B6470; }
#app td { padding: 12px 8px; border-top: 1px solid #EEF0F3; }
#app th:first-child, #app td:first-child { padding-left: 16px; }
#app th:last-child, #app td:last-child { padding-right: 16px; }
.rt-number { text-align: right; font-variant-numeric: tabular-nums; }
.rt-product { display: flex; align-items: center; gap: 12px; flex-direction: row; }
.rt-thumb { width: 40px; height: 40px; border-radius: 8px; background: #E9ECF0; flex: none; }
.rt-pill { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rt-pill.ok { background: #E6F4EA; color: #14632B; }
.rt-pill.low { background: #FFF1E5; color: #8A3A05; }
.rt-pill.out { background: #FDE8E8; color: #9B1C1C; }
.rt-pill.visible { background: #EAF0FB; color: #1A56C4; }
.rt-pill.neutral { background: #EEF0F3; color: #4A525D; }
.rt-list-hint { padding: 12px 16px; border-top: 1px solid #E3E6EA; font-size: 13px; color: #5B6470; }
.rt-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rt-column { background: #EEF0F3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#app .rt-column h2 { font-size: 14px; }
.rt-column .rt-heading { flex-wrap: nowrap; gap: 8px; }
.rt-count { background: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; color: #4A525D; }
.rt-order { padding: 12px; border-radius: 10px; gap: 8px; }
.rt-order .rt-heading { align-items: baseline; }
.rt-order p { font-size: 13px; }
.rt-order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#app .rt-order-actions a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.rt-order .rt-btn { padding: 0 12px; font-size: 13px; }
.rt-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
#app .rt-detail h2 { font-size: 15px; }
.rt-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rt-steps li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rt-steps li::before { content: ''; height: 6px; border-radius: 3px; background: #D5DAE1; }
.rt-steps li.complete::before { background: #1A56C4; }
.rt-steps small { color: #5B6470; }
.rt-pack-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; }
.rt-grow { flex: 1; min-width: 0; }
.rt-address { background: #F6F7F9; border-radius: 8px; padding: 12px; white-space: pre-line; }
.rt-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rt-state { padding: 28px; gap: 12px; }
.rt-state .rt-btn { align-self: flex-start; }
.rt-preferences { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin: 0; }
.rt-preferences dd { margin: 0; max-width: 240px; text-align: right; }
.rt-shipment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rt-dialog { width: min(95vw, 560px); max-height: 90vh; border: 1px solid #C9CED6; border-radius: 14px; padding: 24px; }
.rt-dialog::backdrop { background: #1B1F24aa; }
.rt-dialog > .rt-heading { margin-bottom: 16px; }
.rt-dialog > .rt-heading > h2 { flex: 1; }
.rt-tracking-link { display: flex; align-items: center; min-height: 44px; margin-top: 12px; }
.rt-stack { display: flex; flex-direction: column; gap: 14px; }
fieldset.rt-stack { border: 0; margin: 0; padding: 0; min-width: 0; }
.rt-error { padding: 16px; border: 1px solid #E6AAAA; background: #FDE8E8; color: #9B1C1C; border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.rt-empty { text-align: center; color: #5B6470; padding: 40px 16px; }
.rt-readonly { padding: 12px 16px; background: #EAF0FB; border-radius: 8px; color: #1A56C4; }
.status, .mk-welcome { padding: 40px 24px; text-align: center; }
.mk-welcome { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rt-phone { display: none !important; }
@media (max-width: 1000px) and (min-width: 701px) { .rt-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .rt-phone { display: block !important; }
  .rt-desktop { display: none !important; }
  .rt-bar { padding: 14px 16px; }
  .rt-new.rt-phone { display: inline-flex !important; width: 44px; height: 44px; padding: 0; border-radius: 10px; font-size: 24px !important; }
  #app .rt-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #E3E6EA; background: #fff; }
  #app .rt-nav a { padding: 6px 4px; border-radius: 0; min-height: 56px; justify-content: center; font-size: 12px; flex-wrap: wrap; gap: 3px; }
  #app .rt-nav a.active { background: #fff; }
  .rt-content { padding: 16px 16px 80px; gap: 16px; }
  #app h1 { font-size: 22px; }
  .rt-heading > div:first-child { flex-basis: 100%; }
  .rt-actions { width: 100%; }
  .rt-actions > button { flex: 1; padding: 0 10px; }
  .rt-inventory-heading > div:first-child, .rt-actions .rt-new-product { display: none; }
  .rt-metrics { display: none; }
  .rt-list { background: transparent; border: 0; overflow: visible; }
  .rt-filters { padding: 0 0 10px; border: 0; }
  .rt-filters .rt-field:first-child { flex-basis: calc(100% - 110px); }
  .rt-filters .rt-field:nth-child(2) { flex: 1; }
  .rt-filters .rt-field:nth-child(3) { display: none; }
  .rt-chips.rt-phone { display: flex !important; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
  .rt-chip { flex: none; min-height: 44px; padding: 0 12px; border-radius: 999px; background: #fff; color: #1B1F24; border: 1px solid #E3E6EA; cursor: pointer; }
  .rt-chip.selected { background: #1B1F24; color: #fff; border-color: #1B1F24; }
  .rt-inventory-cards.rt-phone { display: flex !important; flex-direction: column; gap: 8px; }
  .rt-inventory-cards .rt-card { padding: 12px; }
  .rt-inventory-cards .rt-thumb { width: 44px; height: 44px; }
  .rt-stock { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .rt-stock .rt-pill { align-self: flex-end; font-size: 11px; padding: 2px 8px; }
  .rt-quantity { font-size: 18px; font-variant-numeric: tabular-nums; }
  .rt-board { display: block; }
  .rt-column { background: transparent; border-radius: 0; padding: 0; display: none; }
  .rt-board[data-stage=pending] [data-column=pending], .rt-board[data-stage=picking] [data-column=picking], .rt-board[data-stage=packed] [data-column=packed], .rt-board[data-stage=shipped] [data-column=shipped] { display: flex; }
  .rt-column > .rt-heading { display: none; }
  .rt-order { padding: 14px; border-radius: 12px; }
  .rt-order-actions > .rt-stack, .rt-order-actions > .rt-btn { width: 100%; }
  .rt-order .rt-btn { min-height: 48px; width: 100%; font-size: 15px; }
  .rt-detail, .rt-states, .rt-shipment-list { grid-template-columns: 1fr; }
  .rt-state { padding: 24px; }
  .rt-steps { gap: 6px; }
  .rt-steps li { font-size: 11px; overflow-wrap: anywhere; }
  .rt-steps small { font-size: 10px !important; }
  .rt-preferences { grid-template-columns: 1fr; gap: 8px; }
  .rt-preferences dd { text-align: left; margin-bottom: 12px; }
  .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}
