:root {
    --green-light: #79d97c;
    --green-mid: #025f1d;
    --green-dark: #082d10;
    --ink: #101510;
    --muted: #5d665d;
    --line: #d9ded8;
    --surface: #ffffff;
    --wash: #f4f7f1;
    --alert: #9c2f16;
    --cat-forest: #025f1d;
    --cat-food: #d8b624;
    --cat-finance: #2d72b8;
    --cat-indigenous: #d96f24;
    --cat-culture: #7652a8;
    --cat-philanthropy: #79d97c;
    --cat-other: #8c9689;
    --font-display: "Irma Display", Arial Black, Arial, sans-serif;
    --font-body: "Sohne", "Söhne", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    letter-spacing: 0;
}

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

button {
    min-height: 40px;
    border: 1px solid var(--green-mid);
    border-radius: 4px;
    background: var(--green-mid);
    color: white;
    cursor: pointer;
    font-weight: 700;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

a {
    color: var(--green-mid);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-page {
    min-height: 100vh;
    background: var(--green-dark);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    min-height: 100vh;
}

.login-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: flex-end;
    padding: 56px;
    overflow: hidden;
    background-image: linear-gradient(rgba(8, 45, 16, 0.2), rgba(8, 45, 16, 0.75)),
        url("/brand/canopy-aerial.jpg");
    background-position: center;
    background-size: cover;
    color: white;
}

.login-logo {
    position: absolute;
    top: 42px;
    left: 52px;
    width: min(360px, 52vw);
    height: auto;
}

.login-copy {
    max-width: 720px;
}

.login-copy h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(44px, 7vw, 96px);
    line-height: 0.95;
}

.login-copy p {
    max-width: 560px;
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: white;
    border-left: 1px solid var(--line);
}

.panel-logo {
    width: 190px;
    height: auto;
    margin-bottom: 56px;
}

.signin-form {
    display: grid;
    gap: 12px;
}

.local-only {
    justify-self: start;
}

.signin-form label {
    color: var(--green-dark);
    font-weight: 800;
}

.email-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.email-row input,
.field input,
.field select,
.field textarea,
.event-comment textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    color: var(--ink);
}

.email-row input,
.field input,
.field select {
    min-height: 40px;
    padding: 8px 10px;
}

.field textarea,
.event-comment textarea {
    min-height: 116px;
    padding: 10px;
    resize: vertical;
}

.status-text {
    min-height: 24px;
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.dev-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 800;
}

.portal-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(244, 247, 241, 0.88), rgba(244, 247, 241, 0.96)),
        url("/brand/treehouse-background-06.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 247, 241, 0.82) 58%, rgba(121, 217, 124, 0.26) 100%),
        url("/brand/treehouse-background-05.jpg");
    background-position: center;
    background-size: cover;
}

.brand-lockup img {
    display: block;
    width: 128px;
    height: auto;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 800;
}

#session-name {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(8, 45, 16, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--green-dark);
    box-shadow: 0 1px 8px rgba(8, 45, 16, 0.08);
}

.secondary-button {
    border-color: var(--line);
    background: white;
    color: var(--green-mid);
}

.workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 112px);
}

.event-list-panel {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    align-self: start;
    height: calc(100vh - 112px);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(rgba(8, 45, 16, 0.88), rgba(2, 95, 29, 0.9)),
        url("/brand/treehouse-background-07.jpg");
    background-position: center bottom;
    background-size: cover;
    color: white;
}

.panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1;
}

.panel-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-list {
    display: block;
    flex: 0 0 auto;
    overflow: visible;
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 45, 16, 0.56);
    backdrop-filter: blur(5px);
}

.sidebar-footer .secondary-button {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-footer .secondary-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.side-nav {
    display: grid;
    gap: 22px;
    padding: 22px 18px;
}

.tree-nav-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 40px;
    color: white;
}

.tree-nav-title strong {
    font-size: 22px;
    line-height: 1.1;
}

