:root {
    color-scheme: light;
    --ink: #18324a;
    --muted: #5f7891;
    --line: rgba(121, 170, 218, 0.34);
    --panel: rgba(255, 255, 255, 0.48);
    --panel-strong: rgba(255, 255, 255, 0.68);
    --blue: #7bbcff;
    --blue-deep: #2f80d8;
    --blue-soft: #d8efff;
    --bg-a: rgba(179, 224, 255, 0.95);
    --bg-b: rgba(211, 241, 255, 0.92);
    --bg-start: #edf8ff;
    --bg-mid: #cfeeff;
    --bg-end: #f8fcff;
    --danger: #d94c7c;
    --success: #2f9f84;
    --button-start: #a8d5ff;
    --button-end: #6aa9e4;
    --button-muted-start: #a9b9c8;
    --button-muted-end: #7f8f9f;
    --button-danger-start: #f28faf;
    --button-danger-end: #d86a91;
    --button-success-start: #8fd9c6;
    --button-success-end: #55b99d;
    --button-hard-start: #d07888;
    --button-hard-end: #a9475d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-purple {
    --blue: #bda7ff;
    --blue-deep: #7552d8;
    --blue-soft: #eee8ff;
    --line: rgba(155, 121, 218, 0.34);
    --bg-a: rgba(215, 199, 255, 0.95);
    --bg-b: rgba(235, 225, 255, 0.92);
    --bg-start: #f7f3ff;
    --bg-mid: #e7dbff;
    --button-start: #d4c8ff;
    --button-end: #9d86e5;
}

body.theme-pink {
    --blue: #ff9ecf;
    --blue-deep: #d8468f;
    --blue-soft: #ffe5f1;
    --line: rgba(218, 121, 172, 0.34);
    --bg-a: rgba(255, 200, 226, 0.95);
    --bg-b: rgba(255, 225, 238, 0.92);
    --bg-start: #fff4f9;
    --bg-mid: #ffdced;
    --button-start: #ffc2df;
    --button-end: #e87db0;
}

body.theme-mono {
    --ink: #222831;
    --muted: #68707a;
    --blue: #b8c0cc;
    --blue-deep: #3e4652;
    --blue-soft: #eceff3;
    --line: rgba(80, 88, 98, 0.24);
    --bg-a: rgba(235, 238, 242, 0.95);
    --bg-b: rgba(248, 249, 250, 0.92);
    --bg-start: #f8f9fa;
    --bg-mid: #dfe3e8;
    --button-start: #cfd6df;
    --button-end: #7b8490;
}

body.theme-mint {
    --blue: #8eead4;
    --blue-deep: #198f7a;
    --blue-soft: #dcfff6;
    --line: rgba(96, 190, 170, 0.34);
    --bg-a: rgba(181, 246, 232, 0.95);
    --bg-b: rgba(220, 255, 246, 0.92);
    --bg-start: #effffb;
    --bg-mid: #cff7ef;
    --button-start: #b8f2e5;
    --button-end: #64c8b4;
}

body.theme-green {
    --blue: #9ee6a7;
    --blue-deep: #2f8f47;
    --blue-soft: #e5ffe9;
    --line: rgba(92, 176, 108, 0.34);
    --bg-a: rgba(200, 245, 205, 0.95);
    --bg-b: rgba(226, 255, 230, 0.92);
    --bg-start: #f3fff5;
    --bg-mid: #d9f7dd;
    --button-start: #c0efc6;
    --button-end: #72c681;
}

body.theme-yellow {
    --blue: #f6dc79;
    --blue-deep: #a87800;
    --blue-soft: #fff5cc;
    --line: rgba(206, 166, 54, 0.34);
    --bg-a: rgba(255, 237, 168, 0.95);
    --bg-b: rgba(255, 248, 210, 0.92);
    --bg-start: #fffdf0;
    --bg-mid: #fff1b8;
    --button-start: #f8e99e;
    --button-end: #cfa856;
}

body.theme-orange {
    --blue: #ffbd80;
    --blue-deep: #c6651f;
    --blue-soft: #ffe9d6;
    --line: rgba(218, 143, 82, 0.34);
    --bg-a: rgba(255, 214, 178, 0.95);
    --bg-b: rgba(255, 235, 216, 0.92);
    --bg-start: #fff8f2;
    --bg-mid: #ffdfc4;
    --button-start: #ffd0a6;
    --button-end: #e29358;
}

