html { min-width:320px; background:var(--ui-color-canvas); }
body { min-height:100vh; background:var(--ui-color-canvas); }
.orders-container { width:min(calc(100% - 64px),1120px); margin-inline:auto; }
.orders-header { border-bottom:1px solid var(--ui-color-border); background:var(--ui-color-surface); }
.orders-header-row { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.orders-brand { display:inline-flex; align-items:center; gap:10px; color:var(--ui-color-text); font-size:18px; font-weight:700; text-decoration:none; }
.orders-brand-mark { width:14px; height:14px; flex:none; border-radius:50%; background:var(--ui-color-accent); }
.orders-main { padding:64px 0 88px; }
.orders-page { display:grid; gap:28px; }
.orders-intro { max-width:720px; }
.orders-eyebrow { margin:0 0 10px; color:var(--ui-color-accent-strong); font-size:var(--ui-font-size-sm); font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
.orders-intro h1 { margin:0; font-size:clamp(36px,6vw,54px); line-height:1.1; }
.orders-intro > p:last-child { margin:14px 0 0; color:var(--ui-color-text-muted); font-size:18px; }
.orders-search-panel { display:grid; gap:12px; }
.orders-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:16px; }
.orders-status { margin:0; }
.orders-status[data-kind="error"] { color:var(--ui-color-danger-strong); }
.orders-result { min-width:0; }
.orders-card { display:grid; gap:24px; }
.orders-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.orders-card-header h2 { margin:0; overflow-wrap:anywhere; font-size:clamp(26px,4vw,36px); }
.orders-technical-id,.orders-status-description { margin:6px 0 0; color:var(--ui-color-text-muted); overflow-wrap:anywhere; }
.orders-badge { flex:none; padding:8px 14px; font-size:16px; font-weight:700; }
.orders-section { display:grid; gap:14px; }
.orders-section h3 { margin:0; font-size:20px; }
.orders-metadata { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; overflow:hidden; border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-md); background:var(--ui-color-border); }
.orders-metadata > div { min-width:0; padding:14px; background:var(--ui-color-surface-raised); }
.orders-metadata dt { color:var(--ui-color-text-muted); font-size:var(--ui-font-size-sm); }
.orders-metadata dd { margin:5px 0 0; overflow-wrap:anywhere; }
.orders-date-current { box-shadow:inset 3px 0 var(--ui-color-accent); }
.orders-contents { display:grid; gap:8px; padding:0; margin:0; list-style:none; }
.orders-contents li { padding:10px 0; border-bottom:1px solid var(--ui-color-border); overflow-wrap:anywhere; }
.orders-preview-frame { min-height:180px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--ui-color-border); border-radius:var(--ui-radius-md); background:var(--ui-color-surface-soft); }
.orders-preview { display:block; width:auto; max-width:100%; max-height:520px; object-fit:contain; }
.orders-preview-message { padding:24px; margin:0; color:var(--ui-color-text-muted); text-align:center; }
.orders-actions { display:flex; justify-content:flex-end; }
@media (max-width:640px) {
  .orders-container { width:min(calc(100% - 32px),1120px); }
  .orders-header-row { min-height:64px; }
  .orders-brand { font-size:14px; }
  .orders-header .ui-button { min-height:38px; padding-inline:10px; font-size:12px; }
  .orders-main { padding:42px 0 64px; }
  .orders-form,.orders-metadata { grid-template-columns:1fr; }
  .orders-form .ui-button { width:100%; }
  .orders-card-header { flex-direction:column; }
  .orders-badge { align-self:flex-start; }
  .orders-actions .ui-button { width:100%; }
}
