:root {
    --bg0: #F6FBF7;
    --bg1: #E3F5E0;
    --text: #0E1B12;
    --muted: #3C5A47;
    --muted2: #5D7A68;
    --line: rgba(14, 27, 18, .10);
    --accent: #2F9E5B;
    --accent2: #62C58B;
    --danger: #E23D5D;
    --ok: #2EAD6B;
    --shadow: 0 14px 40px rgba(12, 24, 16, .12);
    --radius: 18px;
    --radius2: 22px;
    --max: 1100px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 15% 10%, rgba(201, 235, 198, .55), transparent 60%),
        radial-gradient(800px 480px at 85% 20%, rgba(98, 197, 139, .18), transparent 55%),
        linear-gradient(180deg, var(--bg0), var(--bg1) 70%, #F6FBF7 100%);
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px 18px 40px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .78);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    gap: 14px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

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

.logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 35% 30%, rgba(227, 245, 224, .95), rgba(201, 235, 198, .70) 55%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(135deg, rgba(47, 158, 91, .35), rgba(98, 197, 139, .25));
    border: 1px solid rgba(47, 158, 91, .25);
    box-shadow: 0 10px 22px rgba(12, 24, 16, .10);
}

.brand h1 {
    font-size: 1.02rem;
    margin: 0;
}

.brand p {
    margin: 0;
    font-size: .82rem;
    color: var(--muted2);
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(14, 27, 18, .12);
    background: rgba(255, 255, 255, .70);
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(47, 158, 91, .25);
    box-shadow: 0 10px 18px rgba(12, 24, 16, .08);
}

.btn:active {
    transform: translateY(0px)
}

.btn.primary {
    background: linear-gradient(135deg, #C9EBC6, #E3F5E0);
    border-color: rgba(47, 158, 91, .25);
    color: #0E1B12;
    font-weight: 800;
}

.btn.danger {
    background: rgba(226, 61, 93, .10);
    border-color: rgba(226, 61, 93, .22);
    color: #5C0E1F;
}

.btn.small {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .92rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(14, 27, 18, .12);
    background: rgba(255, 255, 255, .66);
    color: var(--muted);
    font-size: .78rem;
}

.badge.ok {
    background: rgba(46, 173, 107, .12);
    border-color: rgba(46, 173, 107, .22);
    color: #145A35;
}

.badge.warn {
    background: rgba(255, 190, 80, .14);
    border-color: rgba(255, 190, 80, .28);
    color: #6A3E00;
}

.badge.info {
    background: rgba(98, 197, 139, .14);
    border-color: rgba(98, 197, 139, .26);
    color: #1C5B3A;
}

#authBadge.badge.info {
    font-weight: 800;
}

.hero {
    margin-top: 18px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, .75);
    box-shadow: var(--shadow);
}

.hero h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    max-width: 75ch;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 10px;
}

.section-title h3 {
    margin: 0;
    font-size: 1.15rem;
}

.section-title p {
    margin: 0;
    color: var(--muted2);
    font-size: .92rem;
}

.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.card {
    grid-column: span 6;
    padding: 16px 16px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 26px rgba(12, 24, 16, .10);
    transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 158, 91, .22);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 32px rgba(12, 24, 16, .12);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: .95rem;
}

.card .cta {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.card.full {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .card {
        grid-column: span 12;
    }
}

.panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, .75);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    background: rgba(227, 245, 224, .55);
}

.panel-head h4 {
    margin: 0;
    font-size: 1rem;
}

.panel-body {
    padding: 16px;
}

input,
textarea {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(14, 27, 18, .14);
    background: rgba(255, 255, 255, .82);
    color: var(--text);
    outline: none;
}

input::placeholder {
    color: rgba(60, 90, 71, .55);
}

.help {
    font-size: .82rem;
    color: var(--muted2);
    line-height: 1.35;
}

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

.table th,
.table td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(14, 27, 18, .08);
    text-align: left;
}

.table th {
    font-size: .86rem;
    color: #2E4B3A;
    background: rgba(227, 245, 224, .70);
}

.table tr:hover td {
    background: rgba(201, 235, 198, .25);
}