body.theme-red {
    --blue: #ff9f9f;
    --blue-deep: #c84646;
    --blue-soft: #ffe2e2;
    --line: rgba(218, 100, 100, 0.34);
    --bg-a: rgba(255, 205, 205, 0.95);
    --bg-b: rgba(255, 228, 228, 0.92);
    --bg-start: #fff5f5;
    --bg-mid: #ffdddd;
    --button-start: #ffc0c0;
    --button-end: #df7777;
}

body.theme-teal {
    --blue: #85ddeb;
    --blue-deep: #217f91;
    --blue-soft: #ddf9ff;
    --line: rgba(86, 171, 190, 0.34);
    --bg-a: rgba(184, 237, 247, 0.95);
    --bg-b: rgba(220, 248, 254, 0.92);
    --bg-start: #f0fcff;
    --bg-mid: #cff0f6;
    --button-start: #ace8f1;
    --button-end: #62b7c7;
}

body.theme-navy {
    --ink: #16263a;
    --muted: #61758c;
    --blue: #8db5ff;
    --blue-deep: #315fa8;
    --blue-soft: #e3edff;
    --line: rgba(71, 112, 170, 0.32);
    --bg-a: rgba(192, 213, 255, 0.95);
    --bg-b: rgba(225, 235, 255, 0.92);
    --bg-start: #f3f7ff;
    --bg-mid: #d8e5ff;
    --button-start: #b9cefa;
    --button-end: #7198d7;
}

body.theme-lavender {
    --blue: #c8b7ff;
    --blue-deep: #7d67c9;
    --blue-soft: #f0ebff;
    --line: rgba(160, 139, 220, 0.34);
    --bg-a: rgba(225, 215, 255, 0.95);
    --bg-b: rgba(241, 236, 255, 0.92);
    --bg-start: #faf7ff;
    --bg-mid: #e9e1ff;
    --button-start: #ddd2ff;
    --button-end: #a895e6;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, var(--bg-a), transparent 32rem),
        radial-gradient(circle at 78% 0%, var(--bg-b), transparent 28rem),
        linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 46%, var(--bg-end) 100%);
}

button,
input,
select,
textarea,
a {
    font: inherit;
}

