@font-face {
    font-family: "Manrope";
    src: url("Manrope-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("Manrope-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("Manrope-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("Manrope-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Unused faces, kept for future use. Uncomment when the styles need them.
@font-face {
    font-family: "Manrope";
    src: url("Manrope-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("Manrope-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("Manrope-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
Manrope-VariableFont_wght.ttf covers 200-800 in one file as an alternative to the static faces.
Manrope has no italic faces; browsers will slant the upright if italics are ever used.
*/

:root {
    --accent-100: #fff2ef;
    --accent-200: #ffe0d9;
    --accent-300: #ffc4b8;
    --accent-400: #ff9783;
    --accent: #ec3013;
    --accent-600: #dd2b0f;
    --accent-700: #ae1800;
    --accent-800: #7c1405;
    --accent-900: #4d170e;
    --n100: #f8f4f4;
    --n200: #eae7e7;
    --n300: #d7d3d3;
    --n400: #bab6b6;
    --n500: #9b9797;
    --n600: #7d7979;
    --n700: #605d5d;
    --n800: #444141;
    --n900: #2d2b2b;
    --ground: #f3f2f2;
    --ink: #201e1d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--ink);
    background: var(--ground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--n300);
}

.site-header nav {
/**    max-width: 1100px; **/
    margin: 0 auto;
    padding: 0.6rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}

.mark {
    width: 34px;
    height: 34px;
    position: relative;
    flex-shrink: 0;
}

.brand .mark {
    width: 46px;
    height: 46px;
}

.mark::before,
.mark::after {
    content: "";
    position: absolute;
    background: var(--accent);
}

.mark::before { width: 48%; height: 48%; left: 0; bottom: 0; }
.mark::after { width: 27%; height: 27%; right: 0; top: 0; }

.mark .mark-node {
    position: absolute;
    width: 36%;
    height: 36%;
    left: 32%;
    top: 32%;
    background: var(--accent-800);
}

.mark .mark-path {
    position: absolute;
    left: 8%;
    bottom: 8%;
    width: 84%;
    height: 2px;
    background: var(--accent-800);
    transform-origin: left bottom;
    transform: rotate(-38deg);
}

.brand-text { display: flex; flex-direction: column; }

.brand-word {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-word span { color: var(--accent-700); }

.brand-strap {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--n600);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links button.linklike { text-decoration: none; }

.admin-bar {
    background: var(--ink);
}

.admin-bar nav {
/**    max-width: 1100px; **/
    margin: 0 auto;
    padding: 0.5rem 3rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.admin-bar a {
    color: var(--n300);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-bar a:hover { color: #ffffff; }

main {
    width: 100%;
/*    max-width: 1100px; */
    margin: 0 auto;
    padding: 1.5rem 3rem 3rem;
    flex: 1;
}

a { color: var(--accent-700); }

h1 { font-size: 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

.card {
    background: #ffffff;
    border: 1px solid var(--n300);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
}

form.card { max-width: 34rem; }

label { display: block; margin: 0.75rem 0; }
label.radio { font-weight: normal; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--n400);
    border-radius: 4px;
    font: inherit;
    background: #ffffff;
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-300);
    border-color: var(--accent);
}

button {
    font: inherit;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
}

button:hover { background: var(--accent-600); }

button:disabled { opacity: 0.6; cursor: default; }

button.linklike {
    background: none;
    color: var(--accent-700);
    padding: 0;
    font-weight: 400;
    text-decoration: underline;
}

button.linklike:hover { background: none; color: var(--accent-800); }

button.danger, button.linklike.danger { color: var(--accent-700); }

.inline { display: inline; }

.muted { color: var(--n700); font-size: 0.9rem; }

.flash {
    padding: 0.65rem 1rem;
    border-radius: 4px;
    margin: 0.75rem 0;
}

.flash-info { background: var(--n200); }
.flash-success { background: #ddf2e2; }
.flash-error { background: var(--accent-200); color: var(--accent-900); }

.home-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

.home-grid h1 { margin-top: 0.5rem; }

.feature-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.feature-list li { margin: 0.35rem 0; }

a.button {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
}

a.button:hover { background: var(--accent-600); }

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

.table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--n300);
    border-radius: 8px;
}

.table-wrap table { margin: 0; }

th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--n200);
    font-size: 0.92rem;
    word-break: break-word;
}

th { background: var(--n100); }

td.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

a.btn-action,
button.btn-action {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    background: var(--n200);
    color: var(--ink);
    border: none;
    cursor: pointer;
}

a.btn-action:hover,
button.btn-action:hover { background: var(--n300); }

button.btn-action.btn-danger {
    background: var(--accent-100);
    color: var(--accent-700);
}

button.btn-action.btn-danger:hover { background: var(--accent-200); }

code {
    background: var(--n200);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    word-break: break-all;
}

.dropzone {
    border: 2px dashed var(--n400);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--n100);
}

.dropzone.drag-over {
    border-color: var(--accent);
    background: var(--accent-100);
}

.dropzone p { margin: 0.4rem 0; }

.dropzone-filename { font-weight: 600; }

.dropzone-browse {
    background: none;
    color: var(--accent-700);
    padding: 0;
    font-weight: 600;
    text-decoration: underline;
}

.dropzone-browse:hover { background: none; color: var(--accent-800); }

.progress {
    height: 10px;
    background: var(--n200);
    border-radius: 5px;
    overflow: hidden;
    margin: 0.75rem 0 0.25rem;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.15s ease;
}

.site-footer {
    margin-top: auto;
    background: var(--ink);
    color: var(--n400);
    font-size: 0.9rem;
}

.footer-inner {
/**    max-width: 1100px; **/
    margin: 0 auto;
    padding: 1.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mark-dark .mark-node,
.mark-dark .mark-path { background: var(--ground); }

.brand-word-dark { color: #ffffff; }
.brand-word-dark span { color: var(--accent-300); }

.footer-tag { margin: 0.3rem 0 0; }

.footer-credit {
    margin: 0;
    color: var(--n300);
    align-self: flex-end;
}

.footer-credit a { color: inherit; }

.copy-btn {
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    vertical-align: middle;
}

.qr {
    display: inline-block;
    margin: 0.5rem 0;
    line-height: 0;
}

.qr svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .table-wrap { overflow-x: visible; }

    table, tbody, tr, td { display: block; width: 100%; }
    thead { display: none; }

    table {
        border: none;
        background: none;
    }

    tr {
        background: #ffffff;
        border: 1px solid var(--n300);
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--n200);
    }

    tr td:last-child { border-bottom: none; }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        flex-shrink: 0;
    }

    td[data-label=""]::before { display: none; }

    td.actions { justify-content: flex-start; }
}
