:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1b1d1f;
    background: #f4f6f7;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #f4f6f7;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

a {
    color: #0069a8;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background: #eef1f2;
}

.login-panel {
    width: min(380px, 100%);
    padding: 32px;
    border: 1px solid #d7dcde;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(22, 34, 39, 0.09);
}

.brand-icon {
    display: block;
    margin-bottom: 18px;
}

.brand {
    color: #398900;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 5px;
    font-size: 25px;
    line-height: 1.25;
}

h2 {
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.3;
}

.muted {
    margin-bottom: 0;
    color: #626a6e;
    font-size: 14px;
    line-height: 1.45;
}

.login-form {
    margin-top: 26px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #34393c;
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #b9c0c3;
    border-radius: 4px;
    background: #ffffff;
    color: #1b1d1f;
}

input,
select {
    min-height: 42px;
    padding: 8px 10px;
}

textarea {
    resize: vertical;
    min-height: 84px;
    padding: 10px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(0, 105, 168, 0.25);
    outline-offset: 1px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    border-color: #398900;
    background: #4fbd00;
    color: #ffffff;
}

.button.primary:hover {
    background: #43a300;
}

.button.secondary {
    border-color: #aeb6ba;
    background: #ffffff;
    color: #1f2528;
}

.button.compact {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.login-form .button {
    width: 100%;
    margin-top: 15px;
}

.notice {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
}

.login-form .notice {
    margin-top: 14px;
}

.notice.error {
    border-color: #e2aaa4;
    background: #fff2f0;
    color: #9d271b;
}

.notice.success {
    border-color: #9fc98a;
    background: #f1faed;
    color: #285d10;
}

.topbar {
    border-bottom: 1px solid #d8dddf;
    background: #ffffff;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1080px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #1b1d1f;
    text-decoration: none;
}

.wordmark img {
    width: 40px;
    height: 40px;
}

.wordmark span {
    display: grid;
}

.wordmark strong {
    font-size: 15px;
}

.wordmark small {
    color: #687075;
    font-size: 12px;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #c6cccf;
    border-radius: 4px;
    background: #ffffff;
    color: #34393c;
    font-size: 20px;
    cursor: pointer;
}

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

.page-shell > .notice {
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.app-list {
    display: grid;
    gap: 12px;
}

.app-card,
.empty-state {
    border: 1px solid #d6dcde;
    border-radius: 6px;
    background: #ffffff;
}

.app-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 18px;
}

.app-glyph {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #99c87d;
    border-radius: 6px;
    background: #edf8e8;
    color: #398900;
    font-size: 20px;
    font-weight: 750;
}

.app-title {
    min-width: 0;
}

.app-title h2,
.app-title p {
    overflow-wrap: anywhere;
}

.download-button {
    min-width: 150px;
}

.release-history {
    border-top: 1px solid #e2e6e8;
}

.release-history summary {
    padding: 13px 18px;
    color: #4f575b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.release-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #edf0f1;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 11px 14px;
    border-bottom: 1px solid #edf0f1;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #60686c;
    background: #fafbfb;
    font-size: 12px;
    font-weight: 650;
}

td small {
    display: block;
    margin-top: 2px;
    color: #727a7e;
}

td code {
    font-size: 12px;
}

.release-notes td {
    padding-top: 4px;
    color: #5a6266;
    background: #fcfdfd;
}

.empty-state {
    padding: 32px;
    text-align: center;
}

.upload-section {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #d4dade;
}

.upload-form {
    padding: 22px;
    border: 1px solid #d6dcde;
    border-radius: 6px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    min-width: 0;
}

.field.full-width {
    grid-column: 1 / -1;
}

.file-field input {
    padding: 7px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

footer {
    padding: 22px 16px 28px;
    color: #697176;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 700px) {
    .page-shell {
        padding-top: 26px;
    }

    .app-summary {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .app-glyph {
        width: 44px;
        height: 44px;
    }

    .download-button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .field.full-width {
        grid-column: auto;
    }

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

@media (max-width: 420px) {
    .login-panel {
        padding: 24px;
    }

    .topbar-inner,
    .page-shell {
        width: min(100% - 22px, 1080px);
    }
}
