:root {
    --bg: #f6f8f7;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --line: rgba(27, 52, 43, 0.1);
    --ink: #23312c;
    --muted: #70807a;
    --accent: #157a63;
    --accent-strong: #0f624f;
    --shadow: 0 8px 28px rgba(18, 37, 31, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(232, 243, 238, 0.8), transparent 28%),
        linear-gradient(180deg, #fbfcfc 0%, #f4f7f6 100%);
}

.landing-page-body {
    overflow: hidden;
}

.landing-shell {
    position: relative;
    min-height: 100vh;
    color: #f6faf8;
    background:
        radial-gradient(circle at 18% 18%, rgba(38, 139, 112, 0.18), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(227, 183, 97, 0.16), transparent 26%),
        linear-gradient(135deg, #102521 0%, #183932 48%, #0f211d 100%);
}

.landing-slab {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    transition: transform 0.8s cubic-bezier(.22, .84, .24, 1);
    z-index: 0;
}

.landing-slab-left {
    left: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 58%),
        linear-gradient(180deg, rgba(9, 25, 21, 0.92) 0%, rgba(15, 37, 32, 0.82) 100%);
}

.landing-slab-right {
    right: 0;
    background:
        linear-gradient(225deg, rgba(255, 255, 255, 0.05), transparent 54%),
        linear-gradient(180deg, rgba(17, 41, 35, 0.92) 0%, rgba(10, 23, 20, 0.84) 100%);
}

.landing-shell.is-activated .landing-slab-left {
    transform: translateX(-62vw);
}

.landing-shell.is-activated .landing-slab-right {
    transform: translateX(62vw);
}

.landing-stage {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
}

.landing-messages {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    z-index: 3;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(420px, 0.95fr);
    gap: 48px;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.landing-brand-copy {
    max-width: 560px;
}

.landing-brand-copy .lead {
    color: rgba(236, 244, 240, 0.8);
}

.landing-brand-copy h1 {
    font-size: clamp(48px, 8vw, 104px);
    letter-spacing: -0.04em;
    line-height: 0.94;
}

.landing-activation-zone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 540px;
}

.landing-emblem {
    position: relative;
    width: min(66vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), transparent 18%),
        radial-gradient(circle at 68% 68%, rgba(17, 102, 82, 0.34), transparent 32%),
        linear-gradient(180deg, rgba(241, 246, 243, 0.14), rgba(241, 246, 243, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 30px 90px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.landing-emblem-core,
.landing-emblem-ring {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.landing-emblem-core {
    width: 38%;
    height: 38%;
    background:
        linear-gradient(180deg, rgba(232, 244, 239, 0.96), rgba(179, 215, 204, 0.4));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.landing-emblem-ring-one {
    width: 58%;
    height: 58%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-emblem-ring-two {
    width: 78%;
    height: 78%;
    border: 1px dashed rgba(226, 239, 234, 0.24);
}

.landing-emblem-grid {
    position: absolute;
    inset: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 26%;
    height: 26%;
    transform: translate(-50%, -50%);
}

.landing-emblem-grid span {
    border-radius: 10px;
    background: rgba(17, 74, 60, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.landing-power-button {
    position: absolute;
    right: -22px;
    top: 50%;
    width: 148px;
    height: 148px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.32), transparent 20%),
        linear-gradient(180deg, #25b287 0%, #138061 100%);
    box-shadow:
        0 18px 44px rgba(14, 87, 66, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1);
    transition: transform 0.74s cubic-bezier(.22, .84, .24, 1), opacity 0.4s ease;
    z-index: 2;
}

.landing-power-button:hover {
    transform: translateY(-50%) scale(1.03);
}

.landing-shell.is-activated .landing-power-button {
    transform: translate(220px, -50%) scale(0.26);
    opacity: 0.22;
}

.landing-power-icon {
    position: relative;
    display: inline-flex;
    width: 54px;
    height: 54px;
    border: 6px solid #f7fffc;
    border-top-color: transparent;
    border-radius: 50%;
}

.landing-power-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -14px;
    width: 6px;
    height: 30px;
    border-radius: 999px;
    background: #f7fffc;
    transform: translateX(-50%);
}

.landing-auth-panel {
    position: absolute;
    top: 50%;
    right: min(6vw, 72px);
    width: min(460px, calc(100vw - 32px));
    transform: translateY(-50%) translateX(60px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease 0.2s, transform 0.65s cubic-bezier(.22, .84, .24, 1) 0.18s;
    z-index: 2;
}

.landing-auth-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.landing-auth-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(252, 255, 253, 0.92);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    color: var(--ink);
}

.landing-auth-card .lead {
    color: var(--muted);
}

.landing-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

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

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

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(180deg, #22312c 0%, #1b2723 100%);
    color: #f2f7f5;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.brand small {
    color: rgba(249, 241, 230, 0.76);
    line-height: 1.5;
}

.user-badge {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.user-badge span {
    color: rgba(249, 241, 230, 0.76);
    font-size: 14px;
}

.brand-kicker,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 800;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a,
.logout-form button,
.action-link,
.secondary-link,
.auth-form button {
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

button,
input[type='submit'],
input[type='button'] {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    font: inherit;
    cursor: pointer;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(21, 122, 99, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover,
input[type='submit']:hover,
input[type='button']:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(21, 122, 99, 0.18);
}

.danger-button {
    background: linear-gradient(135deg, #c94b3c 0%, #a3372b 100%);
    box-shadow: 0 6px 18px rgba(163, 55, 43, 0.18);
}

.danger-button:hover {
    box-shadow: 0 10px 22px rgba(163, 55, 43, 0.22);
}

.nav a {
    background: rgba(255, 255, 255, 0.06);
}

.nav a:hover,
.logout-form button:hover,
.action-link:hover,
.auth-form button:hover {
    transform: translateY(-1px);
}

.logout-form button,
.action-link,
.auth-form button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
}

.full-width {
    width: 100%;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: none;
}

.content {
    padding: 32px;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(29, 107, 82, 0.18);
    background: rgba(29, 107, 82, 0.08);
}

.page-header,
.hero {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    margin-bottom: 24px;
}

.hero {
    min-height: calc(100vh - 64px);
    align-items: center;
}

.hero-copy {
    max-width: 640px;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.02;
}

.hero h1,
.auth-card h1 {
    font-size: clamp(34px, 4vw, 56px);
}

h2 {
    margin: 0;
    font-size: 22px;
}

.lead {
    margin: 14px 0 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}

.compact-lead {
    font-size: 15px;
    max-width: 620px;
}

.stats-grid,
.content-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.profile-card {
    margin-bottom: 18px;
}

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

.org-grid div {
    display: grid;
    gap: 8px;
}

.org-grid strong {
    line-height: 1.5;
}

.stat-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card span,
.muted {
    color: var(--muted);
}

.stat-card strong {
    font-size: 44px;
}

.stat-card-caption {
    font-size: 24px !important;
    line-height: 1.2;
}

.procurement-guide-grid {
    margin-bottom: 18px;
}

.workflow-step {
    display: grid;
    gap: 10px;
    align-content: start;
}

.workflow-step p {
    margin: 0;
    line-height: 1.6;
}

.section-note {
    margin: 6px 0 0;
    max-width: 860px;
    line-height: 1.6;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-head a {
    color: var(--accent-strong);
    font-weight: 700;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    font-weight: 700;
}

.tab-link-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-color: transparent;
    color: #fff;
}

.page-actions,
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.danger-link {
    border-color: rgba(154, 49, 36, 0.24);
    color: #9a3124;
}

.document-header-card {
    padding-top: 18px;
    padding-bottom: 18px;
}

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

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(29, 107, 82, 0.12);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-chip-active {
    border-color: rgba(29, 107, 82, 0.28);
    background: rgba(29, 107, 82, 0.08);
}

.warning-text {
    color: #9a3124;
    font-weight: 700;
}

.stacked-layout {
    display: grid;
    gap: 18px;
}

.form-card form,
.stacked-layout {
    width: 100%;
}

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

.field-group {
    display: grid;
    gap: 8px;
}

.field-group-wide {
    grid-column: 1 / -1;
}

.inline-toggle {
    align-items: start;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.nested-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
}

.field-group label {
    font-weight: 700;
}

.field-group small {
    color: var(--muted);
}

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

.access-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 250, 248, 0.9) 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.access-switch-card:hover {
    border-color: rgba(21, 122, 99, 0.22);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.access-switch-card.is-checked {
    border-color: rgba(21, 122, 99, 0.32);
    box-shadow: 0 10px 24px rgba(21, 122, 99, 0.08);
}

.access-switch-copy {
    display: grid;
    gap: 0;
}

.access-switch-copy strong {
    font-size: 17px;
    line-height: 1.25;
}

.access-switch-copy small {
    color: var(--muted);
    line-height: 1.55;
}

.access-switch-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    margin-top: 2px;
}

.section-head-compact {
    margin-top: 28px;
}

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

.field-errors,
.form-errors {
    display: grid;
    gap: 6px;
    color: #9a3124;
    font-size: 14px;
}

.form-errors {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(154, 49, 36, 0.2);
    border-radius: 14px;
    background: rgba(154, 49, 36, 0.08);
}

.line-items {
    display: grid;
    gap: 16px;
}

.line-item-row {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
}

.line-item-main {
    display: grid;
    grid-template-columns: 2fr 0.9fr 0.9fr 1.1fr;
    gap: 14px;
}

.line-item-name {
    min-width: 0;
}

.delete-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
}

.table-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.table-number {
    letter-spacing: 0.02em;
}

.table-total {
    font-variant-numeric: tabular-nums;
}

.table-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.table-button-danger {
    color: #9a3124;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions form,
.page-actions form {
    margin: 0;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(29, 107, 82, 0.18);
    border-radius: 999px;
    background: rgba(29, 107, 82, 0.08);
    color: var(--accent-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.table-chip-danger {
    border-color: rgba(154, 49, 36, 0.18);
    background: rgba(154, 49, 36, 0.08);
    color: #9a3124;
}

.table-chip-muted {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
}

.table-chip-disabled {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.4);
    color: var(--muted);
    cursor: default;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td {
    background: rgba(29, 107, 82, 0.05);
}

.row-title {
    font-weight: 700;
}

.row-subline {
    color: var(--muted);
    font-size: 13px;
}

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

.table-form input,
.table-form textarea,
.table-form select {
    min-width: 90px;
}

.table-form textarea {
    min-height: 46px;
    resize: vertical;
}

.table-form-cell-wide {
    min-width: 220px;
}

.table-form-cell-select {
    min-width: 320px;
}

.table-form-cell-qty {
    width: 88px;
    min-width: 88px;
}

.table-form-cell-price {
    width: 108px;
    min-width: 108px;
}

.table-form-cell-total {
    width: 120px;
    min-width: 120px;
}

.table-form-actions {
    min-width: 160px;
}

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

.document-meta div {
    display: grid;
    gap: 8px;
}

.document-meta-compact div {
    gap: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(29, 107, 82, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.status-badge-danger {
    background: rgba(154, 49, 36, 0.1);
    color: #9a3124;
}

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

.is-hidden {
    display: none;
}

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

.data-table th,
.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

.auth-form p {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    background: var(--panel-strong);
    color: var(--ink);
}

input[type='checkbox'],
input[type='radio'] {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 6px;
    accent-color: var(--accent);
    background: transparent;
    flex: 0 0 auto;
}

input[type='radio'] {
    border-radius: 50%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-grid-check {
    justify-content: end;
}

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

.task-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 18px;
}

.planner-filter-card {
    margin-bottom: 18px;
}

.planner-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(140px, 1fr)) auto auto;
    gap: 12px;
    align-items: center;
}

.planner-search,
.planner-filter {
    min-width: 0;
}

.planner-checkbox {
    justify-self: start;
}

.planner-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}

.planner-column {
    background: transparent;
}

.planner-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px 18px 0 0;
    color: #fff;
}

.planner-column-head h2 {
    font-size: 22px;
}

.planner-column-head span {
    font-weight: 800;
}

.planner-column-head-green {
    background: linear-gradient(135deg, #13b86e 0%, #0c9f61 100%);
}

.planner-column-head-violet {
    background: linear-gradient(135deg, #9e65b9 0%, #8d56a8 100%);
}

.planner-column-head-blue {
    background: linear-gradient(135deg, #4f82c8 0%, #3d71ba 100%);
}

.planner-column-head-teal {
    background: linear-gradient(135deg, #18a99a 0%, #0f998b 100%);
}

.planner-column-body {
    display: grid;
    gap: 12px;
    min-height: 240px;
    padding: 14px 0 0;
}

.planner-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(59, 35, 8, 0.08);
}

.planner-card:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 107, 82, 0.22);
}

.planner-card-meta {
    color: var(--muted);
    font-size: 14px;
}

.planner-empty {
    padding: 18px 16px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.34);
    color: var(--muted);
}

.task-page-header {
    margin-bottom: 18px;
}

.planner-task-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 0 2px;
}

.task-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}

.task-status-pill-active {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.planfix-task-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
    gap: 18px;
}

.task-side-panel {
    align-self: start;
    position: sticky;
    top: 24px;
}

.task-description-card,
.checklist-card,
.messenger-card,
.task-side-panel {
    background: rgba(255, 255, 255, 0.94);
}

.task-side-details {
    margin-top: 16px;
}

.task-side-details summary {
    cursor: pointer;
    font-weight: 700;
}

.task-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-title-menu {
    position: relative;
}

.task-title-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: none;
    list-style: none;
}

.task-title-menu-trigger::-webkit-details-marker {
    display: none;
}

.task-title-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    z-index: 10;
}

.task-title-menu-item {
    width: 100%;
    justify-content: flex-start;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.task-title-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.02;
    text-align: left;
    cursor: pointer;
}

.task-title-trigger:hover {
    color: var(--accent-strong);
}

.task-title-form {
    display: grid;
    gap: 12px;
    max-width: 780px;
    margin-top: 14px;
}

.task-description-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.task-description-display {
    position: relative;
}

.task-description-display-editable {
    padding: 12px 14px;
    border: 1px dashed transparent;
    border-radius: 16px;
    cursor: text;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.task-description-display-editable:hover,
.task-description-display-editable:focus {
    border-color: rgba(21, 122, 99, 0.18);
    background: rgba(239, 249, 245, 0.5);
    outline: none;
}

.task-description-edit-hint {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.task-description-display.is-hidden,
.task-title-form.is-hidden,
.task-description-form.is-hidden {
    display: none;
}

.task-title-bar h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 42px);
}

.task-inline-form {
    margin-top: 16px;
}

.task-description p {
    margin: 0;
    line-height: 1.7;
}

.task-rich-text {
    display: grid;
    gap: 10px;
    line-height: 1.65;
}

.task-rich-text p,
.task-rich-text ul,
.task-rich-text blockquote {
    margin: 0;
}

.task-rich-text ul {
    padding-left: 22px;
}

.task-rich-text li + li {
    margin-top: 6px;
}

.task-rich-text blockquote {
    padding: 14px 16px;
    border-left: 4px solid rgba(29, 107, 82, 0.25);
    border-radius: 0 14px 14px 0;
    background: rgba(29, 107, 82, 0.06);
    color: var(--muted);
}

.task-rich-text code {
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(47, 36, 24, 0.08);
    font-size: 0.95em;
}

.task-rich-text a {
    color: var(--accent-strong);
    font-weight: 700;
}

.task-rich-text .protocol-document {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    color: #1f1f1f;
}

.task-rich-text .protocol-centered {
    text-align: center;
}

.task-rich-text .protocol-date-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
}

.task-rich-text .protocol-section {
    margin: 26px 0;
}

.task-rich-text .protocol-agenda-list {
    padding-left: 22px;
}

.task-rich-text .protocol-agenda-list li {
    margin-bottom: 8px;
}

.task-rich-text .protocol-votes {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 16px;
    table-layout: fixed;
}

.task-rich-text .protocol-votes th,
.task-rich-text .protocol-votes td {
    padding: 8px 10px;
    border: 1.4px solid rgba(27, 52, 43, 0.56);
    vertical-align: top;
}

.task-rich-text .protocol-votes th {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
    background: rgba(246, 248, 247, 0.85);
}

.task-rich-text .protocol-votes td:nth-child(1),
.task-rich-text .protocol-votes th:nth-child(1) {
    width: 7%;
    text-align: center;
}

.task-rich-text .protocol-votes td:nth-child(2),
.task-rich-text .protocol-votes th:nth-child(2) {
    width: 43%;
}

.task-rich-text .protocol-votes td:nth-child(3),
.task-rich-text .protocol-votes th:nth-child(3) {
    width: 25%;
    text-align: center;
}

.task-rich-text .protocol-votes td:nth-child(4),
.task-rich-text .protocol-votes th:nth-child(4) {
    width: 25%;
}

.task-rich-text .protocol-vote-summary p {
    margin-bottom: 4px;
}

.task-rich-text .protocol-signatures {
    margin-top: 42px;
}

.task-rich-text .protocol-signature-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.task-rich-text .protocol-signature-title {
    max-width: 320px;
}

.task-rich-text .protocol-signature-line {
    min-width: 280px;
    text-align: right;
    white-space: nowrap;
}

.task-subtask-list,
.task-comment-stream,
.attachment-list,
.participant-list,
.meta-list {
    display: grid;
    gap: 12px;
}

.participant-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.participant-picker:focus-within {
    border-color: rgba(29, 107, 82, 0.28);
    box-shadow: 0 0 0 4px rgba(29, 107, 82, 0.08);
}

.participant-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-picker-input {
    min-width: 180px;
    width: auto;
    flex: 1 1 180px;
    border: 0;
    padding: 6px 0;
    background: transparent;
}

.participant-picker-input:focus {
    outline: none;
}

.participant-token {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(29, 107, 82, 0.18);
    border-radius: 999px;
    background: rgba(29, 107, 82, 0.08);
    color: var(--accent-strong);
    font: inherit;
    cursor: pointer;
}

.participant-token-remove {
    font-size: 18px;
    line-height: 1;
}

.participant-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-inline-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.task-subtask-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.48);
}

.task-subtask-item:hover {
    border-color: rgba(29, 107, 82, 0.28);
    background: rgba(29, 107, 82, 0.06);
}

.task-comment-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
}

