:root {
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.85);
    --surface-alt: rgba(15, 23, 42, 0.65);
    --accent: #38bdf8;
    --accent-dark: #0284c7;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --error: #f87171;
    --success: #34d399;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color-scheme: dark;
}

html {
    min-height: 100%;
    background-color: #020617;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 20% 20%, #1e293b, #0f172a 60%);
    background-color: #0f172a;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.app-header,
.app-footer {
    padding: 1rem 1.5rem;
    background: transparent;
}

.app-brand {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.app-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 3rem;
}

.auth-card,
.dashboard-card {
    width: min(420px, 100%);
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(8, 47, 73, 0.35);
    backdrop-filter: blur(18px);
}

.dashboard-card {
    width: min(960px, 100%);
}

.incident-mode-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.incident-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--surface-alt);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.incident-mode-card .btn {
    align-self: flex-start;
}

.incident-mode-card--disabled {
    opacity: 0.65;
}

.incident-mode-card--disabled .btn {
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .incident-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-card h1,
.dashboard-card h1,
.dashboard-card h2 {
    margin: 0 0 1.5rem;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.auth-divider {
    margin: 2rem 0 1.5rem;
    position: relative;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.form-grid {
    display: grid;
    gap: 1.2rem;
}

.incident-ai-settings-form {
    gap: 1.5rem;
}

.form-section {
    display: grid;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.form-section__header {
    display: grid;
    gap: 0.35rem;
}

.form-section__header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.question-list {
    display: grid;
    gap: 0.9rem;
}

.question-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.question-row__input {
    flex: 1 1 260px;
    min-width: 0;
}

.question-row__input span {
    margin-bottom: 0.35rem;
}

.question-row__input input {
    width: 100%;
}

.question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-actions .btn {
    flex-shrink: 0;
}

.form-grid.readonly input[readonly] {
    cursor: default;
    background: rgba(15, 23, 42, 0.7);
    border-style: dashed;
}

.manual-input {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.manual-input[hidden] {
    display: none !important;
}

.manual-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    gap: 1.2rem;
}

.form-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

label span {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="time"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(30, 58, 138, 0.35);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

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

select {
    cursor: pointer;
}

.file-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.file-list li {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.3);
}

.file-list__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.file-list__actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-upload {
    display: block;
}

.time-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.time-picker select {
    width: 100%;
    min-width: 0;
    max-width: 160px;
}

.time-picker-separator {
    color: var(--muted);
    font-weight: 600;
    justify-self: center;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="file"] {
    padding: 0.6rem 1rem;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
    background: rgba(148, 163, 184, 0.35);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.checkbox-inline input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-small {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0f172a;
    box-shadow: 0 20px 35px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: 0 20px 35px rgba(248, 113, 113, 0.2);
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: rgba(248, 113, 113, 0.3);
    box-shadow: 0 22px 38px rgba(248, 113, 113, 0.25);
}

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

.btn[disabled],
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.alert-success {
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #bbf7d0;
}

.invite-result {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 0.8rem;
}

.invite-result label {
    display: grid;
    gap: 0.4rem;
}

.invite-result input[readonly] {
    cursor: text;
    background: rgba(15, 23, 42, 0.7);
}

.invite-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.copy-feedback {
    min-height: 1.1rem;
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.copy-feedback--success {
    color: var(--success);
}

.copy-feedback--error {
    color: var(--error);
}

.auth-intro {
    margin: -0.5rem 0 1.5rem;
    color: var(--muted);
    line-height: 1.5;
}

.invite-preview {
    margin-bottom: 1.2rem;
    display: grid;
    gap: 0.4rem;
}

.invite-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.invite-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-header p {
    margin: 0;
    color: var(--muted);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.dashboard-body {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    display: grid;
    gap: 2rem;
}

.dashboard-overview {
    display: grid;
    gap: 2rem;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.dashboard-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.38), rgba(56, 189, 248, 0.28));
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: rgba(226, 232, 240, 0.92);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 160px;
    text-align: center;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
}

.dashboard-stat-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
    display: grid;
    gap: 0.75rem;
    min-height: 100%;
}

.dashboard-stat-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.dashboard-stat-card-link:hover,
.dashboard-stat-card-link:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(140deg, rgba(30, 64, 175, 0.32), rgba(56, 189, 248, 0.2));
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.42);
    outline: none;
}

.dashboard-stat-card-link:hover::after,
.dashboard-stat-card-link:focus-visible::after {
    border-color: rgba(148, 196, 255, 0.4);
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    pointer-events: none;
}

.dashboard-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85);
}

