:root {
  color-scheme: dark;
  --steel: #1a232c;
  --edge: #465667;
  --ink: #f6f7fa;
  --muted: #bdc7d2;
  --gold: #ffcb62;
  --green: #a4edb5;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #0e151c;
  background-image: linear-gradient(#a4bedd0b 1px, transparent 1px), linear-gradient(90deg, #a4bedd0b 1px, transparent 1px);
  background-size: 26px 26px;
}
[hidden] { display: none !important; }
.account-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--edge); background: #121a22;
}
.account-brand { display: flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 900; letter-spacing: .09em; }
.account-brand span { display: grid; width: 36px; height: 36px; place-items: center; background: var(--gold); color: #151a20; }
main { width: min(100% - 28px, 68rem); margin: clamp(25px, 8vw, 85px) auto; }
h1, h2 { margin: 0 0 .45em; line-height: 1.1; overflow-wrap: anywhere; }
h1 { font: 900 clamp(2.35rem, 6vw, 4.25rem)/.98 "Barlow Condensed", "Arial Narrow", Impact, sans-serif; letter-spacing: .025em; text-transform: uppercase; }
h2 { font-size: 1.3rem; }
p { margin: .55em 0 1em; overflow-wrap: anywhere; }
.account-card { min-width: 0; padding: clamp(17px, 3.5vw, 30px); background: var(--steel); border: 1px solid var(--edge); border-radius: 5px; }
.login { width: min(100%, 32rem); margin: auto; border-top: 4px solid var(--gold); box-shadow: 0 20px 65px #0006; }
.login h1 { font-size: clamp(2.3rem, 8vw, 3.65rem); }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 20px 0; }
.role-tabs button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: #302923; }
label { display: block; color: var(--ink); font-weight: 650; margin-bottom: 13px; }
input:not([type=checkbox]), textarea, select {
  display: block; width: 100%; margin-top: 5px; min-height: 44px; padding: 9px 11px;
  font: inherit; color: var(--ink); background: #111922; border: 1px solid var(--edge); border-radius: 4px;
}
textarea { min-height: 105px; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
input[type=checkbox] { width: 19px; height: 19px; margin: 0; accent-color: var(--gold); }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; }
button, .account-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px;
  border: 1px solid var(--edge); border-radius: 4px; background: #242f3a; color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
}
button:hover:enabled, .account-button:hover { border-color: var(--gold); }
button.primary, .account-button.primary { background: var(--gold); border-color: var(--gold); color: #151a20; }
button:disabled { cursor: default; opacity: .7; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.account-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-muted, .account-help { color: var(--muted); }
.account-help { font-size: .9rem; }
.account-trust { margin: 14px 0; }
.account-trust summary { cursor: pointer; }
.account-trust[open] summary { margin-bottom: 12px; }
.account-error, #account-message[data-error] { color: #ffb7a8; }
#account-message:empty { display: none; }
.dev-controls { border-top: 1px solid var(--edge); margin-top: 23px; padding-top: 10px; }
.portal-title { margin: 0 0 24px; }
.portal-title p { color: var(--gold); font-weight: 750; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-grid .wide { grid-column: 1 / -1; }
.account-pill { display: inline-block; padding: 3px 9px; border: 1px solid var(--edge); border-radius: 4px; font-size: .85rem; }
.account-pill.active { color: var(--green); border-color: #527660; }
.portal-list { list-style: none; padding: 0; margin: 0; }
.portal-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 0; border-top: 1px solid var(--edge); overflow-wrap: anywhere; }
.portal-list li > div { min-width: 0; flex: 1; }
.portal-list p { margin: .2em 0; }
@media (max-width: 650px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-list li > div { flex-basis: 100%; }
}
.portal-custom-design{display:flex;gap:.5rem;align-items:center}
.portal-custom-design input{width:auto}
.portal-ticket-note{white-space:pre-wrap;overflow-wrap:anywhere}
.portal-ticket-photos{display:flex;gap:.5rem;margin-top:.5rem;flex-wrap:wrap}
.portal-ticket-photos img{width:64px;height:54px;object-fit:cover;border-radius:5px}
