:root {
    color-scheme: light;
    --bg: #f5f7f8;
    --panel: #ffffff;
    --text: #172026;
    --muted: #64727d;
    --line: #d7dee3;
    --accent: #087f8c;
    --accent-strong: #06636d;
    --warning: #8a5a00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}

.session {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
    gap: 16px;
    margin: 28px 0 18px;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
}

.catalog {
    display: grid;
    gap: 10px;
}

.app-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.app-main h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.description,
.notes,
.status {
    color: var(--muted);
}

.description {
    margin: 4px 0 14px;
}

.notes {
    margin: 12px 0 0;
}

dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px 20px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.hash {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 12px;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 132px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
    color: var(--text);
    background: var(--panel);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-strong);
}

.button.secondary:hover {
    border-color: var(--accent);
}

.missing {
    color: var(--warning);
    font-weight: 700;
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 28px, 1180px);
        padding-top: 22px;
    }

    .topbar,
    .app-row,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
        align-items: start;
    }

    .session,
    .app-actions {
        align-items: stretch;
        width: 100%;
    }

    dl {
        grid-template-columns: 1fr 1fr;
    }
}