.dashboard-stat-period {
    font-size: 0.85rem;
    color: var(--muted);
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-stat-meta {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-stat-meta-inline {
    align-items: center;
}

.dashboard-stat-dot {
    color: rgba(148, 163, 184, 0.7);
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-panel-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.dashboard-panel-meta {
    font-size: 0.9rem;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.checklist-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-task-item {
    display: grid;
    gap: 0.8rem;
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.5);
}

.checklist-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.checklist-task-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.checklist-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.checklist-task-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.checklist-task-sublist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.checklist-task-name {
    font-weight: 600;
}

.checklist-task-frequency {
    font-size: 0.85rem;
    color: var(--muted);
}

.checklist-form {
    display: grid;
    gap: 1.4rem;
}

.checklist-form-items {
    display: grid;
    gap: 1rem;
}

.checklist-form-item {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.8rem;
}

.checklist-form-item legend {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.checklist-form-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.checklist-form-option input[type="checkbox"],
.checklist-form-option input[type="radio"] {
    accent-color: var(--accent);
}

.checklist-form-hint {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.checklist-form-hint input {
    width: 100%;
}

.active-entries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.active-entry {
    list-style: none;
    height: 100%;
}

.active-entry-link {
    display: grid;
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.24), rgba(56, 189, 248, 0.16));
    border: 1px solid rgba(56, 189, 248, 0.42);
    box-shadow: 0 16px 36px rgba(8, 47, 73, 0.38);
    color: inherit;
    text-decoration: none;
    gap: 0.6rem;
    height: 100%;
    align-content: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.active-entry-link:hover,
.active-entry-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(8, 47, 73, 0.5);
    border-color: rgba(96, 165, 250, 0.88);
}

.active-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.active-entry-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.active-entry-meta {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.active-entry-times {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    font-size: 0.9rem;
    text-align: right;
    line-height: 1.2;
}

.active-entry-clock-in {
    font-weight: 600;
    white-space: nowrap;
}

.active-entry-duration {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.active-entry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(56, 189, 248, 0.95);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.active-entry-object {
    color: rgba(165, 180, 252, 0.95);
    background: rgba(165, 180, 252, 0.16);
    border-color: rgba(165, 180, 252, 0.35);
}

.active-entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.78);
}

.active-entry-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.4;
}

.active-entry-location-icon {
    font-size: 0.95em;
    line-height: 1;
}

.placeholder {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(30, 64, 175, 0.18);
    border: 1px solid rgba(30, 64, 175, 0.3);
}

.placeholder-title {
    display: block;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.list-section {
    margin-top: 2.5rem;
}

.list-section h2 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.customer-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.customer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.customer-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.customer-card-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.customer-summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.customer-summary-item strong {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text);
}

.customer-card-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.admin-list li {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-email {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-date {
    justify-self: end;
    color: var(--muted);
    font-size: 0.85rem;
}

.customer-features {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 1rem;
}

.customer-detail {
    display: grid;
    gap: 2.5rem;
}

.customer-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    display: grid;
    gap: 0.35rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
}

.customer-features-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.customer-features h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.feature-assignment-form {
    display: grid;
    gap: 0.8rem;
}

.feature-checkbox-list {
    display: grid;
    gap: 0.75rem;
}

.feature-checkbox {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
}

.feature-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.feature-checkbox strong {
    display: block;
    font-size: 0.95rem;
}

.feature-checkbox-code {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-checkbox small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.addon-assignment-form {
    display: grid;
    gap: 1.5rem;
}

.addon-assignment-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.addon-assignment-card {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    display: grid;
    gap: 1rem;
}

.addon-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.addon-assignment-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.addon-assignment-count {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-feature-active {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.feature-overview {
    margin-top: 1.6rem;
    display: grid;
    gap: 1rem;
}

.feature-overview-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.feature-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.feature-overview-item {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
    display: grid;
    gap: 0.6rem;
}

.feature-overview-header {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.feature-overview-name {
    font-weight: 600;
}

.feature-overview-code {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-overview-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.feature-list-item {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    display: grid;
    gap: 0.75rem;
}

.feature-list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.feature-list-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.feature-list-code {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-list-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.feature-list-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-form {
    margin-top: 1.5rem;
}

.patrol-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

.patrol-card {
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    display: grid;
    gap: 1rem;
}

.patrol-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.patrol-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.patrol-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-card-meta li {
    display: grid;
    gap: 0.2rem;
}

.patrol-card-meta strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.72);
}

.patrol-card-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.patrol-checkpoint-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.92);
}

.manage-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.manage-card {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 0.8rem;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
}

.manage-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.manage-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.manage-card .btn {
    justify-self: start;
    align-self: end;
}

@media (max-width: 680px) {
    .auth-card,
    .dashboard-card {
        padding: 1.6rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

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

    .dashboard-stat-card {
        padding: 1.4rem;
    }

    .dashboard-stat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .dashboard-body {
        padding: 2rem 1.4rem;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        justify-content: center;
    }

    .dashboard-nav-link {
        width: 100%;
    }

    .active-entries {
        grid-template-columns: 1fr;
    }

    .placeholder {
        padding: 1.8rem 1.4rem;
    }

    .active-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .active-entry-times {
        align-items: flex-start;
        text-align: left;
    }

    .admin-list li {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .admin-date {
        justify-self: start;
    }

    .time-card-page {
        width: 100%;
    }

    .time-overview-grid {
        grid-template-columns: 1fr;
    }

    .time-summary {
        grid-template-columns: 1fr;
    }

    .time-filter-grid {
        grid-template-columns: 1fr;
    }

    .time-filter-actions {
        width: 100%;
    }

    .time-filter-actions .btn {
        flex: 1 1 100%;
    }

    .time-filter-chips {
        justify-content: flex-start;
    }

    .patrol-card-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

}

@media (max-width: 900px) {
    .time-table-wrapper {
        overflow-x: visible;
    }

    .time-table {
        width: 100%;
        min-width: 0;
    }

    .time-table thead {
        display: none;
    }

    .time-table tbody {
        display: grid;
        gap: 1rem;
    }

    .time-table tbody tr {
        display: grid;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 184, 0.2);
        background: rgba(15, 23, 42, 0.6);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .time-table tbody tr.is-active {
        border-color: rgba(56, 189, 248, 0.45);
        border-left-width: 1px;
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
    }

    .time-table tbody tr td {
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        min-width: 0;
        word-break: break-word;
    }

    .time-table tbody tr td::before {
        content: attr(data-title);
        display: block;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .time-table tbody tr td[data-title="Datum"] {
        grid-column: 1 / -1;
        gap: 0.4rem;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .time-table tbody tr td[data-title="Datum"]::before {
        display: none;
    }

    .time-table tbody tr td[data-title="Start"],
    .time-table tbody tr td[data-title="Ende"] {
        align-self: stretch;
    }

    .time-table tbody tr td[data-title="Start"] {
        grid-column: 1 / 2;
    }

    .time-table tbody tr td[data-title="Ende"] {
        grid-column: 2 / 3;
    }

    .time-table tbody tr td[data-title="Dauer"],
    .time-table tbody tr td[data-title="Position"],
    .time-table tbody tr td[data-title="Objekt"],
    .time-table tbody tr td[data-title="Mitarbeiter"],
    .time-table tbody tr td[data-title="Status"] {
        grid-column: 1 / -1;
    }

    .time-table tbody tr td[data-title="Status"] {
        font-weight: 600;
    }
}

@media (max-width: 600px) {
    .time-filter-grid {
        gap: 0.8rem;
    }

    .time-filter-chip {
        width: 100%;
    }

    .time-filter-grid select,
    .time-filter-grid input[type="date"] {
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }

    .time-entry-time {
        flex-wrap: wrap;
        white-space: normal;
        row-gap: 0.2rem;
    }
}

@media (max-width: 480px) {
    .time-table tbody tr {
        grid-template-columns: minmax(0, 1fr);
    }

    .time-table tbody tr td[data-title="Start"],
    .time-table tbody tr td[data-title="Ende"] {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


.schedule-section {
    margin-top: 2rem;
    display: grid;
    gap: 1.4rem;
}

.schedule-header {
    display: grid;
    gap: 0.6rem;
}

.schedule-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.schedule-list {
    display: grid;
    gap: 1rem;
}

.schedule-item {
    padding: 1.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 1rem;
}

.schedule-item-body {
    display: grid;
    gap: 1rem;
}

.schedule-label {
    display: grid;
    gap: 0.4rem;
}

.schedule-times {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.schedule-times label {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    min-width: 0;
}

.schedule-times input[type="time"] {
    max-width: 160px;
    width: 100%;
    min-width: 0;
}

.schedule-weekdays {
    display: grid;
    gap: 0.4rem;
}

.schedule-weekdays-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.weekday-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.schedule-item .btn {
    justify-self: start;
}

.dashboard-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.time-card-page {
    width: min(1080px, 100%);
}

.time-overview {
    display: grid;
    gap: 2.5rem;
}

.time-overview-section {
    display: grid;
    gap: 1.4rem;
}

.time-overview-header {
    display: grid;
    gap: 0.35rem;
}

.time-overview-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.time-overview-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.time-overview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.time-card {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1.2rem;
    min-height: 100%;
}

.time-card-header {
    display: grid;
    gap: 0.4rem;
}

.time-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.time-card-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.time-card-stats {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.time-card-stats div {
    display: grid;
    gap: 0.35rem;
}

.time-card-stats dt {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.time-card-stats dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.time-card .btn {
    justify-self: start;
}

.portal-card-list {
    display: grid;
    gap: 1.5rem;
}

.portal-card {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1.4rem;
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.portal-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.portal-card-meta {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.portal-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.portal-card-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.portal-card-form label {
    display: grid;
    gap: 0.4rem;
}

@media (max-width: 640px) {
    .portal-card-form {
        grid-template-columns: 1fr;
    }

    .portal-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-card-badges {
        justify-content: flex-start;
    }
}

.time-detail {
    display: grid;
    gap: 2rem;
}

.time-summary {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.time-summary-value {
    font-size: 1.4rem;
    font-weight: 600;
}

.time-summary-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.time-summary-range {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.time-export-actions {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.time-alert {
    margin: 1.4rem 0 0;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.32);
    color: #fecaca;
}

.time-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.time-alert-error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.32);
}

.time-filter {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.9rem;
}

.time-delete {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.time-delete h2 {
    margin: 0 0 0.75rem;
}

.time-delete p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.time-delete-form {
    display: grid;
    gap: 0.9rem;
    max-width: 420px;
}

.time-delete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.time-filter-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
}

.time-filter-grid label {
    min-width: 0;
}

.time-filter-grid select,
.time-filter-grid input[type="date"] {
    min-width: 0;
    width: 100%;
}

.time-filter label {
    display: grid;
    gap: 0.4rem;
}

.time-filter-checkbox {
    position: relative;
    display: inline-flex;
    align-self: start;
    gap: 0;
}

.toggle-chip {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.toggle-chip input[type="checkbox"] {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.toggle-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease;
    text-align: center;
}

.toggle-chip span:hover {
    background: rgba(148, 163, 184, 0.2);
}

.toggle-chip input[type="checkbox"]:checked + span {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: rgba(56, 189, 248, 0.8);
    color: #0f172a;
    box-shadow: 0 18px 32px rgba(56, 189, 248, 0.28);
}

.toggle-chip input[type="checkbox"]:focus-visible + span {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
}

.toggle-chip--small span {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.toggle-chip--block {
    width: 100%;
}

.toggle-chip--block span {
    width: 100%;
}

.time-filter-checkbox input[type="checkbox"] {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.time-filter-checkbox span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease;
}

.time-filter-checkbox span:hover {
    background: rgba(148, 163, 184, 0.2);
}

.time-filter-checkbox input[type="checkbox"]:checked + span {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: rgba(56, 189, 248, 0.8);
    color: #0f172a;
    box-shadow: 0 18px 32px rgba(56, 189, 248, 0.28);
}

.time-filter-checkbox input[type="checkbox"]:focus-visible + span {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
}

.time-filter-submit {
    display: none;
}

.time-filter-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.time-position-filter {
    margin-top: 1.6rem;
    display: grid;
    gap: 0.8rem;
}

.time-object-filter {
    margin-top: 1.6rem;
    max-width: 280px;
}

.time-object-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.time-object-filter select {
    width: 100%;
}

.time-filter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.time-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.time-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    row-gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    text-align: left;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.45);
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.time-filter-chip span {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.time-filter-chip:hover {
    border-color: rgba(96, 165, 250, 0.6);
    color: var(--text);
}

.time-filter-chip:hover span {
    background: rgba(56, 189, 248, 0.28);
}

.time-filter-chip.is-active {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.18);
    color: var(--text);
}

.time-filter-chip.is-active span {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text);
}

.time-table-wrapper {
    margin-top: 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
    overflow-x: auto;
}

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

.time-table th,
.time-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    word-break: normal;
}

.time-table thead th {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.time-table tbody tr.is-active {
    border-left: 3px solid rgba(56, 189, 248, 0.75);
}

.time-table-primary {
    font-weight: 600;
}

.time-table-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.time-entry-time {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    white-space: nowrap;
}

.time-entry-value {
    font-weight: 600;
}

.time-entry-suffix {
    font-size: 0.85rem;
    color: var(--muted);
}

.time-entry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.time-entry-menu {
    position: relative;
}

.time-entry-menu summary::-webkit-details-marker {
    display: none;
}

.time-entry-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.time-entry-menu-button:focus {
    outline: none;
}

.time-entry-menu-button span[aria-hidden="true"] {
    font-size: 1.25rem;
    line-height: 1;
}

.time-entry-menu-button:hover,
.time-entry-menu-button:focus-visible,
.time-entry-menu[open] .time-entry-menu-button {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.time-entry-menu[open] {
    z-index: 10;
}

.time-entry-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    min-width: 10rem;
    padding: 0.35rem 0.3rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.time-entry-menu-dropdown form {
    margin: 0;
}

.time-entry-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.time-entry-menu-item:hover,
.time-entry-menu-item:focus-visible {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text);
}

.time-entry-menu-item--danger {
    color: #fca5a5;
}

.time-entry-menu-item--danger:hover,
.time-entry-menu-item--danger:focus-visible {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.time-table tbody tr.is-active td[data-title="Ende"] .time-entry-value {
    color: var(--accent);
}

.time-month-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.time-month-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.time-month-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.time-month-name {
    font-size: 1rem;
    font-weight: 600;
}

.time-month-range {
    font-size: 0.85rem;
    color: var(--muted);
}

.time-month-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
}

.time-month-hours {
    font-size: 1rem;
    font-weight: 600;
}

.time-month-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.dashboard-actions .btn {
    white-space: nowrap;
}

.empty-state {
    margin-top: 2rem;
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.object-grid,
.shift-plan-grid {
    margin-top: 1.6rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.object-card,
.shift-plan-card {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 0.9rem;
}

.object-card-header,
.shift-plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.object-card-header h2,
.shift-plan-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    flex: 1 1 auto;
}

.object-count {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.object-description,
.object-address {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.object-meta,
.shift-plan-meta {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.object-meta div,
.shift-plan-meta div {
    display: grid;
    gap: 0.2rem;
}

.object-meta dt,
.shift-plan-meta dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.object-meta dd,
.shift-plan-meta dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.object-actions,
.shift-plan-actions {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: stretch;
    align-items: stretch;
}

.object-actions .btn,
.shift-plan-actions .btn {
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
}

.object-actions .btn.btn-secondary,
.shift-plan-actions .btn.btn-secondary {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: none;
}

.object-actions .btn.btn-secondary:hover,
.object-actions .btn.btn-secondary:focus-visible,
.shift-plan-actions .btn.btn-secondary:hover,
.shift-plan-actions .btn.btn-secondary:focus-visible {
    background: rgba(148, 163, 184, 0.28);
}

.manage-sections {
    display: grid;
    gap: 2.4rem;
}

.manage-section-header {
    display: grid;
    gap: 0.4rem;
}

.manage-section-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.manage-section-header p {
    margin: 0;
    color: var(--muted);
}

.manage-grid {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 1fr;
}

.manage-card {
    align-content: start;
}

@media (max-width: 640px) {
    .object-meta,
    .shift-plan-meta {
        grid-auto-flow: row;
    }

    .object-actions,
    .shift-plan-actions {
        grid-template-columns: 1fr;
    }

    .schedule-times {
        grid-template-columns: 1fr;
    }

    .time-month-item {
        align-items: flex-start;
        gap: 0.6rem;
    }

    .time-month-values {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 580px) {
    .schedule-times input[type="time"] {
        max-width: 100%;
        justify-self: start;
    }
}


.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-muted {
    background: rgba(148, 163, 184, 0.15);
    color: var(--muted);
}

.badge-success {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.badge-warning {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.badge-error {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}

.object-card-header h2 a,
.shift-plan-card-header h2 a {
    color: var(--text);
    text-decoration: none;
}

.object-card-header h2 a:hover,
.object-card-header h2 a:focus,
.shift-plan-card-header h2 a:hover,
.shift-plan-card-header h2 a:focus {
    color: var(--accent);
}

.object-detail {
    display: grid;
    gap: 2rem;
}

@media (min-width: 960px) {
    .object-detail {
        grid-template-columns: minmax(260px, 1fr) minmax(420px, 2fr);
    }
}

.object-info {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.object-info h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.object-info dl {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.object-info dl div {
    display: grid;
    gap: 0.4rem;
}

.object-info dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.object-info dd {
    margin: 0;
    line-height: 1.6;
}

.object-positions {
    display: grid;
    gap: 1.4rem;
}

.object-positions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.position-list {
    display: grid;
    gap: 1rem;
}

.position-card {
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1rem;
}

.position-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.position-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.position-delete-form {
    margin: 0;
    align-self: flex-end;
}

@media (max-width: 640px) {
    .position-header-meta {
        align-items: flex-start;
        width: 100%;
    }

    .position-delete-form {
        align-self: flex-start;
    }
}

.position-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.position-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.position-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.position-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.position-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.position-schedule-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
}

.position-schedule-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.position-schedule-time {
    font-weight: 600;
}

.position-schedule-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.position-handbook {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.position-handbook a {
    color: var(--accent);
    text-decoration: none;
}

.position-handbook a:hover,
.position-handbook a:focus {
    text-decoration: underline;
}

.schedule-assignment {
    display: grid;
    gap: 0.4rem;
}

.schedule-assignment select[hidden] {
    display: none;
}

.assignment-all {
    color: var(--muted);
    font-size: 0.9rem;
}

.schedule-assignment select {
    min-width: 180px;
}

.passkey-registration {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: grid;
    gap: 1rem;
}

.passkey-status {
    margin: 0;
    font-size: 0.9rem;
}

.passkey-status-success {
    color: var(--success);
}

.passkey-status-error {
    color: var(--error);
}

.passkey-status-info {
    color: var(--muted);
}

.btn-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.position-clock {
    display: grid;
    gap: 1.5rem;
}

.position-meta-info {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
}

.position-meta-info strong {
    color: var(--text);
    margin-right: 0.25rem;
}

.patrol-checkpoint-card {
    display: grid;
    gap: 1.5rem;
}

.patrol-checkpoint-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.patrol-checkpoint-meta strong {
    color: var(--text);
    margin-right: 0.25rem;
}

.passkey-login {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.recent-entries {
    display: grid;
    gap: 1rem;
}

.recent-entries h2 {
    margin: 0;
    font-size: 1.1rem;
}

.recent-entries-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.recent-entries-list li {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: grid;
    gap: 0.5rem;
}

.recent-entry-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.form-row-responsive {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.patrol-menu-card .manage-section-header h2 {
    margin-bottom: 0.4rem;
}

.patrol-intro {
    margin-bottom: 2rem;
    display: grid;
    gap: 1.2rem;
}

.patrol-guide {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.patrol-guide li {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    display: grid;
    gap: 0.45rem;
}

.patrol-guide strong {
    font-size: 1rem;
}

.patrol-mini-guide {
    margin-bottom: 1.6rem;
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    display: grid;
    gap: 0.8rem;
}

.patrol-mini-guide h2 {
    margin: 0;
    font-size: 1.1rem;
}

.patrol-mini-guide ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.6rem;
}

.patrol-mini-guide li {
    font-size: 0.95rem;
}

.alert-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.alert-link:hover,
.alert-link:focus {
    text-decoration: underline;
}

.patrol-create-card .form-row-responsive {
    align-items: end;
}

.patrol-shift-inputs {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 18px;
    padding: 1.4rem;
    display: grid;
    gap: 1.2rem;
}

.patrol-shift-inputs header {
    display: grid;
    gap: 0.4rem;
}

.patrol-shift-inputs h2 {
    margin: 0;
}

.patrol-shift-input-list {
    display: grid;
    gap: 1rem;
}

.patrol-shift-input {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 1rem;
}

.patrol-shift-input-details {
    display: grid;
    gap: 0.35rem;
}

.patrol-shift-input-details strong {
    font-weight: 600;
}

.patrol-shift-input-details .form-hint {
    margin: 0;
    color: var(--muted);
}

.patrol-shift-input-field {
    display: grid;
    gap: 0.3rem;
}

.patrol-shift-input-controls {
    display: grid;
    gap: 0.8rem;
}

.patrol-shift-gap {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.75rem;
    display: grid;
    gap: 0.6rem;
}

.patrol-shift-gap.is-disabled {
    opacity: 0.6;
}

.patrol-shift-gap-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.patrol-shift-gap-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.patrol-shift-gap-fields {
    display: grid;
    gap: 0.55rem;
}

.patrol-shift-gap-fields[hidden] {
    display: none;
}

.patrol-shift-gap-input,
.patrol-shift-gap-unit {
    display: grid;
    gap: 0.35rem;
}

.patrol-shift-gap-input input,
.patrol-shift-gap-unit select {
    width: 100%;
}

.patrol-shift-input-field input[type="number"] {
    max-width: 140px;
}

@media (min-width: 768px) {
    .patrol-shift-input {
        grid-template-columns: 1fr minmax(260px, 320px);
        align-items: start;
    }

    .patrol-shift-input-controls {
        align-self: stretch;
    }
}

.patrol-checkpoint-inputs {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 18px;
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
}

.patrol-checkpoint-inputs header {
    display: grid;
    gap: 0.35rem;
}

.patrol-checkpoint-inputs .patrol-checkpoint-count {
    display: grid;
    gap: 0.35rem;
    max-width: 220px;
}

.patrol-checkpoint-inputs .patrol-checkpoint-list {
    display: grid;
    gap: 0.75rem;
}

.patrol-checkpoint-inputs .patrol-checkpoint-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.45rem;
}

.patrol-checkpoint-inputs .patrol-checkpoint-item .patrol-checkpoint-field {
    display: grid;
    gap: 0.35rem;
}

.patrol-checkpoint-inputs .patrol-checkpoint-item input[type="text"] {
    width: 100%;
}

.patrol-filter {
    margin-bottom: 2rem;
}

.patrol-filter .form-row {
    align-items: end;
}

.patrol-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.patrol-filter-actions .btn {
    white-space: nowrap;
}

.patrol-overview-list {
    display: grid;
    gap: 1.6rem;
}

.patrol-manage-card {
    display: grid;
    gap: 1.8rem;
    align-content: start;
}

.patrol-manage-list {
    display: grid;
    gap: 1.2rem;
}

.patrol-route {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.patrol-route[open] {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 16px 40px rgba(15, 118, 176, 0.25);
}

.patrol-route-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.35rem 1.6rem;
    cursor: pointer;
    border-radius: inherit;
    transition: background 0.2s ease;
}

.patrol-route-summary:hover {
    background: rgba(56, 189, 248, 0.08);
}

.patrol-route-summary::-webkit-details-marker {
    display: none;
}

.patrol-route-summary:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 4px;
    background: rgba(56, 189, 248, 0.12);
}

.patrol-route-summary-content {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.4rem;
}

.patrol-route-title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.patrol-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.patrol-route-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.patrol-route-toggle-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: var(--accent);
    transition: transform 0.25s ease, background 0.25s ease;
}

.patrol-route-toggle-icon svg {
    width: 16px;
    height: 16px;
}

.patrol-route[open] .patrol-route-toggle-icon {
    transform: rotate(90deg);
    background: rgba(56, 189, 248, 0.3);
}

.patrol-route-body {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 0 1.6rem 1.6rem;
    display: grid;
    gap: 1.2rem;
}

.patrol-route-description {
    margin: 0;
    line-height: 1.6;
}

.patrol-route-placeholder {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

.patrol-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.patrol-route-actions form {
    margin: 0;
}

.patrol-route-delete {
    display: inline-flex;
}

@media (max-width: 820px) {
    .patrol-route-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .patrol-route-summary-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .patrol-route-summary-meta {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .patrol-route-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .patrol-route-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.patrol-overview-item {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 20px;
    padding: 1.6rem;
    display: grid;
    gap: 1.6rem;
}

.patrol-overview-header {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.patrol-overview-header h2 {
    margin: 0;
}

.patrol-overview-header p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.patrol-overview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.patrol-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.patrol-shift-board {
    display: grid;
    gap: 1.2rem;
}

.patrol-shift-card {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.patrol-shift-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.patrol-shift-card header h3 {
    margin: 0;
}

.patrol-shift-card-frequency {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.patrol-shift-tile-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.patrol-shift-tile {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    display: grid;
    gap: 0.4rem;
    align-content: start;
    min-height: 96px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: default;
    -webkit-appearance: none;
    appearance: none;
}

.patrol-shift-tile.has-details {
    cursor: pointer;
}

.patrol-shift-tile.has-details:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.patrol-shift-tile.has-details:focus-visible {
    outline: none;
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.patrol-shift-tile.is-complete,
.patrol-shift-tile.is-active {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
}

.patrol-shift-tile-index {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.patrol-shift-tile-status {
    font-size: 1rem;
}

.patrol-shift-tile-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-shift-board-note {
    margin: 0;
}

.patrol-route-shift-section {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: grid;
    gap: 1rem;
}

.patrol-route-shift-section h3 {
    margin: 0;
}

.patrol-route-shift-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.patrol-route-shift-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.patrol-route-shift-details {
    display: grid;
    gap: 0.35rem;
}

.patrol-route-shift-details strong {
    font-weight: 600;
}

.patrol-route-shift-details .form-hint {
    margin: 0;
    color: var(--muted);
}

.patrol-shift-summary {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.patrol-shift-chip {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.45rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.patrol-shift-chip.is-active {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.patrol-shift-chip-title {
    font-weight: 600;
}

.patrol-shift-chip-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-shift-chip-count {
    font-size: 0.85rem;
}

.patrol-overview-content {
    display: grid;
    gap: 1.6rem;
}

.patrol-shift-detail header h3,
.patrol-shift-block header h3,
.patrol-checkpoint-section h3 {
    margin: 0 0 0.4rem;
}

.patrol-shift-detail header span,
.patrol-shift-block header span {
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-shift-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.patrol-shift-block {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.9rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.patrol-shift-block[hidden] {
    display: none;
}

.patrol-shift-block.is-visible {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.patrol-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.patrol-entry-list li {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.45rem;
}

.patrol-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.patrol-entry-header strong {
    font-size: 1rem;
}

.patrol-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-checkpoint-section {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.patrol-checkpoint-section header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.patrol-checkpoint-section header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.patrol-checkpoint-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
}

.separator {
    color: rgba(148, 163, 184, 0.45);
}

@media (max-width: 640px) {
    .patrol-filter-actions {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .patrol-overview-item {
        padding: 1.25rem;
    }
}

.shift-plan-filter {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.shift-plan-filter label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.shift-plan-filter select {
    min-width: 220px;
}

.shift-plan-summary {
    margin-top: 1.6rem;
    display: grid;
    gap: 1.4rem;
}

.shift-plan-summary dl {
    margin: 0;
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shift-plan-summary dl div {
    display: grid;
    gap: 0.3rem;
}

.shift-plan-summary dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.shift-plan-summary dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.shift-plan-summary-address {
    padding: 1.4rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.shift-plan-summary-address strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.shift-plan-summary-address p {
    margin: 0;
    white-space: pre-line;
    color: var(--text);
}

.shift-plan-calendar {
    margin-top: 2.4rem;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shift-plan-calendar-day {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.shift-plan-calendar-day.is-empty {
    opacity: 0.75;
}

.shift-plan-calendar-day-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.shift-plan-calendar-day-header h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.shift-plan-calendar-day-body {
    flex: 1;
    padding: 1.1rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
}

.shift-plan-calendar-empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.shift-plan-calendar-day-heading {
    display: grid;
    gap: 0.3rem;
}

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

.shift-plan-calendar-day-header .badge {
    margin-left: auto;
}

.shift-plan-calendar-table-wrapper {
    position: relative;
    overflow: hidden;
}

.shift-plan-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.shift-plan-calendar-table thead {
    background: rgba(15, 23, 42, 0.65);
}

.shift-plan-calendar-table th,
.shift-plan-calendar-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.shift-plan-calendar-table th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.shift-plan-calendar-table tbody tr:last-child td {
    border-bottom: none;
}

.shift-plan-calendar-row.has-warning {
    background: rgba(248, 113, 113, 0.12);
}

.shift-plan-calendar-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.85);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
}

.shift-plan-calendar-muted {
    color: var(--muted);
}

@media (max-width: 800px) {
    .shift-plan-calendar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .shift-plan-calendar-table thead {
        display: none;
    }

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

    .shift-plan-calendar-table tbody tr {
        margin-bottom: 1rem;
        padding: 0.95rem 0.95rem 0.85rem;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.35);
    }

    .shift-plan-calendar-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .shift-plan-calendar-table td {
        padding: 0;
        border: none;
        display: grid;
        gap: 0.2rem;
        font-size: 0.95rem;
    }

    .shift-plan-calendar-table td + td {
        margin-top: 0.6rem;
    }

    .shift-plan-calendar-table td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .shift-plan-calendar-warning {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.8rem;
        margin-right: 0.35rem;
    }
}

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

.shift-plan-payload {
    margin-top: 2.4rem;
}

.shift-plan-payload summary {
    cursor: pointer;
    font-weight: 600;
}

.shift-plan-payload pre {
    margin: 1rem 0 0;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.shift-plan-create-card {
    width: min(1240px, 100%);
}

.shift-plan-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.shift-plan-stepper {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.shift-plan-stepper li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.shift-plan-stepper li strong {
    font-size: 1.1rem;
    color: var(--muted);
}

.shift-plan-stepper li span {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.shift-plan-stepper li.is-active {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.25);
}

.shift-plan-stepper li.is-active strong,
.shift-plan-stepper li.is-active span {
    color: var(--text);
}

.shift-plan-stepper li.is-complete {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.2);
}

.shift-plan-stepper li.is-complete strong,
.shift-plan-stepper li.is-complete span {
    color: var(--text);
}

.shift-plan-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shift-plan-step[hidden] {
    display: none;
}

.shift-plan-step-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.shift-plan-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shift-plan-name-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shift-plan-name-group > label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shift-plan-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.shift-plan-auto-toggle input {
    width: auto;
    margin: 0;
}

.shift-plan-name-group input.is-readonly,
.shift-plan-name-group input[readonly] {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.08);
    cursor: default;
}

.shift-plan-meta {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shift-plan-object-summary,
.shift-plan-range {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shift-plan-object-summary strong,
.shift-plan-range strong {
    font-size: 0.95rem;
    color: var(--muted);
}

.shift-plan-object-summary p {
    margin: 0;
    white-space: pre-line;
}

.shift-plan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.shift-plan-positions {
    display: grid;
    gap: 1rem;
}

.shift-plan-position-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.shift-plan-position-card.is-selected {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.shift-plan-position-card.is-disabled {
    opacity: 0.6;
}

.shift-plan-position-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.shift-plan-position-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.shift-plan-position-badge {
    font-size: 0.85rem;
    color: var(--muted);
}

.shift-plan-position-description {
    margin: 0;
}

.shift-plan-schedule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.shift-plan-schedule-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.shift-plan-schedule-item strong {
    font-weight: 600;
}

.shift-plan-schedule-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.shift-plan-position-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.shift-plan-position-action input {
    width: auto;
    accent-color: var(--accent);
}

.shift-plan-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

@media (max-width: 960px) {
    .shift-plan-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}


.shift-plan-board {
    display: block;
}

.shift-plan-board-table-wrapper {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.3);
    overflow-x: auto;
    overflow-y: hidden;
}

.shift-plan-board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}

.shift-plan-board-table th,
.shift-plan-board-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: top;
}

.shift-plan-board-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.4);
}

.shift-plan-board-table thead th:first-child {
    border-top-left-radius: 16px;
}

.shift-plan-board-table thead th:last-child {
    border-top-right-radius: 16px;
}

.shift-plan-board-table tbody th {
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    min-width: 180px;
}

.shift-plan-board-table tbody td {
    min-width: 220px;
}

.shift-plan-board-table tbody tr:last-child th,
.shift-plan-board-table tbody tr:last-child td {
    border-bottom: none;
}

.shift-plan-board-day-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shift-plan-board-day-label .day-title {
    font-size: 1rem;
}

.shift-plan-board-day-label .day-date {
    font-size: 0.85rem;
    color: var(--muted);
}

.shift-plan-board-day-count {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-block;
}

.shift-plan-board-cell {
    display: grid;
    gap: 1rem;
}

.shift-plan-position-label {
    display: block;
    font-weight: 600;
}

.shift-plan-group {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.shift-plan-group.has-warning {
    border-color: #facc15;
}

.shift-plan-group.is-incomplete {
    border-style: dashed;
}

.shift-plan-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.shift-plan-group-header strong {
    font-size: 1rem;
}

.shift-plan-group-time {
    font-size: 0.9rem;
    color: var(--muted);
}

.shift-plan-group-label {
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.8rem;
    color: var(--muted);
}

.shift-plan-group-info {
    margin: 0;
}

.shift-plan-slot-list {
    display: grid;
    gap: 0.9rem;
}

.shift-plan-slot {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.shift-plan-slot.is-empty {
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    min-height: 70px;
    border-style: dashed;
    color: var(--muted);
    font-size: 0.85rem;
}

.shift-plan-slot.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.shift-plan-slot.is-assigned {
    border-color: rgba(56, 189, 248, 0.4);
}

.shift-plan-slot.is-drop-target {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.shift-plan-slot.has-conflict {
    animation: shiftSlotPulse 0.6s ease;
}

@keyframes shiftSlotPulse {
    0% {
        border-color: var(--error);
        box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
    }
    100% {
        border-color: rgba(148, 163, 184, 0.2);
        box-shadow: none;
    }
}

.shift-plan-slot-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.shift-plan-slot-input {
    display: flex;
    gap: 0.5rem;
}

.shift-plan-slot-input input {
    flex: 1;
}

.shift-plan-slot-clear {
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.35);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.shift-plan-slot-clear:hover {
    border-color: var(--accent);
    color: var(--text);
}

.shift-plan-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: grid;
    gap: 0.35rem;
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
}

.shift-plan-suggestion button {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    text-align: left;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.shift-plan-suggestion button:hover,
.shift-plan-suggestion button:focus {
    background: rgba(56, 189, 248, 0.2);
    outline: none;
}

.shift-plan-suggestion-info {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
    padding-left: 0.75rem;
}

.shift-plan-suggestion.is-warning button {
    border-left: 3px solid #facc15;
}

.shift-plan-suggestion.is-conflict button {
    border-left: 3px solid var(--error);
}

.shift-plan-slot-warning {
    margin: 0;
    font-size: 0.8rem;
    color: #facc15;
}

.shift-plan-sidebar {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.4);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shift-plan-sidebar h3 {
    margin: 0;
    font-size: 1.05rem;
}

.shift-plan-availability {
    display: grid;
    gap: 0.75rem;
}

.shift-plan-availability-item {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(15, 23, 42, 0.35);
}

.shift-plan-availability-item[draggable="true"] {
    cursor: grab;
}

.shift-plan-availability-item.is-dragging {
    opacity: 0.7;
    cursor: grabbing;
}

.shift-plan-availability-item strong {
    font-size: 0.95rem;
}

.shift-plan-availability-email {
    font-size: 0.8rem;
    color: var(--muted);
}

.shift-plan-availability-info {
    font-size: 0.8rem;
    color: var(--muted);
}

.shift-plan-availability-item.is-warning {
    border-color: #facc15;
}

.shift-plan-availability-item.is-conflict {
    border-color: var(--error);
}

.shift-plan-preview {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.shift-plan-preview pre {
    margin: 0;
    padding: 1.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-height: 420px;
    overflow: auto;
    font-size: 0.85rem;
}

.checklist-builder {
    display: grid;
    gap: 1.5rem;
}

.checklist-item {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    padding: 1.4rem;
    display: grid;
    gap: 1.2rem;
}

.checklist-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.checklist-item-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.checklist-item-actions {
    display: flex;
    gap: 0.6rem;
}

.checklist-item-fields {
    display: grid;
    gap: 1rem;
}

.checklist-hint-toggle {
    display: grid;
    gap: 0.4rem;
}

.checklist-options {
    display: grid;
    gap: 0.8rem;
}

.checklist-options-list {
    display: grid;
    gap: 0.8rem;
}

.checklist-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.checklist-option-row .btn {
    align-self: stretch;
}

.checklist-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.checklist-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checklist-admin-group {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.checklist-admin-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.checklist-admin-group-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.checklist-admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.checklist-admin-items {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-admin-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
}

.checklist-admin-item-main {
    flex: 1 1 280px;
    min-width: 240px;
}

.checklist-admin-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.checklist-admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.checklist-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checklist-admin-id {
    font-size: 0.85rem;
    color: var(--muted);
}

.checklist-admin-delete {
    margin: 0;
}

.checklist-manage-card .checklist-admin-group + .checklist-admin-group {
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .checklist-option-row {
        grid-template-columns: 1fr;
    }

    .checklist-option-row .btn {
        width: 100%;
    }

    .checklist-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .checklist-form-actions {
        justify-content: stretch;
    }

    .checklist-form-actions .btn {
        width: 100%;
    }

    .checklist-admin-item {
        padding: 1rem;
    }
}
