body {
    min-height: 100vh;
}

.admin-window {
    width: min(1120px, calc(100vw - 32px));
    margin: 32px auto;
}

.admin-panel {
    display: grid;
    gap: 16px;
    padding: 16px;
    background-color: #ffffff;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(238,238,238,.58)),
        repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 6px);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-spacer {
    flex: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-link {
    min-height: 88px;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    background: #dfdfdf;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    box-shadow: inset 1px 1px 0 #f7f7f7, inset -1px -1px 0 #b0b0b0;
}

.admin-link strong,
.admin-link span {
    display: block;
}

.admin-link span {
    margin-top: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.admin-table th,
.admin-table td {
    padding: 8px;
    border: 1px solid #808080;
    text-align: left;
    vertical-align: top;
}

.admin-form {
    display: grid;
    gap: 10px;
}

.admin-form-row {
    display: grid;
    gap: 4px;
}

.admin-form-row input,
.admin-form-row textarea,
.admin-form-row select {
    width: 100%;
    min-height: 24px;
    color: #000000;
    background: #ffffff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    font-family: inherit;
}

.admin-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.admin-checks label {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-error {
    padding: 8px;
    border: 1px solid #800;
    background: #ffdede;
}

.admin-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-summary span {
    padding: 6px 8px;
    background: #dfdfdf;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
}