.task-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.checklist-card {
    padding-top: 18px;
    padding-bottom: 16px;
}

.checklist-list {
    display: grid;
    gap: 0;
}

.checklist-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(27, 52, 43, 0.08);
    background: transparent;
}

.checklist-item:last-child {
    border-bottom: 0;
}

.checklist-toggle-form {
    margin: 0;
}

.checklist-toggle {
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.checklist-toggle.is-done {
    border-color: var(--accent);
    background: var(--accent);
}

.checklist-item-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.checklist-item-title {
    font-size: 15px;
}

.checklist-item-actions {
    gap: 6px;
}

.checklist-delete-button {
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid rgba(27, 52, 43, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    box-shadow: none;
    font-size: 18px;
    line-height: 1;
}

.checklist-item-done {
    text-decoration: line-through;
    color: var(--muted);
}

.checklist-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(27, 52, 43, 0.08);
}

.checklist-input {
    min-height: 42px;
}

.checklist-add-button {
    min-width: 104px;
}

.checklist-inline-error {
    margin-top: 10px;
}

.task-comment-body {
    line-height: 1.7;
}

.attachment-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
}

.attachment-list-column {
    grid-template-columns: 1fr;
}

.attachment-chip,
.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.participant-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
}

.meta-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.meta-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.file-input {
    padding: 8px 0;
}

