:root {
    --bg: #06162c;
    --bg-soft: #0b2444;
    --bg-soft-2: #12325a;
    --panel: rgba(10, 35, 68, 0.82);
    --panel-2: rgba(16, 46, 83, 0.95);
    --panel-3: rgba(255, 255, 255, 0.05);
    --text: #f7fbff;
    --muted: #b9cde3;
    --line: rgba(190, 220, 246, 0.14);
    --primary: #1f6fd8;
    --primary-2: #1451a6;
    --gold: #f2c94c;
    --gold-2: #ffde7c;
    --green: #33b679;
    --green-2: #4fd18f;
    --danger: #c98512;
    --danger-soft: rgba(242, 201, 76, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 201, 76, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(51, 182, 121, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(31, 111, 216, 0.18), transparent 28%),
        linear-gradient(135deg, #051223 0%, #092140 52%, #0f2e59 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.sidebar {
    border-right: 1px solid var(--line);
    padding: 28px 20px;
    background: linear-gradient(180deg, rgba(5, 18, 35, 0.92), rgba(8, 31, 60, 0.82));
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.brand-copy h1,
.brand h1 {
    font-size: 1.25rem;
    margin: 0;
}

.brand-copy p,
.brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.system-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.system-chip-accent {
    background: rgba(242, 201, 76, 0.16);
    color: #fff3c0;
    border-color: rgba(242, 201, 76, 0.24);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu a {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.menu a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-color: var(--line);
    transform: translateX(2px);
}

.main-panel {
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.topbar h2 {
    margin: 0 0 6px;
    font-size: 2rem;
}

.subtitle {
    color: var(--muted);
    font-size: 0.96rem;
}

.top-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.16), rgba(201, 133, 18, 0.18));
    color: #fff3c2;
    border: 1px solid rgba(242, 201, 76, 0.3);
}

.btn-full {
    width: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.card {
    background: linear-gradient(180deg, rgba(11, 36, 68, 0.9), rgba(9, 30, 56, 0.86));
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card-label {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.card-number {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -34px -34px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.2), transparent 68%);
}

.stat-help {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.table-card { overflow: auto; }
.table-compact th, .table-compact td { white-space: nowrap; }

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

.card-muted {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-grid { align-items: stretch; }
.chart-card { min-height: 360px; }

.bar-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 270px;
    padding-top: 12px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bar-value {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 700;
}

.bar-track {
    width: 100%;
    max-width: 58px;
    height: 200px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    padding: 6px;
    display: flex;
    align-items: end;
}

.bar-fill {
    width: 100%;
    border-radius: 14px;
    min-height: 8px;
    background: linear-gradient(180deg, var(--gold), var(--green));
    box-shadow: 0 10px 20px rgba(51, 182, 121, 0.18);
}

.bar-label {
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
    line-height: 1.35;
}

.hbar-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 6px;
}

.hbar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbar-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
}

.hbar-meta span {
    color: var(--text);
}

.hbar-meta strong {
    color: var(--muted);
}

.hbar-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    border-radius: 999px;
}

.hbar-fill-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.hbar-fill-green {
    background: linear-gradient(90deg, var(--green), var(--green-2));
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    text-align: center;
    padding: 24px;
}

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

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

th {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

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

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea,
.search-form input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 47, 86, 0.96), rgba(11, 36, 68, 0.96));
    color: var(--text);
    padding: 12px 14px;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.88) 50%),
        linear-gradient(135deg, rgba(255,255,255,0.88) 50%, transparent 50%),
        linear-gradient(180deg, rgba(17, 47, 86, 0.96), rgba(11, 36, 68, 0.96));
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.field select option,
.field select optgroup {
    background: #0a2749;
    color: #f7fbff;
}

.field select option:checked,
.field select option:hover {
    background: #1f6fd8;
    color: #ffffff;
}

.field textarea { min-height: 120px; resize: vertical; }
.full { grid-column: 1 / -1; }

.clean-list, .flow-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 0.85rem;
    border: 1px solid var(--line);
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-card {
    padding: 24px;
}

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

.section-header h3,
.form-actions h3 {
    margin: 0 0 6px;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.section-header-inline {
    align-items: center;
}

.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.full-2 { grid-column: span 2; }

.field-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.field-error {
    color: #ffe1a8;
    margin-top: 8px;
    font-size: 0.88rem;
}

.field input[readonly] {
    opacity: 0.85;
    cursor: not-allowed;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input:focus {
    outline: none;
    border-color: rgba(31, 111, 216, 0.7);
    box-shadow: 0 0 0 4px rgba(31, 111, 216, 0.14);
}

.checkbox-field label { margin-bottom: 10px; }

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel-2);
}

.checkbox-wrap input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
    white-space: nowrap;
}

.status-success,
.badge-success,
.info-card,
.alert-success {
    color: #d9ffea;
    border-color: rgba(79, 209, 143, 0.35);
    background: rgba(79, 209, 143, 0.12);
}

.status-warning,
.badge-warning,
.warning-card,
.alert-warning,
.alert-card {
    color: #ffe9b5;
    border-color: rgba(242, 201, 76, 0.34);
    background: rgba(242, 201, 76, 0.10);
}

.compact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cid-autocomplete-field {
    position: relative;
}

.autocomplete-panel {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 28, 52, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.autocomplete-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(255,255,255,0.06); }
.autocomplete-item strong { font-size: 0.95rem; }
.autocomplete-item span,
.autocomplete-empty { color: var(--muted); font-size: 0.9rem; }
.autocomplete-empty { padding: 14px; }

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-form select {
    min-width: 180px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 47, 86, 0.96), rgba(11, 36, 68, 0.96));
    color: var(--text);
    padding: 12px 40px 12px 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-form select option {
    background: #0a2749;
    color: #f7fbff;
}

