/* Functional portal controls not present in the static design prototype.
   The prototype's shell, headings and primary panels remain in concept.css. */
.resource-pack-form { padding: 20px; max-width: 760px; }
.resource-pack-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.resource-pack-fields:disabled { opacity: .65; }
.resource-pack-fields input[type=file] { max-width: 100%; padding: 10px; }
.resource-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; padding: 20px; }
.resource-pack-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.resource-pack-heading { display: flex; align-items: flex-start; gap: 12px; }
.resource-pack-heading svg { flex-shrink: 0; color: var(--primary); }
.resource-pack-heading h3, .resource-pack-card p { margin: 0; overflow-wrap: anywhere; }
.resource-pack-description { white-space: pre-wrap; }
.resource-pack-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.resource-pack-card input { width: 100%; min-width: 0; }
.resource-pack-config { padding: 12px 0; border-block: 1px solid var(--border); }
.resource-pack-config summary { cursor: pointer; font-weight: 500; }
.resource-pack-config[open] > * + * { margin-top: 12px; }
.resource-pack-config pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.resource-pack-hash { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .resource-pack-form, .resource-pack-grid { padding: 14px; }
  .resource-pack-card { padding: 14px; }
}
body {
  --bg: var(--background);
  --surface: var(--card);
  --surface-2: var(--soft);
  --line: var(--border);
  --text: var(--foreground);
  --accent-ink: var(--primary-foreground);
  --danger: #f3a1ac;
}

