.admin-shell { max-width: 1440px; }
.supplemental-panel { padding: 0; }
.supplemental-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 32px; cursor: pointer; list-style: none; }
.supplemental-panel > summary::-webkit-details-marker { display: none; }
.supplemental-panel > summary::after { content: "+"; font-size: 22px; color: var(--accent); margin-left: auto; }
.supplemental-panel[open] > summary::after { content: "−"; }
.supplemental-panel > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.supplemental-panel > summary strong { font-size: 18px; font-weight: 600; }
.supplemental-panel > summary .section-number { margin-bottom: 10px; }
.supplemental-panel > summary .count-label { margin-left: auto; }
.supplemental-body { padding: 0 32px 28px; }
.supplemental-body > .card-description { max-width: 760px; }
.activity-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 17px; border: 1px solid var(--line); background: #0f0f0f; border-radius: 8px; }
.activity-tabs button { border: 0; border-radius: 5px; padding: 10px 15px; background: transparent; color: var(--muted); font-size: 12px; }
.activity-tabs button[aria-selected="true"] { color: #f6f6f6; background: #282828; }
.activity-list { margin-top: 17px; }
.activity-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.activity-record > div { min-width: 0; }
.activity-record strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.activity-record p { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.activity-record time { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; margin-bottom: 9px; }
.activity-record > div:last-child { flex-shrink: 0; text-align: right; }
@media(max-width:760px) { .supplemental-panel > summary { padding: 23px; flex-wrap: wrap; } .supplemental-body { padding: 0 23px 23px; } .supplemental-panel > summary .count-label { font-size: 10px; } .activity-record { gap: 15px; } .activity-record time { white-space: normal; max-width: 110px; line-height: 1.5; } .activity-tabs button { padding: 10px; font-size: 11px; } }
.admin-layout { padding: 54px 0 64px; }
.admin-header-meta, .admin-identity, .section-heading-row, .key-actions, .dialog-actions { display: flex; align-items: center; gap: 20px; }
.admin-header-meta { gap: 27px; }
.admin-signout { color: #d0d0d0; text-decoration: none; font-size: 12px; }
.admin-signout:hover { text-decoration: underline; }
.admin-identity { align-items: flex-end; flex-direction: column; gap: 12px; }
#admin-email { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-layout > .settings-card { margin-bottom: 24px; }
.admin-layout > .settings-card:last-child { margin-bottom: 0; }
.license-creation { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 38px; }
.license-creation .section-number { margin-bottom: 17px; }
.license-creation .card-description { margin-bottom: 0; }
.license-creation form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 16px; margin: 0; }
.license-creation .field { margin-bottom: 0; }
.license-creation .primary-button { margin: 23px 0 0; white-space: nowrap; }
.license-creation input { min-width: 75px; }
.license-creation select { width: 100%; min-width: 130px; min-height: 46px; background: #0e0e0e; border: 1px solid #333; border-radius: 7px; padding: 11px 13px; color: #f1f1f1; font: inherit; font-size: 13px; }
.license-creation select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.license-creation .field-help { max-width: 190px; }
.section-heading-row { justify-content: space-between; margin-bottom: 20px; }
.section-heading-row .section-number { margin-bottom: 15px; }
.section-heading-row h2 { margin-bottom: 0; }
.count-label { color: var(--muted); font-size: 12px; }
.generated-panel { border-color: #585858; }
.generated-panel .card-description { max-width: none; }
.text-button { background: none; border: none; color: var(--accent); font-size: 12px; padding: 8px; }
.text-button:hover { text-decoration: underline; }
textarea { font: 12px/1.8 Consolas, monospace; color: #e0e0e0; background: #0f0f0f; border: 1px solid #3b3b3b; border-radius: 7px; width: 100%; padding: 13px; resize: vertical; }
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.key-actions { margin-top: 15px; gap: 12px; flex-wrap: wrap; }
#keys-feedback { font-size: 12px; color: #d9d9d9; }
.table-card { padding-bottom: 13px; }
.table-scroll { overflow: auto; margin: 0 -10px; padding: 0 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { color: var(--muted); font-weight: 550; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 15px 16px 15px 0; }
td { border-top: 1px solid var(--line); padding: 17px 16px 17px 0; vertical-align: middle; color: #d3d3d3; }
td:last-child, th:last-child { padding-right: 0; }
.identifier { font: 11px/1.5 Consolas, monospace; color: #b1b1b1; overflow-wrap: anywhere; }
.license-prefix { color: #dbdbdb; font: 11px/1.6 Consolas, monospace; }
.full-identifier { display: block; width: 30ch; max-width: 100%; font: 11px/1.6 Consolas, monospace; color: #dbdbdb; overflow-wrap: anywhere; user-select: all; }
#user-rows .table-actions { min-width: 135px; }
#restore-license-key { font-family: Consolas, monospace; }
.table-date { white-space: nowrap; color: #b3b3b3; }
.table-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.table-action { color: #d4d4d4; border: 1px solid #444444; background: #1f1f1f; border-radius: 5px; padding: 7px 10px; font-size: 10px; font-weight: 550; white-space: nowrap; }
.table-action:hover:enabled { background: #2b2b2b; }
.table-action.is-destructive { color: #c7c7c7; background: #212121; border-color: #3d3d3d; }
.table-action.is-destructive:hover:enabled { background: #2a2a2a; }
.state-badge { display: inline-flex; padding: 4px 7px; border: 1px solid #3f3f3f; border-radius: 4px; color: #d1d1d1; background: #202020; font-size: 10px; white-space: nowrap; }
.state-badge.is-muted { color: #c5c5c5; background: #262626; border-color: #444444; }
.state-badge.is-warning { color: #c3c3c3; background: #212121; border-color: #3e3e3e; }
.empty-state { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px; border-top: 1px solid var(--line); margin: 0; }
.webhook-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 23px 0 19px; }
.webhook-item { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #121212; }
.webhook-item h3 { font-size: 12px; font-weight: 550; margin: 0 0 14px; }
.webhook-item p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 12px 0 0; }
.delivery-counts { display: flex; gap: 24px; flex-wrap: wrap; margin: 26px 0 12px; color: var(--muted); font-size: 12px; }
.delivery-counts strong { color: #dddddd; font-weight: 600; }
.cell-note { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.config-card .card-description { max-width: 650px; }
.releases-card > .card-description { max-width: 720px; }
.release-upload-form { display: grid; grid-template-columns: 150px minmax(140px, 1fr) minmax(230px, 2fr) auto; gap: 18px; align-items: start; margin: 25px 0 22px; }
.release-upload-form select { width: 100%; min-height: 46px; color: var(--text, #eeeeee); border: 1px solid var(--line); background: #0d0d0d; border-radius: 7px; padding: 12px; font: inherit; font-size: 12px; }
.release-upload-form input[type="file"] { padding: 11px; font-size: 11px; }
.release-upload-form input[type="file"]::file-selector-button { color: #dbdbdb; background: #1f1f1f; border: 1px solid #444444; border-radius: 4px; margin-right: 10px; padding: 4px 7px; cursor: pointer; }
.release-upload-form .primary-button { margin-top: 23px; width: auto; white-space: nowrap; }
.releases-card .identifier { max-width: 340px; }
@media(max-width:1100px) { .release-upload-form { grid-template-columns: 1fr 1fr; } .release-file-field { grid-column: 1 / -1; } .release-upload-form .primary-button { margin-top: 0; justify-self: start; } }
@media(max-width:760px) { .release-upload-form { grid-template-columns: 1fr; } }
.config-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.config-actions .primary-button { width: auto; margin-top: 0; }
.config-actions .field-help { margin: 0; }
.section-link { color: inherit; text-decoration: none; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-unavailable { padding: 85px 0; }
.admin-unavailable h1 { font-size: 44px; }
.admin-unavailable .secondary-button { margin-top: 26px; }
dialog { color: #eeeeee; background: #191919; border: 1px solid #434343; border-radius: 14px; padding: 30px; max-width: 450px; width: calc(100% - 40px); box-shadow: 0 25px 100px #00000080; }
dialog::backdrop { background: #060606c9; }
dialog .section-number { margin-bottom: 20px; }
dialog h2 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 13px; }
dialog p { color: #b5b5b5; font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
.dialog-actions { justify-content: flex-end; gap: 12px; }
.danger-button { color: #171717; background: #bebebe; border: 1px solid #bebebe; border-radius: 7px; min-height: 46px; padding: 12px 16px; font-size: 12px; font-weight: 650; }
.danger-button:hover { background: #d2d2d2; }
@media (max-width: 1100px) {
  .license-creation { grid-template-columns: 1fr; gap: 28px; }
  .license-creation form { max-width: 640px; }
  .webhook-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .admin-layout { padding-top: 36px; }
  .admin-identity { align-items: flex-start; }
  .admin-layout .account-heading-row h1 { font-size: 38px; }
  .admin-header-meta { gap: 16px; }
  .admin-header-meta .header-label { font-size: 8px; letter-spacing: .09em; }
  .license-creation form { grid-template-columns: 1fr 1fr; }
  .license-creation .primary-button { grid-column: 1 / -1; margin-top: 0; }
  .table-card { padding: 23px 20px 8px; }
  th { min-width: 110px; }
  th:first-child { min-width: 140px; }
  .webhook-grid { grid-template-columns: 1fr; gap: 12px; }
  .section-heading-row { gap: 16px; align-items: flex-start; }
}

.dashboard-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; margin: -13px 0 28px; border: 1px solid var(--line); border-radius: 14px; background: #101010; }
.dashboard-nav a { color: #bbb; padding: 9px 12px; font-size: 12px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; }
.dashboard-nav a:hover, .dashboard-nav a:focus-visible { color: #fff; background: #252525; border-color: #3a3a3a; }
.event-view-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin: 8px 0 21px; }
.event-view-heading h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.025em; }
.event-filters { display: flex; gap: 16px; align-items: flex-end; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #111; }
.event-filters .field { flex: 1; margin-bottom: 0; min-width: 0; }
.event-filters select { width: 100%; min-height: 46px; color: #eee; border: 1px solid #333; background: #0e0e0e; border-radius: 7px; padding: 11px 12px; font: inherit; font-size: 13px; }
.event-filters select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.event-metadata { font-family: Consolas, monospace; }
.device-details { margin-top: 13px; }
.device-details summary { color: #aaa; cursor: pointer; font-size: 11px; line-height: 1.7; }
.device-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.device-fields { display: grid; grid-template-columns: minmax(60px, auto) minmax(0, 1fr); gap: 9px 18px; padding: 14px; margin: 10px 0 0; background: #101010; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.device-fields dt { color: var(--muted); }
.device-fields dd { color: #ddd; margin: 0; overflow-wrap: anywhere; font-family: Consolas, monospace; }
.rejection-record { border-left: 2px solid #797979; padding-left: 15px; }
.activity-record .event-reason { color: #ddd; }
.activity-tabs { flex-wrap: wrap; max-width: 100%; }
.owner-login-link { max-width: 260px; margin-top: 26px; }
.admin-unavailable .welcome-description { max-width: 600px; }
section, details, h2 { scroll-margin-top: 24px; }
@media(max-width:760px) { .dashboard-nav { gap: 4px; padding: 8px; } .dashboard-nav a { font-size: 11px; padding: 8px; } .event-filters { flex-direction: column; align-items: stretch; } .event-view-heading { flex-wrap: wrap; } .activity-record { flex-wrap: wrap; } .activity-record > div:last-child { text-align: left; } .admin-header-meta .header-label { display: none; } }
