:root {
    --ink: #17211f;
    --muted: #66736f;
    --surface: #ffffff;
    --canvas: #f3f5f2;
    --line: #dfe5e1;
    --green: #176b4d;
    --green-dark: #0d4f38;
    --green-soft: #e8f3ed;
    --lime: #c8e85d;
    --amber: #a96512;
    --amber-soft: #fff4dd;
    --red: #a83a36;
    --red-soft: #ffedeb;
    --shadow: 0 12px 38px rgba(23, 33, 31, .07);
    --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.55 "DM Sans", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; line-height: 1.2; }

.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 20px; background: #102d25; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px 12px 4px 12px; color: #153527; background: var(--lime); font: 800 14px "Manrope", sans-serif; letter-spacing: -.4px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 16px "Manrope", sans-serif; }
.brand small { margin-top: 2px; color: #9eb7ae; font-size: 11px; letter-spacing: .04em; }
.nav-list { margin-top: 50px; }
.nav-label { margin: 0 12px 10px; color: #78958b; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; margin: 5px 0; padding: 11px 12px; border-radius: 11px; color: #b9cec7; text-decoration: none; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(200,232,93,.13); box-shadow: inset 3px 0 var(--lime); }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; font-size: 19px; font-weight: 400; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: #dbe8e3; text-decoration: none; }
.user-card:hover { background: rgba(255,255,255,.06); }
.avatar { flex: 0 0 auto; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #2c5a4b; color: #fff; font-weight: 700; }
.user-copy { min-width: 0; flex: 1; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 13px; }
.user-copy small { color: #8eaaa0; font-size: 10px; }

.main-column { min-width: 0; }
.topbar { display: flex; min-height: 105px; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); backdrop-filter: blur(12px); }
.topbar h1 { margin: 4px 0 0; font-size: clamp(23px, 2.3vw, 30px); letter-spacing: -.035em; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.page-content { width: min(1180px, 100%); margin: 0 auto; padding: 38px clamp(24px, 4vw, 58px) 60px; }

.btn { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 700; text-decoration: none; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(23,107,77,.18); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { border-color: var(--line); background: #fff; }
.btn-secondary:hover { border-color: #b7c5bf; }
.btn-danger { color: #fff; background: var(--red); }
.btn-small { min-height: 35px; padding: 7px 12px; font-size: 13px; }
.text-link { color: var(--green); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.intro-row h2 { margin-bottom: 6px; font-size: 21px; }
.intro-row p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 0 rgba(23,33,31,.02); }
.circle-card { position: relative; display: flex; min-height: 275px; flex-direction: column; padding: 24px; overflow: hidden; }
.circle-card::after { content: ""; position: absolute; right: -32px; bottom: -50px; width: 115px; height: 115px; border: 22px solid var(--green-soft); border-radius: 50%; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.circle-card h3 { margin: 20px 0 9px; font-size: 19px; }
.circle-card h3 a { text-decoration: none; }
.circle-card h3 a:hover { color: var(--green); }
.circle-card .purpose { display: -webkit-box; min-height: 47px; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: auto; color: #53625d; font-size: 12px; }
.card-footer { z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-in_progress { color: #8a5916; background: var(--amber-soft); }
.badge-completed, .badge-rejected, .badge-removed { color: #68706e; background: #edf0ef; }
.badge-pending { color: var(--amber); background: var(--amber-soft); }
.badge-approved { color: var(--green-dark); background: var(--green-soft); }
.seat-meter { min-width: 94px; }
.seat-meter-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.meter { height: 5px; overflow: hidden; border-radius: 99px; background: #e4e9e6; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.empty-state { padding: 65px 30px; text-align: center; }
.empty-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 18px; place-items: center; border-radius: 18px; color: var(--green); background: var(--green-soft); font: 700 26px "Manrope"; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { max-width: 450px; margin: 0 auto 24px; color: var(--muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 22px; align-items: start; }
.detail-card { padding: clamp(24px, 4vw, 38px); }
.detail-card .lead { color: #495954; font-size: 17px; line-height: 1.75; }
.section-label { margin-bottom: 14px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-card hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 17px; border-radius: 13px; background: #f6f8f6; }
.stat small, .stat strong { display: block; }
.stat small { margin-bottom: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.stat strong { font-size: 14px; }
.action-card { padding: 25px; }
.action-card h3 { margin-bottom: 8px; font-size: 17px; }
.action-card p { color: var(--muted); }
.action-card .btn { width: 100%; }

.form-card { max-width: 760px; padding: clamp(24px, 4vw, 38px); }
.form-card > p:first-of-type { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid p { margin: 0 0 19px; }
.form-grid p:has(textarea), .form-grid .full-width { grid-column: 1 / -1; }
form label { display: block; margin-bottom: 7px; color: #34433f; font-size: 12px; font-weight: 700; }
form input:not([type="checkbox"]), form select, form textarea { width: 100%; border: 1px solid #ced8d3; border-radius: 10px; outline: none; background: #fff; padding: 11px 12px; color: var(--ink); transition: .15s ease; }
form textarea { min-height: 120px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.11); }
.helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.errorlist { margin: 0 0 7px; padding: 9px 12px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 12px; list-style: none; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }

.dashboard-list { display: grid; gap: 14px; }
.dashboard-card { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 26px; padding: 22px 25px; }
.dashboard-card h3 { margin-bottom: 5px; font-size: 17px; }
.dashboard-card p { margin: 0; color: var(--muted); font-size: 12px; }
.mini-stats { display: flex; gap: 28px; }
.mini-stat strong, .mini-stat small { display: block; text-align: center; }
.mini-stat strong { font: 700 20px "Manrope"; }
.mini-stat small { color: var(--muted); font-size: 10px; }
.action-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.meeting-list { display: grid; gap: 12px; }
.meeting-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 19px; padding: 20px 23px; }
.date-tile { padding: 10px 6px; border-radius: 12px; color: var(--green-dark); background: var(--green-soft); text-align: center; }
.date-tile strong, .date-tile small { display: block; }
.date-tile strong { font: 800 24px "Manrope"; line-height: 1; }
.date-tile small { margin-top: 5px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.meeting-copy h3 { margin: 0 0 4px; font-size: 16px; }
.meeting-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.meeting-time { text-align: right; }
.meeting-time strong, .meeting-time small { display: block; }
.meeting-time small { color: var(--muted); }
.subsection { margin-top: 35px; }
.subsection-title { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.subsection-title h2 { margin: 0; font-size: 16px; }
.subsection-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.request-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; }
.request-copy h3 { margin: 0 0 3px; font-size: 15px; }
.request-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.request-message { margin-top: 8px !important; color: #3f504b !important; }
.inline-actions { display: flex; gap: 7px; }
.inline-actions form { margin: 0; }

.toast-stack { position: fixed; z-index: 10; top: 22px; right: 25px; width: min(390px, calc(100vw - 40px)); }
.alert { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #c9dfd4; border-radius: 11px; background: #f3fbf7; box-shadow: var(--shadow); font-weight: 600; }
.alert-error { color: var(--red); border-color: #efc7c3; background: var(--red-soft); }

.account-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { padding: 30px; text-align: center; }
.profile-avatar { display: grid; width: 80px; height: 80px; margin: 0 auto 17px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font: 800 28px "Manrope"; box-shadow: 0 0 0 8px var(--green-soft); }
.profile-card h2 { margin-bottom: 4px; font-size: 18px; }
.profile-card > p { color: var(--muted); font-size: 12px; }
.profile-nav { margin: 25px -10px -10px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.profile-nav a, .profile-nav button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 8px; color: #43534e; background: transparent; cursor: pointer; text-decoration: none; }
.profile-nav a:hover, .profile-nav button:hover { background: #f3f6f4; }
.profile-nav .logout { color: var(--red); }
.account-main { display: grid; gap: 20px; }
.settings-card { padding: 28px; }
.settings-card h2 { margin-bottom: 5px; font-size: 17px; }
.settings-card > p { color: var(--muted); font-size: 12px; }
.membership-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.membership-row strong, .membership-row small { display: block; }
.membership-row small { color: var(--muted); }

.auth-body { background: #fff; }
.auth-layout { display: grid; grid-template-columns: minmax(400px, 1.05fr) minmax(420px, .95fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 45px clamp(40px, 6vw, 90px); overflow: hidden; color: #fff; background: #123e31; }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border: 65px solid rgba(200,232,93,.10); border-radius: 50%; }
.auth-story::before { width: 330px; height: 330px; right: -150px; top: 18%; }
.auth-story::after { width: 180px; height: 180px; left: -100px; bottom: 6%; }
.brand-light { z-index: 1; }
.auth-story-copy { z-index: 1; max-width: 570px; margin: auto 0; }
.auth-story-copy h1 { margin: 25px 0 20px; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; }
.auth-story-copy p { max-width: 485px; color: #c1d5ce; font-size: 17px; }
.pill-light { display: inline-flex; padding: 6px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-footnote { z-index: 1; margin: 0; color: #86a69b; font-size: 11px; }
.auth-panel { display: grid; padding: 45px clamp(40px, 8vw, 110px); place-items: center; }
.auth-box { width: min(420px, 100%); }
.auth-box .mobile-brand { display: none; margin-bottom: 45px; color: var(--ink); }
.auth-box h2 { margin-bottom: 8px; font-size: 31px; letter-spacing: -.04em; }
.auth-box > p { margin-bottom: 30px; color: var(--muted); }
.auth-box form p { margin-bottom: 18px; }
.auth-box .btn { width: 100%; margin-top: 5px; }
.auth-note { margin-top: 25px !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-card { grid-template-columns: 1fr auto; }
    .action-links { grid-column: 1 / -1; justify-content: flex-start; }
    .auth-layout { grid-template-columns: .9fr 1.1fr; }
    .auth-story-copy h1 { font-size: 44px; }
}

@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar { position: static; width: 100%; height: auto; padding: 15px 18px; }
    .brand small, .sidebar-footer, .nav-label { display: none; }
    .nav-list { display: flex; gap: 3px; margin-top: 15px; overflow-x: auto; }
    .nav-item { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
    .nav-item.active { box-shadow: inset 0 -2px var(--lime); }
    .nav-icon { width: auto; font-size: 16px; }
    .topbar { min-height: 88px; padding: 18px 20px; }
    .topbar .btn { min-height: 38px; padding: 8px 12px; font-size: 12px; }
    .eyebrow { display: none; }
    .page-content { padding: 27px 18px 45px; }
    .card-grid, .detail-layout, .account-layout { grid-template-columns: 1fr; }
    .dashboard-card { grid-template-columns: 1fr; }
    .mini-stats { justify-content: flex-start; }
    .mini-stat strong, .mini-stat small { text-align: left; }
    .meeting-card { grid-template-columns: 60px 1fr; }
    .meeting-time { grid-column: 2; text-align: left; }
    .request-card { grid-template-columns: auto 1fr; }
    .inline-actions { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid p:has(textarea) { grid-column: auto; }
    .auth-layout { display: block; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100vh; padding: 35px 24px; }
    .auth-box .mobile-brand { display: inline-flex; }
}

@media (max-width: 470px) {
    .card-grid { grid-template-columns: 1fr; }
    .intro-row { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: 1fr; }
    .topbar h1 { font-size: 21px; }
    .mini-stats { gap: 18px; }
}
