h1:focus:not(:focus-visible) {
    outline: none;
}

h1:focus-visible {
    outline: 2px solid var(--ms-accent);
    outline-offset: 4px;
}

:root {
    --ms-bg: #16161a;
    --ms-surface: #232329;
    --ms-text: #e8e6e3;
    --ms-muted: #9b9891;
    --ms-accent: #e8763a;
    --ms-error: #e05252;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.login-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(20rem, 90vw);
    padding: 2rem;
    background: var(--ms-surface);
    border-radius: 0.75rem;
}

.login-card h1 {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
}

.login-tagline {
    margin: -0.75rem 0 0;
    color: var(--ms-muted);
    font-size: 0.9rem;
}

.login-error {
    margin: 0;
    color: var(--ms-error);
    font-size: 0.9rem;
}

.login-card label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--ms-muted);
}

.login-card input {
    padding: 0.55rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-size: 1rem;
}

.login-card button {
    margin-top: 0.5rem;
    padding: 0.6rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.home {
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.home-user {
    color: var(--ms-muted);
}

.link-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--ms-accent);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--ms-surface);
    border-bottom: 1px solid #2e2e36;
}

.brand {
    color: var(--ms-accent);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.app-nav {
    display: flex;
    gap: 1rem;
}

.app-nav a {
    color: var(--ms-muted);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.app-nav a:hover {
    color: var(--ms-text);
}

.app-nav a.active {
    color: var(--ms-text);
    border-bottom-color: var(--ms-accent);
}

.app-header-spacer {
    flex: 1;
}

.app-user {
    color: var(--ms-muted);
    font-size: 0.9rem;
}

.app-main {
    flex: 1;
    padding: 1.5rem;
}

.dashboard {
    max-width: 90rem;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    max-width: 28rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-surface);
    color: var(--ms-text);
    font-size: 1rem;
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    padding: 0.25rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 999px;
    background: var(--ms-surface);
    color: var(--ms-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.chip:hover {
    color: var(--ms-text);
}

.chip-on {
    background: var(--ms-accent);
    border-color: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
}

.chip-small {
    font-size: 0.75rem;
    padding: 0.1rem 0.55rem;
    cursor: default;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.tile {
    background: var(--ms-surface);
    border-radius: 0.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tile-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #101013;
}

.tile-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 800px;
    border: 0;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
}

.tile-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tile-body h2 {
    margin: 0;
    font-size: 1.05rem;
}

.tile-summary {
    margin: 0;
    color: var(--ms-muted);
    font-size: 0.9rem;
}

.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.variant-badge {
    align-self: flex-start;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #33333c;
    color: var(--ms-muted);
    font-size: 0.75rem;
}

.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--ms-muted);
}

.empty-state h2 {
    color: var(--ms-text);
}

.import-page {
    max-width: 44rem;
    margin: 0 auto;
}

.muted {
    color: var(--ms-muted);
}

.import-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.import-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--ms-muted);
}

.import-form input,
.import-form textarea {
    padding: 0.55rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-surface);
    color: var(--ms-text);
    font-size: 1rem;
    font-family: inherit;
}

.html-input {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.85rem;
}

.form-error {
    margin: 0;
    color: var(--ms-error);
}

.import-form button {
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.import-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.setup-banner {
    background: var(--ms-surface);
    border: 1px solid #3a3a42;
    border-radius: 0.6rem;
    padding: 1.25rem 1.5rem;
}

.setup-banner h2 {
    margin-top: 0;
}

.generate-page {
    max-width: 44rem;
    margin: 0 auto;
}

.request-row {
    display: flex;
    gap: 1rem;
}

.request-row label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--ms-muted);
}

.request-row select {
    padding: 0.55rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-surface);
    color: var(--ms-text);
    font-size: 1rem;
}

.shot-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.shot-thumb {
    position: relative;
    width: 7rem;
    height: 5rem;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 1px solid #3a3a42;
}

.shot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-thumb button {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    border: none;
    border-radius: 999px;
    width: 1.4rem;
    height: 1.4rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
}

.session-page {
    display: flex;
    gap: 1.25rem;
    height: calc(100vh - 7.5rem);
}

.session-sidebar {
    width: 16rem;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--ms-surface);
    border-radius: 0.6rem;
    padding: 1rem;
}

.session-sidebar h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.session-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.iteration-item {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.6rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-bg);
    color: var(--ms-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.iteration-on {
    border-color: var(--ms-accent);
}

.iteration-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.iteration-sub {
    font-size: 0.75rem;
    color: var(--ms-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    word-break: break-all;
}

.session-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.session-toolbar {
    display: flex;
    gap: 0.6rem;
}

.refine-input {
    flex: 1;
    padding: 0.55rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-surface);
    color: var(--ms-text);
    font-size: 1rem;
}

.session-toolbar button {
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 0.4rem;
    background: #33333c;
    color: var(--ms-text);
    font-size: 0.95rem;
    cursor: pointer;
}

.session-toolbar button:disabled {
    opacity: 0.5;
    cursor: default;
}

.session-toolbar .save-button {
    background: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
}

.generation-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ms-muted);
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #3a3a42;
    border-top-color: var(--ms-accent);
    border-radius: 50%;
    animation: ms-spin 0.9s linear infinite;
}

@keyframes ms-spin {
    to { transform: rotate(360deg); }
}

.session-preview {
    flex: 1;
    background: #101013;
    border-radius: 0.6rem;
    overflow: hidden;
}