:where(.muted) { color: var(--muted); }
:where(.small) { font-size: 12px; line-height: 1.8; }
:where(.mono) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.mt-4 { margin-top: 4px; }
.mt-5 { margin-top: 5px; }
.mt-13 { margin-top: 13px; }
.mt-19 { margin-top: 19px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
:where(.stack) > * + * { margin-top: 22px; }

/* Base surfaces intentionally have lower specificity than prototype variants. */
:where(.concept-card) { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--foreground); }
.concept-panel-description { padding: 16px 20px 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.concept-event-details > summary { list-style: none; cursor: pointer; }
.concept-event-details > summary::-webkit-details-marker { display: none; }
.concept-event-details + .concept-event-details > .event-row { border-top: 1px solid var(--border); }
.launch-faq-list summary { list-style: none; cursor: pointer; }
.launch-faq-list summary::-webkit-details-marker { display: none; }
.launch-faq-list summary > svg { width: 15px; height: 15px; rotate: 90deg; }
.launch-faq-list details[open] summary > svg { rotate: -90deg; }
.launch-faq-list [data-slot='accordion-content'] { padding-bottom: 20px; }
:where(.concept-badge) { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 5px; padding: 4px 6px; color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.5; white-space: nowrap; }
:where(.concept-avatar) { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; border: 1px solid var(--border); border-radius: 6px; background: var(--secondary); color: var(--aqua); font-size: 12px; font-weight: 600; }
.concept-avatar-small { width: 30px; height: 30px; font-size: 10px; }
.concept-avatar-large { width: 57px; height: 57px; border-radius: 9px; font-size: 19px; }
.large-avatar > .concept-avatar { width: 100%; height: 100%; border: 0; border-radius: 5px; font-size: 20px; }
.concept-chart-note { color: var(--muted); font-size: 10px; line-height: 1.8; }

/* Live account controls must remain usable outside the prototype's demo sizes. */
.concept-workspace .account-refresh { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex-shrink: 0; gap: 7px; margin: 0; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; background: var(--soft); color: var(--foreground); font-size: 10px; line-height: 1.5; cursor: pointer; }
.concept-workspace .account-refresh > svg { width: 12px; height: 12px; }
.concept-workspace .account-refresh:hover { background: var(--secondary); }
.concept-workspace .account-page-heading { flex-wrap: wrap; }
.concept-workspace .account-page-heading > div { min-width: 0; }
.concept-workspace .profile-banner-person { min-width: 0; max-width: 100%; }
.concept-workspace .profile-banner-person > .large-avatar { flex-shrink: 0; }
.concept-workspace .concept-profile-identity { min-width: 0; }
.concept-workspace .profile-name { flex-wrap: wrap; }
.concept-workspace .concept-profile-username, .concept-workspace .concept-profile-slid { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.concept-workspace .copy-slid { max-width: 100%; }
.concept-workspace .copy-slid > svg { flex-shrink: 0; }
.concept-workspace .profile-banner-details { flex-shrink: 0; }
.concept-workspace .stat-card-top > span { min-width: 0; overflow-wrap: anywhere; }
.concept-workspace .stat-card-top > svg { flex-shrink: 0; }
.concept-workspace .history-section .event-row > :is(div:nth-child(2), .concept-event-summary) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.concept-workspace .history-section .event-row > time { flex-shrink: 0; max-width: 100%; }
.concept-workspace .ak-event-text { overflow-wrap: anywhere; }
.concept-workspace .ak-event-text > strong > span { min-width: 0; }
.concept-workspace .ak-event-text .ak-text-action { display: inline-block; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.concept-workspace .concept-minecraft-account { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.concept-workspace .concept-minecraft-account > .account-avatar { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.concept-workspace .concept-minecraft-account > .minecraft-person { grid-column: 2; grid-row: 1; min-width: 0; }
.concept-workspace .concept-minecraft-account .minecraft-person > strong,
.concept-workspace .concept-minecraft-account .minecraft-person > span { overflow-wrap: anywhere; }
.concept-workspace .concept-minecraft-account > .pass-badge { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.concept-workspace .concept-minecraft-account > .account-expiry { grid-column: 2; grid-row: 2; display: flex; min-width: 0; gap: 4px; margin: 0; }
.concept-workspace .concept-pass-expiry > time, .concept-workspace .concept-pass-expiry > .concept-pass-unpaid { color: var(--foreground); font-size: 10px; font-weight: 550; line-height: 1.7; overflow-wrap: anywhere; }
.concept-workspace .concept-minecraft-account > [data-slot="button"] { grid-column: 3; grid-row: 2; justify-self: end; max-width: 100%; margin: 0; }
.concept-workspace .pass-badge.pass-inactive:is(.pass-missing, .pass-unknown) { color: var(--muted); border-color: var(--border); background: var(--soft); }
.concept-workspace .pass-badge.pass-inactive.pass-expired { color: #c1a76d; border-color: #86692a40; background: #6e542a20; }
@media (min-width: 1251px) {
  .concept-workspace .concept-minecraft-account { grid-template-columns: 37px minmax(0, 1fr) auto minmax(105px, auto) auto; }
  .concept-workspace .concept-minecraft-account > .account-avatar,
  .concept-workspace .concept-minecraft-account > .minecraft-person,
  .concept-workspace .concept-minecraft-account > .pass-badge { grid-row: 1; }
  .concept-workspace .concept-minecraft-account > .account-expiry { grid-column: 4; grid-row: 1; }
  .concept-workspace .concept-minecraft-account > [data-slot="button"] { grid-column: 5; grid-row: 1; }
}
@media (max-width: 560px) {
  .concept-workspace .concept-minecraft-account { grid-template-columns: 35px minmax(0, 1fr); }
  .concept-workspace .concept-minecraft-account > .account-avatar { grid-row: 1; }
  .concept-workspace .concept-minecraft-account > .pass-badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .concept-workspace .concept-minecraft-account > .account-expiry { grid-column: 1 / -1; grid-row: 3; }
  .concept-workspace .concept-minecraft-account > [data-slot="button"] { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; width: 100%; }
}

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 7px 13px; border: 1px solid #eef5f830; border-radius: 6px; background: linear-gradient(#eff5f8, #c8d8e3); color: #15242d; font-size: 11px; font-weight: 550; line-height: 1.5; text-align: center; cursor: pointer; }
.button:hover { filter: brightness(1.06); }
.button.secondary { border-color: var(--border); background: var(--soft); color: var(--foreground); }
.button.secondary:hover { background: var(--secondary); filter: none; }
.button.compact { min-height: 29px; padding: 5px 10px; font-size: 10px; }
.button.danger { color: var(--danger); background: #dc698b12; border-color: #dc698b35; }
.button svg { width: 13px; height: 13px; flex-shrink: 0; }
.button:disabled { opacity: .5; cursor: not-allowed; filter: none; }
body[data-area="akeminet"] .button:not(.secondary):not(.danger) { background: linear-gradient(#f5edff, #d9c2f8); color: #302040; }
.text-button, .panel-link { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: none; color: var(--aqua); font: inherit; text-align: left; cursor: pointer; }
.text-button:hover, .panel-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-link { font-size: 11px; white-space: nowrap; }
.panel-link svg { width: 13px; height: 13px; }
.back { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; margin-bottom: 20px; background: none; color: var(--muted); font-size: 11px; }
.back:hover { color: var(--aqua); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.grow { flex: 1; min-width: 160px; }
.field label { color: var(--muted); font-size: 11px; line-height: 1.6; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select,
input.text-input, select.text-input, .field textarea { width: 100%; min-height: 35px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: #0b0d0f; color: var(--foreground); font: inherit; font-size: 11px; line-height: 1.5; }
.field select { min-width: 130px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .65; }
.field input:focus, .field select:focus, .field textarea:focus,
input.text-input:focus, select.text-input:focus { outline: 1px solid var(--aqua); outline-offset: 2px; }
.field input:disabled, .field select:disabled { opacity: .5; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.input-wrap > input { padding-left: 33px !important; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.panel-body { padding: 20px; }
.panel-body > .filters { padding-inline: 0; }
.hint { color: var(--muted); font-size: 10px; line-height: 1.8; }
.form-error { border: 1px solid #dc698b35; border-radius: 6px; padding: 10px 12px; background: #dc698b0c; color: var(--danger); font-size: 11px; line-height: 1.8; }
.checkbox-field { display: flex; align-items: center; gap: 10px; color: var(--foreground); font-size: 11px; line-height: 1.8; }
.checkbox-field > input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--aqua); }
:where(.auth-form, .billing-config-form, .modal) fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 7px; }
:where(.auth-form, .billing-config-form, .modal) legend { padding: 0 6px; color: var(--muted); font-size: 11px; }

.notice { display: flex; align-items: start; gap: 10px; border: 1px solid var(--border); border-radius: 7px; padding: 13px 15px; margin-top: 20px; background: var(--soft); color: var(--muted); font-size: 11px; line-height: 1.9; }
.notice > svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--aqua); }
.notice p { min-width: 0; font-size: inherit; line-height: inherit; overflow-wrap: anywhere; }
.notice.warn { border-color: #a3843430; background: #a4822610; color: #b2a17b; }
.notice.warn > svg { color: #b59b58; }
.tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 5px; padding: 4px 6px; color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.4; white-space: nowrap; }
.tag.good { color: var(--green); border-color: #28463c; background: #182d292a; }
.tag.warn { color: #c1a76d; border-color: #86692a40; background: #6e542a20; }
.tag.danger { color: var(--danger); border-color: #dc698b35; background: #dc698b0c; }
.dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.dot.warning { background: #c1a76d; }
.dot.neutral { background: #73737e; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--aqua); }
.empty-icon svg { width: 21px; height: 21px; }
.empty h3 { color: var(--foreground); font-size: 13px; font-weight: 550; }
.empty p { max-width: 390px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.empty.error .empty-icon { border-color: #dc698b35; background: #dc698b0c; color: var(--danger); }
.loading { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 48px 20px; color: var(--muted); font-size: 11px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--aqua); border-radius: 50%; animation: concept-spin .8s linear infinite; }
@keyframes concept-spin { to { transform: rotate(360deg); } }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.noscript { padding: 30px; color: var(--danger); text-align: center; }

/* Only the older functional tables; the approved AkemiNET tables keep their CSS. */
.table-wrap { min-width: 0; overflow-x: auto; }
.table-wrap > table:not(.ak-player-table):not(.ak-collector-table) { width: 100%; border-collapse: collapse; color: var(--foreground); font-size: 11px; text-align: left; }
.table-wrap > table:not(.ak-player-table):not(.ak-collector-table) th { border-bottom: 1px solid var(--border); padding: 11px 20px; background: #0d0f11; color: var(--muted); font-size: 10px; font-weight: 450; white-space: nowrap; }
.table-wrap > table:not(.ak-player-table):not(.ak-collector-table) td { border-top: 1px solid var(--border); padding: 15px 20px; vertical-align: middle; line-height: 1.8; }
.table-wrap td .secondary { margin-top: 4px; color: var(--muted); font-size: 10px; }
.table-wrap td.break { max-width: 340px; overflow-wrap: anywhere; }
.table-wrap tr.clickable { cursor: pointer; }
.table-wrap tr.clickable:hover td { background: #ffffff03; }
.person { display: flex; align-items: center; gap: 10px; }
.person-name { color: var(--foreground); font-size: 11px; font-weight: 550; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; border: 1px solid var(--border); border-radius: 6px; background: var(--secondary); color: var(--aqua); font-size: 10px; font-weight: 550; }
.detail-label { margin-bottom: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.detail-value { color: var(--foreground); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px; border-top: 1px solid var(--border); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 13px 20px; color: var(--muted); font-size: 10px; }
.pagination-actions { display: flex; gap: 6px; }
.pagination button { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; background: var(--soft); color: var(--foreground); font-size: 10px; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.role-controls { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.role-controls select { flex: 1; min-width: 115px; }
.payload { max-width: 700px; margin: 9px 0 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); color: var(--muted); font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-details summary { margin-top: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
.chart-choice { border: 1px solid var(--border); border-radius: 5px; padding: 6px 9px; background: none; color: var(--muted); font-size: 10px; }
.chart-choice.active { border-color: color-mix(in srgb, var(--aqua) 30%, transparent); background: color-mix(in srgb, var(--aqua) 8%, transparent); color: var(--aqua); }
.chart { min-height: 220px; padding: 18px 16px 10px; }
.chart > svg { display: block; width: 100%; height: auto; max-height: 280px; overflow: visible; }
.chart-note { padding: 0 20px 18px; color: var(--muted); font-size: 10px; line-height: 1.8; }

/* Native dialogs use the prototype dialog dimensions and the browser top layer. */
dialog.modal { position: fixed; inset: 0; margin: auto; width: 440px; height: fit-content; max-width: calc(100% - 32px); max-height: 85dvh; overflow: auto; border: 1px solid #2a414e; border-radius: 15px; padding: 32px; background: #0f171c; color: var(--foreground); box-shadow: 0 20px 90px #0006; }
dialog.modal::backdrop { background: #000000b0; backdrop-filter: blur(5px); }
dialog.modal[open] { animation: concept-modal-enter 230ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes concept-modal-enter { from { opacity: 0; translate: 0 9px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
body[data-area="akeminet"] dialog.modal { background: #111214; border-color: #3c2b53; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.modal-head h2, dialog.modal > h2 { min-width: 0; padding-right: 15px; color: var(--foreground); font-size: 25px; font-weight: 600; letter-spacing: -.9px; line-height: 1.4; overflow-wrap: anywhere; }
.modal-close { display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 5px; padding: 4px; background: none; color: var(--muted); cursor: pointer; }
.modal-close:hover { background: var(--secondary); color: var(--foreground); }
.modal-close > svg { width: 18px; height: 18px; }
dialog.modal p, dialog.modal ol { color: var(--muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
dialog.modal ol { padding-left: 19px; }
dialog.modal li + li { margin-top: 9px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.modal-actions > .button { flex: 1; }
.modal-notices { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.modal-notices:empty { display: none; }
.link-command { margin: 17px 0 10px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--background); color: var(--aqua); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.link-account-preview { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--border); border-radius: 7px; padding: 15px; background: var(--soft); }
.link-account-preview > strong { min-width: 0; color: var(--foreground); font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.link-account-preview > span { color: var(--muted); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.link-alternative { border-top: 1px solid var(--border); padding-top: 16px; }
.link-alternative > summary { color: var(--muted); font-size: 11px; cursor: pointer; }
.security-form { border: 0; padding: 18px 0 0; }
.notice.security-notice { margin: 0 0 18px; }
.totp-enrollment { display: flex; flex-direction: column; align-items: center; gap: 11px; margin: 20px 0; }
.totp-enrollment > svg { display: block; width: 256px; max-width: 100%; height: auto; border-radius: 7px; background: #fff; color: #000; }
.totp-enrollment > svg > rect { fill: #fff; }
.totp-enrollment > svg > path { fill: #000; }
.totp-enrollment .hint { margin: 0; text-align: center; }
.totp-manual { border: 1px solid var(--border); border-radius: 7px; padding: 13px 15px; }
.totp-manual > summary { color: var(--aqua); font-size: 11px; cursor: pointer; }
.totp-manual .link-command { margin-top: 11px; font-size: 13px; }

.notifications { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 9px; width: calc(100% - 48px); max-width: 360px; pointer-events: none; }
.notifications > .toast, .modal-notices > .toast { position: static; inset: auto; display: flex; align-items: flex-start; gap: 10px; width: auto; margin: 0; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; background: #151c20; color: var(--foreground); box-shadow: 0 8px 24px #0004; font-size: 11px; line-height: 1.8; transform: none; pointer-events: auto; }
.notifications > .toast.error, .modal-notices > .toast.error { border-color: #dc698b35; background: #21151c; color: #f0b6c6; }
.notifications > .toast > svg, .modal-notices > .toast > svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--aqua); }
.notifications > .toast.error > svg, .modal-notices > .toast.error > svg { color: var(--danger); }

/* Real payment, pass purchase and owner configuration forms. */
.payment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ledger-credit { color: var(--green); }
.purchase-preview { display: grid; gap: 15px; border: 1px solid var(--border); border-radius: 7px; padding: 16px; background: var(--soft); }
.purchase-preview .detail-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.purchase-preview .loading { padding: 15px 5px; }
.billing-config-form { max-width: 790px; }
.billing-config-form > .field { max-width: 320px; }
.billing-config-form h3 { color: var(--foreground); font-size: 13px; font-weight: 550; }
.billing-products { display: flex; flex-direction: column; gap: 13px; }
.billing-products:empty { display: none; }
.billing-product-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 11px; border: 1px solid var(--border); border-radius: 7px; padding: 14px; background: var(--soft); }
.billing-product-row .button { min-height: 35px; }
.billing-readiness { display: grid; padding: 3px 20px; }
.billing-readiness > div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; color: var(--foreground); font-size: 11px; line-height: 1.8; }
.billing-readiness > div + div { border-top: 1px solid var(--border); }

/* Authentication is a functional extension; its palette follows the concept. */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); min-height: 100dvh; }
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 40px clamp(28px, 6vw, 90px); border-right: 1px solid var(--border); background: radial-gradient(ellipse at 15% 65%, #0c52534a, transparent 65%), #0b0e10; }
.auth-story > .brand { color: var(--foreground); }
.auth-story .brand-icon { display: block; width: 34px; height: 34px; object-fit: contain; }
.auth-story .brand-mark, .boot > .brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; background: var(--soft); color: var(--aqua); font-size: 25px; line-height: 1; }
.auth-story .brand > div > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 450; letter-spacing: 0; }
.auth-story-content { position: relative; z-index: 1; max-width: 510px; margin: auto 0; padding: 70px 0 55px; }
.auth-story .eyebrow, .auth-card > .eyebrow { color: var(--aqua); font-size: 9px; letter-spacing: 1.3px; }
.auth-story h1 { margin-top: 18px; color: var(--foreground); font-size: clamp(38px, 4vw, 60px); font-weight: 550; letter-spacing: -2.5px; line-height: 1.15; }
.auth-story h1 > span { color: var(--aqua); }
.auth-story-content > p { max-width: 390px; margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.auth-diagram { max-width: 405px; margin-top: 45px; border: 1px solid var(--border); border-radius: 9px; padding: 22px; background: #0d151880; }
.diagram-head { display: flex; align-items: center; gap: 10px; color: var(--foreground); font-size: 12px; }
.diagram-head .brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--secondary); color: var(--aqua); font-size: 22px; }
.diagram-line { height: 27px; margin-left: 15px; border-left: 1px solid var(--border); }
.diagram-nodes { display: flex; gap: 9px; }
.diagram-node { display: flex; align-items: center; justify-content: center; flex: 1; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px; color: var(--muted); font-size: 9px; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; letter-spacing: .3px; }
.auth-story-footer a { color: var(--muted); }
.auth-story-footer a:hover { color: var(--aqua); }
.auth-main { display: grid; place-content: center; padding: 40px; background: var(--background); }
.auth-card { width: 100%; max-width: 370px; min-width: 280px; }
.auth-card > .eyebrow { margin-bottom: 16px; }
.auth-card > h2, .email-action-page .auth-card > h1 { color: var(--foreground); font-size: 27px; font-weight: 550; letter-spacing: -.8px; line-height: 1.3; }
.auth-description { margin: 12px 0 27px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 23px; border: 1px solid var(--border); border-radius: 7px; padding: 4px; background: var(--soft); }
.auth-tab { flex: 1; border: 0; border-radius: 4px; padding: 9px; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.auth-tab.active { background: var(--secondary); color: var(--foreground); box-shadow: 0 1px 3px #0002; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-card .auth-form .field input { min-height: 40px; font-size: 12px; }
.auth-card .auth-form > .button { min-height: 38px; margin-top: 2px; font-size: 12px; }
.auth-foot { margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.9; text-align: center; }
.email-action-page { min-height: 100dvh; }
.email-profile-form { max-width: 440px; margin-top: 20px; }

@media (max-width: 1000px) {
  .auth-story { padding-inline: 30px; }
  .auth-story h1 { font-size: 45px; }
  .billing-product-row { grid-template-columns: 1fr 1fr; }
  .billing-product-row > .button { align-self: end; }
}
@media (max-width: 760px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-main { min-height: 100dvh; padding: 35px 24px; }
  .auth-card { width: min(370px, calc(100vw - 48px)); min-width: 0; }
  .filters { gap: 11px; padding: 15px; }
  .field.grow { min-width: 150px; }
  .panel-body { padding: 18px; }
  .details-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
  .table-wrap > table:not(.ak-player-table):not(.ak-collector-table) :is(th, td) { padding-inline: 15px; }
  .notifications { right: 16px; bottom: 16px; width: calc(100% - 32px); }
}
@media (max-width: 560px) {
  .filters > .field:not(.grow) { flex: 1; }
  .filters .field select { min-width: 0; }
  .filters > .field.grow { flex-basis: 100%; }
  .details-grid { grid-template-columns: 1fr; }
  .pagination { padding: 12px 15px; }
  dialog.modal { padding: 25px 23px; }
  .modal-head h2, dialog.modal > h2 { font-size: 22px; }
  .billing-product-row { gap: 11px; padding: 13px; }
  .billing-product-row > .field:first-child, .billing-product-row > .button { grid-column: 1 / -1; }
  .billing-readiness { padding-inline: 17px; }
  .billing-readiness > div { gap: 12px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal[open], .spinner { animation: none; }
}

/* Semantic personal event summaries retain the same wrapping as event cards. */
.concept-workspace .event-row > .concept-event-summary { display: flex; flex-direction: column; gap: 6px; }
.concept-workspace .event-row > .concept-event-summary > span { color: var(--muted); font-size: 9px; }
.concept-workspace[data-concept-workspace="akeminet"] .profile-banner { background: var(--soft); border-color: var(--border); }
.concept-workspace[data-concept-workspace="akeminet"] .profile-banner:after { color: #bd97ff14; }
.concept-workspace[data-concept-workspace="akeminet"] .large-avatar { background: var(--secondary); border-color: var(--border); }

/* Full event payload remains available after expanding a history record. */
.concept-workspace .history-section .event-row strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.concept-workspace .history-section a.event-row:hover { background: var(--soft); }
.concept-workspace .history-section a.event-row:focus-visible { outline: 1px solid var(--aqua); outline-offset: 3px; }