.tree-nav-rail {
    display: grid;
    gap: 6px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.tree-nav-children {
    display: grid;
    gap: 6px;
}

.tree-nav-parent,
.tree-nav-item {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    padding: 8px 14px;
    text-align: left;
}

.tree-nav-parent {
    font-size: 17px;
}

.tree-nav-item {
    font-size: 15px;
    width: calc(100% - 24px);
    margin-left: 24px;
}

.tree-nav-parent:hover,
.tree-nav-item:hover,
.tree-nav-parent.is-open {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tree-nav-parent.is-open {
    font-weight: 900;
}

.tree-nav-item.is-active {
    background: rgba(8, 45, 16, 0.72);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.side-nav-group {
    display: grid;
    gap: 6px;
}

.side-nav-button {
    display: grid;
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: white;
    color: var(--ink);
    text-align: left;
}

.side-nav-button:hover,
.side-nav-button.is-active {
    border-color: #bfd9bf;
    background: #eef7ec;
}

.side-nav-button:disabled {
    background: #f7f8f5;
    color: #899087;
    opacity: 1;
}

.side-nav-button strong {
    font-size: 14px;
}

.side-subnav {
    display: grid;
    gap: 4px;
    padding-left: 12px;
    border-left: 2px solid #d6e4d4;
}

.side-subnav-button {
    min-height: 34px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    padding: 7px 10px;
    text-align: left;
}

.side-subnav-button:hover,
.side-subnav-button.is-active {
    background: #eef7ec;
    color: var(--green-mid);
}

.event-button {
    display: grid;
    gap: 6px;
    width: 100%;
    min-height: 86px;
    padding: 16px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: white;
    color: var(--ink);
    text-align: left;
}

.event-button:hover,
.event-button.is-active {
    background: #eef7ec;
}

.event-button strong {
    font-size: 15px;
    line-height: 1.25;
}

.event-button span {
    color: var(--muted);
    font-size: 13px;
}

.event-workspace {
    min-width: 0;
}

.empty-state {
    padding: 64px;
    color: var(--muted);
}

.event-detail {
    display: grid;
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 241, 0.93) 70%, rgba(121, 217, 124, 0.24) 100%),
        url("/brand/canopy-branches.jpg");
    background-position: center;
    background-size: cover;
}

.admin-header h1 {
    margin: 0;
    color: var(--green-dark);
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green-mid);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 8px;
}

.my-events-header .admin-metrics {
    margin-left: auto;
    grid-template-columns: minmax(86px, auto);
}

.admin-metric {
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--wash);
}

.admin-metric span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-metric strong {
    font-size: 20px;
}

.day-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: white;
}

.day-tab {
    min-height: 46px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: white;
    color: var(--muted);
    padding: 0 13px;
}

.day-tab.is-active {
    border-bottom-color: var(--green-mid);
    color: var(--green-mid);
}

.admin-content {
    display: grid;
    gap: 22px;
    padding: 24px 32px 44px;
}