.table-meta { color: var(--muted); font-size: 0.86rem; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-actions { margin-bottom: 6px; }

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.timeline-header h4 { margin: 0 0 4px; }
.timeline-badges { display: flex; gap: 8px; flex-wrap: wrap; }

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

.timeline-grid p {
    margin: 6px 0 0;
    color: var(--muted);
}

.inline-form { margin: 0; }
.top-actions-stack { align-items: center; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--text);
}

.user-chip-label {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-form-wrap { margin-bottom: 14px; }

.segmented-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.segment-link {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    transition: 0.2s ease;
}

.segment-link:hover,
.segment-link.is-active {
    background: rgba(31, 111, 216, 0.18);
    color: var(--text);
}


.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(242, 201, 76, 0.14), transparent 22%),
        radial-gradient(circle at bottom left, rgba(51, 182, 121, 0.10), transparent 22%),
        radial-gradient(circle at right center, rgba(31, 111, 216, 0.18), transparent 28%),
        linear-gradient(135deg, #04111f 0%, #08203e 48%, #0d3260 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 8px;
}

.login-shell-clean {
    max-width: 1320px;
    margin: 0 auto;
}

.login-panel {
    padding: 42px;
}

.login-brand-panel,
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-panel-clean {
    justify-content: flex-end;
}

.login-form-panel-clean {
    justify-content: flex-start;
}

.login-brand-card-minimal {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(10, 35, 68, 0.92), rgba(7, 24, 47, 0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.login-brand-card-minimal::before {
    content: "";
    position: absolute;
    inset: auto auto -90px -70px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.22), transparent 70%);
}

.login-brand-card-minimal::after {
    content: "";
    position: absolute;
    inset: -60px -70px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(51, 182, 121, 0.16), transparent 70%);
}

.login-logo-clean {
    position: relative;
    z-index: 1;
    max-width: 360px;
    padding: 18px;
    border-radius: 26px;
}

.login-brand-copy-clean,
.login-brand-footer-pill {
    position: relative;
    z-index: 1;
}

.login-brand-copy-clean h1 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.login-brand-copy-clean p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 420px;
}

.login-brand-footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(242, 201, 76, 0.14);
}

.login-form-card,
.login-form-card-clean {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(11, 36, 68, 0.92), rgba(9, 30, 56, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-form-header-clean h2 {
    margin: 4px 0 8px;
    font-size: 2.1rem;
    line-height: 1.08;
}

.login-form-header-clean p,
.login-footer-note-clean span {
    color: var(--muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.alert-box {
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 18px;
    border: 1px solid var(--line);
}

.alert-error {
    background: rgba(201, 133, 18, 0.12);
    border-color: rgba(242, 201, 76, 0.34);
    color: #ffe8ac;
}

.login-footer-note-clean {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
@media (max-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-panel { padding: 28px; }
}


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

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .grid-2, .form-grid { grid-template-columns: 1fr; }
    .login-brand-panel-clean,
    .login-form-panel-clean { justify-content: center; }
}

@media (max-width: 900px) {
    .main-panel,
    .login-panel {
        padding: 22px;
    }

    .login-brand-card-minimal,
    .login-form-card-clean {
        max-width: 100%;
    }

    .topbar,
    .list-toolbar,
    .timeline-header,
    .compact-card,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-4,
    .form-grid-3,
    .form-grid-4,
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .full-2 { grid-column: auto; }
    .mini-stats { grid-template-columns: 1fr; }
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

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

.badge-warning {
    background: rgba(242, 201, 76, 0.14);
    border-color: rgba(242, 201, 76, 0.28);
    color: #fff0bd;
}

.password-shell {
    max-width: 860px;
}

.password-card,
.password-success-card {
    max-width: 860px;
}

.password-actions {
    max-width: 860px;
}

.agenda-card,
.agenda-side-card {
    min-height: 320px;
}

.agenda-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.agenda-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-date-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agenda-date-form input[type="date"] {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 47, 86, 0.98), rgba(11, 36, 68, 0.98));
    color: var(--text);
    padding: 10px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    color-scheme: dark;
}

.agenda-date-form input[type="date"]:hover,
.agenda-date-form input[type="date"]:focus {
    border-color: rgba(63, 149, 255, 0.45);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 149, 255, 0.12);
}

.agenda-date-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.25);
    cursor: pointer;
    opacity: 0.9;
}

.agenda-date-form input[type="date"]::-webkit-datetime-edit,
.agenda-date-form input[type="date"]::-webkit-datetime-edit-text,
.agenda-date-form input[type="date"]::-webkit-datetime-edit-month-field,
.agenda-date-form input[type="date"]::-webkit-datetime-edit-day-field,
.agenda-date-form input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text);
}

.calendar-header-grid,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-header-grid {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.calendar-cell:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 201, 76, 0.32);
    background: rgba(255,255,255,0.07);
}

.calendar-cell.is-selected {
    border-color: rgba(242, 201, 76, 0.5);
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.12), rgba(51, 182, 121, 0.1));
}

.calendar-cell.is-out {
    opacity: 0.55;
}

.calendar-day {
    font-size: 0.85rem;
    color: var(--muted);
}

.calendar-count {
    font-size: 1.45rem;
    line-height: 1;
}

.calendar-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}

.agenda-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-list .agenda-item {
    padding: 12px 14px;
}

@media (max-width: 1100px) {
    .calendar-header-grid,
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.filter-grid-inline {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(160px, 0.8fr)) auto auto;
    gap: 12px;
    align-items: end;
}

.field input[readonly],
.field input:disabled,
.field select:disabled {
    opacity: 0.9;
}

.detail-actions {
    flex-wrap: wrap;
    margin-bottom: 18px;
}

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