body[data-portal="pos"] { --bg:#100d19; --panel:#1b1726; --edge:#373042; --muted:#b6afc5; --gold:#edcb85; --cyan:#d8bcff; background:radial-gradient(ellipse at 70% 0,#32213d55,transparent 65%),#100d19; }
body.pos-workspace #top { display:none; }
.pos-shell { display:grid; grid-template-columns:244px minmax(0,1fr); min-height:100svh; }
.pos-sidebar { position:sticky; top:0; height:100svh; overflow-y:auto; padding:24px 16px 16px; display:flex; flex-direction:column; background:linear-gradient(180deg,#20152e 0,#14101e 38%,#15111d); border-right:1px solid #47354d; }
.pos-brand { display:grid; justify-items:center; text-decoration:none; margin-bottom:28px; }
.pos-brand img { width:164px; height:122px; object-fit:contain; filter:drop-shadow(0 5px 15px #0008); }
.pos-brand>span { color:#c5a976; font-weight:700; font-size:.72rem; letter-spacing:.25em; margin-top:10px; }
.pos-nav-label { font-size:.7rem; font-weight:800; letter-spacing:.16em; color:#a99ab9; margin:20px 15px 10px; }
.pos-nav-item { width:100%; display:flex; align-items:center; gap:13px; min-height:47px; margin:4px 0; padding:10px 14px; border:1px solid transparent; border-radius:8px; background:transparent; color:#bfb5ce; text-align:left; font-size:.92rem; font-weight:600; }
.pos-nav-item svg,.pos-location-mark svg { width:21px; height:21px; flex-shrink:0; }
.pos-nav-item:hover { color:#fff; background:#ffffff08; }
.pos-nav-item.active { color:#ffe1a4; border-color:#80613f; background:linear-gradient(100deg,#62442c66,#4430254d); box-shadow:inset 3px 0 #f0ce89; }
.pos-nav-item small { margin-left:auto; padding:1px 7px; border-radius:5px; background:#d4ad5e24; color:#ffe1a4; font-size:.75rem; }
.pos-nav-divider { height:1px; background:#34283d; margin:20px 12px; }
.pos-sidebar-bottom { margin-top:auto; padding-top:30px; }
.pos-user { display:flex; align-items:center; gap:10px; padding:16px 6px; border-top:1px solid #34283d; }
.pos-user strong { font-size:.86rem; overflow-wrap:anywhere; }
.pos-user small { font-size:.75rem; margin-top:2px; }
.pos-main { min-width:0; display:flex; flex-direction:column; }
.pos-topbar { min-height:80px; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 34px; border-bottom:1px solid #342a3c; background:#17121fc9; }
.pos-topbar>div { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.pos-topbar strong { font-size:1rem; }
.pos-topbar small { font-size:.8rem; padding-left:12px; border-left:1px solid #4b3c54; }
.pos-location-mark { color:#ddb980; display:flex; }
.pos-access { color:#d7bb89; font-size:.81rem; border:1px solid #6f55364f; border-radius:6px; padding:6px 10px; white-space:nowrap; background:#c6973520; }
.pos-content { padding:32px 34px; display:grid; grid-template-columns:minmax(0,1fr); gap:24px; width:100%; max-width:1800px; margin:0 auto; }
.pos-content>* { min-width:0; }
.pos-page-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.pos-page-heading .eyebrow { color:#a897b7; font-size:.69rem; letter-spacing:.15em; margin-bottom:10px; }
.pos-page-heading h1 { font-size:2.2rem; font-weight:700; letter-spacing:-.035em; }
.pos-page-heading p { font-size:.92rem; margin:9px 0 0; }
.pos-workspace .surface { background:linear-gradient(135deg,#231c2d,#1a1623 65%); border:1px solid #3c3047; border-radius:12px; padding:24px; box-shadow:0 6px 24px #00000018; }
.pos-workspace h2 { font-size:1.23rem; letter-spacing:-.02em; line-height:1.3; }
.pos-workspace h3 { font-size:1.1rem; }
.pos-workspace .section-title p { margin:5px 0 0; font-size:.875rem; }
.pos-workspace .primary { background:linear-gradient(#f5d79a,#d9af64); border-color:#efd29a; color:#2d1d0d; box-shadow:0 2px 7px #0003; font-size:.875rem; }
.pos-workspace .primary:hover { background:#ffdf9b; }
.pos-workspace .quiet { color:#d4cbdf; background:#282132; border-color:#473950; font-size:.875rem; }
.pos-workspace .quiet:hover { color:#fff0cf; border-color:#b39460; }
.pos-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.pos-metric { position:relative; padding:20px 22px; border:1px solid #3d3148; border-radius:10px; background:linear-gradient(120deg,#282032,#1d1826); overflow:hidden; }
.pos-metric:before { content:''; position:absolute; inset:18px auto 18px 0; width:3px; background:#9e7fc2; border-radius:0 4px 4px 0; }
.pos-metric>span { font-size:.84rem; color:#c6bbd2; }
.pos-metric strong { display:block; font-size:clamp(1.5rem,2.2vw,2rem); line-height:1.3; margin:8px 0 4px; letter-spacing:-.03em; overflow-wrap:anywhere; }
.pos-metric small { font-size:.75rem; color:#b3a6c0; }
.pos-metric.gold:before { background:#e7bd74; }.pos-metric.gold strong { color:#f5d397; }
.pos-metric.green:before { background:#46d7a4; }.pos-metric.green strong { color:#77e9b7; }
.pos-metric.red:before { background:#ef737f; }.pos-metric.red strong { color:#ff9a9f; }
.pos-search { margin:24px 0 14px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.pos-search input { max-width:470px; background:#15111e; border-color:#45374f; font-size:.875rem; }
.pos-search>span { font-size:.81rem; color:#baabc9; white-space:nowrap; }
.pos-workspace table { margin:0; font-size:.875rem; }
.pos-workspace th { background:#17121f; font-weight:600; font-size:.75rem; color:#b8abc6; padding:13px 14px; white-space:nowrap; }
.pos-workspace td { padding:18px 14px; border-color:#362a40; }
.pos-workspace tbody tr:last-child td { border-bottom:0; }
.pos-workspace tbody tr:hover { background:#b290d607; }
.pos-player { display:flex; align-items:center; gap:12px; min-width:170px; }
.pos-player strong { font-size:.9rem; font-weight:600; }
.pos-player small { font-size:.75rem; color:#a699b6; margin-top:4px; }
.pos-avatar { display:grid; place-items:center; flex:0 0 37px; width:37px; height:37px; border-radius:10px; color:#e2c1f4; background:linear-gradient(135deg,#593966,#32263f); border:1px solid #67446e; font-size:.8rem; font-weight:700; }
.pos-code { font-family:Consolas,ui-monospace,monospace; letter-spacing:.03em; white-space:nowrap; color:#d4c5e5; }
.pos-winnings { color:#f2d698; font-weight:700; }
.pos-purchase,.pos-redeem { min-height:40px; padding:8px 14px; border:1px solid; border-radius:7px; font-size:.84rem; box-shadow:inset 0 1px #ffffff18,0 3px 9px #0003; }
.pos-purchase { background:linear-gradient(#228750,#156639); color:#edfff4; border-color:#45b979; }
.pos-purchase:hover { background:#269e5f; border-color:#6ceaa3; }
.pos-redeem { background:linear-gradient(#ac3b47,#882b36); color:#fff3f4; border-color:#db6e78; }
.pos-redeem:hover { background:#c14453; border-color:#ff98a2; }
.pos-workspace .pos-contact { min-height:40px; padding:6px 10px; font-size:.78rem; }
.pos-workspace td .actions { flex-wrap:nowrap; gap:8px; }
.pos-empty { padding:48px 20px!important; text-align:center; color:#bcb0ca; }
.pos-footer { margin-top:auto; padding:24px 34px; display:flex; justify-content:space-between; gap:16px; color:#9687a6; font-size:.72rem; }
.pos-footer>span:first-child { color:#b59b71; font-weight:700; letter-spacing:.13em; }
.pos-register-hero { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; background:radial-gradient(ellipse at top right,#65402555,transparent 70%),#21192b!important; }
.pos-register-hero h2 { color:#f5d397; font-size:3.3rem; }
.pos-register-hero p { margin-bottom:0; font-size:.875rem; }
.period-metrics { margin-top:24px; }
.pos-footnote { font-size:.8rem; margin:20px 0 0; }
.pos-pill { display:inline-block; padding:4px 9px; border:1px solid #645371; border-radius:6px; color:#d8c7e7; background:#48345244; font-size:.75rem; white-space:nowrap; }
.pos-pill.green { color:#a3edbf; border-color:#32794c; background:#184d2f66; }
.pos-pill.red { color:#ffc0c6; border-color:#9c4b5a; background:#7c283c44; }
.pos-setting { display:flex; position:relative; flex-direction:row; align-items:center; gap:14px; border-top:1px solid #403149; padding:22px 0; cursor:pointer; }
.pos-setting:first-of-type { margin-top:20px; }
.pos-setting:last-child { padding-bottom:0; }
.pos-setting>span:first-child { margin-right:auto; }
.pos-setting strong { display:block; color:#f0e7f7; font-size:.94rem; }
.pos-setting small { max-width:760px; font-size:.85rem; line-height:1.6; margin-top:6px; color:#b9abc8; }
.pos-setting input { position:absolute; right:0; width:48px; height:28px; opacity:0; z-index:1; cursor:pointer; }
.pos-switch { flex:0 0 48px; width:48px; height:28px; border-radius:20px; background:#483d50; border:1px solid #685775; transition:background .15s; }
.pos-switch:after { content:''; display:block; margin:3px; width:20px; height:20px; border-radius:50%; background:#c8bfd0; transition:transform .15s; }
.pos-setting input:checked+.pos-switch { background:#c3a269; border-color:#f0cb87; }
.pos-setting input:checked+.pos-switch:after { background:#2f2133; transform:translateX(20px); }
.pos-setting input:focus-visible+.pos-switch { outline:3px solid #dfb7ff; outline-offset:4px; }
#pos-settings-status { color:#d4ba86; font-size:.85rem; }
.pos-media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.pos-workspace .pos-media-card { padding:0; overflow:hidden; }
.pos-media-preview { aspect-ratio:3/2; background:radial-gradient(ellipse,#442149,#120b1e); display:grid; place-items:center; }
.pos-media-preview img { width:100%; height:100%; object-fit:contain; }
.pos-media-preview.logo img { width:80%; height:85%; }
.pos-media-copy { padding:22px; }
.pos-media-copy p { font-size:.85rem; }
.pos-reward-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:22px; }
.pos-reward-card { border:1px solid #54415f; border-radius:10px; padding:18px; background:linear-gradient(130deg,#35233d,#201929); }
.pos-reward-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pos-reward-title h3 { color:#f4d49a; }.pos-reward-title span { color:#c6b3d2; font-size:.72rem; white-space:nowrap; }
.pos-reward-card p { font-size:.76rem; color:#bcaac8; margin:8px 0 16px; }
.pos-reward-card label { display:block; color:#dccfe6; font-size:.8rem; margin-bottom:7px; }
.pos-reward-card input { width:100%; min-width:0; font-size:1.35rem; font-weight:650; color:#ffe4b1; background:#16111f; border-color:#746041; }
.pos-reward-card small { display:block; margin-top:9px; color:#b5a4c3; font-size:.75rem; }
.pos-reward-save { margin-top:24px; }.pos-reward-save .actions { flex-wrap:wrap; }
#pos-rewards-status { color:#d9bc83; font-size:.85rem; }
.pos-birthday-rewards fieldset { margin:20px 0 0; padding:0; border:0; min-width:0; max-width:340px; opacity:.55; }
.pos-birthday-rewards fieldset>label { display:block; margin:12px 0 7px; font-size:.85rem; }
.pos-birthday-rewards fieldset>label.checkbox { display:flex; align-items:center; gap:10px; }
.pos-birthday-rewards fieldset input { cursor:not-allowed; }
@media(max-width:1100px) { .pos-reward-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .pos-reward-grid { grid-template-columns:1fr; }.pos-reward-card { padding:16px; }.pos-birthday-rewards .section-title { flex-wrap:wrap; gap:12px; } }
body[data-portal="pos"] dialog { background:linear-gradient(135deg,#2b1e35,#17121f 75%); border:1px solid #896c91; }
body[data-portal="pos"] dialog input { background:#130f1c; border-color:#604970; }
body[data-portal="pos"] dialog h2 { color:#f4d8a0; }
body[data-portal="pos"] #pos-action input[name="amount"] { font-size:1.7rem; min-height:65px; }
.pos-new-code { padding:24px; margin-bottom:22px; border:1px solid #8c6e42; background:#ba8f2f14; color:#f5d397; text-align:center; font-size:1.7rem; font-family:Consolas,monospace; }
#pos-print-root { display:none; }
@media (max-width:600px) {
  .pos-accounts thead { display:none; }
  .pos-accounts table,.pos-accounts tbody { display:block; }
  .pos-accounts tbody tr { display:grid; grid-template-columns:1fr 1fr; border:1px solid #45334f; border-radius:9px; margin-bottom:12px; padding:10px; }
  .pos-workspace .pos-accounts td { padding:8px; border:0; }
  .pos-accounts td:nth-child(1),.pos-accounts td:nth-child(2),.pos-accounts td:nth-child(5) { grid-column:1/-1; }
  .pos-accounts td:nth-child(3):before,.pos-accounts td:nth-child(4):before { display:block; font: .75rem "Segoe UI",sans-serif; margin-bottom:4px; color:#b9a9c8; }
  .pos-accounts td:nth-child(3):before { content:'Entries'; }.pos-accounts td:nth-child(4):before { content:'Winnings'; }
  .pos-workspace .pos-accounts td .actions { flex-wrap:wrap; }
}
@media (min-width:1600px) { .pos-media-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1200px) { .pos-shell { grid-template-columns:210px minmax(0,1fr); }.pos-content { padding:24px; }.pos-topbar { padding:18px 24px; }.pos-metrics { gap:10px; }.pos-metric { padding:18px 16px; }.pos-workspace .surface { padding:20px; } }
@media (max-width:900px) { .pos-shell { grid-template-columns:180px minmax(0,1fr); }.pos-sidebar { padding:16px 9px; }.pos-brand img { width:130px; height:99px; }.pos-brand>span { font-size:.6rem; }.pos-nav-item { padding:10px; gap:9px; font-size:.84rem; }.pos-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.pos-content { padding:20px 16px; }.pos-topbar { padding:16px; flex-wrap:wrap; }.pos-media-grid { grid-template-columns:1fr; }.pos-footer { padding:20px 16px; }.pos-topbar small { display:none; }.pos-user { gap:7px; }.pos-user small { font-size:.7rem; } }
@media (max-width:600px) { .pos-shell { grid-template-columns:68px minmax(0,1fr); }.pos-sidebar { padding:12px 6px; }.pos-brand img { width:56px; height:48px; }.pos-brand { margin-bottom:14px; }.pos-brand>span,.pos-nav-label,.pos-nav-item>span,.pos-nav-item>small,.pos-user { display:none; }.pos-nav-item { justify-content:center; padding:12px 8px; }.pos-nav-item svg { width:24px; height:24px; }.pos-nav-divider { margin:14px 4px; }.pos-sidebar-bottom { padding-top:16px; }.pos-content { padding:22px 12px; gap:18px; }.pos-page-heading h1 { font-size:1.85rem; }.pos-page-heading .eyebrow { font-size:.6rem; }.pos-page-heading>button { padding:8px; }.pos-page-heading p { font-size:.82rem; }.pos-topbar { padding:14px 12px; }.pos-topbar strong { font-size:.88rem; }.pos-topbar .pos-location-mark { display:none; }.pos-access { font-size:.7rem; }.pos-metric { padding:14px 12px; }.pos-metric strong { font-size:1.5rem; }.pos-metric>span { font-size:.75rem; }.pos-metric small { font-size:.65rem; }.pos-workspace .surface { padding:16px; }.pos-search { flex-wrap:wrap; gap:8px; }.pos-footer { flex-direction:column; gap:5px; font-size:.65rem; }.pos-workspace h2 { font-size:1.1rem; }.pos-register-hero h2 { font-size:2.5rem; }.pos-setting strong { font-size:.85rem; }.pos-setting small { font-size:.78rem; }.pos-setting { gap:9px; }.pos-workspace .pos-media-card { padding:0; } }
@media print {
  @page { size:auto; margin:14mm; }
  body:has(#pos-print-root)>* { display:none!important; }
  body:has(#pos-print-root) { background:white!important; color:black!important; }
  body #pos-print-root { display:block!important; color:black; font:12pt/1.5 Arial,sans-serif; }
  #pos-print-root h1 { font-size:22pt; letter-spacing:0; }
  #pos-print-root h2 { font-size:16pt; margin:12px 0; }
  #pos-print-root p,#pos-print-root small { color:#333; }
  #pos-print-root header { border-bottom:2px solid #222; margin-bottom:20px; }
  #pos-print-root .pos-metrics { grid-template-columns:repeat(4,1fr); gap:8px; }
  #pos-print-root .pos-metric { border:1px solid #aaa; background:white; padding:10px; break-inside:avoid; }
  #pos-print-root .pos-metric:before { display:none; }
  #pos-print-root .pos-metric strong { color:black; font-size:18pt; }
  #pos-print-root .pos-metric>span,#pos-print-root .pos-metric small { color:#333; }
  #pos-print-root dl { display:grid; grid-template-columns:1fr 2fr; gap:10px; }
  #pos-print-root dd { margin:0; overflow-wrap:anywhere; }
  .pos-print-period { break-inside:avoid; margin-bottom:30px; }
}
