:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f5;
  background: #08090a;
  font-synthesis: none;
  --panel: #17191c;
  --border: #383c42;
  --muted: #b3b7bf;
  --green: #b7ff00;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 5vw; border-bottom: 1px solid #2b2e33; background: #0b0c0e; }
.brand { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.brand strong { font-size: 52px; line-height: 1; font-weight: 900; letter-spacing: -5px; }
.brand span { font-size: 18px; font-weight: 750; letter-spacing: 4px; }
.brand small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; letter-spacing: 2px; }
.internal, .eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.internal { border: 1px solid var(--border); border-radius: 100px; padding: 10px 15px; color: var(--muted); }
main { max-width: 1280px; min-height: calc(100vh - 183px); margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding: 64px 5vw; }
.eyebrow { color: var(--green); }
h1 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 750; letter-spacing: -2.5px; line-height: 1.06; margin: 24px 0; }
h2 { font-size: 28px; letter-spacing: -.8px; margin: 0 0 12px; overflow-wrap: anywhere; }
h3 { font-size: 18px; letter-spacing: -.3px; }
h4 { margin-top: 0; }
p { line-height: 1.6; }
.intro > p:last-of-type, .muted { color: var(--muted); font-size: 14px; }
.rule { width: 52px; height: 3px; background: var(--green); margin-top: 32px; }
.card { min-width: 0; padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: 0 24px 64px #0005; }
label { display: block; font-size: 13px; font-weight: 650; margin: 24px 0 9px; color: #dfe1e5; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #737b87; border-radius: 8px; padding: 12px 14px; font: inherit; background: #0e1012; color: #f4f4f5; }
input::placeholder, textarea::placeholder { color: #999faa; opacity: 1; }
textarea { min-height: 96px; resize: vertical; }
button { width: 100%; min-height: 48px; margin-top: 24px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: #111500; font: inherit; font-weight: 750; cursor: pointer; transition: background-color .15s, border-color .15s; }
button:hover:not(:disabled) { background: #ceff50; }
button:active:not(:disabled) { background: #a6e600; }
button:disabled { opacity: .45; cursor: default; }
.secondary { background: #22252a; color: #f4f4f5; border-color: #555b65; }
.secondary:hover:not(:disabled) { background: #30343a; border-color: #8a929e; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, #customer-profile:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
#status, #customer-status, #points-status, #customer-copy-status { font-size: 14px; overflow-wrap: anywhere; }
#status { margin: 0 0 20px; }
#status:empty { display: none; }
dl { border-block: 1px solid var(--border); padding: 20px 0; margin: 24px 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 9px 0 0; font-weight: 700; text-transform: capitalize; }
footer { min-height: 79px; padding: 26px 5vw; border-top: 1px solid #2b2e33; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
body:has(#dashboard:not([hidden])) main { display: block; max-width: 1280px; padding: 28px 4vw; }
body:has(#dashboard:not([hidden])) .intro { display: none; }
#dashboard > .eyebrow { margin-top: 0; }
.lookup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.lookup-grid > section, .lookup-grid > form { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #111315; }
.lookup-grid h3 { margin-top: 0; }
.lookup-grid p { color: var(--muted); font-size: 13px; }
.scanner-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.compact, .icon-button { width: auto; min-height: 44px; margin-top: 0; padding: 8px 14px; }
#scanner-status { min-height: 2.6em; font-size: 13px; }
.customer-result { padding: 20px 0; border-bottom: 1px solid var(--border); }
.customer-result h3 { margin: 0; }
.customer-result p { margin: 6px 0; overflow-wrap: anywhere; }
.customer-result button { width: auto; padding: 10px 24px; margin-top: 10px; }
#customer-profile { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
#customer-name { font-size: 24px; overflow-wrap: anywhere; }
.customer-email-row { display: flex; align-items: center; gap: 12px; }
#customer-email { min-width: 0; overflow-wrap: anywhere; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; padding: 8px; }
.balances { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 24px; background: #10140c; border: 1px solid #465732; border-radius: 12px; }
.balances dd { font-size: 34px; letter-spacing: -1px; color: var(--green); font-variant-numeric: tabular-nums; }
#points-form { border-top: 1px solid var(--border); padding-top: 16px; margin: 24px 0; }
.quick-redeem { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.quick-redeem button { min-width: 0; width: auto; margin-top: 8px; padding: 10px 4px; background: #252b1b; border-color: #586b36; color: var(--green); font-size: 18px; }
.quick-redeem button:hover:not(:disabled) { background: var(--green); color: #111500; }
.custom-redeem { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; align-items: end; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.custom-redeem button { margin: 0; padding: 10px; min-height: 48px; }
.custom-amount label { margin: 0 0 8px; }
#points-preset-all { background: #22252a; color: #f4f4f5; border-color: #555b65; }
#points-preset-all:hover:not(:disabled) { background: #30343a; }
#points-admin { padding: 0 18px 18px; margin-top: 24px; border: 1px solid var(--border); border-radius: 10px; }
#points-review { border: 1px solid var(--green); padding: 24px; margin-top: 20px; border-radius: 12px; background: #10140c; }
#points-review-text { white-space: pre-line; overflow-wrap: anywhere; }
#customer-activity ul { padding-left: 20px; }
#customer-activity li { padding: 12px 0; line-height: 1.5; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
#signout { width: auto; margin-top: 28px; }
@media (max-width: 900px) { header { min-height: 92px; } main { gap: 32px; padding: 40px 5vw; } .card { padding: 28px; } .internal { display: none; } .intro h1 { font-size: 42px; } }
@media (max-width: 700px) { main { grid-template-columns: 1fr; } .intro .rule { display: none; } .card { padding: 20px; border-radius: 12px; } .lookup-grid { grid-template-columns: 1fr; gap: 16px; } .lookup-grid > section, .lookup-grid > form { padding: 18px; } header { padding-inline: 6vw; } }
@media (max-width: 500px) { .custom-redeem { grid-template-columns: 1fr 1fr; } .custom-amount { grid-column: 1 / -1; grid-row: 1; } .quick-redeem { gap: 5px; } .brand span { font-size: 15px; letter-spacing: 3px; } .brand strong { font-size: 46px; } footer { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (forced-colors: active) { button, .card, .balances, #points-review { border: 1px solid ButtonText; } }
/* Keep the signed-in identity compact so lookup controls sit higher on POS screens. */
#dashboard > dl { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; margin: 18px 0 24px; }
#dashboard > dl dd { margin: 0; font-size: 13px; }

.brand { min-width: 0; }
.brand-logo { display: block; width: min(360px, 76vw); height: auto; max-width: 100%; }
.portal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}.portal-tabs button{margin:0;min-height:52px;padding:12px 8px;font-size:clamp(.75rem,2vw,1rem)}.marketing-result{border:1px solid #34383b;border-radius:12px;padding:18px;margin:16px 0;background:#111315;overflow-wrap:anywhere}.marketing-result h4{color:#b7ff00;margin:0 0 12px}.marketing-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}.marketing-result summary{cursor:pointer;color:#b7ff00}#certificate-result{overflow-wrap:anywhere}
#redemption-pos { width: 22px; min-height: 22px; vertical-align: middle; margin-right: 8px; }
#certificate-redemption, #certificate-admin { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
#redemption-review { border: 1px solid var(--green); border-radius: 12px; padding: 20px; margin-top: 20px; background: #10140c; }
#redemption-review-text, #certificate-history-results { overflow-wrap: anywhere; }
#certificate-history-results article { border-bottom: 1px solid var(--border); padding: 12px 0; }
#certificate-history-results details { margin-top: 12px; }
#certificate-history-results summary { cursor: pointer; color: var(--green); }