.task-side-details {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.task-side-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0;
    color: var(--accent-strong);
}

.messenger-card {
    padding-bottom: 18px;
}

.messenger-thread {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.message-bubble {
    display: grid;
    gap: 10px;
    max-width: min(100%, 860px);
    padding: 14px 16px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px 18px 18px 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(18, 37, 31, 0.04);
}

.message-bubble-own {
    justify-self: end;
    border-color: rgba(21, 122, 99, 0.12);
    border-radius: 18px 18px 8px 18px;
    background: rgba(239, 249, 245, 0.96);
}

.message-bubble-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.messenger-attachments {
    margin-bottom: 16px;
}

.message-composer {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px;
    background: rgba(250, 252, 251, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.richtext-shell {
    display: grid;
    gap: 12px;
}

.richtext-source,
.richtext-source-input {
    display: none;
}

.richtext-editor {
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    line-height: 1.7;
    outline: none;
}

.richtext-editor:focus {
    border-color: rgba(21, 122, 99, 0.28);
    box-shadow: 0 0 0 4px rgba(21, 122, 99, 0.08);
}

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

.toolbar-button {
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(27, 52, 43, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: none;
    font-weight: 800;
}

.toolbar-button:hover {
    box-shadow: 0 8px 20px rgba(59, 35, 8, 0.08);
}

.message-composer-input {
    min-height: 132px;
    padding: 14px 16px;
    border-radius: 16px;
    resize: vertical;
    line-height: 1.7;
}

.message-composer-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.attachment-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.attachment-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 107, 82, 0.2);
    box-shadow: 0 10px 20px rgba(59, 35, 8, 0.08);
}

.message-send-button {
    min-width: 140px;
}

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

.task-context-form {
    gap: 16px;
}

.task-meta-list {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(27, 52, 43, 0.08);
}

.message-composer input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(29, 107, 82, 0.28);
    box-shadow: 0 0 0 4px rgba(29, 107, 82, 0.08);
}

@media (max-width: 1080px) {
    .landing-stage {
        padding: 24px;
        align-items: start;
    }

    .landing-messages {
        left: 24px;
        right: 24px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 72px;
    }

    .landing-activation-zone {
        min-height: 360px;
    }

    .landing-emblem {
        width: min(82vw, 420px);
    }

    .landing-power-button {
        right: 50%;
        top: auto;
        bottom: -20px;
        width: 116px;
        height: 116px;
        transform: translateX(50%) scale(1);
    }

    .landing-power-button:hover {
        transform: translateX(50%) scale(1.03);
    }

    .landing-shell.is-activated .landing-power-button {
        transform: translate(50%, 90px) scale(0.24);
    }

    .landing-auth-panel {
        position: static;
        width: 100%;
        margin: 0 auto;
        transform: translateY(26px);
    }

    .landing-auth-panel.is-visible {
        transform: translateY(0);
    }

    .page-shell {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .page-header {
        flex-direction: column;
    }

    .form-grid,
    .filter-grid,
    .planner-filter-row,
    .line-item-main,
    .org-grid,
    .document-meta,
    .task-detail-layout,
    .task-stats-grid,
    .planner-board,
    .planfix-task-layout {
        grid-template-columns: 1fr;
    }

    .planner-task-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .task-side-panel {
        position: static;
    }

    .message-composer-footer,
    .message-bubble-head,
    .checklist-create-form {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .context-grid {
        grid-template-columns: 1fr;
    }

    .access-switch-grid {
        grid-template-columns: 1fr;
    }

    .password-fields-grid {
        grid-template-columns: 1fr;
    }
}

.public-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(230, 244, 236, 0.86), transparent 24%),
        linear-gradient(180deg, #fcfdfc 0%, #f3f7f5 100%);
}

.public-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
}

.public-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(21, 122, 99, 0.12), rgba(227, 183, 97, 0.12)),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(18, 37, 31, 0.05);
}

