:root {
    --bg: #f6f8fa;
    --card: #fff;
    --text: #1f2328;
    --muted: #656d76;
    --line: #d0d7de;
    --brand: #1f6feb;
    --danger: #cf222e;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1, h2 {
    margin: 0.15rem 0 0;
    font-weight: 650;
}

h1 { font-size: 1.45rem; }
h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }

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

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
}

.nav a:hover,
.nav a.is-active {
    background: #eaeef2;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.15rem 1.2rem;
    margin-bottom: 1rem;
}

.login {
    max-width: 420px;
}

label {
    display: block;
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}

input:disabled {
    background: #f6f8fa;
    color: var(--muted);
}

textarea { resize: vertical; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .grid { grid-template-columns: 1fr; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #f6f8fa;
    color: inherit;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-danger {
    background: #fff;
    border-color: #ffc1c7;
    color: var(--danger);
}

.inline { display: inline-block; margin: 0; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notice {
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}

.notice.is-ok {
    background: #dafbe1;
    border-color: #aceebb;
}

.notice.is-err {
    background: #ffebe9;
    border-color: #ffcecb;
}

.upload-progress {
    margin: 0 0 1rem;
}

.upload-track {
    height: 8px;
    border-radius: 999px;
    background: #eaeef2;
    overflow: hidden;
}

.upload-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--brand);
    transition: width 0.12s linear;
}

.upload-progress .muted {
    margin-top: 0.4rem;
    font-size: 0.82rem;
}

.list-card {
    padding: 0;
    overflow: hidden;
}

.list-scroll {
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.empty {
    margin: 0;
    padding: 1.15rem 1.2rem;
}

.release-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.release-row:last-child {
    border-bottom: 0;
}

.release-main {
    min-width: 0;
    flex: 1;
}

.release-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.release-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.4rem;
}

.asset {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--muted);
}

.notes {
    margin: 0.65rem 0;
    white-space: pre-wrap;
    font: inherit;
    color: var(--text);
}

.notes-snip {
    margin: 0.35rem 0 0;
    color: var(--text);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
}

@media (max-width: 720px) {
    .release-row {
        flex-direction: column;
    }
}
