:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101416;
    color: #edf3f3;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-height: 100%; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; background: #101416; }
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }

.shell { width: min(860px, calc(100% - 40px)); min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #30393a; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #43d1d2; color: #79e5dd; font-size: 20px; font-weight: 760; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; font-weight: 730; }
.brand small { margin-top: 4px; color: #8c9a9b; font-size: 10px; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: #a9b7b5; font-size: 10px; font-weight: 700; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #58d1a3; box-shadow: 0 0 10px #58d1a366; }

main { flex: 1; }
h1, h2, p { margin: 0; }
h1 { font-size: 27px; font-weight: 640; }
h2 { font-size: 17px; font-weight: 640; }
.eyebrow { margin-bottom: 8px; color: #69d9d3; font-size: 10px; font-weight: 750; }
.muted { color: #a2aeae; font-size: 13px; line-height: 1.55; }
.login-panel { width: min(390px, 100%); margin: 82px auto 0; }
.login-panel h1 { margin-bottom: 10px; }
.login-panel > .muted { margin-bottom: 27px; }
form { display: grid; gap: 14px; }
label { display: block; margin-bottom: 7px; color: #c4cecd; font-size: 12px; font-weight: 620; }
input, textarea { width: 100%; border: 1px solid #414c4d; border-radius: 3px; outline: none; background: #181f21; color: #f2f6f5; }
input { min-height: 44px; padding: 9px 12px; font-size: 16px; }
textarea { min-height: 96px; padding: 11px 12px; resize: vertical; font-size: 14px; line-height: 1.5; }
input:focus, textarea:focus { border-color: #4cd3ce; box-shadow: 0 0 0 2px #4cd3ce26; }
input[type="file"] { min-height: 50px; padding: 7px; font-size: 13px; }
input::file-selector-button { min-height: 34px; margin-right: 12px; border: 1px solid #566465; border-radius: 2px; background: #252e30; color: #e5eeee; font: inherit; cursor: pointer; }
.field-note { margin-top: 7px; color: #8f9d9e; font-size: 11px; overflow-wrap: anywhere; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.page-heading, .summary-head, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-heading { padding: 34px 0 25px; }
.release-summary { padding: 19px 0 20px; border-top: 1px solid #30393a; border-bottom: 1px solid #30393a; }
.summary-head { align-items: flex-start; margin-bottom: 9px; }
.summary-head .eyebrow, .section-heading .eyebrow { margin-bottom: 6px; }
.changelog { margin-top: 14px; padding-left: 12px; border-left: 2px solid #42c5bf; color: #c3cecc; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.publish-section { padding: 25px 0 32px; }
.section-heading { margin-bottom: 19px; }
.limit { color: #9ba7a7; font-size: 11px; white-space: nowrap; }
.publish-button { width: max-content; min-width: 190px; margin-top: 2px; }

.button { min-height: 42px; border: 1px solid transparent; border-radius: 3px; padding: 0 15px; color: #edf6f5; font-size: 11px; font-weight: 750; cursor: pointer; user-select: none; -webkit-user-select: none; transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease; }
.button:active { transform: scale(.985); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { border-color: #38bdb8; background: #087f7e; }
.button-secondary { border-color: #4b5959; background: transparent; color: #c0cccc; }
.button-quiet { border-color: #414c4d; background: transparent; color: #b4c0c0; }
.notice { margin-top: 20px; padding: 12px 14px; border-left: 3px solid; font-size: 13px; line-height: 1.5; }
.notice[hidden], section[hidden] { display: none !important; }
.notice-info { border-color: #48bfbe; background: #172627; color: #caeeee; }
.notice-success { border-color: #53cc9b; background: #182923; color: #d2f7e8; }
.notice-error { border-color: #e47f77; background: #2a1d1d; color: #ffd9d6; }
footer { min-height: 48px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #30393a; color: #748282; font-size: 9px; font-weight: 700; }
footer span { color: #57c9c4; }

@media (hover: hover) and (pointer: fine) {
    .button-primary:hover { background: #0a9692; }
    .button-secondary:hover, .button-quiet:hover { border-color: #58d4d0; color: white; }
}

@media (max-width: 600px) {
    .shell { width: min(100% - 28px, 440px); }
    .topbar { min-height: 66px; }
    .page-heading { padding-top: 25px; }
    .field-row { grid-template-columns: 1fr; gap: 14px; }
    .summary-head { align-items: center; }
    .publish-button { width: 100%; }
    .login-panel { margin-top: 54px; }
}