.public-alert-content {
    display: grid;
    gap: 6px;
    line-height: 1.6;
}

.public-alert-content p {
    margin: 0;
}

.public-alert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0 24px;
}

.public-brand {
    display: grid;
    gap: 4px;
    color: var(--ink);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 18px;
    flex-wrap: wrap;
}

.public-nav a,
.public-inline-link {
    color: var(--ink);
    font-weight: 700;
}

.public-main {
    display: grid;
    gap: 22px;
}

.public-hero,
.public-cta,
.public-article-shell,
.public-list-card {
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(18, 37, 31, 0.06);
}

.public-hero-layered {
    position: relative;
    overflow: hidden;
}

.public-hero-layered::before,
.public-hero-layered::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.9;
}

.public-hero-layered::before {
    top: -60px;
    right: -20px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(21, 122, 99, 0.16), transparent 68%);
}

.public-hero-layered::after {
    bottom: -80px;
    left: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(227, 183, 97, 0.16), transparent 70%);
}

.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 24px;
    padding: 34px;
}

.public-hero-copy h1,
.public-article-shell h1 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 0.98;
}

.public-hero-copy,
.public-hero-panel {
    position: relative;
    z-index: 1;
}

.public-hero-richtext {
    margin-top: 14px;
}

.public-hero-richtext p {
    color: var(--muted);
}

