:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #181818;
  background: #f4f2e9;
  --yellow: #f8e600;
  --ink: #181818;
  --muted: #66645e;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: var(--ink); color: white; border-bottom: 5px solid var(--yellow); padding: 22px max(20px, calc((100vw - 1160px)/2)); }
.brand { display: flex; gap: 15px; align-items: center; }
.logo { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-size: 31px; font-weight: 950; letter-spacing: -3px; width: 58px; height: 58px; transform: rotate(-4deg); flex-shrink: 0; }
.logo span { font-size: 6px; letter-spacing: .7px; margin-top: 2px; }
h1 { font-size: 27px; line-height: 1; letter-spacing: -1.4px; font-weight: 950; margin: 0 0 7px; }
.brand-dot { color: var(--yellow); font-size: 12px; vertical-align: top; margin-left: 4px; }
.brand small { color: #c3c1b6; font-size: 9px; letter-spacing: 1.3px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; }
nav a { padding: 11px 14px; text-decoration: none; color: #e7e5db; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; border: 1px solid #4b4b46; }
nav a:hover, nav a[aria-current] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
nav form { margin-left: auto; }
nav .quiet { color: white; }
main { max-width: 1200px; padding: 36px 20px; margin: auto; min-height: 67vh; }
h2 { font-size: clamp(28px, 4vw, 43px); text-transform: uppercase; font-weight: 900; letter-spacing: -1.7px; margin: 6px 0 12px; line-height: 1.07; }
h3 { font-size: 19px; margin-top: 0; font-weight: 800; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; letter-spacing: 1.7px; font-weight: 800; border-left: 5px solid var(--yellow); padding-left: 9px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 20px; }
section { background: #fffef9; border: 1px solid #d5d2c6; border-top: 4px solid var(--ink); padding: 25px; margin-bottom: 20px; }
.cards section { margin: 0; }
.product-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-heading h3 { margin: 0; }
.quantity { font-size: 34px; font-weight: 900; color: var(--ink); background: var(--yellow); padding: 4px 11px; }
.muted, .hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.expiry-list { list-style: none; padding: 0; }
.expiry-list li, .entry { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e8e5da; padding: 12px 0; font-size: 14px; }
.badge { font-size: 11px; padding: 3px 7px; }
.danger { background: #ffebe3; color: #9b341d; }
a { color: var(--ink); text-underline-offset: 4px; }
form { display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea, button, .button { font: inherit; min-height: 46px; border-radius: 0; }
input, select, textarea { padding: 12px; border: 1px solid #aca99f; background: white; width: 100%; min-width: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); text-decoration: none; font-weight: 800; cursor: pointer; font-size: 13px; }
button:hover, .button:hover { background: var(--ink); color: var(--yellow); }
.secondary { background: transparent; }
.quiet { background: transparent; border-color: transparent; padding: 8px 12px; }
fieldset { border: 1px solid #d5d2c6; margin: 20px 0; padding: 18px; }
legend { font-size: 13px; font-weight: 800; padding: 0 8px; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
summary { cursor: pointer; font-size: 14px; padding: 10px 0; font-weight: 700; }
.table { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e0ddd3; white-space: nowrap; font-size: 14px; }
th { color: var(--muted); }
.notice { padding: 16px; border-left: 5px solid var(--ink); background: #f4edb6; }
.error { background: #ffe8e0; color: #8e321e; }
.empty { grid-column: 1/-1; padding: 40px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; background: #f4f2e9; padding: 14px; }
footer { text-align: center; padding: 26px 20px; color: var(--muted); font-size: 11px; border-top: 1px solid #d5d2c6; }
:focus-visible { outline: 3px solid #3064bd; outline-offset: 3px; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 960px; margin: 18px auto 32px; border: 2px solid var(--ink); }
.poster { background: var(--yellow); padding: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; }
.poster-kicker, .poster-bottom { font-size: 9px; letter-spacing: 1.2px; font-weight: 800; }
.poster-title { font-weight: 950; font-size: clamp(62px, 7vw, 90px); letter-spacing: -7px; line-height: .85; margin: 28px 0; }
.poster-period { color: #fffef9; }
.poster-caption { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1; margin: 0 0 24px; }
.shirt-pattern { display: flex; flex-direction: column; font-size: 20px; font-weight: 950; letter-spacing: -1px; line-height: 1.2; transform: rotate(-6deg); white-space: nowrap; border-top: 2px solid var(--ink); padding-top: 12px; }
.shirt-pattern span:nth-child(2) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.poster-bottom { margin-top: 30px; }
.login { border: 0; border-left: 2px solid var(--ink); margin: 0; padding: 48px 36px; display: flex; flex-direction: column; justify-content: center; }
.login h2 { font-size: 30px; margin-bottom: 28px; }
.login .hint { font-size: 12px; margin-top: 24px; }
@media (max-width: 650px) {
  .heading { align-items: flex-start; flex-direction: column; }
  nav { gap: 5px; }
  nav a { padding: 10px; font-size: 11px; }
  nav form { margin-left: 0; }
  section { padding: 18px; }
  main { padding-top: 22px; }
  .fields { grid-template-columns: 1fr; }
  .actions button { flex: 1; }
  .login-layout { grid-template-columns: 1fr; margin: 0; }
  .poster { min-height: 0; padding: 24px; }
  .poster-title { font-size: 64px; margin: 20px 0; letter-spacing: -4px; }
  .poster-caption { font-size: 24px; }
  .shirt-pattern, .poster-bottom { display: none; }
  .login { border-left: 0; border-top: 2px solid var(--ink); padding: 28px 24px; }
  .brand small { font-size: 8px; letter-spacing: .7px; }
}
