body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    margin: 0;
    padding: 0;
}

main {
    max-width: min(98vw, 1880px);
    margin: 40px auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, 0.5), transparent 32%),
        radial-gradient(circle at right center, rgba(20, 184, 166, 0.16), transparent 28%),
        linear-gradient(180deg, #f8f3ea 0%, #eef5ff 45%, #f7fafc 100%);
    color: #172033;
}

main.auth-main {
    max-width: min(1120px, calc(100vw - 32px));
    margin: 28px auto 40px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.organization-page {
    height: 100vh;
    overflow: hidden;
}

body.organization-page.organization-expanded {
    height: 100vh;
    overflow: hidden;
}

main.organization-main-shell {
    height: calc(100vh - 92px);
    margin: 12px auto;
    overflow-y: auto;
    overflow-x: hidden;
}

main.organization-main-shell.organization-expanded {
    height: calc(100vh - 92px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-top: 0;
}

.form-section,
.entries-section {
    margin-top: 32px;
}

.entry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.invite-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 10px;
    max-height: 72px;
    padding: 8px 10px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fbff;
    overflow-y: auto;
}

.invite-user-search {
    padding: 8px 10px;
}

.invite-user-empty {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.invite-user-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin: 6px 0 2px;
}

.invite-user-selected-empty {
    color: #64748b;
    font-size: 12px;
}

.invite-user-item {
    font-size: 13px;
    color: #334155;
}

.entry-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.entry-card-meta-compact {
    margin: 6px 0 4px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #475569;
    font-size: 12px;
    line-height: 1.2;
}

.meta-chip-removable {
    gap: 6px;
    padding-right: 4px;
}

.meta-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.meta-chip-remove:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #334155;
}

.meta-chip-planners {
    background: #fff3e8;
    color: #c2410c;
}

.invitation-response-row {
    align-items: center;
    gap: 8px;
}

.invitation-response-row .button-subtle {
    padding: 6px 10px;
    font-size: 13px;
}

