@font-face {
    font-family: Manrope;
    src: url("/manrope.ttf") format("truetype");
    font-display: swap;
}
:root {
    color-scheme: dark;
    --bg: #0b0b0b;
    --panel: #111;
    --line: #2a2a2a;
    --muted: #979797;
    --text: #eee;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 14px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
[hidden] {
    display: none !important;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
    padding: 11px 16px;
    border: 1px solid #444;
    color: var(--text);
    background: transparent;
    transition: background 0.15s;
}
button:hover {
    background: #242424;
}
button:disabled {
    opacity: 0.4;
    cursor: default;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}
.primary {
    background: #eee;
    color: #111;
    border-color: #eee;
}
.primary:hover {
    background: #ccc;
}
.quiet {
    border: 0;
    padding-left: 0;
    text-align: left;
}
input,
textarea,
select {
    width: 100%;
    background: #151515;
    border: 1px solid #373737;
    color: #eee;
    padding: 12px;
    outline-offset: 3px;
    border-radius: 0;
}
textarea {
    resize: vertical;
    line-height: 1.6;
}
label {
    display: grid;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.05em;
}
h2 {
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.035em;
}
p {
    line-height: 1.7;
}
.muted,
.fine {
    color: var(--muted);
}
.fine {
    font-size: 12px;
}
.eyebrow {
    font: 10px monospace;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 20px;
}
.brand {
    font-size: 27px;
    letter-spacing: -0.055em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand span {
    font: 10px monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid #444;
    padding: 4px 6px;
    color: #aaa;
}
.brand img {
    filter: grayscale(1);
}
.auth-shell {
    max-width: 1080px;
    margin: auto;
    padding: 42px 28px;
}
.auth-card {
    max-width: 440px;
    margin: 10vh auto 0;
}
.auth-card h1 {
    font-size: 47px;
    line-height: 1.15;
}
.auth-card form {
    display: grid;
    gap: 20px;
    margin: 32px 0 20px;
}
.auth-card .primary {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
}
.auth-card:before {
    content: "";
    position: fixed;
    z-index: -1;
    right: -100px;
    top: 15vh;
    width: 500px;
    height: 500px;
    background: radial-gradient(#fff5 1px, transparent 1.5px) 0 0/7px 7px;
    mask-image: radial-gradient(
        ellipse,
        transparent 25%,
        #000 45%,
        transparent 68%
    );
    pointer-events: none;
}
.sidebar {
    width: 220px;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid var(--line);
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
}
.sidebar > .eyebrow {
    margin-top: 62px;
}
.sidebar nav {
    display: grid;
    gap: 8px;
}
.nav {
    display: flex;
    justify-content: space-between;
    border: 0;
    text-align: left;
}
.nav.active {
    background: #242424;
}
.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 12px;
    font-size: 11px;
    overflow-wrap: anywhere;
}
main {
    margin-left: 220px;
    padding: 34px 40px;
    max-width: 1780px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
header h1 {
    margin-bottom: 0;
}
header .eyebrow {
    margin-bottom: 12px;
}
.notice:not(:empty) {
    border: 1px solid #645437;
    background: #241e15;
    padding: 14px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 30px 0;
}
.stat {
    background: var(--bg);
    padding: 20px;
}
.stat strong {
    display: block;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 6px;
}
.stat span {
    color: var(--muted);
    font-size: 12px;
}
.inbox-toolbar {
    display: grid;
    grid-template-columns: 1fr 170px 170px;
    gap: 16px;
    margin-bottom: 22px;
}
.inbox-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.35fr);
    border: 1px solid var(--line);
    min-height: 570px;
}
.list-pane {
    border-right: 1px solid var(--line);
    min-width: 0;
}
.inquiry {
    display: block;
    width: 100%;
    padding: 20px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
}
.inquiry.selected {
    background: #222;
    box-shadow: inset 2px 0 #fff;
}
.inquiry-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}
.inquiry-top strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}
.inquiry small {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}
.inquiry p {
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 12px;
    overflow-wrap: anywhere;
}
.badge {
    display: inline-block;
    padding: 4px 7px;
    font: 10px monospace;
    border: 1px solid #454545;
    color: #bbb;
}
.badge.new {
    border-color: #9d9d9d;
    color: #fff;
}
.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 11px;
}
.pagination button {
    padding: 8px;
}
.detail-pane {
    padding: 30px;
    min-width: 0;
}
.empty {
    padding: 90px 24px;
    text-align: center;
    color: var(--muted);
}
.empty h2 {
    color: #ddd;
    font-size: 21px;
}
.pixel-orbit {
    display: block;
    width: 85px;
    height: 85px;
    margin: 0 auto 26px;
    background: radial-gradient(#aaa 1px, transparent 1.5px) 0 0/5px 5px;
    mask-image: radial-gradient(transparent 28%, #000 40%, transparent 70%);
}
.detail-top {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: start;
}
.detail-top h2 {
    overflow-wrap: anywhere;
}
.detail-top select {
    width: 140px;
}
.detail-meta {
    font: 11px monospace;
    color: #999;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.85;
    font-size: 14px;
    border-block: 1px solid var(--line);
    margin: 24px 0;
    padding: 24px 0;
}
.context {
    overflow-wrap: anywhere;
    color: #aaa;
}
.context a {
    text-decoration: underline;
}
.reply-form,
.note-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.detail-pane h3 {
    font-size: 15px;
    font-weight: 500;
    margin-top: 30px;
}
.timeline {
    display: grid;
    gap: 12px;
}
.event {
    border-left: 1px solid #555;
    padding: 8px 14px;
    background: #ffffff03;
}
.event p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 6px 0;
    font-size: 12px;
}
.event small {
    color: #999;
    font: 10px monospace;
}
.event button {
    font-size: 11px;
    margin-top: 8px;
}
.info-card {
    max-width: 850px;
    border: 1px solid var(--line);
    padding: 34px;
    margin: 24px 0;
}
.info-card dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    margin: 30px 0;
}
.info-card dt {
    color: var(--muted);
}
.info-card dd {
    margin: 0;
}
dialog {
    background: #151515;
    color: #eee;
    border: 1px solid #666;
    padding: 32px;
    width: min(600px, calc(100% - 32px));
    max-height: 85vh;
}
dialog::backdrop {
    background: #000b;
}
dialog pre {
    font: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
    max-height: 35vh;
    overflow: auto;
    border-block: 1px solid #333;
    padding: 20px 0;
}
@media (max-width: 1100px) {
    main {
        padding: 28px 22px;
    }
    .sidebar {
        width: 180px;
        padding: 26px 16px;
    }
    main {
        margin-left: 180px;
    }
    .inbox-grid {
        grid-template-columns: 1fr;
    }
    .list-pane {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: 440px;
        overflow: auto;
    }
    .inbox-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .search {
        grid-column: 1/-1;
    }
}
@media (max-width: 650px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 18px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    .sidebar > .eyebrow {
        display: none;
    }
    .sidebar nav {
        display: flex;
        grid-row: 2;
        grid-column: 1/-1;
    }
    .sidebar-bottom {
        grid-column: 2;
        grid-row: 1;
    }
    .sidebar-bottom > a,
    #identity {
        display: none;
    }
    main {
        margin: 0;
        padding: 24px 16px;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat {
        padding: 16px;
    }
    .detail-pane {
        padding: 22px 16px;
    }
    .detail-top {
        flex-wrap: wrap;
    }
    .auth-card h1 {
        font-size: 38px;
    }
    .info-card {
        padding: 22px;
    }
    .info-card dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .actions > button {
        flex: 1;
    }
    .inbox-toolbar {
        gap: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