.footer {
    margin-top: 18px;
    color: rgba(60, 90, 71, .82);
    font-size: .86rem;
    text-align: center;
}

.footer-link {
    color: #174B2E;
    text-decoration: underline;
}

.inline-note {
    border-left: 3px solid rgba(47, 158, 91, .55);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(201, 235, 198, .35);
    color: #2E4B3A;
    line-height: 1.45;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(14, 27, 18, .14);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0px);
}

.toast .t {
    font-weight: 800;
    margin: 0 0 4px;
    font-size: .95rem;
}

.toast .m {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.4;
}

.stepper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(14, 27, 18, .12);
    background: rgba(255, 255, 255, .70);
}

.step .n {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(14, 27, 18, .14);
    background: rgba(227, 245, 224, .60);
    color: #2E4B3A;
    font-weight: 800;
}

.step.active {
    border-color: rgba(47, 158, 91, .25);
    background: rgba(201, 235, 198, .35);
}

.step.active .n {
    background: linear-gradient(135deg, #C9EBC6, #E3F5E0);
    color: #0E1B12;
}

.step.done {
    border-color: rgba(46, 173, 107, .22);
    background: rgba(46, 173, 107, .10);
}

.wizard {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
}

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

.big-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 740px) {
    .big-choices {
        grid-template-columns: 1fr;
    }
}

.choice {
    padding: 14px 14px 12px;
    border-radius: 18px;
    border: 1px solid rgba(14, 27, 18, .12);
    background: rgba(255, 255, 255, .75);
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.choice:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 158, 91, .22);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 22px rgba(12, 24, 16, .10);
}

.choice.selected {
    border-color: rgba(47, 158, 91, .30);
    background: rgba(201, 235, 198, .40);
}

.choice .title {
    font-weight: 900;
    margin: 0 0 4px;
}

.choice .desc {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.4;
}

.drop {
    border: 1px dashed rgba(14, 27, 18, .22);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .70);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.drop.dragover {
    border-color: rgba(47, 158, 91, .50);
    background: rgba(201, 235, 198, .45);
}

.file-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(14, 27, 18, .12);
    background: rgba(255, 255, 255, .78);
    font-size: .9rem;
    max-width: 100%;
}

.file-pill .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.progress {
    height: 9px;
    border-radius: 999px;
    background: rgba(14, 27, 18, .08);
    overflow: hidden;
    border: 1px solid rgba(14, 27, 18, .12);
}

.progress>div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(47, 158, 91, .95), rgba(98, 197, 139, .85));
    transition: width .2s ease;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.drop.compact {
    padding: 12px 14px;
    border-style: solid;
    cursor: pointer;
}

.drop.compact .drop-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop.compact strong {
    font-size: .95rem;
}

.drop.compact .help {
    font-size: .78rem;
    color: var(--muted2);
}

.panel.recent-compact {
    max-height: 420px;
    overflow: hidden;
}

.panel.recent-compact .panel-head {
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 3;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .85);
}

.panel.recent-compact .panel-body {
    padding: 10px 12px;
    overflow: auto;
    max-height: calc(420px - 52px);
}

.panel.recent-compact .table th,
.panel.recent-compact .table td {
    padding: 10px 10px;
    font-size: .88rem;
}

.panel.recent-compact .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
    background: rgba(227, 245, 224, .80);
}

.panel.recent-compact .table tbody tr:hover td {
    background: rgba(201, 235, 198, .25);
}

.panel.recent-compact .table td:nth-child(2),
.panel.recent-compact .table th:nth-child(2) {
    width: 110px;
    white-space: nowrap;
}

.panel.recent-compact .table td:last-child,
.panel.recent-compact .table th:last-child {
    width: 170px;
    white-space: nowrap;
}

.panel.recent-compact .table td:nth-child(3) {
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel.recent-compact .table td strong {
    font-size: .92rem;
}

.panel.recent-compact .help {
    font-size: .78rem;
    line-height: 1.25;
    opacity: .95;
}

.panel.recent-compact .row-actions {
    gap: 6px;
}

.panel.recent-compact .btn.small {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: .86rem;
}
