* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: #f1f1f1;
    color: #111;
    font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

a {
    color: #007a2a;
}

h1 {
    margin: 0 0 16px;
    font-size: 20px;
}

h2 {
    margin: 24px 0 10px;
    font-size: 16px;
}

p {
    margin: 0 0 12px;
}

code {
    padding: 1px 4px;
    background: #e4e4e4;
    font-family: ui-monospace, Consolas, monospace;
}

.top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: #111;
    border-bottom: 2px solid #00ff52;
    color: #fff;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-brand img {
    display: block;
    width: auto;
    height: 22px;
}

.top a {
    color: #ddd;
}

.top .who {
    margin-left: auto;
    color: #bbb;
}

.top form {
    margin: 0;
}

.shell {
    display: flex;
    align-items: flex-start;
}

.menu {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 200px;
    min-height: calc(100vh - 41px);
    padding: 8px 0;
    background: #e2e2e2;
    border-right: 1px solid #c8c8c8;
}

.menu a {
    padding: 8px 16px;
    color: #111;
    text-decoration: none;
}

.menu a:hover {
    background: #d4d4d4;
}

.menu a.current {
    background: #fff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #00c43f;
}

.main {
    flex: 1;
    min-width: 0;
    padding: 16px 20px 40px;
}

.main.solo {
    max-width: 520px;
    margin: 40px auto;
}

button,
.btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #888;
    background: #f7f7f7;
    color: #111;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background: #e8e8e8;
}

button.primary {
    background: #00e04a;
    border-color: #00b33b;
    color: #0b0b0b;
    font-weight: 600;
}

button.primary:hover {
    background: #00ff52;
}

button.danger {
    border-color: #a30000;
    color: #a30000;
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='url'],
input[type='email'],
input[type='search'],
select,
textarea {
    width: 100%;
    max-width: 560px;
    padding: 6px 8px;
    border: 1px solid #888;
    background: #fff;
    color: #111;
    font: inherit;
}

input.short {
    width: 90px;
}

textarea {
    max-width: 760px;
    font-family: ui-monospace, Consolas, monospace;
}

.form .row {
    margin-bottom: 12px;
}

.form label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}

.form label.check {
    font-weight: 400;
}

.form small {
    display: block;
    margin-top: 2px;
    color: #555;
}

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

.inline input,
.inline select {
    width: auto;
}

fieldset {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #c0c0c0;
    background: #f8f8f8;
}

legend {
    padding: 0 6px;
    font-weight: 700;
}

.pair {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.pair input {
    max-width: 160px;
}

.note {
    color: #555;
}

.alert {
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert.ok {
    background: #e6f4ea;
    border-color: #6aa97b;
}

.alert.err {
    background: #fdeaea;
    border-color: #c46a6a;
}

.alert.warn {
    background: #fff6dc;
    border-color: #c9a23a;
}

table.list,
table.grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table.list th,
table.list td,
table.grid th,
table.grid td {
    padding: 6px 10px;
    border: 1px solid #cfcfcf;
    text-align: left;
    vertical-align: top;
}

table.list th,
table.grid th {
    background: #ececec;
}

table.grid {
    max-width: 640px;
    margin-bottom: 16px;
}

table.grid th {
    width: 60%;
    font-weight: 400;
}

table.list form {
    margin: 0;
}

.checks {
    margin: 0 0 16px;
    padding-left: 18px;
}

.checks .pass {
    color: #1d6b32;
}

.checks .fail {
    color: #a30000;
    font-weight: 700;
}

.thumb {
    display: block;
    max-width: 120px;
    max-height: 80px;
    margin: 4px 0;
    border: 1px solid #aaa;
}

.pager {
    margin-top: 12px;
}

@media (max-width: 800px) {
    .shell {
        flex-direction: column;
    }

    .menu {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #c8c8c8;
    }

    .main {
        width: 100%;
        padding: 12px;
        overflow-x: auto;
    }
}
