:root {
    --bg: #f5f1e8;
    --panel: #fffdfa;
    --panel-soft: #f9f5ed;
    --line: #dfd4bf;
    --text: #231f17;
    --muted: #6d6557;
    --brand: #88a836;
    --brand-dark: #5f7820;
    --accent: #c97f28;
    --danger: #ae4f4f;
    --shadow: 0 20px 60px rgba(48, 35, 13, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(136, 168, 54, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(201, 127, 40, 0.16), transparent 25%),
        linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

h1, h2, h3, strong {
    margin-top: 0;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(255, 253, 250, 0.82);
    border-right: 1px solid rgba(128, 112, 79, 0.14);
    padding: 28px 22px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.content {
    padding: 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), #bbcb67);
    color: white;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.muted {
    color: var(--muted);
}

.nav-links {
    display: grid;
    gap: 10px;
    margin: 34px 0;
}

.nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(136, 168, 54, 0.08);
}

.sidebar-user {
    margin-top: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
}

.hero-card,
.panel,
.quote-sheet,
.auth-card {
    background: rgba(255, 253, 250, 0.92);
    border: 1px solid rgba(128, 112, 79, 0.14);
    box-shadow: var(--shadow);
    border-radius: 28px;
}

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

.hero-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-actions {
    display: grid;
    gap: 14px;
    min-width: 240px;
}

.stat-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(136, 168, 54, 0.14), rgba(201, 127, 40, 0.12));
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-top: 8px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.lead {
    max-width: 680px;
    color: var(--muted);
}

.panel {
    margin-bottom: 24px;
}

.panel-soft {
    background: var(--panel-soft);
}

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

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

.grid-span-2 {
    grid-column: span 2;
}

.stack-md,
.stack-xl {
    display: grid;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
}

.btn-secondary {
    background: #efe7d8;
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(136, 168, 54, 0.12);
    color: var(--brand-dark);
}

.alert-error {
    background: rgba(174, 79, 79, 0.12);
    color: var(--danger);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee7da;
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #f7f1e7;
    font-size: 0.85rem;
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 460px);
}

.auth-help {
    margin-top: 18px;
}

.dynamic-list {
    display: grid;
    gap: 14px;
}

.repeat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

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

.repeat-grid.repeat-grid-hotel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repeat-actions,
.form-actions,
.page-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.quote-sheet {
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 36px;
}

.quote-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 2px solid #ebe2d2;
    padding-bottom: 24px;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 12px;
}

.company-meta {
    max-width: 320px;
    font-size: 0.95rem;
    color: var(--muted);
}

.meta-spacer {
    height: 14px;
}

.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.summary-pill {
    padding: 18px;
    border-radius: 18px;
    background: #f7f2e9;
}

.summary-pill span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.quote-section {
    margin-top: 28px;
}

.quote-section h2 {
    color: var(--brand);
    margin-bottom: 14px;
}

.hotel-stack {
    display: grid;
    gap: 14px;
}

.hotel-card {
    border-left: 4px solid var(--brand);
    padding: 18px 20px;
    background: #fcfaf5;
}

.clean-list {
    padding-left: 18px;
}

.clean-list li {
    margin-bottom: 8px;
}

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

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(128, 112, 79, 0.14);
    }

    .hero-card,
    .quote-sheet-header,
    .panel-header,
    .repeat-grid,
    .repeat-grid.repeat-grid-hotel,
    .grid-2,
    .quote-summary-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .grid-span-2 {
        grid-column: auto;
    }
}

@media print {
    body {
        background: white;
    }

    .sidebar,
    .page-actions,
    .panel,
    .hero-card {
        display: none !important;
    }

    .content {
        padding: 0;
    }

    .quote-sheet {
        box-shadow: none;
        border: 0;
        margin: 0;
        max-width: none;
        border-radius: 0;
    }
}