.public-button-row,
.public-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 122, 99, 0.16);
}

.public-button-secondary {
    border: 1px solid rgba(27, 52, 43, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    box-shadow: none;
}

.public-hero-panel {
    display: grid;
    gap: 12px;
}

.public-stat-card,
.public-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 22px;
    background: rgba(248, 251, 250, 0.96);
}

.public-stat-card strong {
    font-size: clamp(24px, 3vw, 36px);
}

.public-stat-card-accent {
    background: linear-gradient(180deg, rgba(233, 249, 245, 0.98), rgba(248, 251, 250, 0.96));
}

.public-stat-card-warm {
    background: linear-gradient(180deg, rgba(252, 245, 232, 0.98), rgba(248, 251, 250, 0.96));
}

.public-section {
    display: grid;
    gap: 14px;
}

.public-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.public-section-kicker {
    color: var(--muted);
    font-size: 14px;
}

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

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

.public-feature-card {
    display: grid;
    gap: 14px;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(18, 37, 31, 0.05);
}

.public-feature-card h3 {
    margin: 0;
    font-size: 24px;
}

.public-feature-card-accent {
    background: linear-gradient(180deg, rgba(234, 249, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.public-feature-card-neutral {
    background: linear-gradient(180deg, rgba(248, 251, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.public-feature-card-warm {
    background: linear-gradient(180deg, rgba(252, 246, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.public-feature-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-card {
    color: inherit;
}

.public-news-card {
    min-height: 180px;
}

.public-card p,
.public-list-row p,
.public-cta p,
.public-footer-note,
.public-rich-text p,
.public-rich-text ul,
.public-rich-text blockquote {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.public-list-card {
    padding: 8px 22px;
}

.public-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(27, 52, 43, 0.08);
    color: inherit;
}

.public-list-row:last-child {
    border-bottom: 0;
}

.public-list-row span,
.public-meta {
    color: var(--muted);
    font-size: 14px;
}

.public-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
}

.public-article-shell {
    padding: 30px 34px;
}

.public-rich-text {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.public-page-stream {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.public-rich-text ul {
    padding-left: 22px;
}

.public-page-stream > p,
.public-page-stream > ul,
.public-page-stream > blockquote {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.public-page-stream > ul {
    padding-left: 22px;
}

.public-page-stream > blockquote {
    padding: 14px 16px;
    border-left: 4px solid rgba(29, 107, 82, 0.2);
    border-radius: 0 16px 16px 0;
    background: rgba(29, 107, 82, 0.05);
}

.public-rich-text img,
.public-page-stream img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.public-rich-text table,
.public-page-stream table {
    width: 100%;
    border-collapse: collapse;
}

.public-rich-text th,
.public-rich-text td,
.public-page-stream th,
.public-page-stream td {
    padding: 10px 12px;
    border: 1px solid rgba(27, 52, 43, 0.14);
    vertical-align: top;
}

.public-rich-text figcaption,
.public-page-stream figcaption {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.public-rich-text figure,
.public-page-stream figure {
    margin: 0;
}

.public-rich-text li + li {
    margin-top: 6px;
}

.public-rich-text blockquote {
    padding: 14px 16px;
    border-left: 4px solid rgba(29, 107, 82, 0.2);
    border-radius: 0 16px 16px 0;
    background: rgba(29, 107, 82, 0.05);
}

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.public-page-block {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(27, 52, 43, 0.08);
}

.public-page-block:first-of-type {
    margin-top: 18px;
}

.public-board-section {
    display: grid;
    gap: 14px;
}

.public-board-section h3 {
    margin: 0;
    font-size: 18px;
}

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

.public-board-grid-chair {
    grid-template-columns: minmax(0, 1fr);
}

.public-board-card strong {
    font-size: 18px;
    line-height: 1.3;
}

.public-board-card p {
    margin: 0;
}

.public-page-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.public-page-image,
.public-gallery-image,
.public-card-media {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(18, 37, 31, 0.08);
}

.public-page-image {
    min-height: 280px;
    max-height: 420px;
}

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

.public-gallery-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 22px;
    background: rgba(248, 251, 250, 0.96);
}

.public-gallery-image {
    aspect-ratio: 4 / 3;
}

.public-card-media {
    margin-bottom: 2px;
    aspect-ratio: 16 / 10;
}

.public-feed-row {
    align-items: start;
}

.public-list-row-empty,
.public-card-empty {
    color: var(--muted);
}

.public-stat-card-text p {
    color: var(--muted);
}

.cms-quick-grid {
    margin-bottom: 18px;
}

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

.cms-block-type-list div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px;
    background: rgba(248, 251, 250, 0.82);
}

.cms-block-type-list span {
    color: var(--muted);
    line-height: 1.6;
}

.page-inline-adders {
    margin-top: 18px;
    margin-bottom: 18px;
}

.page-inline-blocks {
    display: grid;
    gap: 16px;
}

.page-inline-block-card {
    padding: 18px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    background: rgba(248, 251, 250, 0.9);
}

.page-inline-block-empty {
    padding: 16px 18px;
    border: 1px dashed rgba(27, 52, 43, 0.14);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.56);
}

.page-editor-block-panel {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px;
    background: rgba(248, 251, 250, 0.86);
}

.page-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-editor-block-list {
    display: grid;
    gap: 12px;
}

.page-editor-block-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
}

.page-editor-block-copy {
    display: grid;
    gap: 4px;
}

.page-editor-block-copy span {
    color: var(--muted);
    font-size: 14px;
}

.page-editor-block-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.page-editor-block-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(21, 122, 99, 0.18);
    border-radius: 999px;
    background: rgba(233, 249, 245, 0.92);
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.public-footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 22px 0 0;
    color: var(--muted);
}

.public-footer p {
    margin: 6px 0 0;
}

.public-footer-note p {
    margin: 0;
}

.public-footer-contacts {
    display: grid;
    gap: 8px;
}

@media (max-width: 1080px) {
    .public-header,
    .public-cta,
    .public-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .public-hero,
    .public-feature-grid,
    .public-card-grid,
    .public-board-grid,
    .public-contact-grid,
    .public-gallery-grid,
    .public-page-media-grid,
    .cms-block-type-list {
        grid-template-columns: 1fr;
    }

    .public-nav {
        justify-content: flex-start;
    }

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

.cms-richtext-shell {
    margin-top: 10px;
}

.cms-richtext-host {
    position: relative;
}

.cms-richtext-editor {
    min-height: 180px;
    background: rgba(255, 255, 255, 0.98);
}

.cms-richtext-host .tox-tinymce {
    border: 1px solid rgba(27, 52, 43, 0.1);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(18, 37, 31, 0.06);
}

.cms-richtext-host .tox .tox-editor-header {
    border-bottom: 1px solid rgba(27, 52, 43, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.cms-richtext-host .tox .tox-toolbar,
.cms-richtext-host .tox .tox-toolbar__primary,
.cms-richtext-host .tox .tox-toolbar__overflow {
    background: transparent;
}

.cms-richtext-host .tox .tox-edit-area__iframe {
    background: rgba(255, 255, 255, 0.98);
}

.cms-block-drawer {
    position: absolute;
    inset: 18px;
    z-index: 20;
}

.cms-block-drawer[hidden] {
    display: none;
}

.cms-block-drawer__scrim {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: rgba(18, 37, 31, 0.18);
    backdrop-filter: blur(3px);
}

.cms-block-drawer__panel {
    position: absolute;
    top: 18px;
    right: 18px;
    width: min(440px, calc(100% - 36px));
    max-height: calc(100% - 36px);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(27, 52, 43, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 48px rgba(18, 37, 31, 0.18);
    overflow: hidden;
}

.cms-block-drawer__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.cms-block-drawer__head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.cms-block-drawer__close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 999px;
    background: rgba(248, 251, 250, 0.98);
    color: var(--ink);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
}

.cms-block-drawer__tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 999px;
    background: rgba(248, 251, 250, 0.94);
    width: fit-content;
}

.cms-block-drawer__tab {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.cms-block-drawer__tab.is-active {
    background: var(--accent);
    color: #fff;
}

.cms-block-drawer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cms-block-drawer__search {
    min-height: 46px;
}

.cms-block-drawer__body {
    display: grid;
    min-height: 0;
    overflow: hidden;
}

.cms-block-drawer__section {
    display: none;
    gap: 12px;
    min-height: 0;
    max-height: 100%;
}

.cms-block-drawer__section.is-active {
    display: grid;
    align-content: start;
    overflow-y: auto;
    padding-right: 4px;
}

.cms-block-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(27, 52, 43, 0.08);
    border-radius: 18px;
    background: rgba(248, 251, 250, 0.92);
}

.cms-block-card__copy {
    display: grid;
    gap: 5px;
}

.cms-block-card__copy span,
.cms-block-card__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.cms-block-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 780px) {
    .page-editor-block-row {
        flex-direction: column;
        align-items: stretch;
    }

    .page-editor-block-actions {
        justify-content: flex-start;
    }

    .cms-block-drawer {
        inset: 12px;
    }

    .cms-block-drawer__panel {
        top: 0;
        right: 0;
        width: 100%;
        max-height: 100%;
    }

    .cms-block-drawer__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}
