:root {
    --bg: #f2efe8;
    --paper: rgba(255, 252, 246, 0.88);
    --ink: #1f2430;
    --muted: #5f6775;
    --line: rgba(31, 36, 48, 0.12);
    --accent: #0d6b5d;
    --accent-dark: #08493f;
    --danger: #8a2f3b;
    --shadow: 0 24px 60px rgba(18, 24, 38, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(13, 107, 93, 0.18), transparent 30%),
        linear-gradient(180deg, #f7f4ee 0%, var(--bg) 100%);
}

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

code {
    font-family: Consolas, Monaco, monospace;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 40px auto;
}

.hero,
.panel,
.flash {
    border: 1px solid var(--line);
    background: var(--paper);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-radius: 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    padding: 32px;
    align-items: start;
}

.eyebrow,
.hero-label {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font: 600 0.72rem/1.4 Arial, sans-serif;
    color: var(--muted);
}

h1,
h2 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    max-width: 10ch;
}

h2 {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 58ch;
    color: var(--muted);
}

.hero-card,
.panel {
    padding: 24px;
}

.stack,
.upload-form,
.inline-form {
    display: flex;
    gap: 12px;
}

.stack,
.upload-form {
    flex-wrap: wrap;
    align-items: end;
}

.stack {
    flex-direction: column;
    align-items: stretch;
}

label,
.hint,
.status,
th {
    font: 600 0.9rem/1.4 Arial, sans-serif;
}

.hint,
.status,
td,
input,
button {
    font-family: Arial, sans-serif;
}

.hint,
.status,
.share-url {
    color: var(--muted);
}

.status.ok {
    color: var(--accent-dark);
}

input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(31, 36, 48, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.field span {
    font: 600 0.9rem/1.4 Arial, sans-serif;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.danger button {
    background: var(--danger);
}

.flash {
    margin-top: 20px;
    padding: 16px 20px;
}

.flash.success {
    border-color: rgba(13, 107, 93, 0.28);
}

.flash.error {
    border-color: rgba(138, 47, 59, 0.35);
}

.panel {
    margin-top: 20px;
    scroll-margin-top: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    border-top: 0;
}

.share-url {
    margin-top: 6px;
    word-break: break-all;
    font-size: 0.9rem;
}

.empty {
    padding: 14px 0 4px;
    color: var(--muted);
}

.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-link {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font: 700 0.95rem/1 Arial, sans-serif;
    background: rgba(255, 255, 255, 0.72);
}

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

    .panel-head {
        flex-direction: column;
        align-items: start;
    }
}
