@font-face {
  font-family: Daxline;
  src: url('/brand/daxline-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Daxline;
  src: url('/brand/daxline-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #252525;
  --muted: #565656;
  --border: #ededed;
  --panel: #f6f6f6;
  --canvas: #fafafa;
  --surface: #fff;
  font: 16px/1.5 Daxline, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.shell { width: min(100% - 64px, 1280px); margin-inline: auto; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 76px; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.brand img { width: clamp(132px, 18vw, 192px); height: auto; }
.brand span { border-left: 1px solid #d2d2d2; padding-left: 16px; font-weight: 700; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
nav a, .header button { color: inherit; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; }
nav a:hover, nav a[aria-current], .header button:hover { text-decoration: underline; text-underline-offset: .45em; }
.header form:last-child { margin-inline-start: auto; }
.header nav + form { margin-inline-start: 0; }
main.shell { flex: 1; padding-block: clamp(28px, 5vw, 72px); }
footer { background: var(--panel); color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.footer-cat summary { list-style: none; cursor: pointer; }
.footer-cat summary::-webkit-details-marker { display: none; }
.footer-cat p { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.footer-cat p span { font-size: 24px; line-height: 1; }
h1, h2 { margin: 0 0 18px; font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: 24px; margin-top: 32px; }
p { margin: 0 0 20px; }
a { color: var(--ink); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
form { margin: 0; }
label { display: block; font-weight: 700; }
input, select, button, .button { font: inherit; border-radius: 0; min-height: 44px; }
input, select { width: 100%; padding: 9px 12px; color: var(--ink); border: 1px solid #8b8b8b; background: var(--surface); }
label > input, label > select { display: block; margin-top: 6px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: 9px 18px; color: var(--surface); background: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { background: var(--muted); color: var(--surface); border-color: var(--muted); }
button:disabled { opacity: .55; cursor: default; }
.secondary, .link-button { background: transparent; color: var(--ink); }
.link-button { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { background: transparent; color: var(--ink); border-color: transparent; }
.panel, .empty { padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); }
.panel + .panel { margin-top: 16px; }
.panel h2:first-child { margin-top: 0; }
.account { max-width: 500px; margin-inline: auto; }
.login-layout { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; border: 1px solid var(--border); }
.login-hero { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4.5vw, 64px); background: var(--border); }
.login-hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 0; }
.login-hero img { display: block; width: 100%; height: auto; margin-top: 8px; mix-blend-mode: multiply; }
.login-account { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 72px); background: var(--surface); }
.login-account h2 { margin-top: 0; font-size: 32px; }
.login-account > p { color: var(--muted); }
.login-account > p.error { color: #912818; }
.login-account .form button { justify-self: stretch; margin-top: 4px; }
.form { display: grid; gap: 16px; }
.form button { justify-self: start; }
.hint { color: var(--muted); margin: 0; font-size: 14px; }
.search, .customer-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.search { margin-block: 16px 24px; }
.search label { flex: 1 1 150px; min-width: 0; max-width: 240px; }
.search .search-term { flex-basis: 280px; max-width: 420px; }
.search a { align-self: center; }
.customer-form label { flex: 1 1 180px; max-width: 330px; }
.notice { padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--border); overflow-wrap: anywhere; }
.error, .stock-alert { color: #912818; }
.error { border-color: #ad3120; background: #ffede7; }
.table { margin-block: 8px 18px; border: 1px solid var(--border); overflow: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--panel); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.stacked span:last-child { color: var(--muted); }
.number { font-variant-numeric: tabular-nums; }
.code, code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quantity input { width: 5.2rem; }
.submit-request { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.submit-request p { margin: 0; }
.back { display: inline-block; margin-bottom: 16px; }
.request-meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-block: 12px 24px; }
.request-meta dt { color: var(--muted); }
.request-meta dd { margin: 0; overflow-wrap: anywhere; }
.user-group + .user-group { margin-top: 24px; }
.user-group form { margin-bottom: 20px; }
.inquiries { display: grid; gap: 8px; }
.inquiries details { min-width: 0; border: 1px solid var(--border); background: var(--surface); }
.inquiries summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; cursor: pointer; background: var(--panel); }
.inquiries summary::-webkit-details-marker { display: none; }
.inquiries summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.inquiries details[open] summary::before { transform: rotate(45deg); }
.inquiries summary time { margin-inline-start: auto; }
.inquiry-body { padding: 0 16px 1px; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 0 12px; }
  nav { order: 3; width: 100%; margin-inline: 0; }
  .header nav + form { margin-inline-start: auto; }
  .login-layout { grid-template-columns: 1fr; }
  .login-hero img { max-width: 440px; margin-inline: auto; }
  .login-account h2 { font-size: 24px; }
  .inquiries summary time { margin-inline-start: 0; }
  .table { overflow: visible; }
  table, tbody, tr { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { border-bottom: 1px solid var(--border); padding: 12px; }
  tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: minmax(85px, 125px) minmax(0, 1fr); gap: 8px; padding: 4px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-family: Daxline, Arial, sans-serif; }
  .stock-ok { display: none; }
}
@media (max-width: 480px) {
  .login-hero img { max-width: 270px; }
  .search .search-term { flex: 1 1 100%; }
}