.invitation-response-row .invitation-decline-button:hover,
.invitation-response-row .invitation-decline-button:focus-visible {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.invitation-status-chip {
    background: #eef2ff;
    color: #4338ca;
}

.invitation-status-accepted {
    background: #dcfce7;
    color: #166534;
}

.invitation-status-declined {
    background: #fee2e2;
    color: #b91c1c;
}

.invitation-name-chip {
    border: 1px solid #dbe4f0;
}

.invitation-name-pending {
    background: #f3f6fb;
    color: #475569;
}

.invitation-name-accepted {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.invitation-name-declined {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

input,
textarea,
button {
    font: inherit;
}

select {
    font: inherit;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    background: #fff;
}

select {
    padding: 10px;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    background: #fff;
}

button,
.button-link,
.dashboard-mode-toggle,
.button-subtle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
.button-link:hover,
.dashboard-mode-toggle:hover,
.button-subtle:hover {
    background: #f8fafc;
    text-decoration: none;
}

button:hover:not(:disabled):not(.button-danger):not(.button-danger-subtle) {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

button.icon-button:hover:not(:disabled),
.button-link.icon-button:hover {
    border-color: transparent;
}

button:disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

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

.entry-card {
    border: 1px solid #e3e8f2;
    border-radius: 10px;
    padding: 16px;
    background: #fafcff;
}

.organization-todo-column .entry-card,
.selected-day-panel .entry-card {
    padding: 8px 10px;
}

.organization-todo-column .entry-card h3,
.selected-day-panel .entry-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
}

.organization-todo-column .entry-card p,
.selected-day-panel .entry-card p {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.35;
}

.organization-todo-column .entry-card small,
.selected-day-panel .entry-card small {
    font-size: 10px;
    line-height: 1.3;
}

.organization-todo-column .entry-card small,
.selected-day-panel .entry-card small {
    font-size: 12px;
}

.entry-card p {
    white-space: pre-line;
}

.section-subtitle {
    margin: 6px 0 0;
    color: #64748b;
}

.entry-type-label {
    margin: 0 0 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

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

.entry-card-header h3,
.entry-card-header h4 {
    flex: 1 1 auto;
}

.entry-actions-top {
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: flex-start;
}

.entry-actions form {
    margin: 0;
}

.icon-button {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.icon-button svg {
    width: 14px;
    height: 14px;
    display: block;
}

.icon-button-neutral {
    color: #475569;
}

button.icon-button-neutral:hover,
.button-link.icon-button-neutral:hover {
    background: transparent !important;
    color: #475569 !important;
    border-color: transparent !important;
}

.icon-button-success {
    color: #475569;
    background: transparent;
}

button.icon-button-success:hover,
.button-link.icon-button-success:hover {
    background: transparent !important;
    color: #15803d !important;
    border-color: transparent !important;
}

.icon-button-danger {
    color: #475569;
    background: transparent;
}

button.icon-button-danger:hover,
.button-link.icon-button-danger:hover {
    background: transparent !important;
    color: #b91c1c !important;
    border-color: transparent !important;
}

.button-danger {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fecaca;
}

.button-danger:hover,
.button-danger-subtle:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.error-message {
    color: #b91c1c;
    font-weight: 600;
}

.info-message {
    color: #1d4ed8;
    font-weight: 600;
}

.message-slot {
    min-height: 28px;
    margin: 10px 0 14px;
}

.message-slot .info-message,
.message-slot .error-message {
    margin: 0;
}

main > form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

small {
    color: #666;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    color: white;
    padding: 12px 24px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

.bell-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    margin-left: 0 !important;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bell-link.active {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
}

.bell-link.active .nav-label {
    color: #facc15;
}

.bell-link.critical {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
}

.bell-link.critical .nav-label {
    color: #ef4444;
}

.bell-link:hover {
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-username {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-profile-link {
    color: white;
    text-decoration: none;
}

.nav-profile-link:hover {
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none !important;
}

.nav-link-dynamic.is-hidden {
    display: none;
}

.nav-left a {
    font-weight: bold;
    font-size: 18px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.notification-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #facc15;
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.notification-badge.critical {
    background: #ef4444;
    color: #ffffff;
}

.notification-badge.is-hidden {
    display: none;
}

.notification-card-critical {
    border-left: 4px solid #dc2626;
    background: #fff7f7;
}

.notification-severity-label {
    margin: 0 0 10px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-hero {
    padding: 20px 0 12px;
}

.dashboard-hero-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.dashboard-eyebrow {
    margin: 0 0 8px;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-hero-copy {
    max-width: 760px;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dashboard-hero-text {
    margin: 12px 0 0;
    max-width: 62ch;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}

.dashboard-welcome-line {
    display: block;
    color: #0f172a;
    font-weight: 700;
}

.dashboard-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-editor-section {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fffdf8;
}

.news-editor-form {
    max-width: 760px;
}

.news-priority-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 2px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.news-priority-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.news-archive-list {
    display: grid;
    gap: 12px;
}

.news-current-section {
    margin-top: 6px;
}

.news-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 0 2px;
}

.news-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 1.6vw, 1.7rem);
    letter-spacing: -0.02em;
}

.news-section-kicker {
    margin: 0 0 6px;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-month-pill {
    margin: 0;
    padding: 6px 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #b45309;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.news-archive-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fcfdff;
    overflow: hidden;
}

.news-archive-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
    color: #334155;
}

.news-archive-item summary::-webkit-details-marker {
    display: none;
}

.news-archive-item[open] summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fbff;
}

.news-archive-item .entries-list {
    padding: 16px;
}

.profile-shell {
    max-width: 1080px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: stretch;
}

.profile-layout > .profile-card {
    margin-top: 0;
}

.profile-card {
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fcfdff;
}

.readonly-field {
    background: #f1f5f9;
    color: #475569;
    border-color: #d8e1eb;
}

.input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.profile-subform + .profile-subform {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.news-card {
    border-left: 4px solid #f59e0b;
}

.news-card-priority {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.news-kicker {
    margin: 0 0 10px;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-kicker-priority {
    color: #b91c1c;
}

.news-meta-secondary {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.news-manage-actions {
    margin-top: 14px;
}

.entry-card-event {
    border-left: 4px solid #2563eb;
    background: #f8fbff;
}

.organization-todo-column .entry-card {
    border-left: 4px solid #f59e0b;
}

.organization-todo-column .entry-card.entry-card-done {
    border-left-color: #16a34a;
}

.organization-todo-column .entry-card.entry-card-overdue {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.entry-card-done {
    border-left: 4px solid #16a34a;
    background: #f6fef8;
}

.entry-card-done h3,
.entry-card-done p,
.entry-card-done small {
    opacity: 0.75;
}

.conditional-field.is-hidden {
    display: none;
}

.planner-calendar-shell {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.organization-layout {
    display: grid;
    grid-template-columns: minmax(395px, 0.95fr) minmax(455px, 1.05fr);
    gap: 12px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.organization-main-column {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.organization-main-column > p {
    margin-bottom: 0;
}

.organization-main-column .message-slot {
    margin-top: 0;
}

.planner-calendar-compact {
    max-width: 730px;
}

.organization-todo-column,
.organization-notes-column {
    min-width: 0;
}

.organization-todo-column {
    display: flex;
    align-self: stretch;
    min-height: 0;
    height: 100%;
}

.organization-todos-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin-top: 0;
    padding-bottom: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.organization-todo-column > .organization-todos-shell {
    height: 100%;
}

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

.planning-section-header h2,
.planning-section-header h3 {
    margin: 0;
}

.inline-entry-card {
    margin-bottom: 12px;
    background: #fcfdff;
    border-style: dashed;
}

.inline-entry-card.is-hidden {
    display: none;
}

.inline-entry-form {
    width: 100%;
    margin-top: 10px;
}

.selected-day-panel .inline-entry-card {
    max-height: none;
    overflow: visible;
}

.selected-day-panel .inline-entry-form {
    gap: 10px;
}

.selected-day-panel .inline-entry-form .form-group {
    gap: 6px;
}

.selected-day-panel .inline-entry-form input,
.selected-day-panel .inline-entry-form textarea {
    padding: 10px;
}

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

.planner-calendar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.planner-calendar-actions form {
    margin: 0;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 8px;
}

.calendar-toolbar h3 {
    margin: 0;
    font-size: 18px;
}

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

.calendar-weekday {
    padding: 6px 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 60px;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
}

.calendar-day:hover {
    background: #f8fbff;
    text-decoration: none;
}

.calendar-day.is-muted {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-day.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.calendar-day.is-today .calendar-day-number {
    color: #1d4ed8;
}

.calendar-day-number {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.calendar-day-count {
    display: block;
    margin-top: 4px;
    color: #475569;
    font-size: 10px;
}

.selected-day-panel {
    margin-top: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.pending-invitations-panel {
    margin-top: 12px;
}

.pending-invitations-header {
    margin-bottom: 8px;
}

.pending-invitations-list {
    gap: 8px;
    margin-bottom: 4px;
}

.pending-invitation-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: #1e293b;
    border-left: 4px solid #f59e0b;
    background: #fffaf0;
}

.pending-invitation-card:hover {
    text-decoration: none;
    background: #fff3dd;
}

.pending-invitations-empty {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
}

.event-location-row a {
    color: #b45309;
    text-decoration: none;
}

.event-location-row a:hover {
    color: #92400e;
    text-decoration: underline;
}

.location-suggestions {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.location-suggestion-item {
    justify-content: flex-start;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 0;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    text-align: left;
}

.location-suggestion-item:hover {
    background: #fff3dd !important;
    color: #92400e !important;
}

.entry-form-grid-address {
    display: grid;
    grid-template-columns: 0.7fr 0.5fr 0.8fr;
    gap: 10px;
}

.selected-day-panel .entries-list {
    gap: 10px;
}

.selected-day-panel .entry-card {
    padding: 8px 10px;
}

.organization-todo-column .entry-actions,
.selected-day-panel .entry-actions {
    margin-top: 10px;
    gap: 6px;
}

.todo-section-label {
    margin: 0 0 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.todo-sections-stack {
    display: grid;
    grid-template-rows: minmax(0, 58fr) minmax(0, 42fr);
    gap: 14px;
    flex: 1 1 auto;
    height: calc(100% - 10px);
    min-height: 0;
    overflow: hidden;
}

.todo-list-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fcfdff;
    padding: 12px;
    min-height: 0;
    overflow: hidden;
}

.todo-list-panel-open {
    min-height: 0;
}

.todo-list-panel-done {
    min-height: 0;
}

.todo-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 900px) {
    body.organization-page {
        height: auto;
        overflow: auto;
    }

    main.organization-main-shell {
        height: auto;
        margin: 40px auto;
        overflow: visible;
    }

    .organization-layout,
    .planner-section-header,
    .planning-section-header,
    .calendar-toolbar,
    .dashboard-hero-split,
    .news-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .organization-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 8px;
    }

    .calendar-day {
        min-height: 76px;
        padding: 10px;
    }

    .news-month-pill {
        align-self: flex-start;
    }
}

.button-danger-subtle {
    background: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

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

.table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 6px;
    flex-wrap: wrap;
    max-width: none;
    width: 100%;
}

main > form.search-form {
    flex-direction: row;
    max-width: 100%;
    justify-content: flex-start;
}

.search-form input[type="text"] {
    min-width: 260px;
    max-width: 420px;
}

.coordinator-page-shell {
    display: grid;
    gap: 8px;
}

.admin-page-shell {
    display: grid;
    gap: 8px;
}

.coordinator-page-header {
    display: grid;
    gap: 6px;
}

.admin-page-header {
    display: grid;
    gap: 6px;
}

.coordinator-page-title,
.coordinator-section-title {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.coordinator-search-form {
    margin: 0;
}

.coordinator-page-shell .message-slot {
    margin: 4px 0 8px;
}

.admin-page-shell .message-slot {
    margin: 4px 0 8px;
}

.coordinator-search-form input[type="text"] {
    min-width: min(100%, 360px);
    max-width: 460px;
    background: #ffffff;
    border-color: #dbe4f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.coordinator-section-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.coordinator-archive-section {
    display: grid;
    gap: 10px;
}

.coordinator-table-wrap {
    margin: 0;
    max-height: none;
    border-radius: 16px;
    box-shadow: none;
}

.admin-table-wrap {
    margin: 0;
    max-height: none;
    overflow-y: visible;
    border-radius: 16px;
    box-shadow: none;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.users-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fbff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.users-table th,
.users-table td {
    border-bottom: 1px solid #e3e8f2;
    text-align: left;
    padding: 9px 10px;
    vertical-align: middle;
    word-break: normal;
}

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

.users-table tbody tr:hover {
    background: #f8fbff;
}

.coordinator-user-row {
    cursor: pointer;
}

.coordinator-user-row td {
    height: 32px;
}

.admin-user-row td {
    height: 32px;
}

.coordinator-user-row.is-open {
    background: #eef6ff;
}

.coordinator-details-row td {
    padding: 0;
    background: #f8fbff;
}

.coordinator-details-row.is-hidden {
    display: none;
}

.coordinator-details-panel {
    padding: 8px 12px;
    border-top: 1px solid #dbe4f0;
    overflow-x: auto;
}

.coordinator-dienstnummer-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    min-width: 0;
    flex-wrap: wrap;
}

.coordinator-dienstnummer-label {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.coordinator-dienstnummer-input {
    width: 100%;
    max-width: 140px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: #ffffff;
}

.coordinator-checklist-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-align: center;
    line-height: 1.25;
}

.coordinator-checklist-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
    gap: 8px;
    min-height: 32px;
    width: 100%;
}

.coordinator-checklist-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    flex: 0 0 auto;
}

.coordinator-checklist-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.coordinator-dienstnummer-label {
    flex: 0 0 auto;
}

.progress-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.progress-track {
    flex: 0 0 132px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #facc15 0%, #f59e0b 100%);
}

.progress-value {
    min-width: 40px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.coordinator-action-stack {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.coordinator-action-stack button {
    white-space: nowrap;
}

.coordinator-action-icons {
    gap: 8px;
}

.coordinator-action-icons .inline-form {
    gap: 0;
}

.coordinator-action-icons .icon-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

.coordinator-action-icons .icon-button svg {
    width: 15px;
    height: 15px;
}

.users-table th:first-child,
.users-table td:first-child {
    width: 36px;
    min-width: 36px;
    padding-right: 6px;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    width: 17%;
    min-width: 210px;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
    width: 22%;
    min-width: 230px;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    width: 11%;
    min-width: 120px;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
    min-width: 140px;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    min-width: 125px;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7),
.users-table th:nth-child(8),
.users-table td:nth-child(8),
.users-table th:nth-child(9),
.users-table td:nth-child(9) {
    width: 15%;
}

.coordinator-table-wrap .users-table th:nth-child(6),
.coordinator-table-wrap .users-table td:nth-child(6) {
    min-width: 200px;
    width: 20%;
}

.coordinator-table-wrap .users-table th:nth-child(7),
.coordinator-table-wrap .users-table td:nth-child(7) {
    min-width: 92px;
    width: 9%;
}

.coordinator-table-wrap .users-table th:nth-child(8),
.coordinator-table-wrap .users-table td:nth-child(8) {
    min-width: 120px;
    width: 11%;
}

.coordinator-archive-table th:nth-child(4),
.coordinator-archive-table td:nth-child(4),
.coordinator-archive-table th:nth-child(5),
.coordinator-archive-table td:nth-child(5),
.coordinator-archive-table th:nth-child(6),
.coordinator-archive-table td:nth-child(6),
.coordinator-archive-table th:nth-child(7),
.coordinator-archive-table td:nth-child(7),
.coordinator-archive-table th:nth-child(8),
.coordinator-archive-table td:nth-child(8) {
    width: 11%;
    min-width: 0;
}

.coordinator-archive-table {
    table-layout: fixed;
}

.coordinator-archive-table th,
.coordinator-archive-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coordinator-archive-table th:first-child,
.coordinator-archive-table td:first-child {
    width: 4%;
    min-width: 36px;
}

.coordinator-archive-table th:nth-child(2),
.coordinator-archive-table td:nth-child(2) {
    width: 18%;
    min-width: 0;
}

.coordinator-archive-table th:nth-child(3),
.coordinator-archive-table td:nth-child(3) {
    width: 23%;
    min-width: 0;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-wrap: nowrap;
}

.role-form {
    flex-direction: row;
}

.users-table td .inline-form,
.users-table td .role-form {
    align-items: center;
}

.admin-action-cell {
    vertical-align: middle;
}

.admin-action-cell > form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.admin-users-table .admin-role-form select,
.admin-users-table .admin-role-form button,
.admin-users-table .admin-delete-form button {
    height: 32px;
    font-size: 14px;
}

.admin-users-table .admin-role-form select {
    width: 100%;
    max-width: 148px;
    min-width: 0;
    padding: 4px 24px 4px 8px;
    line-height: 1.15;
}

.admin-users-table {
    table-layout: fixed;
}

.admin-users-table th,
.admin-users-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
    width: 6%;
    min-width: 64px;
    padding-right: 4px;
}

.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
    width: 8%;
    min-width: 92px;
    padding-left: 4px;
    padding-right: 4px;
}

.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8) {
    width: 9%;
    min-width: 92px;
}

.admin-users-table th:nth-child(9),
.admin-users-table td:nth-child(9) {
    width: 11%;
    min-width: 120px;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
    width: 12%;
    min-width: 140px;
}

.admin-role-form-locked select {
    background: #eef2f7;
    color: #64748b;
    border-color: #d8e0ec;
    cursor: not-allowed;
}

.admin-users-table .icon-button:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.admin-delete-form button {
    align-self: center;
}

.read-label {
    color: #475569;
    font-size: 14px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.auth-panel {
    position: relative;
}

.auth-panel-copy {
    padding: 36px 10px 24px;
}

.auth-panel-copy::before {
    content: "";
    position: absolute;
    inset: 18px auto auto -18px;
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.22), rgba(249, 115, 22, 0.08));
    filter: blur(1px);
    z-index: 0;
}

.auth-panel-copy > * {
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-shell h1 {
    margin: 0;
    max-width: 10ch;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.auth-lead {
    margin: 20px 0 0;
    max-width: 56ch;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.auth-highlight-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-highlight-card,
.auth-rule-box {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.auth-highlight-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
}

.auth-highlight-card strong,
.auth-rule-box h2 {
    color: #0f172a;
    font-size: 1rem;
}

.auth-highlight-card span,
.auth-rule-list {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.auth-rule-box {
    margin-top: 28px;
    padding: 20px 22px;
}

.auth-rule-box h2 {
    margin: 0 0 10px;
}

.auth-rule-list {
    margin: 0;
    padding-left: 18px;
}

.auth-rule-list li + li {
    margin-top: 8px;
}

.auth-card {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.auth-card-header {
    margin-bottom: 12px;
}

.auth-card-kicker {
    margin: 0 0 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 2vw, 2rem);
    letter-spacing: -0.03em;
}

.auth-card-text {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.auth-message-slot {
    min-height: 24px;
    margin: 14px 0 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: none;
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field span {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.auth-field input {
    padding: 14px 15px;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    background: #fbfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.auth-field-wide,
.auth-submit-wide {
    grid-column: 1 / -1;
}

.auth-submit {
    align-self: stretch;
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.24);
}

.auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
    border-color: transparent;
    color: #ffffff;
}

.auth-switch-text {
    margin: 18px 0 0;
    color: #64748b;
    text-align: center;
}

.auth-switch-text a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

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

    .auth-panel-copy {
        padding: 20px 2px 0;
    }

    .auth-shell h1 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    main.auth-main {
        max-width: calc(100vw - 20px);
        margin-top: 18px;
    }

    .auth-card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-wide,
    .auth-submit-wide {
        grid-column: auto;
    }
}

body:not(.auth-page) {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, 0.2), transparent 24%),
        radial-gradient(circle at right top, rgba(20, 184, 166, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef4f7 100%);
    color: #172033;
}

body:not(.auth-page) main:not(.auth-main):not(.organization-main-shell) {
    margin: 28px auto 40px;
    background: rgba(255, 255, 255, 0.84);
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

body:not(.auth-page) input,
body:not(.auth-page) textarea,
body:not(.auth-page) select {
    background: rgba(255, 255, 255, 0.94);
}

body:not(.auth-page) input:focus,
body:not(.auth-page) textarea:focus,
body:not(.auth-page) select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

body:not(.auth-page) button,
body:not(.auth-page) .button-link,
body:not(.auth-page) .dashboard-mode-toggle,
body:not(.auth-page) .button-subtle {
    background: rgba(255, 255, 255, 0.92);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body:not(.auth-page) button:hover,
body:not(.auth-page) .button-link:hover,
body:not(.auth-page) .dashboard-mode-toggle:hover,
body:not(.auth-page) .button-subtle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.88);
    padding: 14px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.navbar a:hover {
    text-decoration: none;
}

.nav-left a {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-right > a:not(.bell-link):not(.nav-profile-link) {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-right > a:not(.bell-link):not(.nav-profile-link):hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-hero {
    padding: 8px 0 12px;
}

.page-hero {
    margin-bottom: 22px;
    padding: 10px 2px 0;
}

.page-hero-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.page-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.page-lead {
    margin: 12px 0 0;
    max-width: 62ch;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.page-surface {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.page-search-form {
    width: min(100%, 420px);
}

.page-search-form input {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
}

.entry-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.notification-card-critical {
    background: linear-gradient(180deg, #fff8f8, #fff3f3);
}

.news-editor-section {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf8, #fffbf3);
    box-shadow: 0 18px 38px rgba(180, 83, 9, 0.08);
}

.news-archive-item {
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.profile-shell {
    display: grid;
    gap: 22px;
}

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

.profile-card {
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

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

.readonly-field {
    background: #f6f8fb;
    color: #475569;
}

.profile-subform + .profile-subform {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.coordinator-page-shell,
.admin-page-shell {
    gap: 18px;
}

.coordinator-page-shell .message-slot,
.admin-page-shell .message-slot {
    margin: 0;
}

.entries-list > .entry-card h3,
.entries-list > .entry-card h4 {
    color: #0f172a;
}

.entries-list > .entry-card small {
    display: block;
    margin-top: 10px;
    color: #64748b;
}

.table-wrap,
.coordinator-table-wrap,
.admin-table-wrap {
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.92);
}

th,
td {
    padding: 14px 12px;
    text-align: left;
}

th {
    color: #334155;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #f8fafc;
}

.users-table tbody tr:hover,
tr:hover td {
    background: #fbfdff;
}

@media (max-width: 960px) {
    .page-hero-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .page-search-form {
        width: 100%;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .navbar {
        padding: 12px 14px;
    }

    body:not(.auth-page) main:not(.auth-main):not(.organization-main-shell) {
        margin: 18px auto 28px;
        padding: 18px;
        border-radius: 20px;
    }

    .page-surface,
    .profile-card {
        padding: 18px;
        border-radius: 20px;
    }

    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }
}
