@import url('https://fonts.googleapis.com/css2?family=Averia+Libre:wght@300;400;700&display=swap');

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
button,
input,
select,
textarea {
    font-family: "Averia Libre", "Optima", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 300;
}

body {
    margin: 0;
    padding: 16px;
    font-size: 14px;
    line-height: 1.35;
    color: #111;
    background: #f3f3f3;
}

.page {
    max-width: 980px;
    margin: 0 auto;
}

.panel {
    background: #fff;
    border: 1px solid #cfcfcf;
    padding: 14px;
}

.stack {
    display: grid;
    gap: 12px;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
}

p {
    margin: 0 0 10px 0;
}

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

.muted {
    color: #666;
}

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

.button,
button {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid #888;
    background: #ececec;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    font-weight: 400;
}

.button:hover,
button:hover {
    background: #e2e2e2;
}

.form-grid {
    display: grid;
    gap: 10px;
    max-width: 360px;
}

.form-grid-wide {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

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

label {
    display: grid;
    gap: 4px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #999;
    font-size: 14px;
    line-height: 1.2;
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.nav-list {
    margin: 0;
    padding-left: 18px;
}

.nav-list li {
    margin: 4px 0;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

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

.data-table th {
    background: #e9e9e9;
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.data-table th a {
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.data-table th a:hover {
    text-decoration: underline;
}

details.collapsible-panel {
    background: #fff;
    border: 1px solid #cfcfcf;
}

details.collapsible-panel summary {
    cursor: pointer;
    padding: 14px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    list-style: none;
    user-select: none;
}

details.collapsible-panel summary::-webkit-details-marker {
    display: none;
}

details.collapsible-panel summary::after {
    content: '+';
    float: right;
    font-weight: 700;
}

details.collapsible-panel[open] summary::after {
    content: '–';
}

details.collapsible-panel .collapsible-content {
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
}