.session-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    z-index: 50;
}

.modal {
    width: min(28rem, 92vw);
    background: var(--ms-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.modal h2 {
    margin: 0;
}

.modal label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--ms-muted);
}

.modal input,
.modal textarea {
    padding: 0.55rem 0.7rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-size: 1rem;
    font-family: inherit;
}

.chip-remove {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    padding: 0 0 0 0.2rem;
}

.tag-add-row {
    display: flex;
    gap: 0.5rem;
}

.tag-add-row input {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border: 1px solid #3a3a42;
    border-radius: 0.4rem;
    background: var(--ms-bg);
    color: var(--ms-text);
}

.tag-add-row button,
.modal-actions button:not(.link-button) {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

.session-workspace {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    min-height: 0;
}

.session-workspace .session-preview {
    flex: 1;
}

.edit-panel {
    width: 17rem;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--ms-surface);
    border-radius: 0.6rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.edit-panel h2 {
    margin: 0;
    font-size: 1rem;
}

.edit-panel h3 {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: var(--ms-muted);
    font-weight: 600;
}

.panel-hint {
    font-size: 0.8rem;
    margin: 0;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #33333c;
    padding-top: 0.75rem;
}

.panel-section label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--ms-muted);
}

.panel-section input,
.panel-section select {
    padding: 0.4rem 0.55rem;
    border: 1px solid #3a3a42;
    border-radius: 0.35rem;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-size: 0.85rem;
}

.token-row {
    flex-direction: column;
}

.token-name {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
}

.panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #33333c;
    padding-top: 0.75rem;
}

.panel-actions button:not(.link-button) {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
    cursor: pointer;
}

.panel-actions button:disabled {
    opacity: 0.5;
    cursor: default;
}

.edit-toggle-on {
    outline: 2px solid var(--ms-accent);
}

.tile-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.tile-title-row h2 {
    margin: 0;
}

.tile-edit {
    border: 1px solid #3a3a42;
    border-radius: 0.35rem;
    background: none;
    color: var(--ms-muted);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
}

.tile-edit:hover {
    color: var(--ms-text);
    border-color: var(--ms-accent);
}

.variant-toggle {
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
}

.variant-list {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
    border: 1px solid #2e2e36;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.variant-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-date {
    font-size: 0.75rem;
}

.save-mode-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.save-mode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ms-text);
    flex-direction: row;
}

.save-mode input {
    accent-color: var(--ms-accent);
}

.collection-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.collection-card {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: var(--ms-surface);
    border: 1px solid #2e2e36;
    border-radius: 0.5rem;
    color: var(--ms-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.collection-card:hover {
    border-color: var(--ms-accent);
}

.collection-card-new {
    color: var(--ms-muted);
}

.draft-strip {
    margin-bottom: 1.25rem;
}

.draft-strip-title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.draft-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.draft-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    background: var(--ms-surface);
    border: 1px dashed #3a3a42;
    border-radius: 0.5rem;
    max-width: 26rem;
}

.draft-card:hover {
    border-color: var(--ms-accent);
}

.draft-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--ms-text);
    text-decoration: none;
    min-width: 0;
}

.draft-desc {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-meta {
    font-size: 0.8rem;
}

.status-hint {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
}

.workspace-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex: 1;
    border: 1px dashed #3a3a42;
    border-radius: 0.5rem;
    padding: 2rem;
}

.retry-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.retry-row select {
    margin-left: 0.4rem;
}

.retry-row button {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
    cursor: pointer;
}

.collections-page {
    max-width: 50rem;
    margin: 0 auto;
}

.collection-create {
    margin-bottom: 1.5rem;
}

.collection-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--ms-surface);
    border-radius: 0.5rem;
}

.collection-link {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    color: var(--ms-text);
    text-decoration: none;
    min-width: 0;
}

.collection-link code {
    color: var(--ms-muted);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-row .edit-name {
    width: 12rem;
}

.collection-row .edit-query {
    flex: 1;
}

.collection-row input {
    padding: 0.4rem 0.55rem;
    border: 1px solid #3a3a42;
    border-radius: 0.35rem;
    background: var(--ms-bg);
    color: var(--ms-text);
}

.collection-row button:not(.link-button):not(.tile-edit) {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--ms-accent);
    color: #1a1208;
    font-weight: 600;
    cursor: pointer;
}

.collection-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.collection-header h1 {
    margin: 0;
}

.collection-header code {
    color: var(--ms-muted);
}

.pin-manager {
    margin-top: 2rem;
    max-width: 34rem;
}

.pin-manager h2 {
    font-size: 1rem;
}

.pin-manager h3 {
    font-size: 0.85rem;
    margin: 0.75rem 0 0.35rem;
}

.pin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pin-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.6rem;
    background: var(--ms-surface);
    border-radius: 0.4rem;
    font-size: 0.9rem;
}

.tile-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

a.tile-edit {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.usage-page,
.settings-page {
    max-width: 56rem;
    margin: 0 auto;
}

.usage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.usage-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1.2rem;
    background: var(--ms-surface);
    border-radius: 0.6rem;
    min-width: 10rem;
}

.usage-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.usage-table th,
.usage-table td {
    text-align: left;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #2e2e36;
}

.usage-table th {
    color: var(--ms-muted);
    font-weight: 600;
}

.settings-page .import-form {
    max-width: 28rem;
}

.settings-info {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.settings-info h2 {
    font-size: 1rem;
    color: var(--ms-text);
}