.page-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.glass {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 22px 70px rgba(67, 136, 199, 0.18);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.ask-panel,
.question-card {
    border-radius: 8px;
}

.ask-panel {
    position: relative;
    z-index: 2;
    padding: 24px;
    margin-bottom: 20px;
}

.ask-panel-compact {
    padding-bottom: 18px;
}

.title-row,
.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.title-row {
    align-items: flex-start;
    margin-bottom: 22px;
}

.title-row > div {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 6px;
    color: var(--blue-deep);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 6vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: keep-all;
}

.copy-title-button {
    color: inherit;
    cursor: pointer;
    transition: color 0.16s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.copy-title-button:hover,
.copy-title-button:focus-visible {
    color: var(--blue-deep);
}

.copy-hint {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.copy-hint:empty {
    display: none;
}

.ask-bio {
    max-width: 48rem;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ask-notice {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(47, 128, 216, 0.18);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.ask-notice strong {
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 900;
}

.ask-notice p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.admin-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border: 1px solid rgba(47, 128, 216, 0.32);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(216, 239, 255, 0.72);
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    inline-size: fit-content;
    max-inline-size: fit-content;
}

.admin-off {
    border-color: rgba(115, 128, 140, 0.25);
    background: rgba(232, 236, 240, 0.8);
    color: #65717e;
}

.notice {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--panel-strong);
}

.notice p {
    margin: 0;
}

.notice.error {
    color: var(--danger);
}

.notice.success {
    color: var(--success);
}

.closed-notice {
    color: var(--danger);
    font-weight: 900;
}

.question-form,
.admin-form {
    display: grid;
    gap: 10px;
}

.question-form > button[type="submit"] {
    width: 100%;
}

.question-label-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.char-counter {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

label,
.label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid rgba(104, 161, 213, 0.42);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.66);
    outline: none;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(104, 161, 213, 0.42);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.66);
    outline: none;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(47, 128, 216, 0.72);
    box-shadow: 0 0 0 4px rgba(123, 188, 255, 0.22);
}

.cannot-delete {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

button {
    justify-self: start;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: white;
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
    font-weight: 800;
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

button:hover {
    filter: brightness(1.03);
}

.debug-message {
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: #8f2f52;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.question-list {
    display: grid;
    gap: 16px;
}

.ask-directory {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.ask-directory-item {
    display: grid;
    gap: 6px;
    border-radius: 8px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.ask-directory-title {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.ask-directory-bio {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ask-directory-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.private-login-hint {
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.private-login-hint a {
    color: var(--blue-deep);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing-panel {
    display: grid;
    gap: 16px;
    border-radius: 8px;
    padding: 28px;
}

.landing-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 42px;
    border-radius: 8px;
    padding: 0 18px;
    color: white;
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
    font-weight: 800;
    text-decoration: none;
}

.global-stats-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.global-stat-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    border-radius: 8px;
    padding: 18px;
}

.global-stat-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.global-stat-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.create-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    padding: 14px 16px;
}

.create-teaser p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.create-form {
    margin-top: 4px;
}

.settings-form {
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.36);
}

.settings-form h2 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}

.settings-form > button[type="submit"] {
    width: 100%;
    justify-self: stretch;
}

.settings-toggle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--ink);
    cursor: pointer;
}

.toggle-row input {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.toggle-row span {
    font-size: 13px;
    font-weight: 900;
}

.theme-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    margin: 0;
    padding: 0;
}

.theme-picker legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.theme-choice {
    display: block;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(104, 161, 213, 0.34);
    border-radius: 8px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.theme-choice-blue span { border-color: rgba(47, 128, 216, 0.42); background: #e4f3ff; color: #2f80d8; }
.theme-choice-purple span { border-color: rgba(117, 82, 216, 0.42); background: #eee8ff; color: #7552d8; }
.theme-choice-pink span { border-color: rgba(216, 70, 143, 0.42); background: #ffe5f1; color: #d8468f; }
.theme-choice-mono span { border-color: rgba(62, 70, 82, 0.28); background: #eceff3; color: #3e4652; }
.theme-choice-mint span { border-color: rgba(25, 143, 122, 0.38); background: #dcfff6; color: #198f7a; }
.theme-choice-green span { border-color: rgba(47, 143, 71, 0.38); background: #e5ffe9; color: #2f8f47; }
.theme-choice-yellow span { border-color: rgba(168, 120, 0, 0.34); background: #fff5cc; color: #8f6500; }
.theme-choice-orange span { border-color: rgba(198, 101, 31, 0.38); background: #ffe9d6; color: #c6651f; }
.theme-choice-red span { border-color: rgba(200, 70, 70, 0.38); background: #ffe2e2; color: #c84646; }
.theme-choice-teal span { border-color: rgba(33, 127, 145, 0.38); background: #ddf9ff; color: #217f91; }
.theme-choice-navy span { border-color: rgba(49, 95, 168, 0.38); background: #e3edff; color: #315fa8; }
.theme-choice-lavender span { border-color: rgba(125, 103, 201, 0.38); background: #f0ebff; color: #7d67c9; }

.theme-choice input:checked + span {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(123, 188, 255, 0.24);
}

.theme-choice input:focus-visible + span {
    outline: 2px solid var(--blue-deep);
    outline-offset: 2px;
}

.slug-input-row {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(104, 161, 213, 0.42);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.46);
}

.slug-input-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.slug-input-row input {
    border: 0;
    padding: 6px 4px;
    background: transparent;
}

.slug-input-row input:focus {
    box-shadow: none;
}

.admin-list-toolbar {
    display: flex;
    justify-content: flex-end;
}

.toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid rgba(104, 161, 213, 0.34);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--blue-deep);
    font-size: inherit;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.toolbar-button[type="button"] {
    cursor: pointer;
}

.push-status {
    display: none;
    align-items: center;
    min-height: 40px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.push-status:not(:empty) {
    display: inline-flex;
}

.return-to-list-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 16px;
    margin: -4px 0 16px;
    color: white;
    background: linear-gradient(135deg, var(--button-start), var(--button-end));
    font-weight: 900;
    text-decoration: none;
}

.question-filter-bar {
    display: grid;
    gap: 12px;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(104, 161, 213, 0.34);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.filter-tab.is-active {
    border-color: rgba(47, 128, 216, 0.46);
    background: var(--blue-soft);
    color: var(--blue-deep);
}

.question-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.question-search-form button,
.question-search-form .toolbar-button {
    min-height: 42px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.question-card {
    padding: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: auto;
    border: 0;
    padding: 0 2px 2px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.current-page {
    color: var(--blue-deep);
    font-weight: 900;
}

.empty-card {
    text-align: center;
    color: var(--muted);
}

.meta-row {
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(104, 161, 213, 0.32);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--blue-deep);
    font-size: 16px;
    font-weight: 800;
}

.deleted-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(217, 76, 124, 0.12);
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.qa-block .item-date {
    margin-top: 8px;
    color: #8b98a8 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.35;
}

.content-block {
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.46);
}

.content-block + .content-block {
    margin-top: 12px;
}

.content-block p {
    margin: 0;
}

.qa-block {
    display: grid;
    gap: 14px;
}

.qa-block hr {
    width: 100%;
    height: 1px;
    border: 0;
    margin: 0;
    background: var(--line);
}

.question-text,
.answer-text,
.unanswered {
    margin-top: 8px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.read-more-toggle {
    display: inline;
    width: auto !important;
    appearance: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    color: var(--blue-deep);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 900;
    line-height: inherit;
    text-align: inherit;
    vertical-align: baseline;
}

.read-more-toggle:hover {
    filter: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-full[hidden],
.text-short[hidden] {
    display: none;
}

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

.admin-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    max-width: 100%;
    overflow: hidden;
}

.admin-details summary {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: var(--blue-deep);
    cursor: pointer;
    font-weight: 800;
}

.trace-box {
    margin: 12px 0;
    border-radius: 8px;
    padding: 12px;
    background: rgba(232, 246, 255, 0.72);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.trace-box p {
    margin: 0 0 6px;
}

.identity-box {
    display: grid;
    gap: 9px;
    margin: 18px 0 12px;
}

.identity-box h2 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.identity-panel {
    border: 1px solid rgba(104, 161, 213, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 251, 255, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 24px rgba(67, 136, 199, 0.08);
    overflow: hidden;
}

.identity-box .trace-box {
    margin: 0;
    padding: 14px 14px 8px;
    background: transparent;
    box-shadow: none;
}

.identity-box .admin-utility-row {
    margin: 0;
    border-top: 1px solid rgba(104, 161, 213, 0.18);
    padding: 10px 14px 8px;
    background: rgba(255, 255, 255, 0.34);
}

.identity-box .block-button-row {
    margin: 0;
    width: 100%;
    border-top: 1px solid rgba(104, 161, 213, 0.18);
    padding: 10px 14px 14px;
    background: rgba(255, 255, 255, 0.34);
    box-sizing: border-box;
}

.identity-box .admin-utility-row + .block-button-row {
    border-top: 0;
    padding-top: 2px;
}

.identity-box .block-button-row form {
    min-width: 0;
}

.identity-box .block-button-row button {
    width: 100%;
}

.admin-menu {
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-menu summary {
    color: var(--blue-deep);
    cursor: pointer;
    font-weight: 800;
}

.admin-menu-section {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    min-width: 0;
}

.admin-menu-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}

.admin-menu-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.stats-dashboard {
    display: grid;
    gap: 16px;
}

.stat-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-summary-card {
    display: grid;
    gap: 6px;
    border-radius: 8px;
    padding: 14px;
}

.stat-summary-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-summary-card strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.1;
}

.chart-box {
    min-width: 0;
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.36);
}

.chart-box h2 {
    margin: 0;
    line-height: 1.25;
}

.chart-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stats-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pie-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.pie-chart {
    display: block;
    width: 104px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(67, 136, 199, 0.12);
}

.stat-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pie-stat .stat-list {
    margin-top: 0;
}

.stat-list p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.stat-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
}

.stat-list span {
    color: var(--muted);
    font-weight: 800;
}

.block-list-box {
    min-width: 0;
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.36);
}

.block-management-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.block-management-item.is-removing {
    opacity: 0.45;
    pointer-events: none;
}

.block-value {
    margin: 6px 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.45;
}

.unblock-form button {
    min-height: 38px;
    background: linear-gradient(135deg, var(--button-muted-start), var(--button-muted-end));
    font-size: 13px;
}

.empty-inline {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.block-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    border-top: 1px solid var(--line);
    padding: 10px 0;
}

.block-list-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

.block-list-item .item-date {
    grid-column: 1;
}

.block-list-item form {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.block-list-item button {
    min-height: 34px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--button-muted-start), var(--button-muted-end));
    font-size: 12px;
}

.hourly-chart-box {
    grid-column: 1 / -1;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 172px;
    margin-top: 4px;
}

.bar-item {
    display: grid;
    grid-template-rows: 112px auto auto;
    gap: 6px;
    justify-items: center;
    min-width: 0;
}

.bar-track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 32px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.58);
}

.bar-fill {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--blue), var(--blue-deep));
}

.visit-fill {
    background: linear-gradient(180deg, #9ddbc8, #2f9f84);
}

.hour-fill {
    background: linear-gradient(180deg, #b9c7ff, #5e7ce2);
}

.hourly-chart {
    grid-template-columns: repeat(24, minmax(24px, 1fr));
    min-width: min(720px, 100%);
}

.bar-value,
.bar-label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.bar-value {
    color: var(--ink);
    font-weight: 800;
}

.same-person-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.36);
}

.mode-help-text {
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.same-person-card > * {
    min-width: 0;
    width: 100%;
}

.same-person-summary,
.same-person-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.same-person-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    cursor: pointer;
    list-style: none;
}

.same-person-summary::-webkit-details-marker {
    display: none;
}

.same-person-card:not([open]) {
    gap: 0;
}

.same-person-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.fingerprint-key {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.same-question-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.same-person-card:not([open]) > .same-question-list,
.same-person-card:not([open]) .trace-box {
    display: none;
}

.same-person-card[open] .same-summary-questions {
    display: none;
}

.same-question-item {
    display: block;
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.46);
}

.same-question-item p {
    margin: 0;
}

.same-question-item span {
    display: block;
}

.same-question-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.same-question-item .question-text {
    margin-top: 6px;
    line-height: 1.55;
}

.same-summary-questions .question-text {
    margin-top: 0;
}

.same-summary-more {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.same-question-item .item-date {
    margin-top: 6px;
    color: #8b98a8 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.35;
}

.admin-actions {
    display: grid;
    gap: 10px;
}

.admin-utility-row {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.admin-utility-row .toolbar-button {
    width: 100%;
}

.memo-form {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.memo-form button {
    width: 100%;
}

.admin-button-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.admin-button-row button {
    width: 100%;
}

.block-button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.block-button-row form {
    min-width: 0;
}

.block-button-row button {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--button-muted-start), var(--button-muted-end));
    font-size: 12px;
}

.delete-form {
    margin: 0;
}

.delete-form button {
    background: linear-gradient(135deg, var(--button-danger-start), var(--button-danger-end));
}

.restore-form {
    margin: 0;
}

.restore-form button {
    background: linear-gradient(135deg, var(--button-success-start), var(--button-success-end));
}

.hard-delete-form {
    margin: 0;
}

.hard-delete-form button {
    background: linear-gradient(135deg, var(--button-hard-start), var(--button-hard-end));
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 920px);
        padding-top: 16px;
    }

    .ask-panel {
        position: static;
        padding: 18px;
    }

    .title-row {
        display: grid;
        align-items: flex-start;
        justify-items: start;
        gap: 12px;
    }

    .admin-badge {
        flex: 0 0 auto;
        justify-self: start;
        width: auto;
        inline-size: fit-content;
        max-inline-size: fit-content;
        padding: 8px 10px;
        font-size: 12px;
    }

    button {
        width: 100%;
    }

    .primary-link-button,
    .create-teaser .toolbar-button {
        width: 100%;
    }

    .create-teaser {
        align-items: stretch;
        flex-direction: column;
    }

    .slug-input-row {
        grid-template-columns: 1fr;
    }

    .slug-input-row span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .theme-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-toolbar {
        justify-content: stretch;
    }

    .toolbar-button {
        width: 100%;
    }

    .admin-menu-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .admin-menu-actions .toolbar-button {
        width: 100%;
    }

    .admin-menu-actions .push-subscribe-button,
    .admin-menu-actions .push-status {
        grid-column: 1 / -1;
    }

    .question-search-form {
        grid-template-columns: 1fr;
    }

    .filter-tab {
        flex: 1 1 calc(50% - 4px);
    }

    .block-list-item {
        grid-template-columns: 1fr;
    }

    .block-list-item .item-date,
    .block-list-item form {
        grid-column: 1;
        grid-row: auto;
    }

    .block-management-item {
        grid-template-columns: 1fr;
    }

    .unblock-form button {
        width: 100%;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .stat-summary-grid,
    .stats-detail-grid {
        grid-template-columns: 1fr;
    }

    .pie-stat {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pie-stat .stat-list {
        width: 100%;
    }

    .bar-chart {
        gap: 6px;
    }

    .hourly-chart {
        min-width: 680px;
    }

    .pagination {
        justify-content: center;
    }

    .page-link {
        flex: 0 0 auto;
    }

    .qa-block .item-date {
        font-size: 12px !important;
    }

    .admin-button-row {
        grid-template-columns: 1fr 1fr;
    }

    .block-button-row {
        grid-template-columns: 1fr;
    }
}
