:root {
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color: #152c26;
  background: #f0f4ef;
  --deep: #102b25;
  --green: #166448;
  --light: #dbece1;
  --muted: #52665d;
  --line: #ccd9d0;
  --paper: #fff;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .64; cursor: wait; }
:focus-visible { outline: 3px solid #15765b; outline-offset: 3px; }
.wrap { width: min(960px, 100% - 32px); margin-inline: auto; }
.bar { background: var(--deep); color: white; }
.bar-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { font-size: 1.15rem; font-weight: 850; background: #e2f5c0; color: var(--deep); border-radius: 10px; padding: 9px 8px; }
.logo span { color: #267c58; }
.brand { display: grid; gap: 3px; flex: 1; }
.brand span { font-size: .75rem; color: #c0d5c9; }
.quiet { background: transparent; border: 1px solid #698678; color: white; border-radius: 11px; min-height: 44px; padding-inline: 14px; }
.quiet:focus-visible { outline-color: #e2f5c0; }
main { padding-block: clamp(28px, 6vw, 68px); }
.intro { color: #eff8f0; padding: clamp(24px, 5vw, 48px); background: var(--deep); border-radius: var(--radius); align-content: center; }
.intro h1 { font-size: clamp(2rem, 6.7vw, 4rem); line-height: 1.02; letter-spacing: -.06em; margin: 10px 0 16px; }
.intro p { color: #c6dbce; max-width: 33ch; margin: 0; line-height: 1.5; }
.intro .label { color: #daf2bb; font-size: .77rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; max-width: none; overflow-wrap: anywhere; }
.access { display: grid; gap: 16px; }
.login-card, .controls { background: var(--paper); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }
h2 { font-size: 1.32rem; margin: 0 0 15px; letter-spacing: -.025em; }
label { display: block; font-weight: 650; margin-bottom: 5px; font-size: .88rem; }
input, select { width: 100%; min-height: 47px; color: inherit; padding: 9px 11px; border: 1px solid #9eafa3; border-radius: 10px; background: #fcfdfb; font-size: 1rem; }
#login-form input, #company-form input { margin-bottom: 13px; }
.primary, .secondary, .filter, .text-button {
  min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; font-weight: 680;
}
.primary { background: var(--green); color: white; }
.primary:hover { background: #13513c; }
.secondary { background: #f0f7f1; border-color: var(--line); color: var(--deep); }
#login-form .primary, #company-form .primary, #demo-button { width: 100%; }
#demo-button { margin-top: 10px; }
.stock-intro h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.controls { margin-top: 14px; padding: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { color: var(--deep); background: var(--paper); border-color: var(--line); font-size: .86rem; }
.filter[aria-pressed="true"] { background: var(--light); border-color: #75a68d; }
#search-form { display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.mode { grid-column: 1 / -1; }
#search-form .primary { min-height: 47px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-top: 10px; }
.results-heading h2 { margin: 0; }
.text-button { color: var(--green); background: transparent; }
#status { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.error { color: #892e1d; background: #fff1e7; border-radius: 10px; padding: 10px 12px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.product { text-align: start; width: 100%; min-height: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; color: inherit; padding: 14px; }
.product:hover { border-color: #6a9881; }
.product-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.product-head strong { overflow-wrap: anywhere; }
.price { white-space: nowrap; color: #15593d; font-weight: 780; }
.product-detail { margin-top: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: .85rem; }
.low { background: #ffeed1; color: #784900; padding: 3px 7px; border-radius: 6px; }
.pagination { text-align: center; margin-top: 16px; }
dialog { width: min(460px, 100% - 28px); color: inherit; max-height: 85dvh; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
dialog::backdrop { background: #102b2588; }
.dialog-close { display: flex; justify-content: flex-end; margin-bottom: 12px; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; border-top: 1px solid var(--line); padding-block: 10px; }
dd { margin: 0; font-weight: 660; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .access { grid-template-columns: 1.25fr 1fr; }
  .login-card { padding: 28px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #search-form { grid-template-columns: minmax(140px, .5fr) 1.5fr auto; }
  .mode { grid-column: auto; }
}

#company-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: .9rem; color: var(--muted); }

.approval { border-top: 1px solid var(--line); padding-top: 12px; }
.approval h3 { margin: 0 0 8px; font-size: 1rem; }
.approval p, .access-hint { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.approval .access-code { color: var(--deep); background: var(--light); border-radius: 10px; padding: 10px 12px; font-weight: 750; letter-spacing: .06em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.request-card button + button { margin-left: 8px; }
.request-card p { color: var(--muted); }
