.key-register {
    container-type: inline-size;
    container-name: key-register;
}
.key-toolbar {
    position: relative;
}
.key-toolbar.has-selection > .search {
    visibility: hidden;
}
.key-selection-bar {
    position: absolute;
    inset: 0 auto auto 0;
    width: 360px;
    max-width: 100%;
    height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    background: var(--page);
    font-size: 0.875rem;
}
.key-selection-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    min-width: 0;
}
.key-selection-summary > span {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.key-selection-bar .key-selection-scope {
    min-height: 24px;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--accent-ink);
}
.key-selection-bar .key-selection-scope:disabled {
    color: var(--muted);
    opacity: 1;
}
.key-selection-page,
.key-selection-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
}
.key-selection-identity + .key-note {
    margin-left: 30px;
}
.key-selection-mobile {
    display: none;
}
input.key-selection-checkbox {
    appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease;
}
input.key-selection-checkbox:checked,
input.key-selection-checkbox:indeterminate {
    border-color: var(--primary);
    background: var(--primary);
}
input.key-selection-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--on-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input.key-selection-checkbox:indeterminate::after {
    content: '';
    position: absolute;
    inset: 7px 3px;
    background: var(--on-primary);
}
input.key-selection-checkbox:focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 3px;
}
.analysis {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
    gap: 24px;
}
.ledger,
.activity-chart {
    min-width: 0;
    padding: 24px;
    border-radius: var(--radius-large);
    background: var(--surface);
}
.ledger {
    container-type: inline-size;
}
.ledger-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin-top: 16px;
}
.ledger-values > div,
.ledger-values > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.ledger-values dt {
    color: var(--muted);
    font-size: 0.875rem;
}
.ledger-values dd {
    font-size: clamp(1.5rem, 10cqw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}
.ledger-values dd.metric-money {
    min-width: 0;
    font-size: clamp(1rem, 6.5cqw, 1.5rem);
}
.overview-controls {
    margin-bottom: 24px;
}
.overview-range {
    width: 10.5rem;
    max-width: 100%;
}
.ledger-secondary {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    font-size: 0.8125rem;
}
.ledger-secondary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.ledger-secondary span {
    color: var(--muted);
}
.ledger-secondary strong {
    font-weight: 500;
}
.chart-wrap {
    margin-top: 24px;
}
.chart {
    display: block;
    width: 100%;
    height: 254px;
    overflow: visible;
}
.chart text {
    fill: var(--muted);
    font-family: inherit;
    font-size: 0.75rem;
}
.chart-grid {
    stroke: var(--line);
    stroke-width: 0.75;
}
.chart-point {
    fill: var(--surface);
    stroke: var(--accent-ink);
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 120ms ease;
}
.chart-point:hover,
.chart-point:focus {
    opacity: 1;
    outline: none;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
    padding-left: var(--chart-axis-inset);
    font-size: 0.8125rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-item::before {
    content: '';
    width: 16px;
    border-top: 2px solid var(--ink);
}
.legend-item.activated::before {
    border-color: var(--chart-secondary);
    border-top-style: dashed;
}
.activity-log {
    margin-top: 28px;
}
.activity-log > .section-heading {
    margin-bottom: 16px;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-large);
    container-type: inline-size;
    container-name: panel-data;
}
table {
    width: 100%;
    padding: 4px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-large);
    background: var(--surface);
    text-align: left;
    font-size: 0.875rem;
}
th {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
td {
    padding: 18px 16px;
    border: 0;
    vertical-align: middle;
    line-height: 1.5;
}
tbody tr {
    position: relative;
}
tbody tr:not(:last-child)::after {
    content: '';
    position: absolute;
    inset: auto 16px 0;
    height: 1px;
    background: var(--line);
    pointer-events: none;
}
.activity-table {
    min-width: 640px;
}
.activity-table td:first-child {
    width: 110px;
    color: var(--muted);
    white-space: nowrap;
}
.activity-table td:nth-child(2) {
    width: 220px;
    font-weight: 500;
}
.activity-table td:last-child {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.game-list {
    display: grid;
    gap: 12px;
}
.game-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 20px;
    border-radius: var(--radius-large);
    background: var(--surface);
}
.game-list-name {
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.game-list-row > svg {
    color: var(--muted);
    width: 20px;
    height: 20px;
}
.game-list-row:active {
    opacity: 0.8;
}
.game-detail-panel {
    min-width: 0;
}
.game-details {
    padding: 0;
}
.pricing-heading {
    padding-bottom: 20px;
}
.pricing-heading h3 {
    font-size: 1.125rem;
}
.offer-table {
    min-width: 520px;
}
.offer-table td:last-child {
    width: 250px;
}
.offer-table td:first-child {
    font-weight: 600;
}
.toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 20px;
}
.search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
    width: 360px;
    max-width: 100%;
}
.search svg {
    position: absolute;
    left: 16px;
    color: var(--muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.search input {
    padding-left: 46px;
}
.filter {
    width: 10.5rem;
    max-width: 100%;
}
.toolbar-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}
.keys-table {
    min-width: 920px;
}
.keys-table td:first-child {
    width: 150px;
}
.key-label {
    color: var(--ink);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}
.key-note {
    display: block;
    max-width: 160px;
    overflow: hidden;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.key-device-cell {
    width: 150px;
}
.device-identity {
    display: block;
    overflow-wrap: anywhere;
}
.device-identity code {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}
.date-cell {
    color: var(--muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}
.key-actions-cell {
    text-align: right;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    color: var(--muted);
    font-size: 0.8125rem;
}
.page-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-buttons .button {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 0.8125rem;
}
@media (hover: hover) and (pointer: fine) {
    .game-list-row:hover .game-list-name {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}
