:root {
    --bg: #131316;
    --bg-muted: #1c1c21;
    --surface: #26262c;
    --surface-soft: #2f3037;
    --surface-strong: #393a41;
    --surface-hover: #4b4c52;
    --field: #1c1c21;
    --text: #f4f4f5;
    --text-soft: #dbdbde;
    --text-muted: #a8a9ae;
    --border: #393a41;
    --border-strong: #4b4c52;
    --primary: #5b5c62;
    --primary-hover: #6a6b70;
    --accent: #56cfe1;
    --accent-hover: #49bbcb;
    --accent-soft: rgba(86, 207, 225, 0.14);
    --success: #4b4c52;
    --success-soft: #2f3037;
    --warning: #5b5c62;
    --warning-soft: #393a41;
    --danger: #6a6b70;
    --danger-soft: #4b4c52;
    --info: #5b5c62;
    --info-soft: #2f3037;
    --muted-soft: #1c1c21;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.22);
    --content-max: 1480px;
    --sidebar-width: 272px;
    --font-sans: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
}

.app-body {
    overflow-x: hidden;
}

body.is-nav-open {
    overflow: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

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

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    cursor: pointer;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-sidebar-frame {
    position: relative;
    z-index: 40;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 16px;
    background: var(--bg-muted);
    border-right: 1px solid var(--border);
}

.app-sidebar__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    padding: 2px 2px 18px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.brand-mark--logo {
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark--light {
    background: #fff;
    border-color: rgba(226, 232, 240, 0.96);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-brand strong,
.user-chip strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
}

.sidebar-brand span,
.user-chip span,
.table-subtitle,
.page-heading p,
.surface__header p,
.stat-card__hint,
.empty-panel p,
.login-hint,
.page__subtitle,
.timeline-item p:last-child,
.timeline-item small,
.activity-item span,
.list-item span,
.quick-link__copy,
.hero-panel__caption span {
    color: var(--text-muted);
}

.sidebar-dismiss {
    display: none;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
}

.sidebar-section {
    margin-top: 22px;
}

.sidebar-section__title {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover {
    background: var(--surface-soft);
    border-color: var(--border);
}

.sidebar-link.is-active {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-soft);
    color: var(--text);
}

.sidebar-link__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    display: inline-grid;
    place-items: center;
    background: var(--field);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    flex-shrink: 0;
}

.sidebar-link.is-active .sidebar-link__icon {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.app-overlay {
    display: none;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    background: rgba(19, 19, 22, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.app-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
}

.app-nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.app-topbar__title,
.page-heading h2,
.surface__header h3,
.panel-heading h2,
.page__title,
.empty-panel h3,
.auth-panel__title,
.auth-panel__subtitle,
.hero-panel__content h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.app-topbar__title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

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

.user-chip {
    min-width: 220px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.app-content {
    padding: 20px 22px 28px;
}

.app-content__inner {
    width: min(var(--content-max), 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.auth-body {
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-stage {
    width: min(520px, 100%);
    display: block;
}

.auth-panel {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-panel {
    align-self: center;
    width: min(520px, 100%);
    padding: 26px;
    background: var(--surface);
}

.auth-panel__intro {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-panel__intro--compact .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
}

.auth-panel__brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-panel__text-block {
    text-align: left;
}

.auth-panel__text-block--compact {
    display: none;
}

.auth-panel__title {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.auth-panel__subtitle {
    font-size: 1.4rem;
    margin-top: 8px;
}

.auth-panel__copy {
    margin: 0;
    line-height: 1.7;
    color: var(--text-muted);
}

.auth-panel__brand-row .eyebrow,
.auth-panel__text-block .eyebrow,
.auth-panel__text-block h2,
.auth-panel__text-block p {
    text-align: left;
}

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

.page-grid--narrow {
    max-width: 820px;
    margin: 0 auto;
}

.page-heading,
.surface__header,
.hero__actions,
.page-actions,
.pagination,
.inline-meta,
.form-actions,
.hero-panel__actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-heading p,
.surface__header p,
.panel-heading p,
.empty-panel p,
.page__subtitle {
    margin: 8px 0 0;
    line-height: 1.6;
    max-width: 66ch;
}

.page-heading h2,
.hero-panel__content h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.page__title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 18px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-panel__content {
    display: grid;
    gap: 16px;
    align-content: start;
}

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

.hero-chip {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--field);
}

.hero-chip span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-chip strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.hero-panel__media {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--field);
}

.hero-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-panel__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 19, 22, 0.08), rgba(19, 19, 22, 0.66));
}

.hero-panel__caption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 19, 22, 0.72);
    backdrop-filter: blur(12px);
}

.hero-panel__caption strong {
    display: block;
    margin-bottom: 4px;
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow {
    background: var(--field);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.eyebrow--muted {
    color: var(--text-muted);
}

.surface,
.stat-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.surface {
    padding: 20px;
}

.surface--compact {
    padding: 18px;
}

.surface__header {
    margin-bottom: 16px;
}

.metric-grid,
.card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

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

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

.content-grid--three {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.8fr) minmax(250px, 0.8fr);
}

.stat-card {
    padding: 14px 16px;
}

.stat-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.stat-card__value {
    display: block;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-card__hint {
    margin: 8px 0 0;
    font-size: 0.86rem;
}

.panel-form,
.filter-grid,
.form-grid {
    display: grid;
    gap: 14px;
}

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

.filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
}

.filter-grid__actions,
.inline-form,
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-bar .field {
    min-width: 200px;
    flex: 1 1 200px;
}

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

.field--grow {
    flex: 1 1 320px;
}

.field--span-2 {
    grid-column: 1 / -1;
}

.field label,
.field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-soft);
}

.field-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    background: var(--surface-soft);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.auth-check-row {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.auth-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-scroll-cue::after {
    content: "↓";
    color: var(--accent);
    font-size: 0.78rem;
}

.auth-committee-picker {
    position: relative;
    display: grid;
    gap: 10px;
    max-height: clamp(250px, 34vh, 315px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(180deg, rgba(86, 207, 225, 0.2), rgba(255, 255, 255, 0.04)) border-box;
    scrollbar-color: var(--accent) transparent;
    scrollbar-width: thin;
}

.auth-committee-picker::-webkit-scrollbar {
    width: 7px;
}

.auth-committee-picker::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--accent);
}

.auth-committee-picker::-webkit-scrollbar-track {
    background: transparent;
}

.auth-committee-option {
    display: block;
    cursor: pointer;
}

.auth-committee-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-committee-option__card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-md) - 4px);
    background: var(--field);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-committee-option input:checked + .auth-committee-option__card {
    border-color: rgba(86, 207, 225, 0.75);
    background: rgba(86, 207, 225, 0.08);
    box-shadow: 0 0 0 1px rgba(86, 207, 225, 0.2);
}

