:root {
  color-scheme: light;
  --ink: var(--levosa-ink);
  --forest: var(--levosa-action);
  --dark: var(--levosa-navy);
  --paper: #fff;
  --sand: var(--levosa-soft);
  --sage: var(--levosa-tint);
  --line: var(--levosa-line);
  --sub: var(--levosa-muted);
  --amber: #714521;
  --peach: #f8ead7;
  --danger: #8a362a;
  --radius: 16px;
  font: 15px/1.55 var(--levosa-font);
  background: var(--sand);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
a { color: var(--forest); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--levosa-accent); outline-offset: 3px; }
.shell { width: min(100% - 42px, 1180px); margin-inline: auto; }
.mast { background: var(--dark); color: #fff; }
.mast-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand img { border-radius: 11px; border: 1px solid #a9caff66; }
.brand strong { display: block; font: 700 24px/1 var(--levosa-font); letter-spacing: -.03em; white-space: nowrap; }
.brand small { font-size: 9px; font-weight: 800; letter-spacing: .24em; color: #a9caff; }
.mast-actions, .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.role { color: var(--levosa-nav-muted); margin-right: 5px; font-size: 13px; }
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--levosa-field);
  border-radius: 9px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 720;
  text-decoration: none;
  line-height: 1.25;
}
.button:hover { background: var(--levosa-tint); }
.button.primary { background: var(--forest); border-color: var(--forest); color: white; }
.button.primary:hover { background: var(--levosa-action-hover); }
.button.mast-button { background: #ffffff0d; color: #fff; border-color: #9ab3a270; min-height: 39px; font-size: 13px; }
.button.mast-button:hover { background: #ffffff20; }
.button.subtle { background: transparent; }
.button.small { min-height: 36px; padding: 5px 10px; font-size: 13px; }
.button.danger { color: var(--danger); }
.icon { width: 18px; height: 18px; flex: none; }
.demo-band { background: #f1dfc3; color: #5a3c23; padding: 7px 14px; text-align: center; font-size: 12px; font-weight: 740; }
main.shell { padding-block: 34px 56px; }
.loading, .muted { color: var(--sub); }
.eyebrow {
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 7px;
}
h1, h2 { font-family: var(--levosa-font); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 16px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.hero h1 { margin-bottom: 8px; }
.hero .button { flex-shrink: 0; }
.info-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.info-line .dot { width: 7px; height: 7px; background: #648f71; border-radius: 50%; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px #1d285408;
}
.queue { display: grid; grid-template-columns: minmax(260px, .76fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.queue-top { padding: 15px 16px 13px; border-bottom: 1px solid var(--line); }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.count { font-size: 12px; font-weight: 760; padding: 3px 9px; background: var(--sage); border-radius: 30px; white-space: nowrap; }
.field { display: grid; gap: 5px; color: var(--sub); font-size: 13px; font-weight: 700; }
input:not([type="checkbox"]), select, textarea {
  border: 1px solid var(--levosa-field);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  font-size: 16px;
}
input[type="file"] { padding: 8px 10px; font-size: 13px; }
.order-list { margin: 0; padding: 7px; list-style: none; max-height: 510px; overflow: auto; }
.order-select {
  width: 100%; border: 1px solid transparent; background: transparent; color: inherit; text-align: left;
  border-radius: 10px; padding: 10px; min-height: 58px; display: flex; justify-content: space-between;
  align-items: center; gap: 8px;
}
.order-select:hover { background: var(--levosa-soft); }
.order-select[aria-pressed="true"] { background: var(--sage); border-color: var(--levosa-selected); }
.order-select strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.order-states { display: grid; justify-items: end; gap: 4px; text-align: right; }
.small-note { font-size: 12px; color: var(--sub); }
.pill { display: inline-flex; border-radius: 99px; padding: 4px 8px; font-size: 11px; line-height: 1.2; font-weight: 750; background: var(--levosa-soft); color: var(--levosa-muted); }
.pill.ready, .pill.pickup { background: #e7f4ed; color: #215b41; }
.pill.pending, .pill.review { background: var(--peach); color: var(--amber); }
.order-detail { padding: clamp(16px, 3vw, 29px); min-width: 0; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; margin-bottom: 15px; }
.detail-head h2 { margin-bottom: 5px; overflow-wrap: anywhere; }
.items { padding: 0; margin: 7px 0 19px; list-style: none; border-top: 1px solid var(--line); }
.items li { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.items strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.sku { font-size: 11px; color: var(--sub); letter-spacing: .04em; overflow-wrap: anywhere; }
.units { color: var(--forest); background: var(--levosa-tint); border-radius: 7px; min-width: 36px; text-align: center; padding: 3px 7px; font-weight: 800; white-space: nowrap; }
.documents h3 { margin-bottom: 9px; }
.documents .small-note { margin-top: 10px; }
.order-note { background: var(--levosa-soft); border-radius: 9px; padding: 10px 13px; margin-block: 13px; }
.order-note h3 { margin-bottom: 4px; }
.order-work { margin-top: 19px; }
.order-work > .callout { margin-bottom: 0; }
.work-section { border-top: 1px solid var(--line); padding-top: 13px; }
.work-section summary { color: var(--forest); font-weight: 720; cursor: pointer; }
.work-section[open] summary { margin-bottom: 12px; }
.work-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.work-comments { list-style: none; margin: 0; padding: 0; }
.work-comments li { padding-block: 8px; border-bottom: 1px solid var(--line); }
.work-comments li:last-child { border-bottom: 0; }
.work-comments .small-note { overflow-wrap: anywhere; }
.order-work textarea { resize: vertical; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.photo-card { border: 1px solid var(--line); border-radius: 9px; padding: 10px; align-content: start; }
.photo-card h4 { margin: 0; font-size: 14px; }
.photo-card a { display: block; }
.photo-card img { display: block; width: 100%; height: 115px; object-fit: cover; border-radius: 6px; background: var(--sage); }
.photo-card [data-photo-status]:empty { display: none; }
.empty { padding: 23px 17px; color: var(--sub); }
.empty strong { display: block; color: var(--ink); margin-bottom: 2px; }
.callout { margin-bottom: 14px; padding: 10px 13px; background: var(--peach); border: 1px solid #ecdcb8; border-radius: 9px; color: var(--amber); }
.callout.error { color: var(--danger); background: #f9e9e3; border-color: #e6c4ba; }
.auth-layout { display: grid; grid-template-columns: 1.1fr minmax(0, .9fr); gap: clamp(20px, 6vw, 76px); max-width: 900px; margin: clamp(5px, 8vh, 86px) auto; align-items: start; }
.auth-lead { padding-top: 16px; }
.auth-lead h1 { margin-bottom: 13px; }
.auth-lead .muted { max-width: 38ch; }
.auth-steps { padding: 0; margin-top: 22px; list-style: none; color: var(--sub); }
.auth-steps li { border-top: 1px solid var(--levosa-line); padding: 9px 0; }
.auth-steps strong { color: var(--forest); margin-right: 8px; }
.auth-panel { padding: clamp(18px, 3vw, 29px); }
.auth-panel h2 { margin-bottom: 14px; }
.stack { display: grid; gap: 12px; }
.demo-actions { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.demo-actions p { margin-bottom: 8px; }
dialog {
  width: min(calc(100% - 28px), 630px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--levosa-field);
  border-radius: var(--radius);
  box-shadow: 0 20px 75px #1d285450;
}
dialog::backdrop { background: #1d2854a0; }
.dialog-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 17px 19px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 29px; }
.dialog-body { padding: 16px 19px 20px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--forest); }
.label-advanced { border-top: 1px solid var(--line); padding-top: 11px; }
.label-advanced summary { cursor: pointer; color: var(--forest); font-weight: 700; }
.label-advanced[open] summary { margin-bottom: 11px; }
.pdf {
  width: 100%; height: min(54dvh, 470px); min-height: 270px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--levosa-soft); display: block;
}
.account-list { list-style: none; margin: 14px 0 0; padding: 0; }
.account-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-list li strong { display: block; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 5; bottom: 18px; right: 18px; width: max-content; max-width: calc(100% - 36px); padding: 12px 15px; background: var(--dark); color: white; border-radius: 10px; box-shadow: 0 5px 18px #1d285440; }
.toast.error { background: var(--danger); }
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  main.shell { padding-block: 21px 35px; }
  .mast-row { min-height: 64px; }
  .mast-actions { justify-content: flex-end; }
  .role { display: none; }
  .brand strong { font-size: 19px; }
  .brand img { width: 35px; height: 35px; }
  .button.mast-button { padding-inline: 8px; font-size: 12px; }
  .hero { align-items: start; margin-bottom: 14px; }
  .hero .button { font-size: 0; padding-inline: 11px; }
  .hero .button .icon { width: 20px; height: 20px; }
  .queue, .auth-layout { grid-template-columns: 1fr; gap: 12px; }
  .order-list { max-height: 170px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card .button { min-height: 43px; }
  .auth-lead { padding: 0; }
  .auth-steps { display: none; }
}
@media (max-width: 390px) {
  .mast-row { padding-block: 7px; align-items: flex-start; }
  .mast-actions { max-width: 53%; gap: 4px; }
  .button.mast-button { min-height: 33px; }
  .documents .button { flex: 1 1 100%; }
}
