:root {
    color-scheme: light;
    font: 15px/1.55 system-ui, sans-serif;
    color: #172727;
    background: #f4f7f6;
    --line: #dbe5e1;
    --green: #135744;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
button, input { font: inherit; border-radius: 8px; padding: .55rem .8rem; }
input { border: 1px solid #9eb1aa; background: white; }
button { border: 1px solid var(--green); background: var(--green); color: white; cursor: pointer; }
:focus-visible { outline: 3px solid #bc6926; outline-offset: 2px; }
h1, h2, p { margin: 0; }
.login { width: min(420px, calc(100% - 32px)); margin: 12vh auto 0; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.login h1 { letter-spacing: .08em; color: var(--green); font-size: 1.1rem; }
.login h2 { font-size: 2rem; margin: 10px 0 20px; }
.login label, .login input { display: block; width: 100%; }
.login label { margin-bottom: 14px; }
.login input { margin-top: 4px; }
.top { display: flex; justify-content: space-between; align-items: center; background: #12362d; padding: 12px 26px; }
.top a { color: white; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.top button { background: transparent; border-color: #8aaba2; }
.workspace { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: calc(100vh - 62px); }
aside { background: white; border-right: 1px solid var(--line); padding: 22px 14px; }
aside h2 { color: #516a62; font-size: .9rem; margin: 0 10px 10px; }
aside a { display: block; padding: 6px 10px; text-decoration: none; border-radius: 7px; color: inherit; }
aside a:hover, aside [aria-current] { background: #e1eee8; color: var(--green); }
.content { padding: 28px; }
.heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.heading h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.heading p { color: #526860; }
.search { display: flex; gap: 8px; align-items: end; margin: 16px 0; }
.search label { display: grid; gap: 4px; max-width: 100%; }
.grid { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: separate; border-spacing: 0; min-width: 100%; background: white; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 95px; max-width: 340px; overflow-wrap: anywhere; }
thead th { position: sticky; top: 0; background: #e6efeb; }
tbody tr:nth-child(even) { background: #f7f9f8; }
.pages { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
[role="alert"] { color: #83270e; margin-bottom: 14px; }
@media (max-width: 640px) {
    .workspace { display: block; }
    aside { padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
    aside nav { display: flex; overflow: auto; align-items: center; gap: 4px; white-space: nowrap; }
    aside h2 { margin: 0 6px; }
    .content { padding: 16px; }
}