.admin-panel {
    display: grid;
    gap: 16px;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-legend > strong {
    flex: 0 0 auto;
    color: var(--green-dark);
    font-size: 13px;
}

.calendar-legend-items {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: 0;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
}

.calendar-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.calendar-note {
    flex: 0 0 230px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    text-transform: none;
}

.calendar-layout {
    display: block;
    min-width: 0;
}

.visual-calendar {
    display: grid;
    grid-template-columns: 62px repeat(5, minmax(210px, 1fr));
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    overflow-x: auto;
}

.time-gutter,
.calendar-day-lane {
    display: grid;
    grid-template-rows: 44px calc(var(--calendar-hours) * 60px);
    border-right: 1px solid var(--line);
}

.calendar-day-lane:last-child {
    border-right: 0;
}

.calendar-corner,
.calendar-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.calendar-day-heading strong {
    font-size: 14px;
}

.calendar-day-heading span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.time-label {
    padding: 4px 8px 0 0;
    border-bottom: 1px solid #edf0eb;
    color: var(--muted);
    text-align: right;
    font-size: 12px;
    font-weight: 800;
}

.time-labels {
    display: grid;
    min-height: calc(var(--lane-minutes) * 1px);
    background:
        linear-gradient(to bottom, transparent 59px, #edf0eb 60px),
        #fbfcfa;
    background-size: 100% 60px;
}

.calendar-lane-body {
    position: relative;
    min-height: calc(var(--lane-minutes) * 1px);
    background:
        linear-gradient(to bottom, transparent 59px, #edf0eb 60px),
        #fbfcfa;
    background-size: 100% 60px;
}

.calendar-hour-line {
    display: none;
}

.calendar-event {
    position: absolute;
    top: calc(var(--event-top) * 1px);
    left: var(--event-left);
    width: var(--event-width);
    height: calc(var(--event-height) * 1px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 2px;
    min-height: 38px;
    padding: 6px 7px;
    overflow: hidden;
    border: 1px solid rgba(8, 45, 16, 0.14);
    border-radius: 6px;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 1px 3px rgba(8, 45, 16, 0.12);
}

.calendar-event .support-marker {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--green-dark);
    color: white;
    font-size: 8.5px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(8, 45, 16, 0.18);
}

.calendar-event .support-marker.tier-ddf-partnering {
    background: var(--green-mid);
}

.calendar-event .support-marker.tier-ddf-producing {
    background: var(--green-dark);
}

.calendar-event strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    font-size: 10px;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.calendar-event span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: rgba(16, 21, 16, 0.78);
    font-size: 9px;
    line-height: 1.15;
}

.calendar-event.is-compact {
    gap: 2px;
    min-height: 34px;
    padding: 5px 6px;
}

.calendar-event.is-compact strong {
    font-size: 9.4px;
    line-height: 1.12;
    -webkit-line-clamp: 2;
}

.calendar-event.is-compact span:not(.calendar-time) {
    font-size: 8.8px;
    line-height: 1.15;
}

.calendar-event.is-short strong {
    -webkit-line-clamp: 4;
}

.calendar-event.is-medium strong {
    -webkit-line-clamp: 4;
}

.calendar-event.is-long strong {
    -webkit-line-clamp: 6;
}

.calendar-time {
    color: var(--green-mid) !important;
    white-space: nowrap;
    font-weight: 900;
}

.calendar-meta {
    display: grid !important;
    gap: 1px;
    padding-right: 28px;
}

.calendar-room,
.calendar-guests {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-guests {
    font-weight: 800;
}

.category-climate-smart-forests,
.calendar-legend .category-climate-smart-forests {
    background: rgba(2, 95, 29, 0.16);
    border-color: rgba(2, 95, 29, 0.4);
}

.calendar-legend .category-climate-smart-forests {
    background: var(--cat-forest);
}

.category-working-lands-and-food,
.calendar-legend .category-working-lands-and-food {
    background: rgba(216, 182, 36, 0.22);
    border-color: rgba(170, 139, 15, 0.4);
}

.calendar-legend .category-working-lands-and-food {
    background: var(--cat-food);
}

.category-financing-natural-climate-solutions,
.calendar-legend .category-financing-natural-climate-solutions {
    background: rgba(45, 114, 184, 0.16);
    border-color: rgba(45, 114, 184, 0.38);
}

.calendar-legend .category-financing-natural-climate-solutions {
    background: var(--cat-finance);
}

.category-indigenous-conservation,
.calendar-legend .category-indigenous-conservation {
    background: rgba(217, 111, 36, 0.18);
    border-color: rgba(217, 111, 36, 0.42);
}

.calendar-legend .category-indigenous-conservation {
    background: var(--cat-indigenous);
}

.category-culture-social,
.calendar-legend .category-culture-social {
    background: rgba(118, 82, 168, 0.18);
    border-color: rgba(118, 82, 168, 0.42);
}

.calendar-legend .category-culture-social {
    background: var(--cat-culture);
}

.category-philanthropy,
.calendar-legend .category-philanthropy {
    background: rgba(121, 217, 124, 0.22);
    border-color: rgba(2, 95, 29, 0.26);
}

.calendar-legend .category-philanthropy {
    background: var(--cat-philanthropy);
}

.category-other,
.category-uncategorized,
.calendar-legend .category-other,
.calendar-legend .category-uncategorized {
    background: rgba(140, 150, 137, 0.18);
    border-color: rgba(140, 150, 137, 0.42);
}

.calendar-legend .category-other,
.calendar-legend .category-uncategorized {
    background: var(--cat-other);
}

.tier-badge {
    align-self: start;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: 6px;
    background: white;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.day-tabs {
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
}

.event-table-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    padding: 12px 14px;
}

.event-search-field {
    display: grid;
    flex: 1;
    gap: 5px;
    max-width: 520px;
}

.event-search-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-search-field input {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font: inherit;
    padding: 8px 10px;
}

.event-search-field input:focus {
    border-color: var(--green-mid);
    outline: 2px solid rgba(121, 217, 124, 0.5);
    outline-offset: 1px;
}

.search-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.clear-search-button {
    min-height: 34px;
    border-color: var(--line);
    background: white;
    color: var(--green-mid);
    padding: 6px 10px;
    font-size: 12px;
}

.admin-table-wrap {
    border-radius: 0 0 8px 8px;
}

.admin-events-table th,
.admin-events-table td {
    min-width: 110px;
}

.admin-events-table th:first-child,
.admin-events-table td:first-child {
    min-width: 260px;
}

.admin-events-table tr.is-selected td {
    background: #eef7ec;
}

.link-button {
    min-height: auto;
    border: 0;
    background: transparent;
    color: var(--green-mid);
    padding: 0;
    text-align: left;
}

.row-subtext {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.event-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    width: min(520px, calc(100vw - 32px));
    height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background:
        linear-gradient(rgba(8, 45, 16, 0.9), rgba(2, 95, 29, 0.88)),
        url("/brand/treehouse-background-07.jpg");
    background-position: center;
    background-size: cover;
    color: white;
    box-shadow: -18px 0 40px rgba(8, 45, 16, 0.2);
}

.drawer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 0;
}

.drawer-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.drawer-close {
    min-height: 32px;
    border-color: var(--line);
    background: white;
    color: var(--green-mid);
    padding: 5px 9px;
    font-size: 12px;
}

.drawer-heading h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    line-height: 1.15;
}

.drawer-title-field {
    display: grid;
    gap: 5px;
}

.drawer-title-field span {
    color: var(--green-light);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.drawer-title-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    padding: 6px 8px;
}

.drawer-title-field input:focus {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

.drawer-content {
    display: grid;
    gap: 16px;
    padding: 0 18px 18px;
    overflow-y: auto;
}

.event-drawer .eyebrow {
    color: var(--green-light);
}

.event-drawer .section-band {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.event-details-form {
    display: grid;
    gap: 16px;
}

.event-drawer .tier-badge,
.event-drawer .drawer-close {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.92);
}

.event-hero {
    display: grid;
    gap: 18px;
    padding: 36px 40px 28px;
    background: var(--green-dark);
    color: white;
}

.event-hero h2 {
    max-width: 980px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1;
}

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

.meta-pill {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.tabs {
    display: flex;
    gap: 2px;
    padding: 0 40px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.tab-button {
    min-height: 48px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: white;
    color: var(--muted);
    padding: 0 14px;
}

.tab-button.is-active {
    border-bottom-color: var(--green-mid);
    color: var(--green-mid);
}

.tab-panel {
    display: grid;
    gap: 24px;
    padding: 30px 40px 48px;
}

.section-band {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.section-band h3 {
    margin: 0;
    font-size: 20px;
}

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

.detail-item {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.detail-item.full {
    grid-column: 1 / -1;
}

.detail-item span,
.field > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-item strong,
.detail-item a,
.detail-item p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.field-note,
.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.url-detail {
    padding-top: 2px;
}

.action-detail {
    align-items: start;
}

.external-action-button {
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(2, 95, 29, 0.26);
    border-radius: 6px;
    background: var(--green-mid);
    color: white;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.external-action-button:hover {
    background: var(--green-dark);
}

.guest-card-list {
    display: grid;
    gap: 10px;
}

.guest-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(8, 45, 16, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
}

.guest-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.guest-card header strong {
    color: var(--green-dark);
    font-size: 15px;
    line-height: 1.25;
}

.guest-card header span {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid rgba(2, 95, 29, 0.18);
    border-radius: 999px;
    background: #eef7ec;
    color: var(--green-mid);
    font-size: 11px;
    font-weight: 900;
}

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

.guest-card-detail {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.guest-card-detail span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.guest-card-detail strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.3;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

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

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

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.asset-list {
    display: grid;
    gap: 10px;
}

.asset-summary-list {
    gap: 8px;
}

.asset-summary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 12px 14px;
    text-align: left;
}

.asset-summary-button span {
    color: var(--green-mid);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.asset-summary-button::after {
    content: "Open";
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.asset-summary-button.is-active::after {
    content: "Close";
}

.asset-summary-button:hover,
.asset-summary-button.is-active {
    border-color: rgba(2, 95, 29, 0.35);
    background: rgba(232, 244, 232, 0.96);
}

.asset-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.asset-detail-panel {
    margin-top: 6px;
}

.asset-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.asset-header h3 {
    margin: 0;
    font-size: 18px;
}

.asset-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.asset-status {
    color: var(--green-mid);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.asset-links a {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--wash);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.field {
    display: grid;
    gap: 6px;
}

.field input,
.field select,
.field textarea {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.checkbox-field.full,
.conditional-field.full,
.asset-toggle-dependent.full,
.asset-reference.full,
.field-help.full {
    grid-column: 1 / -1;
}

.compact-date-field input[type="date"] {
    min-height: 44px;
}

.description-band .field textarea {
    min-height: 190px;
}

.field-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.asset-reference {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(8, 45, 16, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.62);
}

.asset-reference > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.asset-reference p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.attachment-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(2, 95, 29, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--mid-green);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.attachment-upload input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.attachment-upload-status {
    color: var(--dark-green) !important;
    font-weight: 700;
}

.attachment-upload-help {
    color: var(--muted) !important;
    font-size: 12px !important;
}

.conditional-field {
    display: contents;
}

.asset-toggle-dependent {
    display: contents;
}

.conditional-field[hidden],
.asset-toggle-dependent[hidden] {
    display: none;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    line-height: 1.25;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.save-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.save-row[hidden] {
    display: none;
}

.event-save-row {
    position: sticky;
    bottom: 0;
    z-index: 1;
    justify-content: flex-end;
    padding: 12px 0 2px;
    background: linear-gradient(rgba(2, 95, 29, 0), rgba(2, 95, 29, 0.88) 42%, rgba(2, 95, 29, 0.94));
}

.event-save-row .save-status {
    color: white;
    font-weight: 800;
}

.save-status {
    color: var(--muted);
    font-size: 13px;
}

.notice {
    color: var(--muted);
    line-height: 1.5;
}

.error-text {
    color: var(--alert);
}

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

    .login-hero {
        min-height: 48vh;
    }

    .login-panel {
        border-left: 0;
    }

    .event-list-panel {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .event-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        overflow-x: auto;
    }

    .event-button {
        border-right: 1px solid var(--line);
    }

    .detail-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .calendar-legend {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-note {
        flex-basis: auto;
    }

    .event-drawer {
        width: 100vw;
        border-radius: 0;
    }
}

@media (max-width: 620px) {
    .login-hero {
        padding: 32px 24px;
    }

    .login-logo {
        left: 24px;
        top: 24px;
        width: 240px;
    }

    .login-copy h1 {
        font-size: 46px;
    }

    .login-panel,
    .tab-panel,
    .event-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .email-row {
        grid-template-columns: 1fr;
    }

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

    .tabs {
        padding: 0 20px;
        overflow-x: auto;
    }

    .event-hero h2 {
        font-size: 38px;
    }
}