.auth-committee-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-committee-option__head strong {
    color: var(--text);
    font-size: 0.92rem;
}

.auth-committee-option__state {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--surface-soft);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-committee-option input:checked + .auth-committee-option__card .auth-committee-option__state {
    color: #061014;
    background: var(--accent);
}

.auth-committee-option input:checked + .auth-committee-option__card .auth-committee-option__state::before {
    content: "Seçildi";
}

.auth-committee-option input:checked + .auth-committee-option__card .auth-committee-option__state {
    font-size: 0;
}

.auth-committee-option input:checked + .auth-committee-option__card .auth-committee-option__state::before {
    font-size: 0.68rem;
}

.auth-committee-option__jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auth-committee-option__jobs em {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.form-actions {
    padding-top: 4px;
}

.form-actions--end {
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn--secondary {
    background: var(--surface-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--secondary:hover {
    background: var(--surface-hover);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-soft);
}

.btn--ghost:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.btn--danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn--danger:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn--full {
    width: 100%;
}

.btn.is-disabled,
.btn--ghost.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.alert-group {
    display: grid;
    gap: 10px;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-weight: 700;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.alert.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.alert--success {
    background: var(--success-soft);
    border-color: rgba(106, 107, 112, 0.45);
    color: var(--text-soft);
}

.alert--error {
    background: var(--danger-soft);
    border-color: rgba(106, 107, 112, 0.5);
    color: var(--text);
}

.table-wrap,
.compact-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--field);
}

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

.table--compact {
    min-width: 100%;
}

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

.table th {
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td {
    color: var(--text);
    font-size: 0.94rem;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.table-subtitle,
.activity-item span,
.timeline-item small,
.list-item span {
    font-size: 0.86rem;
}

.badge {
    border: 1px solid transparent;
}

.badge--success {
    background: var(--success-soft);
    border-color: rgba(91, 92, 98, 0.55);
    color: var(--text-soft);
}

.badge--warning {
    background: var(--warning-soft);
    border-color: rgba(106, 107, 112, 0.55);
    color: var(--text);
}

.badge--danger {
    background: var(--danger-soft);
    border-color: rgba(106, 107, 112, 0.55);
    color: var(--text);
}

.badge--info {
    background: var(--accent-soft);
    border-color: rgba(86, 207, 225, 0.38);
    color: var(--accent);
}

.badge--muted {
    background: var(--muted-soft);
    border-color: rgba(75, 76, 82, 0.55);
    color: var(--text-muted);
}

.list-stack,
.timeline,
.activity-feed,
.quick-links {
    display: grid;
    gap: 12px;
}

.list-item,
.activity-item,
.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--field);
}

.list-item:hover,
.quick-link:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
}

.list-item div,
.activity-item,
.quick-link {
    min-width: 0;
}

.list-item div,
.activity-item p,
.timeline-item p,
.detail-list > div,
.quick-link {
    display: grid;
    gap: 6px;
}

.list-item--inline form {
    flex-shrink: 0;
}

.list-item--block,
.activity-item {
    align-items: flex-start;
}

.activity-item strong,
.timeline-item strong,
.detail-list strong,
.quick-link__title {
    font-weight: 800;
}

.activity-item p,
.timeline-item p {
    margin: 0;
    line-height: 1.6;
}

.timeline-item {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--field);
}

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

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

.detail-list > div {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--field);
}

.detail-list span {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.note-block {
    margin: 0;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--field);
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--text-soft);
}

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

.quick-link {
    min-height: 74px;
    align-items: flex-start;
}

.quick-link__title {
    color: var(--text);
}

.quick-link__copy {
    font-size: 0.88rem;
    line-height: 1.5;
}

.empty-panel {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
    background: var(--field);
}

.empty-panel h3 {
    margin-bottom: 8px;
}

.empty-panel p {
    margin: 0;
}

.empty-panel .btn {
    margin-top: 14px;
}

.pagination {
    justify-content: flex-end;
    margin-top: 14px;
}

.pagination__meta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 8px;
    color: var(--text-muted);
    font-weight: 700;
}

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

.text-link:hover {
    color: #86deeb;
}

.text-separator {
    color: var(--text-muted);
    margin: 0 6px;
}

.panel-heading {
    display: grid;
    gap: 6px;
}

.panel-heading p,
.login-hint,
.inline-meta {
    margin-top: 12px;
}

.inline-meta {
    justify-content: flex-start;
}

.login-hint {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    text-align: center;
}

.auth-switch-button {
    text-decoration: none;
}

.auth-success-card {
    display: grid;
    gap: 14px;
}

.auth-success-card__eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-success-card h3 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.auth-success-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.list-item--stack {
    display: grid;
    gap: 12px;
}

.list-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mt-16 {
    margin-top: 16px;
}

@media (max-width: 1280px) {
    .content-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid--three > :first-child {
        grid-column: 1 / -1;
    }

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

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

    .app-sidebar-frame {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .app-shell.is-nav-open .app-sidebar-frame {
        transform: translateX(0);
    }

    .app-sidebar {
        height: 100vh;
        border-right: 1px solid var(--border);
    }

    .app-overlay {
        position: fixed;
        inset: 0;
        display: block;
        border: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 35;
    }

    .app-shell.is-nav-open .app-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .app-nav-toggle,
    .sidebar-dismiss {
        display: inline-flex;
    }

    .auth-stage,
    .hero-panel,
    .content-grid--two,
    .content-grid--three,
    .quick-links,
    .detail-list {
        grid-template-columns: 1fr;
    }

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

    .app-topbar,
    .page-heading,
    .surface__header {
        align-items: stretch;
    }
}

@media (max-width: 820px) {
    .form-grid--two,
    .hero-panel__stats,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .topbar-actions,
    .filter-bar,
    .inline-form,
    .page-actions,
    .pagination,
    .hero-panel__actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-chip {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .app-content,
    .app-topbar {
        padding: 16px;
    }

    .auth-shell {
        padding: 16px;
    }

    .auth-panel {
        padding: 22px 20px;
    }

    .auth-committee-picker {
        max-height: 300px;
    }

    .metric-grid,
    .metric-grid--wide,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .table-wrap,
    .compact-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .table--responsive,
    .table--responsive tbody,
    .table--responsive tr,
    .table--responsive td {
        display: block;
        width: 100%;
    }

    .table--responsive {
        min-width: 0;
    }

    .table--responsive thead {
        display: none;
    }

    .table--responsive tbody {
        display: grid;
        gap: 12px;
    }

    .table--responsive tr {
        padding: 4px 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--field);
        overflow: hidden;
    }

    .table--responsive td {
        display: grid;
        grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        font-size: 0.92rem;
    }

    .table--responsive td:last-child {
        border-bottom: 0;
    }

    .table--responsive td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .text-separator {
        display: none;
    }
}

@media (max-width: 560px) {
    .app-content,
    .app-topbar,
    .app-sidebar {
        padding: 14px;
    }

    .hero-panel,
    .surface,
    .surface--compact,
    .auth-panel {
        padding: 16px;
    }

    .page-grid {
        gap: 14px;
    }

    .table--responsive td {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
