:root {
    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --surface-soft: #fbfcff;
    --ink: #0d1b2a;
    --muted: #7a8499;
    --line: #e5e9f2;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
    --blue: #2563eb;
    --green: #22c55e;
    --teal: #14b8a6;
    --navy: #0d1b2a;
    --gold: #14b8a6;
    --violet: #2563eb;
    --pending-bg: #fff5e3;
    --pending-ink: #d68c1a;
    --success-bg: #ecfdf5;
    --success-ink: #15803d;
}

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

html, body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    font-family: "Poppins", "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    font-size: 14px;
}
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

a,
a:hover,
a:focus,
a:visited {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p {
    margin: 0;
}

h1:focus,
h1:focus-visible,
.dashboard-title:focus,
.dashboard-title:focus-visible {
    outline: none;
}

button,
input,
select {
    font: inherit;
}

.dashboard-header {
    margin-bottom: 19px;
}

.school-alert {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-weight: 700;
}

.school-alert-warning {
    background: #fff7e8;
    border-color: #f4d7a5;
    color: #8a5a12;
}

.dashboard-title {
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.dashboard-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.94rem;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat-card {
    min-height: 152px;
    padding: 16px 18px 14px;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.theme-blue { background: linear-gradient(180deg, #eff6ff 0%, #f9fbff 100%); }
.theme-green { background: linear-gradient(180deg, #ecfdf5 0%, #fbfefb 100%); }
.theme-gold { background: linear-gradient(180deg, #ecfeff 0%, #f8fffe 100%); }
.theme-violet { background: linear-gradient(180deg, #f3f4f6 0%, #fbfcff 100%); }

.dashboard-stat-icon-wrap {
    margin-bottom: 13px;
}

.dashboard-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: currentColor;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.theme-blue .dashboard-stat-icon { color: #2563eb; }
.theme-green .dashboard-stat-icon { color: #22c55e; }
.theme-gold .dashboard-stat-icon { color: #14b8a6; }
.theme-violet .dashboard-stat-icon { color: #0d1b2a; }

.dashboard-svg-icon {
    width: 22px;
    height: 22px;
}

.dashboard-stat-meta {
    color: #4a5570;
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-stat-value {
    margin-top: 6px;
    font-size: 2.56rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dashboard-stat-subvalue {
    margin-top: 3px;
    color: #677387;
    font-size: 0.82rem;
}

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

.dashboard-panel,
.panel-card,
.panel-subcard,
.kpi-card {
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.dashboard-panel {
    padding: 16px 18px 14px;
}

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

.dashboard-panel-head h2,
.section-head h2 {
    font-size: 0.95rem;
    font-weight: 800;
}

.dashboard-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid #dde5f0;
    background: #fff;
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-panel-footer-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 800;
}

.dashboard-empty-state {
    margin: 0;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.attendance-widget {
    display: grid;
    grid-template-columns: 228px 1fr;
    gap: 10px;
    align-items: center;
}

.attendance-donut {
    display: grid;
    place-items: center;
    width: 186px;
    height: 186px;
    margin: 2px auto 0;
    border-radius: 50%;
}

.attendance-donut-center {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 0 0 1px var(--line);
}

.attendance-donut-center strong {
    font-size: 2.22rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.attendance-donut-center span {
    margin-top: -4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.attendance-legend {
    display: grid;
    gap: 11px;
}

.attendance-legend-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center;
    color: #374151;
    font-size: 0.86rem;
}

.attendance-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.attendance-legend-dot.present { background: #22c55e; }
.attendance-legend-dot.absent { background: #ef635d; }
.attendance-legend-dot.late { background: #ffb224; }
.attendance-legend-dot.vacation { background: #3b82f6; }
.attendance-legend-dot.missing { background: #c7d2e4; }

.dashboard-list,
.dashboard-table-list {
    display: grid;
    gap: 5px;
}

.dashboard-list-item,
.dashboard-table-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
}

.dashboard-table-row {
    grid-template-columns: 56px 56px 1fr auto;
}

.dashboard-list-item:last-of-type,
.dashboard-table-row:last-of-type {
    border-bottom: none;
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    color: #1d4ed8;
    font-size: 0.64rem;
    font-weight: 800;
}

.dashboard-avatar.accent {
    background: linear-gradient(135deg, #fce7f3 0%, #f5d0fe 100%);
    color: #9d174d;
}

.dashboard-list-copy {
    min-width: 0;
}

.dashboard-list-title,
.dashboard-table-strong {
    font-size: 0.91rem;
    font-weight: 800;
}

.dashboard-list-subtitle,
.dashboard-table-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.81rem;
}

.dashboard-list-time,
.dashboard-table-time {
    color: #556071;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-list-status,
.pill,
.pill-success,
.pill-warning,
.pill-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-list-status.pending,
.pill-warning {
    background: var(--pending-bg);
    color: var(--pending-ink);
}

.dashboard-list-status.success,
.pill-success {
    background: var(--success-bg);
    color: var(--success-ink);
}

.pill-muted {
    background: #eef2f7;
    color: #6b7280;
}

.work-greeting-card,
.work-panel,
.work-alert-card {
    border: 1px solid #e2e8f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.work-greeting-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eefdf9 100%);
}

.work-greeting-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.work-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6 0%, #22c55e 100%);
    color: white;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(20, 184, 166, 0.18);
}

.work-greeting-card h2 {
    font-size: 1rem;
    font-weight: 800;
}

.work-greeting-card p {
    margin-top: 3px;
    color: #63708a;
    font-size: 0.88rem;
}

.work-greeting-card p strong {
    color: #2563eb;
}

.work-greeting-card p span {
    color: #dc2626;
}

.work-greeting-content {
    min-width: 0;
}

.work-greeting-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.work-greeting-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #dce5f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #52607a;
    font-size: 0.74rem;
    font-weight: 800;
}

.work-greeting-pill strong {
    color: #0d1b2a;
    font-size: 0.88rem;
}

.work-greeting-pill.success { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.work-greeting-pill.warning { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.work-greeting-pill.danger { border-color: #fecaca; background: #fff1f2; color: #b91c1c; }
.work-greeting-pill.muted { background: #f8fafc; color: #64748b; }

.work-filter-button,
.work-alert-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dce5f1;
    border-radius: 11px;
    background: #fff;
    color: #213455;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.work-alert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 4px 0 18px;
}

.work-alert-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    gap: 12px 16px;
    min-height: 216px;
    padding: 18px 20px;
    overflow: hidden;
}

.work-alert-card.danger { border-color: #fecaca; background: linear-gradient(180deg, #fffafa 0%, #fff 100%); }
.work-alert-card.warning { border-color: #fed7aa; background: linear-gradient(180deg, #fffaf2 0%, #fff 100%); }
.work-alert-card.gold { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.work-alert-card.blue { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); }
.work-alert-card.success { border-color: #bbf7d0; background: linear-gradient(180deg, #f7fff9 0%, #fff 100%); }

.work-alert-icon,
.work-quick-icon {
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.work-alert-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
}

.work-quick-icon {
    width: 44px;
    height: 44px;
}

.work-alert-card.danger .work-alert-icon { background: #fee2e2; color: #ef4444; }
.work-alert-card.warning .work-alert-icon { background: #ffedd5; color: #f97316; }
.work-alert-card.gold .work-alert-icon { background: #fef3c7; color: #d97706; }
.work-alert-card.blue .work-alert-icon { background: #dbeafe; color: #2563eb; }
.work-alert-card.success .work-alert-icon { background: #dcfce7; color: #16a34a; }

.work-alert-body {
    min-width: 0;
}

.work-alert-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.work-alert-body > strong {
    display: block;
    margin-top: 4px;
    color: #dc2626;
    font-size: 0.86rem;
    line-height: 1.25;
}

.work-alert-card.warning .work-alert-body > strong,
.work-alert-card.gold .work-alert-body > strong { color: #ea580c; }
.work-alert-card.blue .work-alert-body > strong { color: #2563eb; }
.work-alert-card.success .work-alert-body > strong { color: #15803d; }

.work-alert-count {
    color: currentColor;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.work-alert-card.danger .work-alert-count { color: #dc2626; }
.work-alert-card.warning .work-alert-count,
.work-alert-card.gold .work-alert-count { color: #ea580c; }
.work-alert-card.blue .work-alert-count { color: #2563eb; }
.work-alert-card.success .work-alert-count { color: #16a34a; }

.work-alert-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: #52607a;
    font-size: 0.84rem;
    line-height: 1.4;
}

.work-alert-list li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.work-alert-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #64748b;
}

.work-alert-card.danger .work-alert-bullet { background: #ef4444; }
.work-alert-card.warning .work-alert-bullet,
.work-alert-card.gold .work-alert-bullet { background: #f59e0b; }
.work-alert-card.blue .work-alert-bullet { background: #3b82f6; }
.work-alert-card.success .work-alert-bullet { background: #22c55e; }

.work-alert-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-alert-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 900;
}

.work-alert-card.danger .work-alert-chip { background: #fee2e2; color: #dc2626; }
.work-alert-card.warning .work-alert-chip,
.work-alert-card.gold .work-alert-chip { background: #fff7ed; color: #ea580c; }
.work-alert-card.blue .work-alert-chip { background: #eff6ff; color: #2563eb; }
.work-alert-card.success .work-alert-chip { background: #ecfdf5; color: #15803d; }

.work-filter-button {
    border-color: #dbe7f4;
    background: #fff;
    color: #213455;
    box-shadow: none;
}

.work-alert-action {
    grid-column: 1 / -1;
    align-self: end;
    width: 100%;
    min-height: 44px;
    border-color: #dce5f1;
    background: #fff;
    color: #2563eb;
}

.work-alert-card.danger .work-alert-action { border-color: #fecaca; background: #fff5f5; color: #dc2626; }
.work-alert-card.warning .work-alert-action,
.work-alert-card.gold .work-alert-action { border-color: #fed7aa; background: #fff8ed; color: #ea580c; }
.work-alert-card.blue .work-alert-action { border-color: #bfdbfe; background: #f5f9ff; color: #2563eb; }
.work-alert-card.success .work-alert-action { border-color: #bbf7d0; background: #f6fff8; color: #15803d; }
.work-main-grid,
.work-bottom-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.work-main-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.work-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.work-panel {
    padding: 16px 18px;
}

.work-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.work-panel-head h2 {
    font-size: 0.98rem;
    font-weight: 800;
}

.work-panel-head p {
    margin-top: 4px;
    color: #71809a;
    font-size: 0.82rem;
}

.work-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.work-tabs button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #e4ebf5;
    border-radius: 10px;
    background: #f7f9fc;
    color: #5d6a82;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.work-tabs button.active {
    border-color: #cfe2ff;
    background: #eaf3ff;
    color: #2563eb;
}

.work-task-table {
    display: grid;
}

.work-task-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 100px 90px 148px;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f6;
}

.work-task-head {
    min-height: 32px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
}

.work-task-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.work-task-title strong,
.work-timeline-item strong {
    display: block;
    color: #0d1b2a;
    font-size: 0.84rem;
    font-weight: 800;
}

.work-task-title small,
.work-timeline-item p {
    display: block;
    margin-top: 2px;
    color: #71809a;
    font-size: 0.78rem;
    line-height: 1.35;
}

.work-check-dot {
    width: 18px;
    height: 18px;
    border: 1.8px solid #c5d1e2;
    border-radius: 50%;
    flex: none;
}

.work-priority {
    justify-self: start;
    min-width: 66px;
    padding: 5px 9px;
    border-radius: 9px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.work-priority.high { background: #fee2e2; color: #dc2626; }
.work-priority.medium { background: #ffedd5; color: #ea580c; }
.work-priority.low { background: #dcfce7; color: #15803d; }

.work-task-action {
    justify-self: stretch;
    padding: 8px 12px;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

.work-task-row:not(.work-task-head):hover .work-task-action {
    border-color: #9fc3ff;
    background: #eef5ff;
}

.work-empty-state {
    padding: 22px 0;
    color: #72809a;
    font-weight: 700;
    text-align: center;
}

.work-timeline {
    display: grid;
    gap: 2px;
}

.work-timeline-item {
    display: grid;
    grid-template-columns: 48px 14px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
}

.work-timeline-time {
    color: #52607a;
    font-size: 0.78rem;
    font-weight: 700;
}

.work-timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px #f1f5f9;
}

.work-timeline-item.success .work-timeline-dot { background: #22c55e; }
.work-timeline-item.warning .work-timeline-dot { background: #f59e0b; }
.work-timeline-item.danger .work-timeline-dot { background: #ef4444; }

.work-quick-actions,
.work-today-grid {
    display: grid;
    gap: 10px;
}

.work-quick-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.work-quick-action,
.work-today-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    min-height: 96px;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: #fbfcff;
    color: #233654;
    text-align: center;
}

.work-quick-action strong {
    max-width: 98px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.work-quick-icon.green { background: #dcfce7; color: #16a34a; }
.work-quick-icon.gold { background: #ffedd5; color: #ea580c; }
.work-quick-icon.purple { background: #f3e8ff; color: #7c3aed; }
.work-quick-icon.teal { background: #ccfbf1; color: #0f766e; }

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

.work-today-card {
    min-height: 84px;
    gap: 5px;
}

.work-today-card svg {
    width: 18px;
    height: 18px;
}

.work-today-card strong {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800;
}

.work-today-card span {
    color: #52607a;
    font-size: 0.76rem;
    font-weight: 800;
}

.work-today-card.success { background: #f0fdf4; color: #16a34a; }
.work-today-card.warning { background: #fff7ed; color: #ea580c; }
.work-today-card.danger { background: #fff1f2; color: #dc2626; }
.work-today-card.blue { background: #eff6ff; color: #2563eb; }
.work-today-card:hover,
.work-today-card:focus-visible,
.work-quick-action:hover,
.work-quick-action:focus-visible,
.work-alert-action:hover,
.work-alert-action:focus-visible {
    transform: translateY(-1px);
    border-color: #c9d7ea;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.portal-shell .nav-link.active,
.portal-shell .portal-nav-primary.active-ready {
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
}

.panel-card {
    padding: 18px;
}

.panel-subcard {
    padding: 16px;
    background: var(--surface-soft);
}

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

.data-table th,
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
}

.data-table th {
    color: #64748b;
    font-size: 0.84rem;
}

.group-grid,
.queue-stack,
.kpi-grid,
.two-column {
    display: grid;
    gap: 14px;
}

.group-grid,
.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.eyebrow {
    margin-bottom: 4px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 800;
}

.pill-row,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-banner {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef4ff;
    color: #28417c;
    font-size: 0.92rem;
}

.action-button,
.ghost-button {
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.action-button {
    background: #2563eb;
    color: white;
}

.ghost-button {
    background: #eef2f7;
    color: #334155;
}

.code-input {
    min-width: 124px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.danger-copy {
    color: #cf432c;
    font-weight: 700;
}

.placeholder-shell {
    max-width: 720px;
    padding: 22px;
    border: 1px solid #e4ebf5;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.placeholder-kicker {
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

#blazor-error-ui {
    display: none;
}

.theme-danger {
    background: linear-gradient(180deg, #fff3f3 0%, #fffafa 100%);
}

.theme-danger .school-metric-icon {
    color: #ef4444;
}

.theme-danger .school-metric-label {
    color: #c83535;
}

.school-screen {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.school-page-header h1 {
    font-size: 2.3rem;
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.school-page-header p {
    margin-top: 8px;
    color: #72809a;
    font-size: 1.01rem;
}

.school-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    min-width: 0;
}

.school-metric-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    min-height: 126px;
    padding: 20px 18px 16px;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.school-metric-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.school-stat-svg {
    width: 22px;
    height: 22px;
}

.school-metric-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.school-metric-label {
    font-size: 0.95rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.school-metric-value {
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #142447;
}

.company-evidence-hash-value {
    max-width: 100%;
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.school-metric-subvalue {
    color: #67758b;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.theme-blue .school-metric-icon { color: #2563eb; }
.theme-green .school-metric-icon { color: #22c55e; }
.theme-gold .school-metric-icon { color: #14b8a6; }
.theme-violet .school-metric-icon { color: #0d1b2a; }

.theme-blue .school-metric-label { color: #1d4ed8; }
.theme-green .school-metric-label { color: #15803d; }
.theme-gold .school-metric-label { color: #0f766e; }
.theme-violet .school-metric-label { color: #0d1b2a; }

.school-panel {
    min-width: 0;
    padding: 18px 20px;
}

.school-panel-header,
.school-subpanel-header,
.school-ops-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.school-panel-header {
    margin-bottom: 16px;
}

.school-panel-header h2,
.school-section-title,
.school-subpanel h3,
.school-ops-panel h3 {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
}

.school-section-title {
    margin: 4px 0 14px;
}

.table-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 14px;
}

.school-subpanel-header.table-view-header {
    margin-bottom: 14px;
}

.table-view-header h3,
.table-view-header .school-section-title {
    margin: 0;
}

.column-picker {
    position: relative;
    flex: none;
    margin-left: auto;
}

.column-picker-toggle {
    width: 40px;
    height: 40px;
    margin-left: 0;
}

.column-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 35;
    display: grid;
    gap: 4px;
    min-width: 220px;
    max-height: min(68vh, 520px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dbe4f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.column-picker-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #172033;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.column-picker-option:hover {
    background: #f5f5f7;
}

.column-picker-option input {
    width: 17px;
    height: 17px;
    accent-color: #2f7df4;
}

.school-panel-actions,
.school-toolbar-actions,
.school-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.school-toolbar-actions {
    justify-content: flex-end;
}

.school-toolbar-actions-row {
    width: 100%;
    margin-bottom: 14px;
}

.school-toolbar-actions-vertical {
    align-items: flex-end;
}

.school-primary-button,
.school-secondary-button,
.school-filter-button,
.school-inline-success,
.school-secondary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.school-primary-button:hover,
.school-secondary-button:hover,
.school-filter-button:hover,
.school-inline-success:hover,
.school-secondary-link-button:hover {
    transform: translateY(-1px);
}

.school-primary-button {
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.school-secondary-button,
.school-filter-button,
.school-secondary-link-button {
    border-color: #d9e3f0;
    background: #fff;
    color: #213455;
}

.school-file-button {
    position: relative;
    overflow: hidden;
}

.school-file-button input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.school-file-button input[type="file"]:disabled {
    cursor: not-allowed;
}

.employee-file-menu {
    position: relative;
    display: inline-flex;
}

.employee-file-menu-panel {
    right: auto;
    left: 0;
}

.employee-file-menu-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #172033;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.employee-file-menu-option:hover {
    background: #f5f5f7;
}

.employee-file-menu-option svg {
    width: 16px;
    height: 16px;
}

.employee-management-toolbar {
    align-items: flex-start;
}

.employee-action-menu-panel {
    min-width: 260px;
    padding: 8px;
    z-index: 40;
}

.employee-file-menu-option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.employee-file-menu-option:disabled:hover {
    background: transparent;
}

.employee-file-input-option {
    position: relative;
    overflow: hidden;
}

.employee-file-input-option input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.employee-file-input-option input[type="file"]:disabled {
    cursor: not-allowed;
}
.employee-import-progress {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #cddcf7;
    border-radius: 16px;
    background: #f6f9ff;
}

.employee-import-progress-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-import-progress-copy > div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.employee-import-progress-copy strong {
    color: #13213b;
}

.employee-import-progress-copy > div span,
.employee-import-progress small {
    color: #667391;
}

.employee-import-progress-count {
    margin-left: auto;
    color: #244fc7;
    font-weight: 800;
    white-space: nowrap;
}

.employee-import-spinner {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    border: 3px solid #cbd9f4;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: employee-import-spin 0.8s linear infinite;
}

.employee-import-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8f7;
}

.employee-import-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #16b8a6 100%);
    transition: width 0.2s ease;
}

.employee-import-progress-track.indeterminate > span {
    width: 35%;
    animation: employee-import-indeterminate 1.1s ease-in-out infinite;
}

@keyframes employee-import-spin {
    to { transform: rotate(360deg); }
}

@keyframes employee-import-indeterminate {
    from { transform: translateX(-110%); }
    to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
    .employee-import-spinner,
    .employee-import-progress-track.indeterminate > span {
        animation: none;
    }
}

.employee-menu-field {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #e7edf5;
}

.employee-menu-field span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-menu-field .school-code-input {
    min-height: 38px;
    width: 100%;
}

.school-inline-success {
    min-height: 34px;
    padding: 0 12px;
    border-color: #9ddab6;
    background: #ecf9f0;
    color: #1f9a52;
}

.school-primary-button svg,
.school-secondary-button svg,
.school-filter-button svg,
.school-icon-button svg,
.school-phone-cell svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.school-filters-row,
.school-toolbar-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.school-import-errors {
    margin: 8px 0 0;
    padding-left: 18px;
}

.school-import-errors li + li {
    margin-top: 4px;
}

.school-filters-row-students {
    grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(140px, 0.75fr)) auto;
}

.school-filters-row-groups,
.school-filters-row-teachers {
    grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(140px, 0.75fr)) auto;
}

.school-toolbar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
}

.school-toolbar-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.school-toolbar-grid-employees {
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(150px, 1fr));
    min-width: 0;
}

.school-toolbar-grid-catalogs {
    grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.8fr);
    max-width: 760px;
    min-width: 0;
}

.school-toolbar-grid-attendance {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    min-width: 0;
}

.school-toolbar-grid-incidents {
    grid-template-columns: repeat(2, minmax(150px, 0.7fr)) minmax(180px, 1fr) repeat(2, minmax(180px, 0.9fr));
    min-width: 0;
}

.school-toolbar-grid-reports {
    grid-template-columns: repeat(2, minmax(150px, 0.75fr)) repeat(2, minmax(220px, 1fr));
    min-width: 0;
}

.school-labeled-field {
    display: grid;
    gap: 8px;
    color: #5f6e87;
    font-size: 0.82rem;
    font-weight: 700;
}

.school-search-field,
.school-date-field input,
.school-select-field,
.school-input-field,
.school-code-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    box-sizing: border-box;
}

.school-search-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.school-search-field svg {
    color: #72809a;
    width: 18px;
    height: 18px;
    flex: none;
}

.school-search-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #213455;
}

.school-date-field input,
.school-select-field,
.school-code-input {
    padding: 0 14px;
}

.school-select-field {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #72809a 50%),
        linear-gradient(135deg, #72809a 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.school-tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 4px 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf2f8;
}

.school-tab {
    padding: 0 0 10px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.school-tab.active {
    color: #2563eb;
    border-color: #14b8a6;
}

.school-tab-strip-tight .school-tab {
    font-size: 0.9rem;
}

.school-table-shell {
    overflow: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #ecf1f8;
    border-radius: 16px;
    background: #fff;
}

.school-data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.employees-table {
    min-width: 0;
    table-layout: fixed;
}

.employees-table.employees-table-expanded {
    min-width: 1650px;
    table-layout: auto;
}

.employees-table th,
.employees-table td {
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
}

.employees-table .school-checkbox-cell {
    width: 38px;
}

.employees-table .employees-col-person { width: 25%; }
.employees-table .employees-col-code { width: 8%; }
.employees-table .employees-col-role { width: 12%; }
.employees-table .employees-col-department { width: 12%; }
.employees-table .employees-col-schedule { width: 11%; }
.employees-table .employees-col-status { width: 9%; }
.employees-table .employees-col-phone { width: 10%; }
.employees-table .employees-col-last-access { width: 10%; }
.employees-table .employees-col-hire-date { min-width: 130px; }
.employees-table .employees-col-portal { min-width: 160px; }
.employees-table .employees-col-employer-registration { min-width: 240px; }
.employees-table .employees-col-curp { min-width: 180px; }
.employees-table .employees-col-rfc { min-width: 150px; }
.employees-table .employees-col-nss { min-width: 140px; }
.employees-table .employees-col-supervisor { min-width: 180px; }
.employees-table .employees-col-workday-type { min-width: 150px; }
.employees-table .school-actions-cell { width: 86px; }

.attendance-table {
    min-width: 980px;
    table-layout: fixed;
}

.attendance-table-shell {
    overflow-x: auto;
    overflow-y: visible;
}

.attendance-table th,
.attendance-table td {
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
}

.attendance-table .attendance-col-person { width: 20%; }
.attendance-table .attendance-col-department { width: 12%; }
.attendance-table .attendance-col-shift { width: 11%; }
.attendance-table .attendance-col-punch { width: 8%; }
.attendance-table .attendance-col-status { width: 9%; }
.attendance-table .attendance-col-location { width: 9%; }
.attendance-table .attendance-col-notes { width: 17%; }
.attendance-table .school-actions-cell {
    width: 58px;
    max-width: 58px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.attendance-table .checkpoint-action-menu {
    width: 100%;
    justify-content: center;
}

.attendance-table .checkpoint-action-toggle {
    width: 34px;
    height: 34px;
    margin-left: 0;
}

.incidents-table {
    min-width: 0;
    table-layout: fixed;
}

.incidents-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 12px;
    padding: 0 4px;
    color: #72809a;
    font-size: 0.9rem;
}

.incidents-table-shell {
    overflow: visible;
}

.incidents-table th,
.incidents-table td {
    padding-left: 8px;
    padding-right: 8px;
    overflow-wrap: anywhere;
}

.incidents-table th,
.incidents-table td:nth-child(4),
.incidents-table td:nth-child(6),
.incidents-table td:nth-child(7) {
    overflow-wrap: normal;
    word-break: normal;
}

.incidents-table th:nth-child(1) { width: 17%; }
.incidents-table th:nth-child(2) { width: 10%; }
.incidents-table th:nth-child(3) { width: 14%; }
.incidents-table th:nth-child(4) { width: 10%; }
.incidents-table th:nth-child(5) { width: 17%; }
.incidents-table th:nth-child(6) { width: 9%; }
.incidents-table th:nth-child(7) { width: 9%; }
.incidents-table th:nth-child(8),
.incidents-table td:nth-child(8) { width: 132px; }

.incident-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.incident-row-actions .school-icon-button {
    width: 32px;
    height: 32px;
    margin-left: 0;
}

.incidents-table .school-person-cell {
    gap: 8px;
}

.incidents-table .school-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.74rem;
}

.incidents-table .company-role-pill {
    max-width: 100%;
    min-height: 28px;
    height: auto;
    padding: 6px 10px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.incident-quick-approve {
    border-color: #bce8ca;
    background: #ecf9f0;
    color: #21824a;
}

.incident-quick-reject {
    border-color: #ffd6d6;
    background: #fff7f7;
    color: #c83535;
}

.company-catalog-table {
    min-width: 0;
    table-layout: fixed;
}

.company-catalog-table th {
    white-space: normal;
    line-height: 1.25;
}

.company-catalog-table .school-actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.company-department-grid {
    grid-template-columns: 1fr;
}

.company-department-panel-wide {
    grid-column: 1 / -1;
}

.company-department-table {
    min-width: 560px;
}

.company-department-table th:first-child,
.company-department-table td:first-child {
    width: 46%;
}

.company-department-table th:nth-child(2),
.company-department-table td:nth-child(2) {
    width: 86px;
}

.company-department-table th:nth-child(3),
.company-department-table td:nth-child(3) {
    width: 122px;
}

.company-department-table th:last-child,
.company-department-table td:last-child {
    width: 142px;
}

.company-position-table {
    min-width: 920px;
}

.company-position-table th:first-child,
.company-position-table td:first-child {
    width: 34%;
}

.company-position-table th:nth-child(2),
.company-position-table td:nth-child(2) {
    width: 16%;
}

.company-position-table th:nth-child(3),
.company-position-table td:nth-child(3) {
    width: 18%;
}

.company-position-table th:nth-child(4),
.company-position-table td:nth-child(4) {
    width: 132px;
}

.company-position-table th:nth-child(5),
.company-position-table td:nth-child(5) {
    width: 122px;
}

.company-position-table th:last-child,
.company-position-table td:last-child {
    width: 148px;
}

.company-catalog-table-shell {
    overflow-x: auto;
}

.company-org-panel {
    align-self: start;
}

.company-department-table-shell,
.company-org-table-shell {
    max-height: 420px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.company-org-table {
    min-width: 0;
}

.school-data-table.company-org-table th,
.school-data-table.company-org-table td {
    padding: 10px 12px;
}

.company-org-table th:first-child,
.company-org-table td:first-child {
    width: 36%;
}

.company-org-table th:nth-child(2),
.company-org-table td:nth-child(2) {
    width: 64%;
}

.company-org-department {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-org-position {
    display: flex;
    align-items: center;
    min-height: 22px;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.company-org-position-level-1 {
    padding-left: 16px;
}

.company-org-position-level-2 {
    padding-left: 32px;
}

.company-org-position-level-1::before,
.company-org-position-level-2::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #d7e0ec;
    flex: 0 0 auto;
}

.company-org-empty-row td {
    background: #fbfdff;
}

.company-org-empty-position {
    color: #72809a;
    font-size: 0.86rem;
    font-weight: 700;
}

.school-data-table th {
    padding: 14px 16px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
}

.school-data-table td {
    padding: 15px 16px;
    border-top: 1px solid #eef2f8;
    vertical-align: middle;
}

.school-row-selected td {
    background: #f8fbff;
}

.school-checkbox-cell {
    width: 42px;
    text-align: center;
}

.school-person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.school-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    flex: none;
}

.school-avatar-neutral {
    background: linear-gradient(135deg, #dce8ff 0%, #ebe6ff 100%);
    color: #3750c5;
}

.school-person-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #1b2a44;
}

.school-person-subtitle,
.school-stack-copy span,
.school-inline-link,
.school-mono-copy,
.school-email-copy {
    color: #72809a;
    font-size: 0.82rem;
}

.school-stack-copy {
    display: grid;
    gap: 4px;
}

.school-stack-copy strong,
.school-number-cell strong {
    color: #1b2a44;
}

.school-phone-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #52627d;
    font-weight: 600;
}

.school-phone-cell svg {
    color: #22c55e;
}

.school-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
}

.school-group-badge-circle {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    padding: 0;
}

.school-badge-blue { background: #e9f1ff; color: #2f6ae4; }
.school-badge-green { background: #e9f8ef; color: #1f8d49; }
.school-badge-mint { background: #edf9f5; color: #2c9b7d; }
.school-badge-slate { background: #edf2f8; color: #53647c; }
.school-badge-violet { background: #eef6ff; color: #2563eb; }
.school-badge-coral { background: #fff0eb; color: #dc5c2d; }

.school-status-pill,
.school-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.school-status-active,
.school-status-success-soft {
    background: #eaf9ef;
    color: #2f9d58;
}

.school-data-table tr.school-selected-row td {
    background: #eef7ff;
}

.school-status-inactive,
.school-status-danger-soft {
    background: #fff0f0;
    color: #ea4d4d;
}

.school-status-blue-soft {
    background: #eaf1ff;
    color: #2f6ae4;
}

.school-status-violet-soft {
    background: #eef6ff;
    color: #2563eb;
}

.school-status-warning-soft {
    background: #fff5e5;
    color: #df8f18;
}

.school-status-muted-soft {
    background: #eef2f7;
    color: #64748b;
}

.school-type-normal {
    background: #eaf9ef;
    color: #249450;
}

.school-type-exceptional {
    background: #eef6ff;
    color: #2563eb;
}

.school-actions-cell {
    white-space: nowrap;
    text-align: right;
}

.school-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: 6px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.school-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.school-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 6px 0;
    color: #72809a;
    font-size: 0.9rem;
}

.school-table-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.employee-selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 6px 14px;
}

.employee-selection-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    color: #72809a;
    font-size: 0.9rem;
}

.employee-selection-summary strong {
    color: #172033;
}

.employee-selection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.school-compact-button {
    min-height: 38px;
    padding: 8px 14px;
}

.school-link-button {
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #315bea;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.school-link-button:hover {
    text-decoration: underline;
}
.school-table-top-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 6px 14px;
}

.school-page-size-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6e87;
    font-weight: 700;
}

.school-page-size-select {
    min-height: 36px;
    padding: 0 34px 0 12px;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #fff;
    color: #213455;
    font-weight: 700;
}

.school-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-page-ellipsis {
    display: inline-flex;
    width: 24px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #71809a;
    font-weight: 800;
}

.school-page-button {
    width: 36px;
    height: 36px;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #fff;
    color: #4d5d76;
    font-size: 0.92rem;
    font-weight: 700;
}

.school-page-button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 18px rgba(41, 102, 246, 0.18);
}

.school-shift-cell,
.school-number-cell,
.school-progress-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.school-shift-icon {
    color: #f5ad15;
}

.school-number-positive { color: #2f9d58; font-weight: 700; }
.school-number-negative { color: #ef4444; font-weight: 700; }
.school-number-warning { color: #f59e0b; font-weight: 700; }

.school-progress-cell {
    min-width: 150px;
}

.school-progress-track {
    width: 84px;
    height: 8px;
    border-radius: 999px;
    background: #eaf1f8;
    overflow: hidden;
}

.school-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38b86a 0%, #7bd28d 100%);
}

.school-two-column-grid,
.school-three-column-grid,
.school-reports-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

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

.school-two-column-grid-tight {
    gap: 14px;
}

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

.school-reports-grid {
    grid-template-columns: 1.55fr 1.1fr;
}

.school-subpanel,
.school-ops-panel,
.school-info-box {
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.school-subpanel,
.school-ops-panel {
    padding: 18px 20px;
}

.school-subpanel-large {
    min-height: 296px;
}

.school-subpanel-header {
    margin-bottom: 14px;
}

.school-subpanel-header p,
.school-ops-header p,
.school-info-copy p {
    margin: 6px 0 0;
    color: #72809a;
    font-size: 0.84rem;
}

.school-mini-link,
.school-secondary-link,
.school-inline-link,
.school-centered-link,
.school-align-end {
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.school-mini-link {
    border: 1px solid #dde5f0;
    border-radius: 12px;
    background: #fff;
    padding: 8px 12px;
}

.school-centered-link {
    display: block;
    margin: 14px auto 0;
    text-align: center;
}

.school-align-end {
    display: block;
    margin-left: auto;
    margin-top: 10px;
}

.school-history-list,
.school-bars-list,
.school-ranking-list {
    display: grid;
    gap: 10px;
}

.school-history-row,
.school-ranking-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef2f8;
}

.school-history-row {
    grid-template-columns: 1.4fr auto repeat(3, auto) auto;
}

.school-ranking-row {
    grid-template-columns: 22px 1fr auto;
}

.school-bar-row {
    display: grid;
    grid-template-columns: 1.3fr minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.school-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #eef3f9;
    overflow: hidden;
}

.school-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.school-line-chart {
    position: relative;
    height: 240px;
    border-radius: 16px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(79, 136, 255, 0.04)),
        repeating-linear-gradient(to top, #eef3f8 0 1px, transparent 1px 48px);
    overflow: hidden;
}

.school-line-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.13);
}

.school-line-point span {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #3e4d67;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.school-line-axis {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 8px 8px;
    color: #72809a;
    font-size: 0.8rem;
}

.school-banner,
.school-info-bar {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: 14px;
}

.school-banner {
    background: #eef4ff;
    color: #28417c;
    font-weight: 600;
}

.school-banner-warning {
    background: #fff8e7;
    color: #8a5a00;
}

.school-info-bar,
.school-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 1px solid #deebf8;
    background: #f7fbff;
}

.school-info-box {
    margin-top: 16px;
    padding: 16px 18px;
}

.school-info-copy {
    display: grid;
    gap: 4px;
    color: #52627d;
    font-size: 0.9rem;
}

.school-ops-panel {
    margin-top: 16px;
    background: #fcfdff;
}

.school-code-input {
    min-width: 160px;
}

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

.company-role-pill,
.company-inline-pill,
.settings-value-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.company-role-violet { background:#eef6ff; color:#2563eb; }
.company-role-blue { background:#e7f0ff; color:#3472f3; }
.company-role-blue-soft { background:#eef5ff; color:#5992ff; }
.company-role-green { background:#eaf9ef; color:#2b9958; }
.company-role-gold { background:#ecfeff; color:#0f766e; }
.company-role-orange { background:#fff1e7; color:#f07b2b; }
.company-role-red { background:#ffe9e9; color:#ec4e4e; }
.company-role-violet-soft { background:#f3f4f6; color:#0d1b2a; }
.company-role-slate { background:#edf1f7; color:#6d7a90; }

.company-badge-violet { background:linear-gradient(135deg,#eaf2ff 0%,#f7fbff 100%); color:#2563eb; }
.company-badge-blue { background:linear-gradient(135deg,#e6efff 0%,#f1f6ff 100%); color:#3472f3; }
.company-badge-gold { background:linear-gradient(135deg,#dcfbf7 0%,#f1fffd 100%); color:#0f766e; }
.company-badge-green { background:linear-gradient(135deg,#e6f8ee 0%,#f2fcf6 100%); color:#2b9958; }
.company-badge-red { background:linear-gradient(135deg,#ffe5e5 0%,#fff4f4 100%); color:#ec4e4e; }
.company-badge-violet-soft { background:linear-gradient(135deg,#f3f4f6 0%,#fbfcff 100%); color:#0d1b2a; }
.company-badge-slate { background:linear-gradient(135deg,#eef2f7 0%,#f7f9fc 100%); color:#72809a; }

.company-inline-pill-green { background:#eaf9ef; color:#2b9958; }

.company-avatar-chip {
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    font-size:0.78rem;
    font-weight:800;
    flex:none;
}

.company-preline-copy {
    white-space: pre-line;
    color: #52627d;
}

.company-bars-visual {
    display:grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 16px;
    align-items:end;
    min-height: 190px;
    padding: 14px 8px 0;
}

.company-bars-visual-large {
    min-height: 210px;
}

.company-daily-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 242px;
    padding: 12px 4px 0;
}

.company-daily-column {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 8px;
    min-width: 0;
    color: #5d6b83;
    text-align: center;
}

.company-daily-column strong {
    color: #14213d;
    font-size: 0.86rem;
}

.company-daily-column > span {
    color: #14213d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-daily-column small {
    color: #72809a;
    font-size: 0.78rem;
    white-space: nowrap;
}

.company-daily-stack {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 42px;
    height: 140px;
    border-radius: 12px;
    background: #eef3f9;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(211, 222, 238, 0.8);
}

.company-daily-stack span {
    display: block;
    width: 100%;
}

.company-daily-stack .is-present { background: #58c576; }
.company-daily-stack .is-late { background: #ffb224; }
.company-daily-stack .is-absent { background: #ef4444; }
.company-daily-stack .is-missing { background: #c7d2e4; }

.company-bar-item {
    display:grid;
    justify-items:center;
    gap:10px;
    color:#4e5d76;
    font-size:0.8rem;
    text-align:center;
}

.company-bar-item span {
    font-weight:700;
    color:#1b2a44;
}

.company-bar-item strong {
    font-size:0.8rem;
}

.company-bar-item small {
    color:#72809a;
    font-size:0.76rem;
}

.company-bar {
    width: 60px;
    border-radius: 12px 12px 4px 4px;
    box-shadow: inset 0 -4px 10px rgba(255,255,255,0.18);
}

/* Entria public landing based on the provided product mockup. */
.entria-page {
    --entria-navy: #071632;
    --entria-text: #0b1733;
    --entria-muted: #53627d;
    --entria-blue: #2259f2;
    --entria-cyan: #16b8c8;
    --entria-green: #11bd7e;
    --entria-purple: #7c4dff;
    --entria-line: #dfe7f2;
    --entria-soft: #f7faff;
    min-height: 100vh;
    overflow-x: clip;
    background: #ffffff;
    color: var(--entria-text);
}

.entria-header {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    width: min(100%, 1440px);
    min-height: 96px;
    margin: 0 auto;
    padding: 18px 64px;
}

.entria-logo {
    display: inline-flex;
    width: 170px;
}

.entria-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.entria-nav,
.entria-header-actions,
.entria-hero-actions,
.entria-benefits,
.entria-cta-band > div:last-child,
.entria-payments {
    display: flex;
    align-items: center;
}

.entria-nav {
    justify-content: center;
    gap: 48px;
    min-width: 0;
    color: #071632;
    font-size: 0.92rem;
    font-weight: 800;
}

.entria-nav a {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
}

.entria-nav a.active {
    color: var(--entria-blue);
}

.entria-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--entria-green);
}

.entria-header-actions {
    justify-content: flex-end;
    gap: 12px;
}

.entria-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    min-width: 136px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--entria-text);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.entria-button:hover,
.entria-plan-button:hover {
    transform: translateY(-1px);
}

.entria-button-primary {
    background: linear-gradient(135deg, #2457ff 0%, #1f65f4 58%, #10b9bf 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 89, 242, 0.24);
}

.entria-button-light {
    border-color: #d8e1ee;
    background: #ffffff;
    color: #101b33;
}

.entria-button-demo,
.entria-button-outline-blue {
    border-color: #d8e1ee;
    background: #ffffff;
    color: #111c35;
}

.entria-button-outline-blue {
    border-color: #2259f2;
    color: #2259f2;
}

.entria-button-large {
    min-width: 170px;
    min-height: 52px;
}

.entria-button-demo span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #2457ff;
    border-radius: 999px;
    color: transparent;
    font-size: 0;
}

.entria-button-demo span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #2457ff;
}

.entria-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(600px, 1.22fr);
    gap: 42px;
    align-items: center;
    width: min(100%, 1440px);
    min-height: 648px;
    margin: 0 auto;
    padding: 36px 64px 64px;
}

.entria-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 620px;
    height: 120px;
    border-radius: 320px 0 0 0;
    background: radial-gradient(circle at 86% 100%, rgba(17, 189, 126, 0.24), transparent 42%), linear-gradient(135deg, rgba(34, 89, 242, 0.12), rgba(17, 189, 126, 0.16));
    z-index: 0;
}

.entria-hero-copy,
.entria-hero-stage {
    position: relative;
    z-index: 1;
}

.entria-hero-copy {
    max-width: 470px;
}

.entria-hero-copy h1 {
    margin: 0;
    color: var(--entria-text);
    font-size: 3.15rem;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-green {
    color: var(--entria-green);
}

.entria-blue {
    color: var(--entria-blue);
}

.entria-hero-copy p {
    max-width: 440px;
    margin-top: 28px;
    color: var(--entria-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.entria-benefits {
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 30px;
}

.entria-benefits span {
    position: relative;
    flex: 0 0 calc(50% - 14px);
    min-height: 22px;
    padding-left: 28px;
    color: #1d2a44;
    font-size: 0.95rem;
    font-weight: 750;
}

.entria-benefits span::before,
.entria-plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--entria-green);
    border-radius: 999px;
}

.entria-benefits span::after,
.entria-plan-card li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--entria-green);
    border-bottom: 2px solid var(--entria-green);
    transform: rotate(-45deg);
}

.entria-hero-actions {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
}

.entria-safe-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    color: #4b5b76;
    font-size: 0.92rem;
    font-weight: 750;
}

.entria-safe-note span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1.8px solid var(--entria-blue);
    border-radius: 50% 50% 45% 45%;
    color: transparent;
    font-size: 0;
}

.entria-hero-stage {
    min-height: 560px;
}

.entria-laptop {
    position: absolute;
    right: 0;
    top: 28px;
    width: min(760px, 100%);
}

.entria-laptop-screen {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    overflow: hidden;
    min-height: 488px;
    padding: 18px;
    border: 12px solid #0d111a;
    border-bottom-width: 18px;
    border-radius: 24px 24px 16px 16px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(12, 26, 57, 0.22);
}

.entria-laptop-base {
    width: 78%;
    height: 18px;
    margin: 0 auto;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #2f3644, #111827);
    box-shadow: 0 18px 28px rgba(12, 26, 57, 0.18);
}

.entria-app-sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px 10px;
    border-right: 1px solid #e7edf7;
    background: #fbfdff;
}

.entria-app-brand {
    height: 42px;
    margin-bottom: 8px;
}

.entria-app-brand img {
    max-width: 108px;
    height: 32px;
    object-fit: contain;
}

.entria-app-sidebar span {
    min-height: 31px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #53627d;
    font-size: 0.76rem;
    font-weight: 800;
}

.entria-app-sidebar span.active {
    background: #eef4ff;
    color: var(--entria-blue);
}

.entria-dashboard-preview {
    min-width: 0;
    padding: 10px 14px 14px 20px;
}

.entria-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.entria-dashboard-top h2 {
    margin: 0;
    color: var(--entria-text);
    font-size: 1.08rem;
    font-weight: 950;
}

.entria-admin-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entria-admin-chip > span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7c59f, #e67e91);
}

.entria-admin-chip strong,
.entria-admin-chip small {
    display: block;
    line-height: 1.05;
}

.entria-admin-chip strong {
    font-size: 0.72rem;
}

.entria-admin-chip small {
    margin-top: 3px;
    color: #7a8699;
    font-size: 0.58rem;
}

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

.entria-mini-kpis article,
.entria-chart-card,
.entria-activity-card,
.entria-feature-card,
.entria-plan-card {
    border: 1px solid var(--entria-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(40, 67, 121, 0.05);
}

.entria-mini-kpis article {
    min-height: 92px;
    padding: 16px;
}

.entria-mini-kpis span,
.entria-mini-kpis small {
    display: block;
    color: #697792;
    font-size: 0.68rem;
    font-weight: 800;
}

.entria-mini-kpis strong {
    display: block;
    margin-top: 8px;
    color: var(--entria-blue);
    font-size: 1.5rem;
    font-weight: 950;
}

.entria-mini-kpis small {
    margin-top: 5px;
    color: var(--entria-green);
}

.entria-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
    gap: 12px;
    margin-top: 14px;
}

.entria-chart-card,
.entria-activity-card {
    min-height: 232px;
    padding: 16px;
}

.entria-chart-card h3,
.entria-activity-card h3 {
    margin: 0 0 18px;
    color: #1d2a44;
    font-size: 0.78rem;
    font-weight: 950;
}

.entria-chart-lines {
    position: relative;
    height: 150px;
    border-bottom: 1px solid #e7edf7;
    background: linear-gradient(#edf2fa 1px, transparent 1px) 0 20% / 100% 34px;
}

.entria-chart-lines::before {
    content: "";
    position: absolute;
    inset: 28px 10px 28px;
    background: linear-gradient(140deg, transparent 7%, #2a8dff 7% 9%, transparent 9% 25%, #2a8dff 25% 27%, transparent 27% 42%, #2a8dff 42% 44%, transparent 44% 58%, #2a8dff 58% 60%, transparent 60% 76%, #2a8dff 76% 78%, transparent 78%);
}

.entria-chart-lines span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2a8dff;
}

.entria-chart-lines span:nth-child(1) { left: 8%; top: 68%; }
.entria-chart-lines span:nth-child(2) { left: 25%; top: 52%; }
.entria-chart-lines span:nth-child(3) { left: 42%; top: 64%; }
.entria-chart-lines span:nth-child(4) { left: 58%; top: 34%; }
.entria-chart-lines span:nth-child(5) { left: 74%; top: 44%; }
.entria-chart-lines span:nth-child(6) { left: 90%; top: 26%; }

.entria-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #8390a5;
    font-size: 0.62rem;
}

.entria-activity-card {
    display: grid;
    align-content: start;
    gap: 11px;
}

.entria-activity-card div {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.entria-activity-card span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.entria-activity-card span.green {
    background: #dff9ed;
    border: 5px solid var(--entria-green);
}

.entria-activity-card span.blue {
    background: #e8f0ff;
    border: 5px solid var(--entria-blue);
}

.entria-activity-card p,
.entria-activity-card strong {
    margin: 0;
    color: #33425d;
    font-size: 0.66rem;
    line-height: 1.35;
}

.entria-activity-card small {
    color: #6d7b92;
}

.entria-phone {
    position: absolute;
    left: 20px;
    bottom: 60px;
    width: 176px;
    min-height: 438px;
    padding: 12px;
    border: 7px solid #0c111c;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(12, 26, 57, 0.28);
}

.entria-phone-top {
    width: 54px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #0c111c;
}

.entria-phone-header {
    display: grid;
    gap: 2px;
    margin: 0 -6px 8px;
    padding: 10px 12px;
    border-radius: 20px 20px 10px 10px;
    background: #007f68;
    color: #ffffff;
}

.entria-phone-header strong {
    font-size: 0.84rem;
}

.entria-phone-header span {
    font-size: 0.62rem;
}

.entria-phone-chat {
    display: grid;
    gap: 6px;
}

.entria-phone-chat p,
.entria-phone-chat button,
.entria-chat-reply {
    margin: 0;
    border: 1px solid #e5edf7;
    border-radius: 8px;
    background: #ffffff;
    color: #22304a;
    font-size: 0.58rem;
    line-height: 1.35;
}

.entria-phone-chat p {
    padding: 8px;
}

.entria-phone-chat button {
    min-height: 24px;
    padding: 0 8px;
    color: #2259f2;
    font-weight: 800;
    text-align: left;
}

.entria-chat-reply {
    margin-top: 6px;
    padding: 8px;
    background: #eafaf1;
    border-color: #bfead4;
}

.entria-chat-reply strong {
    display: block;
    color: #137a4f;
    font-size: 0.62rem;
}

.entria-whatsapp-float {
    position: absolute;
    right: 54px;
    bottom: 40px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 188px;
    padding: 14px 18px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 42px rgba(12, 26, 57, 0.14);
}

.entria-whatsapp-float > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e9fff5;
    color: #10b978;
    font-size: 0;
}

.entria-whatsapp-float > span svg {
    width: 25px;
    height: 25px;
}

.entria-whatsapp-float small,
.entria-whatsapp-float strong {
    display: block;
}

.entria-whatsapp-float small {
    color: #65728a;
    font-size: 0.84rem;
}

.entria-whatsapp-float strong {
    color: #10213d;
    font-size: 1rem;
}

.entria-section {
    padding: 56px 64px;
}

.entria-features {
    padding-top: 20px;
    padding-bottom: 28px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.entria-section-heading,
.entria-pricing-head {
    width: min(100%, 1160px);
    margin: 0 auto 24px;
}

.entria-section-heading {
    display: grid;
    justify-items: center;
    text-align: center;
}

.entria-section-heading > span,
.entria-pricing-head > div:first-child > span {
    color: var(--entria-blue);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entria-section-heading h2,
.entria-pricing-head h2 {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--entria-text);
    font-size: 1.45rem;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-section-heading h2 strong {
    color: var(--entria-blue);
}

.entria-feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 1300px);
    margin: 0 auto;
}

.entria-feature-card {
    min-height: 140px;
    padding: 16px 10px;
    text-align: center;
}

.entria-feature-icon,
.entria-plan-title > div:first-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 13px;
}

.entria-feature-icon svg,
.entria-plan-title svg {
    width: 20px;
    height: 20px;
}

.entria-feature-card.green .entria-feature-icon,
.entria-plan-title .green {
    background: #def9ef;
    color: var(--entria-green);
}

.entria-feature-card.blue .entria-feature-icon,
.entria-plan-title .blue {
    background: #e8f0ff;
    color: var(--entria-blue);
}

.entria-feature-card.purple .entria-feature-icon,
.entria-plan-title .purple {
    background: #efe8ff;
    color: var(--entria-purple);
}

.entria-feature-card h3 {
    margin: 0;
    color: var(--entria-text);
    font-size: 0.66rem;
    font-weight: 950;
}

.entria-feature-card p {
    margin: 8px 0 0;
    color: #5f6d84;
    font-size: 0.53rem;
    line-height: 1.45;
}

.entria-pricing {
    padding-top: 20px;
    padding-bottom: 36px;
    background: #ffffff;
}

.entria-pricing-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.entria-billing-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #f2f5fa;
}

.entria-billing-toggle button,
.entria-billing-toggle strong {
    min-height: 30px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b5a73;
    font-weight: 850;
}

.entria-billing-toggle button.active {
    background: #ffffff;
    color: var(--entria-text);
    box-shadow: 0 6px 16px rgba(15, 35, 66, 0.06);
}

.entria-billing-toggle strong {
    display: inline-flex;
    align-items: center;
    background: #dcf8ed;
    color: var(--entria-green);
    font-size: 0.76rem;
}

.entria-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 780px);
    margin: 0 auto;
}

.entria-plan-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 286px;
    padding: 18px 16px 16px;
}

.entria-plan-card.featured {
    border-color: rgba(34, 89, 242, 0.48);
    box-shadow: 0 22px 50px rgba(34, 89, 242, 0.13);
}

.entria-plan-title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 42px;
}

.entria-plan-title > div:first-child {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 12px;
}

.entria-plan-title svg {
    width: 18px;
    height: 18px;
}

.entria-plan-title h3 {
    margin: 0;
    color: var(--entria-text);
    font-size: 0.84rem;
    font-weight: 950;
}

.entria-plan-title p {
    margin: 4px 0 0;
    color: #64718a;
    font-size: 0.58rem;
    line-height: 1.2;
}

.entria-plan-title > span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #235dff;
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 950;
}

.entria-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 38px;
    margin-top: 16px;
}

.entria-plan-price strong {
    color: var(--entria-text);
    font-size: 1.55rem;
    font-weight: 950;
}

.entria-plan-price span {
    color: #101b33;
    font-size: 0.58rem;
    font-weight: 900;
}

.entria-plan-card ul {
    display: grid;
    gap: 7px;
    margin: 6px 0 16px;
    padding: 0;
    list-style: none;
}

.entria-plan-card li {
    position: relative;
    padding-left: 20px;
    color: #4c5c75;
    font-size: 0.62rem;
    line-height: 1.25;
}

.entria-plan-card li::before {
    top: 0;
    width: 11px;
    height: 11px;
}

.entria-plan-card li::after {
    left: 3px;
    top: 4px;
    width: 4px;
    height: 2px;
}

.entria-plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: auto;
    border: 1px solid var(--entria-green);
    border-radius: 8px;
    background: #ffffff;
    color: #08a96f;
    font-size: 0.66rem;
    font-weight: 950;
    text-decoration: none;
}

.entria-plan-button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #2457ff, #2259f2);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(34, 89, 242, 0.2);
}

.entria-payments {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    color: #5b6880;
    font-size: 0.68rem;
}

.entria-payments span {
    position: relative;
    padding-left: 24px;
}

.entria-payments span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 14px;
    height: 18px;
    border: 2px solid var(--entria-green);
    border-radius: 4px;
}

.entria-payments strong {
    color: #2259f2;
    font-size: 0.95rem;
    font-weight: 950;
}

.entria-cta-band {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-sizing: border-box;
    width: min(calc(100% - 128px), 980px);
    margin: 0 auto;
    padding: 18px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf5ff 0%, #eef3ff 100%);
}

.entria-cta-band h2,
.entria-cta-band p {
    margin: 0;
}

.entria-cta-band h2 {
    color: var(--entria-text);
    font-size: 0.95rem;
    font-weight: 950;
}

.entria-cta-band p {
    margin-top: 6px;
    color: #4e5e77;
    font-size: 0.82rem;
}

.entria-cta-band > div:last-child {
    gap: 18px;
}

.entria-cta-band .entria-button {
    min-height: 42px;
}

.entria-footer {
    background: radial-gradient(circle at 8% 20%, #063866 0%, transparent 26%), #05162d;
    color: #ffffff;
}

.entria-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 0.9fr) 1.5fr;
    gap: 36px;
    width: min(100%, 1240px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 22px 64px 8px;
}

.entria-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 950;
    letter-spacing: 0;
}

.entria-footer-logo span {
    color: #2f7dff;
    font-size: 1.7rem;
    line-height: 1;
}

.entria-footer-logo strong {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
}

.entria-footer p {
    margin: 10px 0 0;
    color: #c6d2e4;
    font-size: 0.78rem;
    line-height: 1.5;
}

.entria-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.entria-socials span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 950;
}

.entria-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 950;
}

.entria-footer a {
    display: block;
    margin-top: 8px;
    color: #d7e3f6;
    font-size: 0.76rem;
}

.entria-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.entria-newsletter input {
    min-width: 0;
    min-height: 34px;
    border: 0;
    padding: 0 16px;
    color: #14213d;
    outline: none;
}

.entria-newsletter button {
    border: 0;
    background: #2457ff;
    color: #ffffff;
    font-size: 0;
}

.entria-newsletter button::before {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
    margin: auto;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
}

.entria-footer-bottom {
    width: min(100%, 1240px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px 64px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8b8cf;
    text-align: center;
    font-size: 0.74rem;
}

@media (max-width: 1180px) {
    .entria-header {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 18px;
        padding-inline: 32px;
    }

    .entria-nav {
        justify-content: center;
        gap: 22px;
        overflow: visible;
        padding-bottom: 0;
        font-size: 0.82rem;
    }

    .entria-hero {
        grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
        gap: 18px;
        min-height: 460px;
        padding: 8px 32px 22px;
    }

    .entria-hero-copy {
        max-width: 430px;
        margin-top: 30px;
    }

    .entria-hero-copy h1 {
        font-size: 2.15rem;
    }

    .entria-hero-copy p {
        margin-top: 22px;
        font-size: 0.96rem;
    }

    .entria-benefits {
        gap: 12px 18px;
        margin-top: 24px;
    }

    .entria-benefits span {
        font-size: 0.84rem;
    }

    .entria-hero-actions {
        gap: 12px;
        margin-top: 28px;
    }

    .entria-safe-note {
        margin-top: 24px;
    }

    .entria-hero-stage {
        min-height: 410px;
    }

    .entria-laptop {
        right: -8px;
        left: auto;
        top: -10px;
        width: 760px;
        transform: scale(0.72);
        transform-origin: top right;
    }

    .entria-phone {
        left: 0;
        bottom: -10px;
        transform: scale(0.75);
        transform-origin: bottom left;
    }

    .entria-whatsapp-float {
        right: 4px;
        bottom: 20px;
        transform: scale(0.86);
        transform-origin: bottom right;
    }

}

@media (max-width: 960px) {
    .entria-header {
        grid-template-columns: 1fr auto;
    }

    .entria-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .entria-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .entria-hero-copy {
        max-width: 720px;
    }

    .entria-hero-copy h1 {
        font-size: 3rem;
    }

    .entria-hero-stage {
        min-height: 560px;
    }

    .entria-laptop {
        left: 130px;
        right: auto;
        width: 720px;
        transform: scale(0.82);
        transform-origin: top left;
    }

    .entria-phone {
        transform: scale(0.84);
    }

    .entria-whatsapp-float {
        right: 26px;
        transform: scale(0.92);
    }

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

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

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

@media (max-width: 760px) {
    .entria-header {
        grid-template-columns: 1fr;
        padding: 18px 20px 10px;
    }

    .entria-logo {
        width: 150px;
    }

    .entria-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .entria-button {
        min-width: 0;
        width: 100%;
        padding-inline: 12px;
        font-size: 0.86rem;
    }

    .entria-nav {
        gap: 22px;
        font-size: 0.82rem;
    }

    .entria-hero {
        min-height: auto;
        padding: 36px 20px 54px;
    }

    .entria-hero-copy h1 {
        font-size: 2.45rem;
    }

    .entria-hero-copy p {
        font-size: 0.98rem;
    }

    .entria-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entria-benefits span {
        flex-basis: auto;
    }

    .entria-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .entria-hero-stage {
        min-height: 490px;
        overflow: hidden;
    }

    .entria-laptop {
        left: 54px;
        right: auto;
        top: 42px;
        width: 620px;
        transform: scale(0.72);
        transform-origin: top left;
    }

    .entria-phone {
        left: 0;
        bottom: 18px;
        transform: scale(0.78);
        transform-origin: bottom left;
    }

    .entria-whatsapp-float {
        right: 8px;
        bottom: 36px;
        min-width: 160px;
        padding: 10px 12px;
    }

    .entria-section {
        padding: 58px 20px;
    }

    .entria-section-heading h2,
    .entria-pricing-head h2 {
        font-size: 1.7rem;
    }

    .entria-feature-card {
        min-height: 190px;
        padding: 26px 20px;
    }

    .entria-feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .entria-feature-icon svg {
        width: 25px;
        height: 25px;
    }

    .entria-feature-card h3 {
        font-size: 0.95rem;
    }

    .entria-feature-card p {
        font-size: 0.8rem;
    }

    .entria-feature-grid,
    .entria-plan-grid {
        grid-template-columns: 1fr;
    }

    .entria-pricing-head {
        display: grid;
        align-items: start;
    }

    .entria-billing-toggle {
        width: 100%;
        overflow-x: auto;
    }

    .entria-billing-toggle button,
    .entria-billing-toggle strong {
        padding-inline: 14px;
        white-space: nowrap;
    }

    .entria-cta-band {
        display: grid;
        width: calc(100% - 40px);
        padding: 26px 22px;
    }

    .entria-cta-band > div:last-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .entria-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 20px 28px;
    }

    .entria-footer-bottom {
        padding-inline: 20px;
    }
}

.company-executive-screen {
    gap: 16px;
    min-width: 0;
    overflow-x: hidden;
}

.company-executive-screen .school-panel,
.company-executive-screen .school-subpanel,
.company-executive-kpi,
.company-shift-card {
    border-radius: 8px;
}

.company-executive-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: stretch;
}

.company-executive-header h1 {
    margin: 0;
    color: #0d1b2a;
    font-size: 2.15rem;
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.company-executive-header p {
    margin: 8px 0 0;
    color: #60708a;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.company-period-summary {
    display: grid;
    gap: 5px;
    align-content: center;
    padding: 16px 18px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-period-summary span,
.company-period-summary small {
    color: #687892;
    font-size: 0.82rem;
    font-weight: 750;
}

.company-period-summary strong {
    color: #0d1b2a;
    font-size: 1.05rem;
}

.company-report-commandbar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.company-report-commandbar .school-toolbar-actions {
    flex-wrap: wrap;
}

.company-executive-kpis,
.company-mini-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.company-mini-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-executive-kpi {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto 34px;
    gap: 10px 12px;
    min-width: 0;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #e0e8f3;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-kpi-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eef5ff;
    color: #2563eb;
}

.theme-green .company-kpi-icon { background: #eefbf2; color: #22a35a; }
.theme-danger .company-kpi-icon { background: #fff0f0; color: #ef4444; }
.theme-gold .company-kpi-icon { background: #fff7e6; color: #ca8a04; }
.theme-blue .company-kpi-icon { background: #eef5ff; color: #2563eb; }
.theme-violet .company-kpi-icon { background: #f3efff; color: #7c5cff; }

.company-kpi-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.company-kpi-copy span {
    color: #52627d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-kpi-copy strong {
    color: #0d1b2a;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 850;
}

.company-kpi-copy small {
    color: #6f7f98;
    font-size: 0.78rem;
    line-height: 1.28;
    font-weight: 650;
}

.company-kpi-sparkline {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
    align-items: end;
    min-height: 34px;
}

.company-kpi-sparkline i {
    flex: 1 1 8px;
    min-width: 5px;
    max-width: 18px;
    border-radius: 999px 999px 0 0;
    background: currentColor;
    opacity: 0.62;
}

.theme-green .company-kpi-sparkline { color: #58c576; }
.theme-danger .company-kpi-sparkline { color: #ef635d; }
.theme-gold .company-kpi-sparkline { color: #ffb224; }
.theme-blue .company-kpi-sparkline { color: #2563eb; }
.theme-violet .company-kpi-sparkline { color: #7c5cff; }

.company-report-tabs {
    gap: 6px;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    border-bottom-color: #e2eaf5;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    scrollbar-width: thin;
}

.company-report-tabs .school-tab {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #52627d;
    line-height: 1;
    white-space: nowrap;
}

.company-report-tabs .school-tab:hover,
.company-report-tabs .school-tab:focus-visible {
    background: #ffffff;
    border-color: #dbe7f6;
    color: #213455;
}

.company-report-tabs .school-tab.active {
    background: #eaf2ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.school-donut-layout {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.company-dashboard-grid {
    display: grid;
    gap: 14px;
}

.company-dashboard-grid-summary {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr) minmax(360px, 1fr);
}

.company-dashboard-grid-two {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

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

.company-panel-wide {
    min-width: 0;
}
.company-closure-grid {
    grid-template-columns: minmax(0, 1fr);
}

.company-closure-panel {
    width: 100%;
    max-width: 1180px;
}

.company-closure-state {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #f8fbff;
}

.company-closure-state div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.company-closure-state span,
.company-closure-state small,
.company-closure-action-note {
    color: #5f6f89;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.35;
}

.company-closure-state strong {
    color: #0f1a2a;
    font-size: 1.05rem;
    line-height: 1.2;
}

.company-closure-state-meta {
    display: grid;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 230px;
    text-align: right;
}

.company-closure-state.is-ready {
    border-color: #fde68a;
    background: #fffbeb;
}

.company-closure-state.is-closed,
.company-closure-state.is-blocked {
    border-color: #fecaca;
    background: #fff7f7;
}

.company-closure-state.is-open {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.company-closure-field-hint {
    display: block;
    margin-top: 7px;
    color: #8a3b12;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.company-closure-field-hint.is-ready {
    color: #166534;
}
.company-closure-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.company-closure-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    background: #ffffff;
}

.company-closure-step > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #edf2f8;
    color: #52627d;
    font-weight: 900;
}

.company-closure-step div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.company-closure-step strong {
    color: #0f1a2a;
    font-size: 0.88rem;
}

.company-closure-step small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.25;
}

.company-closure-step.is-active {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.company-closure-step.is-active > span {
    background: #dbeafe;
    color: #1d4ed8;
}

.company-closure-step.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.company-closure-step.is-complete > span {
    background: #dcfce7;
    color: #15803d;
}

.company-closure-step.is-blocked {
    border-color: #fecaca;
    background: #fff7f7;
}

.company-closure-step.is-blocked > span {
    background: #fee2e2;
    color: #b91c1c;
}

.company-closure-action-note {
    margin: -4px 0 12px;
}

.company-closure-feedback {
    display: grid;
    gap: 4px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 750;
    line-height: 1.35;
}

.company-closure-feedback strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.company-closure-feedback span {
    overflow-wrap: anywhere;
}

.company-closure-feedback.info {
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.company-closure-feedback.success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.company-closure-feedback.warning {
    color: #8a3b12;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.company-closure-feedback.danger {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fff7f7;
}
.company-closure-fields {
    grid-template-columns: minmax(210px, 1fr) minmax(180px, 0.75fr) minmax(260px, 1.1fr) minmax(280px, 1.15fr);
    gap: 18px;
    align-items: end;
}

.company-closure-actions {
    justify-content: flex-start;
    gap: 14px;
    margin: 18px 0 14px;
}

.company-closure-actions .school-secondary-button,
.company-closure-actions .school-primary-button {
    min-width: 180px;
}

.company-closure-actions .school-primary-button {
    min-width: 220px;
}

.company-closure-review-grid {
    grid-template-columns: minmax(0, 1fr);
}

.company-closure-review-panel {
    width: 100%;
    max-width: 1180px;
}

.company-review-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.company-review-summary-card {
    min-width: 0;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px 16px;
    display: grid;
    gap: 5px;
}

.company-review-summary-card span,
.company-review-summary-card small {
    color: #687892;
    font-size: 0.82rem;
    font-weight: 750;
}

.company-review-summary-card strong {
    color: #0d1b2a;
    font-size: 1.65rem;
    line-height: 1;
}

.company-closure-review-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.company-closure-review-table th,
.company-closure-review-table td {
    padding: 13px 12px;
    vertical-align: top;
}

.company-closure-review-table th:nth-child(1) {
    width: 92px;
}

.company-closure-review-table th:nth-child(2) {
    width: 190px;
}

.company-closure-review-table th:nth-child(3) {
    width: 112px;
}

.company-closure-review-table th:nth-child(6) {
    width: 176px;
}

.company-closure-review-table td:first-child {
    white-space: nowrap;
}

.company-review-person {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.company-review-person strong {
    color: #07162f;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.company-review-person span {
    color: #66758d;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.company-review-detail,
.company-review-action {
    display: block;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.company-review-action {
    color: #51627d;
    font-weight: 800;
}

.company-review-actions-cell {
    min-width: 0;
}

.company-review-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.company-review-change-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #cfe0f7;
    border-radius: 8px;
    background: #f8fbff;
    color: #2557a7;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.company-review-change-button svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.company-review-change-button:hover {
    border-color: #8fb8f2;
    background: #eef6ff;
}

.company-review-approve-button {
    border-color: #b9efd0;
    background: #f1fbf5;
    color: #047857;
}

.company-review-approve-button:hover {
    border-color: #6dd69d;
    background: #e6f8ee;
}

.company-review-reject-button {
    border-color: #ffd4d7;
    background: #fff7f7;
    color: #d22c36;
}

.company-review-reject-button:hover {
    border-color: #ff9da5;
    background: #fff0f1;
}

@media (max-width: 1180px) {
    .company-closure-review-table th:nth-child(2) {
        width: 160px;
    }

    .company-closure-review-table th:nth-child(3) {
        width: 104px;
    }

    .company-closure-review-table th:nth-child(6) {
        width: 92px;
    }

    .company-review-change-button {
        width: 34px;
        padding: 0;
    }

    .company-review-change-button span {
        display: none;
    }
}
.attendance-query-filter {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.attendance-query-filter .school-secondary-button {
    min-height: 38px;
    min-width: 0;
    padding-inline: 14px;
}
.company-review-empty {
    margin: 0;
}

.company-closure-actions .school-danger-button {
    min-width: 270px;
}

.company-closure-panel .school-info-bar {
    margin-top: 12px;
}

.company-coverage-table td:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.company-coverage-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.company-coverage-dot.is-green,
.company-shift-card.is-green .school-bar-track span,
.company-risk-pill.is-green {
    background: #58c576;
}

.company-coverage-dot.is-yellow,
.company-shift-card.is-yellow .school-bar-track span,
.company-risk-pill.is-yellow {
    background: #ffb224;
}

.company-coverage-dot.is-red,
.company-shift-card.is-red .school-bar-track span,
.company-risk-pill.is-red {
    background: #ef635d;
}

.company-shift-semaphore {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.company-shift-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e0e8f3;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.company-shift-card span {
    color: #52627d;
    font-size: 0.84rem;
    font-weight: 800;
}

.company-shift-card strong {
    color: #0d1b2a;
    font-size: 1.9rem;
    line-height: 1;
}

.company-shift-card small {
    color: #6f7f98;
    font-weight: 700;
}

.company-split-metric {
    display: grid;
    gap: 18px;
}

.company-split-metric > div {
    display: grid;
    gap: 8px;
}

.company-split-metric span,
.company-cost-row span,
.company-cost-breakdown span,
.company-cost-hero > div > span {
    color: #52627d;
    font-size: 0.82rem;
    font-weight: 800;
}

.company-split-metric strong {
    color: #0d1b2a;
    font-size: 1.7rem;
    line-height: 1;
}

.company-critical-list,
.company-cost-list {
    display: grid;
    gap: 12px;
}

.company-critical-list hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #e5edf8;
}

.company-critical-row,
.company-cost-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(70px, auto);
    gap: 10px;
    align-items: center;
    color: #52627d;
    font-size: 0.86rem;
    font-weight: 700;
}

.company-critical-row > span,
.company-cost-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-critical-row strong,
.company-cost-row strong {
    color: #0d1b2a;
    font-weight: 850;
}

.company-critical-row small,
.company-cost-row small {
    color: #72809a;
    font-weight: 650;
    text-align: right;
}

.company-critical-row em {
    justify-self: end;
    min-width: 72px;
    padding: 5px 8px;
    border-radius: 999px;
    font-style: normal;
    text-align: center;
    font-weight: 850;
}

.company-critical-row em.is-green { background: #eefbf2; color: #15803d; }
.company-critical-row em.is-yellow { background: #fff7e6; color: #a16207; }
.company-critical-row em.is-red { background: #fff0f0; color: #c83535; }

.company-risk-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 66px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
}

.company-cost-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: center;
}

.company-cost-hero strong {
    display: block;
    margin-top: 7px;
    color: #0d1b2a;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 850;
}

.company-cost-hero small {
    display: block;
    margin-top: 8px;
    color: #6f7f98;
    font-weight: 700;
}

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

.company-cost-breakdown div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #f8fbff;
}

.company-cost-breakdown strong {
    margin: 0;
    font-size: 1.08rem;
}

.company-line-chart-percent .school-line-point {
    background: #2563eb;
}

.company-matrix-table {
    min-width: 760px;
}

.company-matrix-cell {
    text-align:center;
    font-size:1rem;
    font-weight:800;
}

.company-matrix-cell.is-allowed {
    color:#22a35a;
}

.company-matrix-cell.is-denied {
    color:#ef4444;
}

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

.settings-side-stack,
.settings-toggle-list,
.settings-action-list,
.settings-form-grid,
.settings-meta-list {
    display:grid;
    gap:12px;
}

.settings-form-actions {
    margin-top: 6px;
}

.settings-general-grid {
    grid-template-columns: minmax(0, 780px);
}

.role-permission-matrix-grid {
    grid-template-columns: 1fr;
}

.settings-grid:not(.settings-general-grid):not(.settings-advanced-grid) > .school-subpanel:nth-of-type(3),
.settings-grid:not(.settings-general-grid):not(.settings-advanced-grid) > .school-subpanel:nth-of-type(6) {
    grid-column: 1 / -1;
}

.settings-grid:not(.settings-general-grid):not(.settings-advanced-grid) .settings-form-grid,
.settings-general-grid .settings-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid:not(.settings-general-grid):not(.settings-advanced-grid) .school-subpanel-header {
    align-items: flex-start;
}
.settings-toggle-row {
    display:grid;
    grid-template-columns: 42px 1fr auto auto;
    gap:12px;
    align-items:center;
    padding: 10px 0;
    border-top:1px solid #eef2f8;
}

.settings-toggle-row:first-child {
    border-top:none;
}

.settings-toggle-icon {
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f7faff;
    color:#3167ef;
    box-shadow: inset 0 0 0 1px #e3ebf6;
}

.settings-toggle-copy {
    display:grid;
    gap:4px;
}

.settings-toggle-copy strong {
    color:#1b2a44;
    font-size:0.92rem;
}

.settings-toggle-copy span {
    color:#72809a;
    font-size:0.82rem;
}

.settings-value-chip {
    border:1px solid #dce5f3;
    background:#fff;
    color:#53647c;
}

.settings-switch {
    position:relative;
    display:inline-block;
    width:34px;
    height:20px;
}

.settings-switch input {
    opacity:0;
    width:0;
    height:0;
}

.settings-switch span {
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#d9e3f0;
    transition:background .2s ease;
}

.settings-switch span::before {
    content:"";
    position:absolute;
    left:2px;
    top:2px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 6px rgba(15,23,42,.18);
    transition:transform .2s ease;
}

.settings-switch input:checked + span {
    background:#4cb66b;
}

.settings-switch input:checked + span::before {
    transform:translateX(14px);
}

.settings-meta-list > div {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px 0;
    border-top:1px solid #eef2f8;
}

.settings-meta-list > div:first-child {
    border-top:none;
}

.settings-meta-list span {
    color:#72809a;
}

.settings-action-button {
    justify-content:flex-start;
}

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

.settings-advanced-grid {
    grid-template-columns: 1fr;
}

.settings-demo-panel .settings-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.settings-summary-card {
    display:grid;
    gap:4px;
    min-width: 0;
    padding:18px 16px;
    border:1px solid #e4ebf5;
    border-radius:16px;
    background:#fff;
}

.settings-summary-card strong {
    font-size:0.92rem;
}

.settings-summary-card span {
    font-size:2rem;
    line-height:1;
    font-weight:800;
    letter-spacing:0;
}

.settings-summary-card small,
.settings-summary-card em {
    color:#72809a;
    font-size:0.8rem;
    font-style:normal;
    overflow-wrap: anywhere;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.app-modal {
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.app-modal.app-modal-small {
    width: min(100%, 520px);
}

.app-modal.app-modal-wide {
    width: min(100%, 1180px);
}

.app-modal.app-modal-checkpoint {
    width: min(100%, 720px);
}

.app-modal-header,
.app-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
}

.app-modal-header {
    border-bottom: 1px solid #edf2f8;
}

.app-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #edf2f8;
}

.app-modal-title {
    display: grid;
    gap: 4px;
}

.app-modal-title h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.app-modal-title p {
    color: #72809a;
    font-size: 0.86rem;
}

.app-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    background: #fff;
    color: #506079;
    font-size: 1.15rem;
    cursor: pointer;
}

.app-modal-body {
    padding: 20px 22px;
}

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

.app-form-grid .school-labeled-field.full-width {
    grid-column: 1 / -1;
}

.school-check-field {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    font-size: 0.9rem;
    font-weight: 750;
    box-sizing: border-box;
}

.school-check-field input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.work-schedule-bulk-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f8fbff;
}

.work-schedule-hours-cell {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 160px;
}

.work-schedule-hours-cell strong {
    color: #071b40;
    font-size: 1rem;
}

.work-schedule-hours-cell small {
    color: #60708d;
    font-size: 0.78rem;
    font-weight: 700;
}

.work-schedule-weekly-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f8fbff;
}

.work-schedule-weekly-summary div {
    display: grid;
    gap: 4px;
}

.work-schedule-weekly-summary span:not(.school-status-pill) {
    color: #60708d;
    font-size: 0.82rem;
    font-weight: 700;
}

.work-schedule-weekly-summary strong {
    color: #071b40;
    font-size: 1.12rem;
}

.work-schedule-bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.work-schedule-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.work-schedule-rule-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.work-schedule-days-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.work-schedule-days-table th,
.work-schedule-days-table td {
    vertical-align: middle;
}

.work-schedule-days-table th {
    line-height: 1.2;
    white-space: normal;
}

.work-schedule-days-table .work-day-col {
    width: 90px;
    min-width: 90px;
}

.work-schedule-days-table .work-check-col {
    width: 98px;
    min-width: 98px;
    text-align: center;
}

.work-schedule-days-table .work-paid-rest-col {
    width: 118px;
    min-width: 118px;
    text-align: center;
}

.work-schedule-days-table .work-time-col {
    width: 186px;
    min-width: 186px;
}

.work-schedule-days-table .work-tolerance-col {
    width: 148px;
    min-width: 148px;
}

.work-schedule-days-table .work-late-limit-col {
    width: 116px;
    min-width: 116px;
}

.work-schedule-days-table .work-meal-mode-col {
    width: 168px;
    min-width: 168px;
}

.work-schedule-days-table .school-code-input,
.work-schedule-rule-grid .school-code-input {
    min-width: 0;
}

.work-schedule-days-table .school-code-input {
    width: 100%;
}

.work-schedule-days-table input[type="number"].school-code-input {
    padding-inline: 10px;
    text-align: center;
}

.work-schedule-pair,
.work-schedule-meal-cell {
    display: grid;
    gap: 8px;
}

.work-schedule-pair {
    grid-template-columns: repeat(2, minmax(58px, 1fr));
}

.work-schedule-meal-cell {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

@media (max-width: 760px) {
    .work-schedule-weekly-summary {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.kiosk-layout-shell {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(252, 211, 77, 0.12), transparent 18%),
        radial-gradient(circle at 78% 4%, rgba(96, 165, 250, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.kiosk-screen {
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(16px, 3vh, 34px);
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(24px, 4vh, 54px) clamp(28px, 5vw, 88px) clamp(70px, 8vh, 96px);
}

.kiosk-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #111827;
}

.kiosk-brand-row strong {
    display: block;
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    font-weight: 850;
}

.kiosk-brand-row span {
    display: block;
    color: #64748b;
    font-weight: 750;
}

.kiosk-brand-mark {
    position: relative;
    width: 56px;
    height: 56px;
}

.kiosk-panel {
    align-self: stretch;
    justify-self: center;
    width: min(100%, 1560px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 5vh, 72px) clamp(34px, 5vw, 88px);
    border: 1px solid #dfe7f2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
}

.kiosk-panel-message {
    grid-template-columns: 1fr;
    min-height: auto;
}

.kiosk-panel > .kiosk-secure-card {
    grid-column: 1 / -1;
    justify-self: center;
}

.kiosk-copy {
    display: grid;
    gap: clamp(10px, 2vh, 22px);
    align-content: center;
    min-height: 0;
}

.kiosk-copy span,
.kiosk-footer span {
    color: #65748f;
    font-weight: 750;
}

.kiosk-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2.4rem, 6vh, 5.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.kiosk-copy p {
    margin: 0;
    max-width: 760px;
    color: #53637c;
    font-size: clamp(1rem, 2.2vh, 1.7rem);
    line-height: 1.35;
}

.kiosk-qr-shell {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: min(100%, 56vh);
    max-width: 620px;
    max-height: 100%;
    justify-self: center;
    padding: clamp(18px, 3vh, 48px);
    border: 1px solid #e4ebf5;
    border-radius: 26px;
    background: #fff;
}

.kiosk-qr-shell svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.kiosk-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    padding-top: clamp(12px, 2vh, 24px);
    border-top: 1px solid #edf2f8;
    color: #0d1b2a;
    font-size: clamp(0.95rem, 2vh, 1.35rem);
    font-weight: 850;
}

.kiosk-action-menu {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 25;
}

.kiosk-action-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    gap: 5px;
    flex-direction: column;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    list-style: none;
}

.kiosk-action-menu summary::-webkit-details-marker {
    display: none;
}

.kiosk-action-menu summary span {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #17213d;
}

.kiosk-action-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    gap: 14px;
    min-width: 260px;
    padding: 16px;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.kiosk-session-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kiosk-session-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.kiosk-session-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #17213d;
    font-size: 0.95rem;
}

.kiosk-session-copy span {
    color: #64748b;
    font-size: 0.82rem;
}

.kiosk-action-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
    color: #a93232;
    font-weight: 850;
    text-decoration: none;
}

.kiosk-logout-modal form {
    margin: 0;
}

.checkin-mobile-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #f5f8fc;
}

.checkin-card {
    width: min(100%, 440px);
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

.checkin-card h1,
.checkin-card p {
    margin: 0;
}

.checkin-attendance-button,
.checkin-authorize-button {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    font-size: 1.02rem;
    letter-spacing: 0;
}

.checkin-attendance-button {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 16px 28px rgba(22, 163, 74, 0.24);
}

.checkin-authorize-button {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.22);
}

.checkin-mismatch-zone {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed #dce5f2;
}

.checkin-mismatch-button {
    width: 100%;
    color: #9f2f2f;
    border-color: #ffd6d6;
    background: #fffafa;
}

.checkin-mismatch-confirm {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #ffd6d6;
    border-radius: 16px;
    background: #fff7f7;
    color: #213455;
}

.checkin-mismatch-confirm strong {
    color: #9f2f2f;
}

.checkin-mismatch-confirm p {
    color: #6b7890;
    line-height: 1.45;
}

.checkin-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.worker-portal-card {
    width: min(100%, 720px);
}

.worker-portal-card h2 {
    margin: 10px 0 0;
    color: #10213b;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.worker-portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.worker-portal-metrics .school-metric-card {
    min-height: 118px;
}

@media (max-width: 560px) {
    .worker-portal-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .kiosk-layout-shell {
        height: auto;
        overflow: auto;
    }

    .kiosk-screen {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 30px 18px 92px;
    }

    .kiosk-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 28px;
    }

    .kiosk-action-menu {
        top: 14px;
        right: 10px;
    }

    .kiosk-action-panel {
        min-width: 230px;
    }
}

.app-form-textarea {
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: #213455;
    resize: vertical;
    box-sizing: border-box;
    font: inherit;
}

.enrollment-link-copy-field {
    min-height: 96px;
    word-break: break-all;
}

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

.app-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f8;
}

.app-detail-row:first-child {
    padding-top: 0;
    border-top: none;
}

.app-detail-row span {
    color: #72809a;
    font-size: 0.84rem;
}

.app-detail-row strong {
    color: #1b2a44;
    font-size: 0.92rem;
}

@media (max-width: 1320px) {
    .school-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-metrics-grid,
    .company-executive-kpis,
    .company-mini-kpis,
    .settings-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .school-three-column-grid,
    .school-reports-grid,
    .company-dashboard-grid-summary,
    .company-dashboard-grid-two,
    .company-dashboard-grid-three {
        grid-template-columns: 1fr;
    }

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

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

    .settings-general-grid,
    .role-permission-matrix-grid,
    .settings-grid:not(.settings-general-grid):not(.settings-advanced-grid) .settings-form-grid,
    .settings-general-grid .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 1100px) {
    .dashboard-grid,
    .two-column,
    .attendance-widget,
    .school-donut-layout {
        grid-template-columns: 1fr;
    }

    .school-filters-row-students,
    .school-filters-row-groups,
    .school-filters-row-teachers,
    .school-toolbar-grid,
    .school-toolbar-grid-wide,
    .school-two-column-grid {
        grid-template-columns: 1fr;
    }

    .company-metrics-grid,
    .company-executive-header,
    .company-executive-kpis,
    .company-mini-kpis,
    .company-cost-hero,
    .company-cost-breakdown,
    .settings-summary-grid,
    .school-three-column-grid {
        grid-template-columns: 1fr;
    }

    .school-table-footer,
    .school-info-bar,
    .school-info-box,
    .school-ops-header {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-selection-toolbar,
    .employee-selection-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-selection-actions {
        justify-content: flex-start;
    }

    .school-table-footer-actions {
        width: 100%;
        justify-content: space-between;
    }

    .school-history-row {
        grid-template-columns: 1fr;
    }

    .settings-toggle-row {
        grid-template-columns: 36px 1fr;
    }

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

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

    .app-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 700px) {
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .company-executive-screen {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .company-executive-screen .school-panel,
    .company-executive-screen .school-subpanel,
    .company-executive-kpis,
    .company-mini-kpis,
    .company-report-tabs,
    .company-dashboard-grid,
    .company-shift-semaphore {
        width: 100%;
        max-width: 100%;
    }

    .company-executive-header h1 {
        font-size: 1.48rem;
        line-height: 1.08;
    }

    .company-executive-kpi {
        min-height: 132px;
    }

    .company-report-commandbar .school-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .company-report-commandbar .school-secondary-button {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .company-executive-screen .school-info-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .company-executive-screen .school-info-bar {
        max-width: calc(100vw - 80px);
    }

    .company-executive-screen .school-info-copy strong {
        white-space: normal;
    }

    .company-executive-screen .company-daily-chart {
        width: calc(100vw - 82px);
        max-width: calc(100vw - 82px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-executive-screen .school-donut-layout {
        width: calc(100vw - 82px);
        max-width: calc(100vw - 82px);
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .company-executive-screen .attendance-donut {
        width: 152px;
        height: 152px;
    }

    .company-executive-screen .school-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .company-executive-screen .school-bar-row strong {
        justify-self: start;
    }

    .company-kpi-sparkline {
        justify-content: flex-start;
    }

    .company-critical-row,
    .company-cost-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .company-critical-row small,
    .company-cost-row small {
        text-align: left;
    }

    .dashboard-list-item,
    .dashboard-table-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .school-metrics-grid {
        grid-template-columns: 1fr;
    }

    .school-page-header h1 {
        font-size: 2rem;
    }

    .school-panel-actions,
    .school-toolbar-actions,
    .school-inline-actions {
        width: 100%;
    }

    .school-primary-button,
    .school-secondary-button,
    .school-filter-button,
    .school-inline-success,
    .school-secondary-link-button {
        width: 100%;
    }
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 18px;
    background: #f3f4f6;
    box-sizing: border-box;
}

.login-card {
    display: grid;
    grid-template-columns: 36% 64%;
    grid-template-rows: minmax(720px, auto) auto;
    width: min(100%, 1540px);
    min-height: calc(100vh - 36px);
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 35, 66, 0.14);
}

.login-panel {
    display: flex;
    justify-content: center;
    background: #fff;
}

.login-panel-inner {
    display: flex;
    flex-direction: column;
    width: min(100%, 444px);
    min-height: 720px;
    padding: 72px 46px 34px;
    box-sizing: border-box;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 44px;
}

.login-brand-logo {
    width: min(100%, 250px);
    height: auto;
    display: block;
}

.login-heading {
    margin-bottom: 34px;
}

.login-heading h1 {
    margin: 0 0 10px;
    color: #0d1b2a;
    font-size: 1.95rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.login-heading p {
    margin: 0;
    color: #607196;
    font-size: 1rem;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 10px;
    color: #132342;
    font-size: 0.86rem;
    font-weight: 700;
}

.login-input-shell {
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(14, 32, 63, 0.04);
    box-sizing: border-box;
}

.login-input-shell svg {
    width: 22px;
    height: 22px;
    fill: #98a7bd;
}

.login-input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: #14223f;
    font: inherit;
    font-weight: 600;
}

.login-input-shell input::placeholder {
    color: #8a9ab5;
}

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

.login-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #243755;
    font-size: 0.91rem;
    font-weight: 700;
}

.login-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.login-row a,
.login-demo-link a,
.login-legal a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.login-submit,
.login-provider {
    min-height: 54px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.login-submit {
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 12px 25px rgba(35, 105, 255, 0.22);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #74839c;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 8px 0;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce4ef;
}

.login-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid #d5deea;
    background: #fff;
    color: #142341;
}

.google-dot {
    color: #1a73e8;
    font-size: 1.28rem;
    font-weight: 900;
}

.microsoft-grid {
    display: grid;
    grid-template-columns: repeat(2, 10px);
    gap: 2px;
}

.microsoft-grid i {
    width: 10px;
    height: 10px;
}

.microsoft-grid i:nth-child(1) { background: #f25022; }
.microsoft-grid i:nth-child(2) { background: #7fba00; }
.microsoft-grid i:nth-child(3) { background: #00a4ef; }
.microsoft-grid i:nth-child(4) { background: #ffb900; }

.login-demo-link {
    margin: 26px 0 0;
    color: #607196;
    text-align: center;
    font-size: 0.9rem;
}

.login-legal {
    margin: auto 0 0;
    color: #8291ab;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.7;
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff0f0;
    color: #c83535;
    font-weight: 700;
}

.login-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a 0%, #12345a 52%, #0f766e 100%);
    color: #fff;
}

.login-hero::before {
    content: "";
    position: absolute;
    top: 42px;
    right: 84px;
    width: 160px;
    height: 160px;
    opacity: 0.32;
    background-image: radial-gradient(#2d84ff 1.4px, transparent 1.4px);
    background-size: 17px 17px;
}

.login-hero-content {
    position: relative;
    min-height: 720px;
    padding: 86px 78px 70px;
    box-sizing: border-box;
}

.login-hero h2 {
    margin: 0;
    font-size: 2.08rem;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: 0;
}

.login-hero h2 span {
    color: #22c55e;
}

.login-hero > .login-hero-content > p {
    max-width: 490px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.55;
}

.login-feature-list {
    position: absolute;
    left: 78px;
    top: 300px;
    display: grid;
    gap: 24px;
    z-index: 2;
}

.login-feature-list > div {
    display: grid;
    grid-template-columns: 66px 1fr;
    align-items: center;
    gap: 14px;
}

.login-feature-list p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.feature-icon {
    width: 66px;
    height: 66px;
    border: 1px solid rgba(20, 184, 166, 0.45);
    border-radius: 14px;
    background: rgba(13, 55, 101, 0.75);
    box-shadow: inset 0 0 24px rgba(28, 188, 221, 0.08);
}

.whatsapp-icon::before,
.shield-icon::before,
.chart-icon::before,
.people-icon::before {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #18d99b;
    font-size: 1.65rem;
    font-weight: 900;
}

.whatsapp-icon::before { content: "W"; }
.shield-icon::before { content: "S"; color: #2563eb; }
.chart-icon::before { content: "|||"; color: #14b8a6; }
.people-icon::before { content: "++"; color: #22d394; }

.login-product-stage {
    position: absolute;
    right: -58px;
    bottom: 138px;
    width: 690px;
    height: 430px;
}

.login-laptop {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 72px 1fr;
    width: 560px;
    height: 360px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.32);
    border-radius: 22px 0 0 22px;
    background: #071638;
    box-shadow: 0 32px 55px rgba(0, 0, 0, 0.34);
}

.laptop-sidebar {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 24px;
    padding-top: 28px;
    background: #061a43;
}

.laptop-sidebar strong {
    color: #20d1f2;
    font-size: 1.5rem;
}

.laptop-sidebar span {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #91a4d3;
}

.laptop-screen {
    margin: 62px 28px 32px 0;
    padding: 28px 26px;
    border-radius: 6px;
    background: #fff;
    color: #10203e;
    box-shadow: 0 18px 34px rgba(5, 14, 34, 0.22);
}

.laptop-screen h3 {
    margin: 0 0 24px;
    font-size: 1rem;
}

.laptop-screen small {
    display: block;
    color: #33415f;
    font-weight: 800;
    margin-bottom: 12px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.metric-row div {
    padding: 16px 14px;
    border-radius: 9px;
    background: #f5f7fb;
}

.metric-row span {
    display: block;
    color: #6d7891;
    font-size: 0.68rem;
    font-weight: 700;
}

.metric-row b {
    display: block;
    margin-top: 8px;
    color: #098bd5;
    font-size: 1.35rem;
}

.metric-row div:nth-child(2) b { color: #15b765; }
.metric-row div:nth-child(3) b { color: #14b8a6; }

.laptop-screen ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.72rem;
}

.laptop-screen li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #eef2f7;
    border-radius: 7px;
    color: #4c5b76;
}

.laptop-screen li span {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #13c77a;
}

.laptop-screen li em {
    color: #6f7c93;
    font-style: normal;
}

.login-phone {
    position: absolute;
    left: 40px;
    bottom: 8px;
    z-index: 3;
    width: 205px;
    min-height: 390px;
    padding: 38px 14px 16px;
    border: 5px solid #283247;
    border-radius: 34px;
    background: #f8fbff;
    color: #13213f;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.38);
}

.phone-top {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 86px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background: #111827;
}

.login-phone strong {
    display: block;
    padding: 10px 12px;
    margin: -8px -8px 12px;
    border-radius: 20px 20px 0 0;
    background: #043a35;
    color: #fff;
}

.login-phone strong span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16cf72;
}

.phone-chat,
.phone-bubble {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(21, 31, 55, 0.08);
}

.phone-chat p {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 800;
}

.phone-chat a {
    padding: 7px 0;
    border-top: 1px solid #edf1f6;
    color: #0d71d9;
    font-size: 0.72rem;
    font-weight: 800;
}

.phone-bubble {
    margin-top: 16px;
    background: #d8f5c7;
    font-size: 0.72rem;
}

.phone-bubble span {
    display: block;
}

.login-security-note {
    position: absolute;
    left: 150px;
    right: 140px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 0 28px;
    border: 1px solid rgba(65, 124, 214, 0.46);
    border-radius: 18px;
    background: rgba(5, 39, 88, 0.56);
    color: #fff;
    font-size: 1rem;
}

.login-security-note svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex: 0 0 auto;
}

.login-trust-strip {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 28px 24px 34px;
    border-top: 1px solid #edf2f8;
    background: #fff;
    color: #3f526f;
}

.login-trust-strip p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.login-trust-strip div {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 92px);
    flex-wrap: wrap;
}

.login-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #344967;
    font-weight: 700;
}

.login-trust-strip span::before {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #425977;
    font-size: 1.25rem;
    font-weight: 900;
}

.trust-school::before { content: "H"; }
.trust-business::before { content: "B"; }
.trust-academy::before { content: "A"; }
.trust-institution::before { content: "I"; }
.trust-organization::before { content: "O"; }

.checkpoint-table-shell {
    overflow: visible;
}

.biometric-device-table-shell {
    overflow: visible;
}

.biometric-device-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.biometric-device-table th,
.biometric-device-table td {
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
    vertical-align: middle;
}

.biometric-device-table th:nth-child(1) { width: 15%; }
.biometric-device-table th:nth-child(2) { width: 27%; }
.biometric-device-table th:nth-child(3) { width: 15%; }
.biometric-device-table th:nth-child(4) { width: 14%; }
.biometric-device-table th:nth-child(5) { width: 9%; }
.biometric-device-table th:nth-child(6) { width: 11%; }
.biometric-device-table th:nth-child(7) { width: 64px; }

.biometric-device-table .school-mono-copy,
.biometric-device-table .school-person-title,
.biometric-device-table .school-person-subtitle,
.biometric-device-table td > div {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biometric-device-table .biometric-adms-host {
    margin-top: 0.3rem;
    color: #6c7892;
}

.biometric-device-table .school-status-pill {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
}

.biometric-device-table .school-actions-cell {
    width: 64px;
    max-width: 64px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.biometric-device-table .school-icon-button {
    width: 34px;
    height: 34px;
    margin-left: 0;
}

.biometric-device-admin-card,
.biometric-sync-warning,
.biometric-device-details {
    grid-column: 1 / -1;
}

.biometric-device-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dbe5f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.biometric-admin-heading {
    display: grid;
    gap: 0.35rem;
}

.biometric-eyebrow {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.biometric-admin-heading h4 {
    margin: 0;
    color: #12213b;
    font-size: 1.08rem;
    font-weight: 900;
}

.biometric-admin-heading p {
    max-width: 46rem;
    margin: 0;
    color: #6f7c96;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.45;
}

.biometric-admin-address {
    display: grid;
    gap: 0.45rem;
    align-self: start;
    padding: 0.9rem;
    border: 1px solid #e1e9f6;
    border-radius: 14px;
    background: #fff;
}

.biometric-admin-address span {
    color: #667391;
    font-size: 0.8rem;
    font-weight: 900;
}

.biometric-admin-address .school-mono-copy {
    white-space: normal;
    overflow-wrap: anywhere;
}

.biometric-admin-actions {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 12px;
    align-items: center;
}

.biometric-admin-actions .school-primary-button,
.biometric-admin-actions .school-secondary-button {
    min-height: 48px;
}

.biometric-send-button {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}

.biometric-sync-warning {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    border-color: #f4c76e;
    background: #fff8eb;
}

.biometric-sync-warning .school-toolbar-actions {
    margin-left: auto;
}

.biometric-device-details {
    overflow: hidden;
    border: 1px solid #dbe5f4;
    border-radius: 18px;
    background: #fff;
}

.biometric-device-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
    padding: 1rem 1.15rem;
    color: #12213b;
    cursor: pointer;
    list-style: none;
}

.biometric-device-details summary::-webkit-details-marker {
    display: none;
}

.biometric-device-details summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe5f4;
    border-radius: 12px;
    color: #5b6d88;
    font-size: 1.1rem;
    font-weight: 900;
}

.biometric-device-details[open] summary::after {
    content: "-";
}

.biometric-details-copy {
    display: grid;
    gap: 0.25rem;
}

.biometric-details-copy span {
    font-weight: 900;
}

.biometric-details-copy small {
    color: #73809a;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}

.biometric-details-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #3652b3;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.biometric-device-details-body {
    padding: 0 1.15rem 1.15rem;
}

.biometric-detail-copy {
    align-self: center;
}

.biometric-last-test {
    grid-column: 1 / -1;
}

.biometric-command-history .school-subpanel-header {
    padding: 1rem 1.15rem 0;
}

.biometric-command-table-shell {
    margin: 0 1.15rem 1.15rem;
    overflow-x: auto;
}

.biometric-command-table {
    min-width: 900px;
}

@media (max-width: 900px) {
    .biometric-device-admin-card {
        grid-template-columns: 1fr;
    }

    .biometric-sync-warning .school-toolbar-actions,
    .biometric-admin-actions .school-primary-button,
    .biometric-admin-actions .school-secondary-button {
        width: 100%;
    }

    .biometric-device-details summary {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .biometric-details-badge {
        display: none;
    }
}
.biometric-events-table-shell {
    overflow-x: auto;
    overflow-y: visible;
}

.biometric-events-table {
    min-width: 980px;
    table-layout: fixed;
}

.biometric-events-table th,
.biometric-events-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.biometric-events-table th:nth-child(1) { width: 10%; }
.biometric-events-table th:nth-child(2) { width: 10%; }
.biometric-events-table th:nth-child(3) { width: 13%; }
.biometric-events-table th:nth-child(4) { width: 6%; }
.biometric-events-table th:nth-child(5) { width: 12%; }
.biometric-events-table th:nth-child(6) { width: 18%; }
.biometric-events-table th:nth-child(7) { width: 15%; }
.biometric-events-table th:nth-child(8) { width: 84px; }

.biometric-events-table .school-actions-cell {
    width: 84px;
    max-width: 84px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.biometric-events-table .school-secondary-button {
    min-width: 0;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.2;
}

@media (max-width: 1480px) {
    .biometric-device-table {
        min-width: 1010px;
    }

    .biometric-device-table th,
    .biometric-device-table td {
        padding-left: 8px;
        padding-right: 8px;
    }

    .biometric-device-table .school-status-pill {
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.76rem;
    }
}

.checkpoint-action-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.checkpoint-action-toggle {
    position: relative;
    z-index: 62;
    cursor: pointer;
}

.checkpoint-action-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    border: 0;
    background: transparent;
    cursor: default;
}

.checkpoint-action-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(25, 36, 69, 0.18);
}

.checkpoint-action-popover:not(:popover-open) {
    display: none;
}

.checkpoint-action-popover:popover-open {
    display: grid;
}

.checkpoint-action-menu-up .checkpoint-action-list {
    top: auto;
    bottom: calc(100% + 8px);
}

.checkpoint-action-list a,
.checkpoint-action-list button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #17213d;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.checkpoint-action-list a:hover,
.checkpoint-action-list button:hover {
    background: #f3f6fd;
}

.checkpoint-action-list .danger {
    color: #b43232;
}

.checkpoint-action-list .danger:hover {
    background: #fff1f1;
}

.school-danger-button {
    border-color: #ffd6d6 !important;
    color: #c83535 !important;
    background: #fff7f7 !important;
}

.checkpoint-active-check {
    align-self: end;
    min-height: 44px;
}

.checkpoint-fixed-qr-panel {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #ffffff;
}

.checkpoint-fixed-qr-preview {
    display: grid;
    place-items: center;
    min-height: 160px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fbff;
}

.checkpoint-fixed-qr-preview svg {
    width: 150px;
    height: 150px;
}

.checkpoint-fixed-qr-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.checkpoint-fixed-qr-copy .school-mono-copy {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.checkpoint-fixed-qr-copy .school-secondary-button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

.checkpoint-fixed-qr-copy span {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .checkpoint-fixed-qr-panel {
        grid-template-columns: 1fr;
    }

    .checkpoint-fixed-qr-preview {
        min-height: 0;
        padding: 14px;
    }

    .checkpoint-fixed-qr-preview svg {
        width: min(100%, 180px);
        height: auto;
    }
}

.checkpoint-device-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    background: #f8fbff;
}

.checkpoint-device-panel p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.checkpoint-device-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkpoint-device-panel li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
}

.checkpoint-device-panel small {
    color: #64748b;
}

@media (max-width: 780px) {
    .checkpoint-fixed-qr-panel {
        grid-template-columns: 1fr;
    }

    .incidents-table-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .incidents-table-shell {
        overflow-x: auto;
    }

    .incidents-table {
        min-width: 960px;
    }

    .checkpoint-table-shell {
        overflow-x: auto;
    }

    .checkpoint-action-list {
        position: static;
        margin-top: 8px;
    }
}

.kiosk-secure-card {
    display: grid;
    gap: 14px;
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #d8e5f5;
    border-radius: 18px;
    background: #fff;
    color: #102342;
    box-shadow: 0 18px 40px rgba(15, 35, 66, 0.12);
}

.kiosk-secure-card strong {
    font-size: 1.2rem;
}

.kiosk-secure-card p {
    margin: 0;
    color: #5f708e;
    line-height: 1.5;
}

.kiosk-secure-card label {
    display: grid;
    gap: 8px;
    color: #415273;
    font-weight: 800;
}

.kiosk-secure-card input {
    min-height: 46px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    padding: 0 12px;
}

.kiosk-secure-card button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.kiosk-secure-card-blocked {
    border-color: #ffd6d6;
    background: #fff8f8;
}

.tenant-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.tenant-success-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #b8e3c7;
    border-radius: 14px;
    background: #f0fdf4;
    color: #14532d;
}

.tenant-success-banner div {
    display: grid;
    gap: 4px;
}

.tenant-success-banner strong {
    font-size: 0.98rem;
}

.tenant-success-banner span {
    color: #276749;
    font-size: 0.9rem;
    line-height: 1.35;
}

.tenant-success-actions {
    flex: 0 0 auto;
}

.tenant-admin-layout .school-subpanel {
    min-width: 0;
}

.tenant-whatsapp-box,
.tenant-fiscal-box,
.tenant-logo-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    background: #f8fbff;
}

.tenant-logo-box {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
}

.tenant-logo-preview,
.tenant-list-name-cell > span {
    display: grid;
    place-items: center;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    background: #fff;
    color: #2d61d8;
    font-weight: 900;
}

.tenant-logo-preview {
    width: 72px;
    height: 72px;
}

.tenant-logo-preview img,
.tenant-list-name-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tenant-logo-actions {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tenant-logo-actions strong {
    color: #14213d;
    font-size: 0.94rem;
}

.tenant-logo-actions span {
    color: #667792;
    font-size: 0.82rem;
    line-height: 1.35;
}

.tenant-logo-actions input[type="file"] {
    width: 100%;
    color: #334155;
    font-size: 0.82rem;
}

.tenant-logo-feedback {
    display: block;
    color: #5e6e89;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.tenant-logo-feedback.success {
    color: #0f766e;
}

.tenant-logo-feedback.warning {
    color: #b42318;
}

.tenant-fiscal-address {
    min-height: 86px;
    resize: vertical;
}

.tenant-list-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tenant-list-name-cell img,
.tenant-list-name-cell > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.tenant-list-name-cell small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.tenant-whatsapp-heading strong {
    color: #14213d;
    font-size: 0.94rem;
}

.tenant-whatsapp-heading span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #2761d8;
    font-size: 0.78rem;
    font-weight: 800;
}

.tenant-secret-hint {
    margin: 0;
    color: #667792;
    font-size: 0.82rem;
    line-height: 1.35;
}

.portal-generated-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.portal-generated-password-row .school-code-input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.04em;
}

.portal-email-credentials-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #f8fbff;
}

.portal-email-credentials-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.portal-email-credentials-option span {
    display: grid;
    gap: 3px;
}

.portal-email-credentials-option small {
    color: #667792;
}

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

.portal-user-access-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f8fbff;
}

.portal-user-access-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
}

.portal-user-access-heading strong {
    color: #0f1d34;
    font-size: 0.95rem;
}

.portal-user-access-heading span {
    color: #667792;
    font-size: 0.8rem;
}

.portal-user-access-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.portal-user-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e3ebf7;
    border-radius: 12px;
    background: #fff;
}

.portal-user-access-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.portal-user-access-row input {
    width: 18px;
    height: 18px;
}

.portal-user-access-row strong {
    display: block;
    color: #10213d;
    font-size: 0.9rem;
}

.portal-user-access-row small {
    display: block;
    color: #6b7890;
    font-size: 0.78rem;
}

.portal-user-default-radio {
    color: #506079;
    font-size: 0.82rem;
    font-weight: 800;
}

.tenant-whatsapp-paths {
    display: grid;
    gap: 8px;
}

.tenant-whatsapp-paths div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e5edf8;
    border-radius: 10px;
    background: #fff;
}

.tenant-whatsapp-paths span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-paths strong {
    color: #15223d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-toggle {
    align-items: flex-start;
    padding: 2px 0 4px;
}

.tenant-whatsapp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tenant-whatsapp-inline-feedback {
    display: grid;
    gap: 3px;
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.35;
}

.tenant-whatsapp-inline-feedback strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tenant-whatsapp-inline-feedback span {
    overflow-wrap: anywhere;
}

.tenant-whatsapp-inline-feedback.success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.tenant-whatsapp-inline-feedback.warning {
    color: #8a3b12;
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.tenant-whatsapp-filter-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    background: #fff;
    color: #425572;
    font-size: 0.78rem;
    font-weight: 800;
}

.tenant-whatsapp-filter-chip strong {
    color: #15223d;
    overflow-wrap: anywhere;
}

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

.tenant-template-purpose {
    color: #5b6b86;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

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

.role-permission-group {
    border: 1px solid #d8e4f5;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.role-permission-group h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #10213f;
}

.role-permission-list {
    display: grid;
    gap: 10px;
}

.role-permission-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #10213f;
}

.role-permission-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.role-permission-check span {
    display: grid;
    gap: 2px;
}

.role-permission-check strong {
    font-size: 0.92rem;
}

.role-permission-check small {
    color: #617193;
    line-height: 1.35;
}

.role-permission-summary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2250a8;
    font-weight: 800;
    font-size: 0.82rem;
}

.role-permission-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.role-permission-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f0f5fb;
    color: #14213d;
    font-size: 0.82rem;
    font-weight: 800;
}

.tenant-whatsapp-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tenant-whatsapp-status-grid div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e5edf8;
    border-radius: 10px;
    background: #fff;
}

.tenant-whatsapp-status-grid span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-status-grid strong {
    color: #15223d;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    background: #f8fbff;
}

.tenant-whatsapp-delivery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tenant-whatsapp-delivery-header div {
    display: grid;
    gap: 2px;
}

.tenant-whatsapp-delivery-header strong {
    color: #15223d;
    font-size: 0.9rem;
}

.tenant-whatsapp-delivery-header span {
    color: #667792;
    font-size: 0.76rem;
    font-weight: 800;
}

.tenant-whatsapp-delivery-list {
    display: grid;
    gap: 8px;
}

.tenant-whatsapp-delivery-row {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e5edf8;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff;
}

.tenant-whatsapp-delivery-row span {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    color: #15223d;
    background: #eaf1fb;
    font-size: 0.72rem;
    font-weight: 900;
}

.tenant-whatsapp-delivery-row strong {
    color: #15223d;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-row small,
.tenant-whatsapp-delivery-row p {
    margin: 0;
    color: #5b6d87;
    font-size: 0.76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tenant-whatsapp-delivery-row.failed {
    border-left-color: #ef4444;
}

.tenant-whatsapp-delivery-row.delivered,
.tenant-whatsapp-delivery-row.read {
    border-left-color: #16a34a;
}

.tenant-whatsapp-delivery-row.pending {
    border-left-color: #4f88ff;
}

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

.notification-card {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #ffffff;
    color: #0f2447;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.notification-card strong {
    font-size: 0.98rem;
}

.notification-card span {
    color: #5d6b82;
    line-height: 1.45;
}

.notification-warning {
    border-color: #f7d9a5;
    background: #fffaf0;
}

.notification-info {
    border-color: #cddcff;
    background: #f7faff;
}

.notification-critical {
    border-color: #ffc8c8;
    background: #fff7f7;
}

@media (max-width: 1100px) {
    .tenant-success-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-success-actions,
    .tenant-success-actions .school-primary-button {
        width: 100%;
    }

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

    .tenant-whatsapp-status-grid {
        grid-template-columns: 1fr;
    }

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

    .role-permission-grid {
        grid-template-columns: 1fr;
    }

    .tenant-logo-box {
        grid-template-columns: 1fr;
    }

    .login-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .login-hero {
        display: none;
    }

    .login-panel-inner {
        min-height: auto;
        padding: 48px 28px 28px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-logo {
        width: min(100%, 218px);
    }

    .login-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-trust-strip div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 16px;
    }
}

.whatsapp-simulator-actions {
    margin-top: 14px;
}

.whatsapp-simulator-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 360px;
    max-height: 560px;
    overflow-y: auto;
    padding: 8px 2px;
}

.whatsapp-simulator-empty,
.school-muted-copy {
    color: #64748b;
    font-size: 0.95rem;
}

.whatsapp-message-row {
    display: flex;
}

.whatsapp-message-row.inbound {
    justify-content: flex-end;
}

.whatsapp-message-row.outbound {
    justify-content: flex-start;
}

.whatsapp-message-bubble {
    max-width: min(680px, 82%);
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.45;
    white-space: pre-wrap;
}

.whatsapp-message-row.inbound .whatsapp-message-bubble {
    background: #e8f5ef;
    border-color: #bfe4d0;
}

.whatsapp-message-meta {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.whatsapp-simulator-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 14px;
    margin: 0;
}

.whatsapp-simulator-details dt {
    color: #64748b;
    font-weight: 700;
}

.whatsapp-simulator-details dd {
    margin: 0;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.landing-shell {
    --landing-navy: #0d1b2a;
    --landing-blue: #2563eb;
    --landing-teal: #14b8a6;
    --landing-green: #22c55e;
    --landing-ink: #10213d;
    --landing-muted: #5f6f89;
    --landing-line: #dfe7f2;
    --landing-soft: #f5f8fc;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 48%, #ffffff 100%);
    color: var(--landing-ink);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    min-height: 78px;
    padding: 14px min(5vw, 72px);
    border-bottom: 1px solid rgba(223, 231, 242, 0.86);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    width: 164px;
}

.landing-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    min-width: 0;
    color: #42536f;
    font-size: 0.95rem;
    font-weight: 800;
}

.landing-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.landing-header-actions,
.landing-hero-actions,
.landing-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.landing-primary-button,
.landing-secondary-button,
.landing-link-button,
.landing-plan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.landing-primary-button {
    background: linear-gradient(135deg, var(--landing-blue) 0%, var(--landing-teal) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.landing-secondary-button,
.landing-link-button {
    border-color: #d9e3f0;
    background: #ffffff;
    color: #1b2b46;
}

.landing-link-button {
    min-height: 40px;
    padding-inline: 12px;
    border-color: transparent;
    background: transparent;
    color: #334155;
}

.landing-primary-button:hover,
.landing-secondary-button:hover,
.landing-link-button:hover,
.landing-plan-action:hover {
    transform: translateY(-1px);
}

.landing-primary-button-large,
.landing-secondary-button-large {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 1rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: min(5vw, 74px);
    align-items: center;
    min-height: 720px;
    padding: 46px min(5vw, 72px) 64px;
}

.landing-hero-copy {
    min-width: 0;
    max-width: 680px;
}

.landing-hero-copy h1 {
    color: var(--landing-navy);
    font-size: 5.4rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-hero-lede {
    margin-top: 22px;
    color: #45566f;
    font-size: 1.22rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.landing-hero-actions {
    margin-top: 32px;
}

.landing-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
}

.landing-proof-row div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.landing-proof-row strong,
.landing-proof-row span {
    display: block;
}

.landing-proof-row strong {
    color: var(--landing-navy);
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-proof-row span {
    margin-top: 4px;
    color: var(--landing-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.landing-hero-visual {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.96));
    box-shadow: 0 28px 80px rgba(15, 35, 66, 0.12);
}

.landing-visual-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.landing-visual-top img {
    width: min(46%, 150px);
    height: 86px;
    padding: 8px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    background: #ffffff;
    object-fit: contain;
}

.landing-product-preview {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    background: #ffffff;
}

.landing-preview-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #0d1b2a 0%, #122846 100%);
}

.landing-preview-sidebar span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.landing-preview-sidebar span:first-child {
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
}

.landing-preview-main {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    padding: 22px;
}

.landing-preview-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.landing-preview-title-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.landing-preview-title-row strong {
    color: var(--landing-navy);
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-preview-title-row span,
.landing-preview-list p,
.landing-checkout-row span {
    color: var(--landing-muted);
}

.landing-preview-title-row small {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-preview-kpis div {
    min-width: 0;
    min-height: 96px;
    padding: 13px;
    border: 1px solid #e3ebf7;
    border-radius: 14px;
    background: #f8fbff;
}

.landing-preview-kpis span,
.landing-preview-kpis strong {
    display: block;
}

.landing-preview-kpis span {
    color: #60708a;
    font-size: 0.78rem;
    font-weight: 800;
}

.landing-preview-kpis strong {
    margin-top: 10px;
    color: var(--landing-navy);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.landing-preview-list {
    display: grid;
    gap: 8px;
}

.landing-preview-list div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #e8eef7;
    border-radius: 12px;
}

.landing-preview-list strong {
    color: #263854;
    font-size: 0.82rem;
}

.landing-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.landing-dot-green {
    background: var(--landing-green);
}

.landing-dot-blue {
    background: var(--landing-blue);
}

.landing-dot-teal {
    background: var(--landing-teal);
}

.landing-whatsapp-card {
    position: absolute;
    right: 34px;
    bottom: -28px;
    width: min(300px, 70%);
    padding: 16px 18px;
    border: 1px solid #ccebdd;
    border-radius: 18px;
    background: #f0fdf4;
    color: #155b35;
    box-shadow: 0 18px 40px rgba(21, 128, 61, 0.12);
}

.landing-whatsapp-card strong {
    display: block;
    margin-bottom: 5px;
    color: #0f5130;
    font-size: 1rem;
    font-weight: 900;
}

.landing-whatsapp-card p {
    color: #226645;
    font-size: 0.9rem;
    line-height: 1.4;
}

.landing-section {
    padding: 78px min(5vw, 72px);
}

.landing-section-head {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 760px;
    margin-bottom: 32px;
}

.landing-section-head h2,
.landing-payment-copy h2,
.landing-final-cta h2 {
    color: var(--landing-navy);
    font-size: 2.35rem;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.landing-section-head p,
.landing-payment-copy p,
.landing-final-cta p {
    color: #53657f;
    font-size: 1rem;
    line-height: 1.6;
}

.landing-products {
    background: #ffffff;
}

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

.landing-product-card,
.landing-plan-card,
.landing-checkout-card,
.landing-onboarding-grid article {
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 35, 66, 0.06);
}

.landing-product-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
    min-height: 310px;
    padding: 24px;
}

.landing-product-card img {
    width: 88px;
    height: 88px;
    padding: 10px;
    border: 1px solid #e0e8f4;
    border-radius: 18px;
    background: #ffffff;
    object-fit: contain;
}

.landing-product-card h3,
.landing-plan-card h3,
.landing-onboarding-grid h3 {
    color: var(--landing-navy);
    font-size: 1.35rem;
    font-weight: 900;
}

.landing-product-card p {
    margin-top: 8px;
    color: #53657f;
    line-height: 1.58;
}

.landing-product-card ul,
.landing-plan-card ul {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.landing-product-card li,
.landing-plan-card li {
    position: relative;
    padding-left: 22px;
    color: #33445e;
    line-height: 1.42;
}

.landing-product-card li::before,
.landing-plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--landing-teal);
}

.landing-product-card-company li::before {
    background: var(--landing-blue);
}

.landing-plans {
    background: #f5f8fc;
}

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

.landing-plan-card {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 420px;
    padding: 24px;
}

.landing-plan-card-featured {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

.landing-plan-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.landing-plan-head span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2259c6;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-plan-card-featured .landing-plan-head span {
    background: #ecfdf5;
    color: #15803d;
}

.landing-plan-price {
    color: var(--landing-navy);
    font-size: 1.62rem;
    font-weight: 900;
}

.landing-plan-action {
    margin-top: auto;
    border-color: #d9e3f0;
    background: #ffffff;
    color: #17325f;
}

.landing-plan-card-featured .landing-plan-action {
    border-color: transparent;
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
    color: #ffffff;
}

.landing-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: min(5vw, 72px);
    align-items: center;
    background: #ffffff;
}

.landing-payment-copy {
    display: grid;
    gap: 18px;
    max-width: 720px;
}

.landing-payment-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.landing-payment-steps div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f8fbff;
}

.landing-payment-steps strong,
.landing-payment-steps span {
    display: block;
}

.landing-payment-steps strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--landing-navy);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
}

.landing-payment-steps span {
    color: #394b65;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
}

.landing-checkout-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.landing-checkout-brand {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f8;
}

.landing-checkout-brand img {
    width: 128px;
    height: auto;
}

.landing-checkout-brand span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7ff;
    color: #2259c6;
    font-size: 0.76rem;
    font-weight: 900;
}

.landing-checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    align-items: center;
    border-bottom: 1px solid #edf2f8;
}

.landing-checkout-row strong {
    color: var(--landing-navy);
    text-align: right;
}

.landing-checkout-button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #dbe5f3;
    color: #45566f;
    font-weight: 900;
    cursor: not-allowed;
}

.landing-checkout-card p {
    color: #65758f;
    font-size: 0.86rem;
    line-height: 1.5;
}

.landing-onboarding {
    background: #f5f8fc;
}

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

.landing-onboarding-grid article {
    min-height: 250px;
    padding: 22px;
}

.landing-onboarding-grid span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--landing-blue), var(--landing-teal));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.landing-onboarding-grid p {
    margin-top: 10px;
    color: #53657f;
    line-height: 1.55;
}

.landing-final-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin: 0 min(5vw, 72px) 70px;
    padding: 32px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(135deg, #eef6ff 0%, #f1fbf7 100%);
}

.landing-final-cta div:first-child {
    max-width: 760px;
}

.landing-final-cta p {
    margin-top: 10px;
}

@media (max-width: 1180px) {
    .landing-header {
        grid-template-columns: auto auto;
    }

    .landing-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 48px;
    }

    .landing-hero-copy {
        max-width: 840px;
    }

    .landing-hero-visual {
        max-width: 820px;
    }

    .landing-payment {
        grid-template-columns: 1fr;
    }

    .landing-checkout-card {
        max-width: 640px;
    }

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

@media (max-width: 860px) {
    .landing-header {
        position: static;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        grid-template-columns: 1fr;
        gap: 14px;
        padding-inline: 20px;
    }

    .landing-brand {
        width: 148px;
    }

    .landing-header-actions {
        width: 100%;
        max-width: calc(100vw - 40px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-header-actions a {
        width: 100%;
        min-width: 0;
    }

    .landing-hero,
    .landing-section {
        width: 100%;
        max-width: 100vw;
        padding-inline: 20px;
    }

    .landing-hero-copy,
    .landing-hero-actions,
    .landing-proof-row,
    .landing-hero-visual {
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .landing-hero-copy h1 {
        font-size: 3.8rem;
    }

    .landing-hero-lede {
        font-size: 1.08rem;
        max-width: 100%;
    }

    .landing-proof-row,
    .landing-product-grid,
    .landing-plan-grid,
    .landing-payment-steps {
        grid-template-columns: 1fr;
    }

    .landing-product-card {
        grid-template-columns: 1fr;
    }

    .landing-product-preview {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .landing-preview-sidebar {
        display: flex;
        padding: 12px;
    }

    .landing-preview-sidebar span {
        width: 34px;
        height: 34px;
    }

    .landing-preview-kpis {
        grid-template-columns: 1fr;
    }

    .landing-whatsapp-card {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .landing-visual-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .landing-visual-top img {
        width: 100%;
        min-width: 0;
    }

    .landing-final-cta {
        align-items: stretch;
        flex-direction: column;
        margin-inline: 20px;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .landing-header,
    .landing-hero,
    .landing-section {
        padding-left: 20px;
        padding-right: 40px;
    }

    .landing-header-actions,
    .landing-hero-copy,
    .landing-hero-actions,
    .landing-proof-row,
    .landing-hero-visual {
        max-width: calc(100vw - 60px);
    }

    .landing-nav {
        gap: 18px;
        font-size: 0.88rem;
    }

    .landing-hero {
        padding-top: 34px;
        padding-bottom: 52px;
    }

    .landing-hero-copy h1 {
        font-size: 3rem;
    }

    .landing-hero-actions a,
    .landing-final-actions a {
        width: 100%;
        max-width: 330px;
    }

    .landing-hero-copy {
        max-width: 330px;
    }

    .landing-hero-visual,
    .landing-product-card,
    .landing-plan-card,
    .landing-checkout-card,
    .landing-onboarding-grid article {
        border-radius: 14px;
        padding: 18px;
    }

    .landing-section-head h2,
    .landing-payment-copy h2,
    .landing-final-cta h2 {
        font-size: 1.85rem;
    }

    .landing-preview-title-row,
    .landing-checkout-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-checkout-row strong {
        text-align: left;
    }

    .landing-onboarding-grid {
        grid-template-columns: 1fr;
    }
}

/* Entria cloud landing based on the user's clean reference layout. */
.cloud-page {
    --cloud-text: #202020;
    --cloud-muted: #858585;
    --cloud-line: #e8e8e8;
    --cloud-blue: #5797f4;
    --cloud-blue-soft: #e8f1ff;
    --cloud-green: #5ac262;
    --cloud-violet: #6b5bf1;
    --cloud-pink: #d43bd0;
    --cloud-gold: #cfa12a;
    --cloud-red: #ef6a61;
    min-height: 100vh;
    background: #ffffff;
    color: var(--cloud-text);
    font-family: Inter, Poppins, "Segoe UI", system-ui, sans-serif;
}

.cloud-page a {
    color: inherit;
    text-decoration: none;
}

.cloud-nav-shell {
    position: fixed;
    top: 32px;
    left: 50%;
    z-index: 40;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    width: min(calc(100% - 96px), 1550px);
    min-height: 82px;
    margin: 0;
    padding: 0 26px;
    border: 1px solid rgba(12, 15, 24, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 46px rgba(18, 21, 30, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.cloud-brand {
    display: inline-flex;
    align-items: center;
    width: 158px;
}

.cloud-brand img,
.cloud-footer-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.cloud-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(12, 15, 24, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #101219;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(18, 21, 30, 0.08);
}

.cloud-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.cloud-nav-shell[data-menu-open="true"] .cloud-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.cloud-nav-shell[data-menu-open="true"] .cloud-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.cloud-nav-shell[data-menu-open="true"] .cloud-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cloud-menu-panel {
    display: contents;
}

.cloud-nav,
.cloud-nav-actions,
.cloud-hero-actions,
.cloud-trust-row {
    display: flex;
    align-items: center;
}

.cloud-nav {
    justify-content: flex-start;
    gap: clamp(28px, 3vw, 54px);
    font-size: clamp(0.95rem, 0.95vw, 1.1rem);
    font-weight: 850;
}

.cloud-nav-actions {
    gap: 22px;
    font-size: clamp(0.95rem, 0.95vw, 1.1rem);
    font-weight: 850;
    white-space: nowrap;
}

.cloud-nav a,
.cloud-nav-actions > a {
    transition: color 180ms ease, transform 180ms ease;
}

.cloud-login-trigger,
.cloud-company-trigger {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cloud-company-trigger {
    --cloud-rocket-fly: 175px;
    --cloud-rocket-trail: 230px;
}

.cloud-button.cloud-company-trigger {
    --cloud-rocket-fly: 145px;
    --cloud-rocket-trail: 190px;
}

.cloud-login-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px 0 48px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.cloud-trigger-label {
    position: relative;
    z-index: 2;
}

.cloud-login-trigger::before,
.cloud-login-trigger::after,
.cloud-company-trigger::before,
.cloud-company-trigger::after {
    pointer-events: none;
}

.cloud-login-trigger::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    z-index: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #141821;
    border-radius: 10px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23141821' stroke-linecap='round'%3E%3Cpath d='M8.2 14.2c0-3.4 2.6-5.9 5.8-5.9s5.8 2.5 5.8 5.9' stroke-opacity='.42' stroke-width='1.45'/%3E%3Cpath d='M10.4 16.8c-.6-3.4 1-6 3.6-6s4.2 2.6 3.6 6' stroke-opacity='.38' stroke-width='1.3'/%3E%3Cpath d='M12.4 18.2c-.6-2-.4-5 1.6-5s2.2 3 1.6 5' stroke-opacity='.34' stroke-width='1.2'/%3E%3Cpath d='M8.8 18.5c1.8 2.7 8.6 2.7 10.4 0' stroke-opacity='.3' stroke-width='1.15'/%3E%3C/g%3E%3Ccircle cx='14' cy='14.2' r='2.7' fill='%235ac262'/%3E%3C/svg%3E") center / 22px 22px no-repeat,
        linear-gradient(90deg, transparent 0 28%, rgba(87, 151, 244, 0.36) 28% 33%, transparent 33% 67%, rgba(87, 151, 244, 0.36) 67% 72%, transparent 72%),
        #ffffff;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 4px rgba(87, 151, 244, 0.1);
    opacity: 0;
    transform: translate(-14px, -50%) scale(0.72);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.cloud-login-trigger::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    z-index: 1;
    width: 14px;
    height: 25px;
    border: 2px solid #141821;
    border-radius: 999px 999px 7px 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f7 100%);
    box-shadow: 6px 9px 0 -5px #ffffff, 6px 9px 0 -3px #141821;
    opacity: 0;
    transform: translate(-42px, -35%) rotate(-18deg);
}

.cloud-login-trigger:hover::before,
.cloud-login-trigger:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.cloud-login-trigger:hover::after,
.cloud-login-trigger:focus-visible::after {
    animation: cloudBiometricTap 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.cloud-company-trigger::before {
    content: "";
    position: absolute;
    left: -82px;
    bottom: -8px;
    z-index: 0;
    width: 56px;
    height: 24px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18px 18px, #ffffff 0 15px, transparent 16px),
        radial-gradient(circle at 38px 12px, #ffffff 0 18px, transparent 19px);
    opacity: 0;
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.18));
}

.cloud-company-trigger::after {
    content: "";
    position: absolute;
    left: -72px;
    top: 50%;
    z-index: 1;
    width: 54px;
    height: 26px;
    border-radius: 70% 999px 999px 70%;
    background:
        radial-gradient(circle at 78% 50%, #cf2d70 0 5px, transparent 6px),
        linear-gradient(90deg, #ffffff 0 17%, #eeb7ff 18% 52%, #ffffff 53% 100%);
    box-shadow:
        -12px 0 0 -5px #f5a7ff,
        -19px 0 0 -12px #ffb34c,
        inset -5px 0 0 #5797f4;
    opacity: 0;
    transform: translateY(-50%) rotate(-8deg);
}

.cloud-company-trigger:hover::before,
.cloud-company-trigger:focus-visible::before {
    animation: cloudRocketTrail 950ms cubic-bezier(.2, .8, .2, 1) both;
}

.cloud-company-trigger:hover::after,
.cloud-company-trigger:focus-visible::after {
    animation: cloudRocketFly 950ms cubic-bezier(.2, .8, .2, 1) both;
}

.cloud-nav a:hover,
.cloud-nav-actions > a:not(.cloud-nav-primary):hover {
    color: #4f94f4;
    transform: translateY(-1px);
}

.cloud-page .cloud-nav-primary,
.cloud-page .cloud-button-primary {
    background: #101219;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 5px 0 rgba(0, 0, 0, 0.14);
}

.cloud-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 56px;
    padding: 0 26px;
    border: 2px solid #242734;
    border-radius: 999px;
    font-size: clamp(0.95rem, 0.95vw, 1.08rem);
}

.cloud-hero {
    position: relative;
    min-height: 760px;
    margin-top: 0;
    padding: 248px 24px 0;
    background: #fbfbfb;
}

.cloud-hero-copy {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    width: min(100%, 1120px);
    margin: 0 auto;
    text-align: center;
}

.cloud-hero-copy h1 {
    max-width: 840px;
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(3.35rem, 4.25vw, 4.35rem);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-hero-copy p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #818181;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 760;
}

.cloud-hero-actions {
    gap: 16px;
    margin-top: 28px;
}

.cloud-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid #101219;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 850;
    letter-spacing: 0;
}

.cloud-button-secondary {
    background: #ffffff;
    color: #101219;
}

.cloud-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

@keyframes cloudBiometricTap {
    0% {
        opacity: 0;
        transform: translate(-42px, -35%) rotate(-18deg);
    }
    24% {
        opacity: 1;
        transform: translate(-8px, -42%) rotate(-9deg);
    }
    52% {
        opacity: 1;
        transform: translate(0, -35%) rotate(-4deg) scaleY(0.9);
    }
    76% {
        opacity: 1;
        transform: translate(3px, -48%) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translate(35px, -70%) rotate(14deg);
    }
}

@keyframes cloudRocketFly {
    0% {
        opacity: 0;
        transform: translate(-26px, -50%) rotate(-12deg) scale(0.85);
    }
    18% {
        opacity: 1;
    }
    72% {
        opacity: 1;
        transform: translate(var(--cloud-rocket-fly), -55%) rotate(-5deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--cloud-rocket-fly) + 100px), -70%) rotate(6deg) scale(0.9);
    }
}

@keyframes cloudRocketTrail {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.7);
    }
    24% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(var(--cloud-rocket-trail)) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cloud-login-trigger:hover::after,
    .cloud-login-trigger:focus-visible::after,
    .cloud-company-trigger:hover::before,
    .cloud-company-trigger:focus-visible::before,
    .cloud-company-trigger:hover::after,
    .cloud-company-trigger:focus-visible::after {
        animation: none;
        opacity: 0;
    }
}

.cloud-mail-action {
    cursor: pointer;
}

.cloud-mail-link {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--cloud-blue);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    padding: 0;
    text-align: left;
}

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

.cloud-trust-row {
    position: relative;
    z-index: 4;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 70px;
    color: var(--cloud-blue);
    font-size: 0.88rem;
    font-weight: 760;
}

.cloud-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cloud-trust-row svg {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--cloud-blue);
    color: #ffffff;
}

.cloud-hero-paperclip,
.cloud-hero-device,
.cloud-showcase-keyboard,
.cloud-showcase-clip {
    position: absolute;
    pointer-events: none;
}

.cloud-hero-paperclip {
    left: 84px;
    top: 300px;
    width: 32px;
    height: 126px;
    border: 6px solid #a9bfce;
    border-left-width: 5px;
    border-radius: 28px;
    transform: rotate(40deg);
    filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.22));
}

.cloud-hero-paperclip::after {
    content: "";
    position: absolute;
    inset: 14px 7px 14px 8px;
    border: 5px solid #eef8ff;
    border-left-width: 3px;
    border-radius: 22px;
}

.cloud-hero-device {
    right: -40px;
    top: 0;
    width: 180px;
    height: 470px;
    border-radius: 24px;
    background: linear-gradient(100deg, #eff1f5, #ffffff 38%, #dfe3eb);
    box-shadow: -26px 34px 70px rgba(17, 24, 39, 0.14);
    transform: rotate(-14deg);
}

.cloud-hero-device::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 98px;
    width: 100px;
    height: 250px;
    border-radius: 9px;
    background: repeating-linear-gradient(180deg, #cfd4dd 0 3px, transparent 3px 7px);
    opacity: 0.65;
}

.cloud-hero-docs {
    position: absolute;
    left: 50%;
    bottom: -170px;
    z-index: 2;
    width: 730px;
    height: 320px;
    transform: translateX(-50%);
}

.cloud-sheet {
    position: absolute;
    width: 430px;
    height: 260px;
    border: 1px solid #ededed;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(26, 26, 26, 0.08);
}

.cloud-sheet-left {
    left: -110px;
    bottom: -4px;
    transform: rotate(-17deg);
}

.cloud-sheet-right {
    right: -94px;
    bottom: 0;
    transform: rotate(8deg);
}

.cloud-attendance-sheet,
.cloud-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    background: #ffffff;
    box-shadow: 0 34px 86px rgba(26, 26, 26, 0.11);
}

.cloud-attendance-sheet {
    width: 690px;
    min-height: 320px;
    margin: 0 auto;
}

.cloud-sheet-head,
.cloud-product-top {
    padding: 20px 34px 18px;
    border-bottom: 1px solid #eeeeee;
}

.cloud-sheet-head span,
.cloud-product-top span,
.cloud-sheet-parties > div > span,
.cloud-product-grid small,
.cloud-sheet-table span,
.cloud-product-table span {
    color: #9a9a9a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cloud-sheet-head strong,
.cloud-product-top strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.cloud-sheet-parties,
.cloud-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cloud-sheet-parties > div,
.cloud-product-grid > div {
    min-height: 152px;
    padding: 28px 34px;
}

.cloud-sheet-parties > div + div,
.cloud-product-grid > div + div {
    border-left: 1px solid #eeeeee;
}

.cloud-seal {
    width: 40px;
    height: 40px;
    margin: 18px 0 14px;
    border-radius: 999px;
}

.cloud-seal-blue {
    background: radial-gradient(circle at 30% 25%, #3c6cff, #234bf4);
}

.cloud-seal-green {
    background: var(--cloud-green);
}

.cloud-mock-title {
    display: block;
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.cloud-sheet-parties p,
.cloud-sheet-parties small,
.cloud-product-grid p {
    color: var(--cloud-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cloud-sheet-parties p {
    margin: 6px 0 22px;
}

.cloud-sheet-table,
.cloud-product-table {
    padding: 18px 34px 26px;
    border-top: 1px solid #eeeeee;
}

.cloud-sheet-table > div,
.cloud-product-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 74px;
    gap: 14px;
    min-height: 31px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    color: #676767;
}

.cloud-showcase {
    position: relative;
    min-height: 650px;
    padding: 190px 24px 88px;
    background: #ffffff;
}

.cloud-showcase-keyboard {
    left: -80px;
    top: 190px;
    width: 245px;
    height: 340px;
    border-radius: 28px;
    background: repeating-linear-gradient(180deg, #f8f8f8 0 42px, #dcdcdc 42px 45px);
    box-shadow: 26px 28px 54px rgba(0, 0, 0, 0.22);
    transform: rotate(16deg);
}

.cloud-showcase-clip {
    right: 150px;
    top: 250px;
    width: 72px;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, #efb461, #98351f);
    box-shadow: 34px 26px 30px rgba(0, 0, 0, 0.18);
    transform: rotate(18deg);
}

.cloud-showcase-clip::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 22px;
    width: 76px;
    height: 42px;
    border: 5px solid #6f8796;
    border-radius: 50%;
    transform: rotate(20deg);
}

.cloud-product-stack {
    position: relative;
    width: min(100%, 740px);
    margin: 0 auto;
}

.cloud-product-card {
    width: min(100%, 720px);
    margin: 0 auto;
}

.cloud-product-card-back {
    position: absolute;
    z-index: 0;
    left: -100px;
    top: 58px;
    width: 360px;
    min-height: 330px;
    padding: 28px;
    opacity: 0.78;
    transform: rotate(-18deg);
}

.cloud-product-stack .cloud-product-card:not(.cloud-product-card-back) {
    z-index: 1;
}

.cloud-product-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.cloud-product-grid > div {
    min-height: 188px;
}

.cloud-product-grid .cloud-mock-title {
    margin-top: 18px;
}

.cloud-audience,
.cloud-problems,
.cloud-security,
.cloud-pricing,
.cloud-distributor,
.cloud-final-cta,
.cloud-footer {
    width: min(calc(100% - 64px), 1520px);
    margin: 0 auto;
    scroll-margin-top: 128px;
}

.cloud-audience {
    padding: 92px 0 76px;
    text-align: center;
}

.cloud-section-label {
    margin: 0 0 18px;
    color: var(--cloud-blue);
    font-size: 0.94rem;
    font-weight: 930;
}

.cloud-audience h2,
.cloud-problems h2,
.cloud-final-cta h2 {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cloud-text);
    font-size: 2.65rem;
    line-height: 1.13;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 58px;
}

.cloud-info-card {
    min-height: 178px;
    padding: 28px 30px;
    border-radius: 18px;
    background: #f8f8f8;
    text-align: left;
}

.cloud-info-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.cloud-info-title svg {
    width: 24px;
    height: 24px;
}

.cloud-info-title h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 930;
}

.cloud-info-title.blue { color: var(--cloud-blue); }
.cloud-info-title.pink { color: var(--cloud-pink); }
.cloud-info-title.violet { color: var(--cloud-violet); }
.cloud-info-title.green { color: #6aa23a; }
.cloud-info-title.gold { color: var(--cloud-gold); }
.cloud-info-title.red { color: var(--cloud-red); }

.cloud-info-card p,
.cloud-problem-card p,
.cloud-security p {
    margin: 0;
    color: #858585;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 680;
}

.cloud-problems {
    padding: 92px 0 78px;
}

.cloud-problems h2 {
    max-width: 850px;
    margin-left: 0;
    text-align: left;
}

.cloud-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 68px;
}

.cloud-problem-card h3 {
    margin: 0 0 16px;
    font-size: 1.02rem;
    font-weight: 930;
}

.cloud-problem-card > div {
    display: grid;
    place-items: center;
    min-height: 178px;
    margin-top: 30px;
    border-radius: 18px;
}

.cloud-problem-card svg {
    width: 46px;
    height: 46px;
}

.cloud-problem-card.blue h3,
.cloud-problem-card.blue svg { color: var(--cloud-blue); }
.cloud-problem-card.pink h3,
.cloud-problem-card.pink svg { color: var(--cloud-pink); }
.cloud-problem-card.violet h3,
.cloud-problem-card.violet svg { color: var(--cloud-violet); }
.cloud-problem-card.blue > div { background: #e6f0ff; }
.cloud-problem-card.pink > div { background: #f8ddf5; }
.cloud-problem-card.violet > div { background: #e8e4ff; }

.cloud-security {
    padding: 78px 0 98px;
}

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

.cloud-security h2 {
    margin: 0 0 14px;
    font-size: 1.24rem;
    font-weight: 950;
    line-height: 1.18;
}

.cloud-security-panel {
    display: grid;
    place-items: center;
    min-height: 280px;
    margin-top: 28px;
    border-radius: 18px;
}

.cloud-security-panel span {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.66rem;
    font-weight: 950;
}

.cloud-security-panel strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.cloud-security-panel.blue {
    background: #e4efff;
}

.cloud-security-panel.blue span {
    background: var(--cloud-blue);
}

.cloud-security-panel.violet {
    background: #e8e4ff;
}

.cloud-security-panel.violet span {
    background: var(--cloud-violet);
}

.cloud-pricing {
    padding: 90px 0 96px;
}

.cloud-pricing-head {
    display: grid;
    justify-items: center;
    max-width: 820px;
    margin: 0 auto 46px;
    text-align: center;
}

.cloud-pricing-head h2 {
    max-width: 780px;
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(2.35rem, 4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-pricing-head p:last-child {
    max-width: 720px;
    margin: 22px 0 0;
    color: #858585;
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 680;
}

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

.cloud-price-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 560px;
    padding: 24px;
    border: 1px solid #ededed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.055);
}

.cloud-price-card.featured {
    border-color: rgba(83, 141, 238, 0.46);
    box-shadow: 0 28px 72px rgba(83, 141, 238, 0.16);
}

.cloud-price-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: var(--cloud-blue);
    font-size: 0.76rem;
    font-weight: 930;
}

.cloud-price-card-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-right: 56px;
}

.cloud-price-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
}

.cloud-price-icon svg {
    width: 22px;
    height: 22px;
}

.cloud-price-icon.blue { background: #e7f0ff; color: var(--cloud-blue); }
.cloud-price-icon.green { background: #e8f8ef; color: #23b66f; }
.cloud-price-icon.violet { background: #eeeaff; color: var(--cloud-violet); }
.cloud-price-icon.pink { background: #fde7f8; color: var(--cloud-pink); }

.cloud-price-card h3 {
    margin: 0;
    color: var(--cloud-text);
    font-size: 1.18rem;
    line-height: 1.1;
    font-weight: 950;
}

.cloud-price-card-top p {
    margin: 7px 0 0;
    color: #7e7e7e;
    font-size: 0.92rem;
    line-height: 1.38;
    font-weight: 650;
}

.cloud-price-options {
    display: grid;
    gap: 10px;
}

.cloud-price-option {
    display: grid;
    gap: 4px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fbfbfb;
    color: var(--cloud-text);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cloud-price-option:hover,
.cloud-price-option:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(83, 141, 238, 0.5);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.cloud-price-option.unavailable {
    color: #8b8b8b;
    background: #f5f5f5;
    cursor: not-allowed;
}

.cloud-price-option.unavailable:hover {
    transform: none;
    border-color: #eeeeee;
    box-shadow: none;
}

.cloud-price-option span,
.cloud-price-option small {
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cloud-price-option span {
    color: var(--cloud-blue);
}

.cloud-price-option strong {
    color: var(--cloud-text);
    font-size: 1.35rem;
    line-height: 1.08;
    font-weight: 950;
}

.cloud-price-option small {
    color: #858585;
    text-transform: none;
}

.cloud-price-option-strong {
    background: #f4f8ff;
    border-color: #dbe9ff;
}

.cloud-price-card ul {
    display: grid;
    gap: 10px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.cloud-price-card li {
    position: relative;
    padding-left: 22px;
    color: #686868;
    font-size: 0.92rem;
    line-height: 1.36;
    font-weight: 680;
}

.cloud-price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.34em;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--cloud-blue);
}

.cloud-price-card li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: calc(0.34em + 4px);
    width: 5px;
    height: 3px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
}

.cloud-price-main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 0 20px;
    border-radius: 999px;
    background: #101219;
    color: #ffffff;
    font-weight: 930;
    text-align: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 5px 0 rgba(0, 0, 0, 0.14);
}

.cloud-pricing-note {
    max-width: 780px;
    margin: 26px auto 0;
    color: #858585;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 650;
}

.cloud-selected-plan {
    display: grid;
    gap: 4px;
    max-width: 420px;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #dbe9ff;
    border-radius: 16px;
    background: #f4f8ff;
}

.cloud-selected-plan span {
    color: var(--cloud-blue);
    font-size: 0.74rem;
    font-weight: 920;
    text-transform: uppercase;
}

.cloud-selected-plan strong {
    color: var(--cloud-text);
    font-size: 1.12rem;
    font-weight: 940;
}

.cloud-selected-plan small {
    color: #858585;
    font-size: 0.88rem;
    font-weight: 700;
}
.cloud-distributor {
    padding: 88px 0 98px;
}

.cloud-distributor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
    gap: 28px;
    align-items: start;
}

.cloud-distributor-story {
    position: relative;
    display: grid;
    gap: 28px;
    min-height: 100%;
    padding: 34px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(91, 198, 255, 0.24), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(82, 221, 151, 0.16), transparent 28%),
        linear-gradient(135deg, #08101b 0%, #0d1b2a 54%, #111827 100%);
    color: #ffffff;
    box-shadow: 0 26px 74px rgba(8, 16, 27, 0.18);
}

.cloud-distributor-logo-wrap {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    background: #0d1b2a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.cloud-distributor-logo-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.cloud-distributor-copy {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.cloud-distributor-copy .cloud-section-label {
    margin-bottom: 0;
    color: #7fb5ff;
}

.cloud-distributor-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 4vw, 4.3rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-distributor-copy p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.04rem;
    line-height: 1.55;
    font-weight: 650;
}

.cloud-distributor-benefits {
    display: grid;
    gap: 0;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cloud-distributor-benefits article {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.cloud-distributor-benefits strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
}

.cloud-distributor-benefits span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 620;
}

.cloud-distributor-form {
    align-self: stretch;
}
.cloud-final-cta {
    padding: 78px 24px 92px;
    text-align: center;
}

.cloud-final-cta h2 {
    max-width: 760px;
    margin-bottom: 28px;
}

.cloud-legal-hero {
    display: grid;
    justify-items: center;
    padding: 190px 24px 52px;
    background: #fbfbfb;
    text-align: center;
}

.cloud-legal-hero h1 {
    max-width: 820px;
    margin: 10px 0 0;
    font-size: clamp(2.7rem, 4.2vw, 4.2rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-legal-hero > p:last-child {
    margin: 18px 0 0;
    color: var(--cloud-muted);
    font-size: 1rem;
    font-weight: 760;
}

.cloud-legal-content {
    width: min(calc(100% - 48px), 980px);
    margin: 0 auto;
    padding: 40px 0 88px;
}

.cloud-legal-card {
    display: grid;
    gap: 18px;
    padding: 42px 0 0;
    border-top: 1px solid #eeeeee;
}

.cloud-legal-card h2 {
    margin: 24px 0 0;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 920;
    letter-spacing: 0;
}

.cloud-legal-card h2:first-child {
    margin-top: 0;
}

.cloud-legal-card p,
.cloud-legal-card li {
    margin: 0;
    color: #6f6f6f;
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 620;
}

.cloud-legal-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.cloud-legal-card a {
    color: var(--cloud-blue);
    font-weight: 850;
}

.cloud-contact-content {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 42px 0 92px;
}

.cloud-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
    gap: 24px;
    align-items: start;
}

.cloud-contact-card,
.cloud-contact-form-card {
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;
}

.cloud-contact-form-card {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 30px;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.06);
}

.cloud-contact-form-heading {
    display: grid;
    gap: 10px;
}

.cloud-contact-form-heading span,
.cloud-contact-card span {
    color: var(--cloud-blue);
    font-size: 0.75rem;
    font-weight: 920;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cloud-contact-form-heading h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.7rem, 2.2vw, 2.55rem);
    line-height: 1.02;
    font-weight: 940;
    letter-spacing: 0;
}

.cloud-contact-form-heading p {
    max-width: 620px;
    margin: 0;
    color: #7b7b7b;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 620;
}

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

.cloud-contact-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cloud-contact-field.full {
    grid-column: 1 / -1;
}

.cloud-contact-field span {
    color: #222222;
    font-size: 0.84rem;
    font-weight: 850;
}

.cloud-contact-field input,
.cloud-contact-field select,
.cloud-contact-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dedede;
    border-radius: 14px;
    background: #fafafa;
    color: #171717;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 640;
    outline: none;
    padding: 12px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cloud-contact-field textarea {
    min-height: 132px;
    resize: vertical;
}

.cloud-contact-field input:focus,
.cloud-contact-field select:focus,
.cloud-contact-field textarea:focus {
    border-color: rgba(84, 149, 238, 0.85);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(84, 149, 238, 0.16);
}

.cloud-contact-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #696969;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 650;
}

.cloud-contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cloud-blue);
}

.cloud-contact-consent a {
    color: var(--cloud-blue);
    font-weight: 850;
}

.cloud-contact-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.94rem;
    font-weight: 780;
    line-height: 1.45;
}

.cloud-contact-alert.success {
    border: 1px solid rgba(15, 188, 127, 0.28);
    background: rgba(15, 188, 127, 0.11);
    color: #08734f;
}

.cloud-contact-alert.error {
    border: 1px solid rgba(220, 38, 38, 0.26);
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
}

.cloud-form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cloud-contact-side {
    display: grid;
    gap: 16px;
}

.cloud-contact-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 0;
    padding: 24px;
}

.cloud-contact-card.primary {
    background: #101219;
    color: #ffffff;
}

.cloud-contact-card.primary span {
    color: #79adff;
}

.cloud-contact-card h2 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.12;
    font-weight: 930;
    letter-spacing: 0;
}

.cloud-email-address {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    overflow-wrap: anywhere;
}

.cloud-contact-card p {
    margin: 0;
    color: #6f6f6f;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 620;
}

.cloud-contact-card.primary p {
    color: rgba(255, 255, 255, 0.72);
}

.cloud-contact-card > a:not(.cloud-button),
.cloud-contact-side a {
    color: var(--cloud-blue);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.cloud-contact-card .cloud-button {
    width: fit-content;
    margin-top: 6px;
    background: #ffffff;
    color: #101219;
    box-shadow: none;
}

.cloud-footer {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    padding: 88px 24px 72px;
    border-top: 1px solid #f1f1f1;
}

.cloud-footer-brand {
    display: inline-flex;
    width: 138px;
    margin-bottom: 24px;
}

.cloud-footer-headline {
    max-width: 390px;
    margin: 0 0 24px;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1.32;
}

.cloud-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
}

.cloud-footer h3 {
    margin: 0 0 18px;
    font-size: 1rem;
}

.cloud-footer nav a {
    display: block;
    margin-top: 14px;
    color: #858585;
    font-size: 0.94rem;
    font-weight: 680;
}

@media (max-width: 1180px) {
    .cloud-nav-shell {
        top: 18px;
        grid-template-columns: 144px minmax(0, 1fr);
        min-height: auto;
        border-radius: 32px;
        padding: 14px 22px;
    }

    .cloud-brand {
        width: 142px;
    }

    .cloud-nav-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .cloud-nav {
        justify-content: flex-end;
        gap: 24px;
    }

    .cloud-hero {
        min-height: 760px;
        padding-top: 250px;
    }

    .cloud-hero-copy h1 {
        font-size: 3.25rem;
    }

    .cloud-hero-copy p {
        font-size: 1.08rem;
    }

    .cloud-hero-device {
        right: -110px;
    }

    .cloud-hero-docs {
        width: 680px;
        bottom: -160px;
    }

    .cloud-attendance-sheet {
        width: 660px;
    }

    .cloud-card-grid,
    .cloud-problem-grid,
    .cloud-pricing-grid {
        gap: 22px;
    }

    .cloud-audience h2,
    .cloud-problems h2,
    .cloud-final-cta h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 860px) {
    .cloud-nav-shell {
        top: 12px;
        width: min(calc(100% - 32px), 720px);
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 16px;
    }

    .cloud-brand {
        width: 136px;
    }

    .cloud-nav {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 4px;
        font-size: 0.78rem;
    }

    .cloud-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .cloud-nav-primary {
        min-width: 0;
        min-height: 48px;
        width: min(100%, 280px);
        max-width: 280px;
        padding-inline: 18px;
    }

    .cloud-hero {
        min-height: 850px;
        margin-top: 0;
        padding: 330px 20px 0;
    }

    .cloud-hero-copy h1 {
        max-width: 310px;
        font-size: 1.68rem;
        line-height: 1.16;
    }

    .cloud-hero-copy p {
        max-width: 300px;
        margin-top: 22px;
        font-size: 0.88rem;
    }

    .cloud-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 280px);
    }

    .cloud-button {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding-inline: 18px;
    }

    .cloud-trust-row {
        display: grid;
        justify-items: start;
        gap: 14px;
        margin-top: 38px;
        font-size: 0.88rem;
    }

    .cloud-trust-row span {
        white-space: normal;
    }

    .cloud-hero-paperclip,
    .cloud-hero-device,
    .cloud-showcase-keyboard,
    .cloud-showcase-clip {
        display: none;
    }

    .cloud-hero-docs {
        left: 0;
        right: 0;
        bottom: -88px;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: hidden;
        transform: none;
    }

    .cloud-attendance-sheet {
        flex: 0 0 600px;
        transform: scale(0.56);
        transform-origin: top center;
    }

    .cloud-sheet-left,
    .cloud-sheet-right {
        display: none;
    }

    .cloud-showcase {
        min-height: auto;
        padding: 136px 20px 68px;
    }

    .cloud-product-card-back {
        display: none;
    }

    .cloud-product-grid,
    .cloud-sheet-parties,
    .cloud-security-grid,
    .cloud-footer,
    .cloud-footer nav {
        grid-template-columns: 1fr;
    }

    .cloud-product-grid > div + div,
    .cloud-sheet-parties > div + div {
        border-left: 0;
        border-top: 1px solid #eeeeee;
    }

    .cloud-product-grid > div,
    .cloud-sheet-parties > div {
        min-height: auto;
        padding: 28px 24px;
    }

    .cloud-product-top,
    .cloud-sheet-table,
    .cloud-product-table {
        padding-inline: 24px;
    }

    .cloud-product-table > div,
    .cloud-sheet-table > div {
        grid-template-columns: minmax(0, 1fr) 58px 58px;
        font-size: 0.82rem;
    }

    .cloud-audience,
    .cloud-problems,
    .cloud-security,
    .cloud-pricing,
    .cloud-distributor,
    .cloud-final-cta,
    .cloud-footer {
        width: min(calc(100% - 40px), 720px);
    }

    .cloud-audience,
    .cloud-problems,
    .cloud-security,
    .cloud-pricing {
        padding-block: 76px;
    }

    .cloud-audience h2,
    .cloud-problems h2,
    .cloud-final-cta h2 {
        font-size: 2.25rem;
    }

    .cloud-card-grid,
    .cloud-problem-grid,
    .cloud-pricing-grid {
        grid-template-columns: 1fr;
        margin-top: 46px;
    }

    .cloud-info-card {
        min-height: auto;
        padding: 28px 26px;
    }

    .cloud-info-card p,
    .cloud-problem-card p,
    .cloud-security p {
        font-size: 1rem;
    }

    .cloud-problem-card > div,
    .cloud-security-panel {
        min-height: 190px;
    }

    .cloud-security-panel span {
        width: 120px;
        height: 120px;
        font-size: 1.55rem;
    }

    .cloud-distributor-shell,
    .cloud-distributor-benefits article {
        grid-template-columns: 1fr;
    }

    .cloud-distributor {
        padding: 74px 0 78px;
    }

    .cloud-distributor-story {
        padding: 24px;
        border-radius: 24px;
    }

    .cloud-distributor-logo-wrap {
        border-radius: 18px;
    }

    .cloud-distributor-copy h2 {
        font-size: 2.18rem;
    }

    .cloud-final-cta {
        padding: 74px 0 84px;
    }

    .cloud-legal-hero {
        padding: 148px 20px 44px;
    }

    .cloud-legal-content {
        width: min(calc(100% - 40px), 720px);
        padding: 32px 0 68px;
    }

    .cloud-legal-card {
        padding-top: 34px;
    }

    .cloud-contact-content {
        width: min(calc(100% - 40px), 720px);
        padding: 32px 0 70px;
    }

    .cloud-contact-layout,
    .cloud-contact-form-grid {
        grid-template-columns: 1fr;
    }

    .cloud-contact-form-card {
        padding: 24px;
    }

    .cloud-contact-card {
        min-height: auto;
    }

    .cloud-footer {
        gap: 42px;
        padding: 74px 0 64px;
    }
}

/* Login reference layout */
.login-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #ffffff;
    font-family: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(390px, 46%);
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.login-hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 35% 38%, rgba(75, 118, 255, 0.35), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(85, 209, 105, 0.9), transparent 34%),
        linear-gradient(138deg, #2e46d6 0%, #263fa9 42%, #236474 72%, #54c464 100%);
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    opacity: 0.2;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
        radial-gradient(circle at 74% 45%, rgba(255, 255, 255, 0.14), transparent 22%);
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: -18% -8%;
    background: radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(7, 16, 55, 0.2) 78%);
    pointer-events: none;
}

.login-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(38px, 5.4vh, 70px) clamp(30px, 5.4vw, 104px);
    text-align: center;
    box-sizing: border-box;
}

.login-bot-brand {
    display: grid;
    justify-items: center;
    gap: clamp(12px, 1.2vw, 20px);
}

.login-bot-lockup {
    --jornadabot-gap: clamp(12px, 1.2vw, 20px);
    --jornadabot-robot-size: clamp(158px, 13.5vw, 246px);
    --jornadabot-wordmark-size: clamp(2.7rem, 4.05vw, 4.9rem);
    --jornadabot-wordmark-weight: 760;
    --jornadabot-bot-weight: 820;
}

.login-hero-subtitle {
    margin-top: clamp(18px, 2.2vh, 28px);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.92rem, 1vw, 1.14rem);
    line-height: 1.28;
    font-weight: 760;
}

.login-hero-subtitle strong {
    color: #6edf7c;
}

.login-hero-rule {
    display: block;
    width: 54px;
    height: 4px;
    margin: clamp(18px, 2.8vh, 28px) 0 clamp(18px, 2.8vh, 28px);
    border-radius: 999px;
    background: #76df83;
}

.login-hero-copy {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.84rem, 0.9vw, 1rem);
    line-height: 1.46;
    font-weight: 560;
}

.login-feature-list {
    position: static;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 680px);
    gap: 0;
    margin-top: clamp(32px, 5vh, 54px);
}

.login-feature-list > div {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    gap: 8px;
    min-width: 0;
    padding: 0 clamp(8px, 1.2vw, 20px);
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.login-feature-list > div:last-child {
    border-right: 0;
}

.login-feature-list svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #74e284;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.76rem, 0.82vw, 0.9rem);
    line-height: 1.22;
    font-weight: 620;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #ffffff;
}

.login-panel-inner {
    display: flex;
    flex-direction: column;
    width: min(100%, 424px);
    min-height: auto;
    padding: clamp(38px, 6vh, 64px) 0;
    box-sizing: border-box;
}

.login-brand-home {
    display: block;
    width: fit-content;
    text-decoration: none;
}

.login-brand-logo {
    display: block;
    width: min(100%, 302px);
    height: auto;
    margin: 0 0 clamp(38px, 5vh, 56px);
}

.login-heading {
    margin-bottom: 22px;
}

.login-heading h1 {
    margin: 0;
    color: #242832;
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 780;
    letter-spacing: 0;
}

.login-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b43232;
    font-size: 0.94rem;
    font-weight: 700;
}

.login-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 20px 0 22px;
    border: 0;
    border-radius: 8px;
    background: #efefef;
    color: #8b8b8b;
    font-size: 0.98rem;
    font-weight: 520;
    cursor: not-allowed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.google-letter {
    color: #8f8f8f;
    font-family: Arial, sans-serif;
    font-size: 1.28rem;
    font-weight: 500;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 24px 0 22px;
    color: #777777;
    font-size: 0.92rem;
    font-weight: 620;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfdfdf;
}

.login-divider span {
    flex: 0 0 auto;
}

.login-form {
    display: grid;
    gap: 0;
}

.login-field-group {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #efefef;
}

.login-field {
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 0;
    border-bottom: 2px solid #ffffff;
    background: #efefef;
    color: #242832;
    font-size: 0.96rem;
    font-weight: 520;
}

.login-field:last-child {
    border-bottom: 0;
}

.login-field input {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 0;
    outline: 0;
    padding: 0 22px;
    background: transparent;
    color: #22252c;
    font: inherit;
}

.login-field input::placeholder {
    color: #888888;
    opacity: 1;
}

.login-password-field input {
    padding-right: 16px;
}

.login-show-button {
    flex: 0 0 auto;
    min-width: 76px;
    height: 58px;
    padding: 0 18px 0 8px;
    border: 0;
    background: transparent;
    color: #777777;
    font: inherit;
    font-weight: 620;
    cursor: pointer;
}

.login-show-button:hover,
.login-show-button:focus-visible {
    color: #242832;
}

.login-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(135deg, #272727 0%, #1f1f1f 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 760;
    cursor: pointer;
    box-shadow: none;
}

.login-link-stack {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 22px;
}

@media (max-width: 860px) {
    .cloud-nav-shell {
        top: 12px;
        width: min(calc(100% - 32px), 720px);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        border-radius: 24px;
        padding: 16px;
        overflow: visible;
    }

    .cloud-brand {
        width: 136px;
    }

    .cloud-hero {
        min-height: 720px;
        padding-top: 170px;
    }

    .cloud-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .cloud-menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 2;
        display: none;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border: 1px solid rgba(12, 15, 24, 0.11);
        border-radius: 26px;
        background: #ffffff;
        box-shadow: 0 22px 54px rgba(18, 21, 30, 0.14);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .cloud-nav-shell[data-menu-open="true"] .cloud-menu-panel {
        display: grid;
    }

    .cloud-nav {
        display: grid;
        width: 100%;
        justify-content: stretch;
        overflow: visible;
        gap: 0;
        padding: 0;
        border-top: 0;
        font-size: 0.98rem;
    }

    .cloud-nav a {
        display: flex;
        align-items: center;
        min-height: 42px;
        border-bottom: 1px solid rgba(12, 15, 24, 0.08);
    }

    .cloud-nav a:last-child {
        border-bottom: 0;
    }

    .cloud-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        white-space: normal;
    }

    .cloud-nav-actions .cloud-login-trigger {
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border: 1px solid rgba(12, 15, 24, 0.1);
        border-radius: 999px;
    }

    .cloud-nav-actions .cloud-login-trigger::before,
    .cloud-nav-actions .cloud-login-trigger::after {
        display: none;
    }

    .cloud-nav-primary {
        min-width: 0;
        min-height: 48px;
        width: 100%;
        max-width: none;
        padding-inline: 18px;
    }
}
.login-link-stack button,
.login-demo-link button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #6f7787;
    font: inherit;
    font-weight: 650;
    cursor: not-allowed;
}

.login-link-stack button {
    font-size: 0.92rem;
}

.login-demo-link {
    margin: 30px 0 0;
    color: #888888;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 520;
}

.login-demo-link strong {
    color: #242832;
    font-weight: 650;
}

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

@media (max-width: 1180px) {
    .login-card {
        grid-template-columns: minmax(0, 51%) minmax(360px, 49%);
    }

    .login-panel-inner {
        width: min(calc(100% - 56px), 408px);
    }

    .login-feature-list {
        width: min(100%, 620px);
    }
}

@media (max-width: 980px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .login-panel {
        min-height: auto;
    }

    .login-hero-content {
        min-height: 600px;
    }

    .login-panel-inner {
        width: min(calc(100% - 48px), 424px);
        padding: 54px 0 66px;
    }
}

@media (max-width: 640px) {
    .login-hero-content {
        min-height: 550px;
        padding: 40px 22px 34px;
    }

    .login-bot-lockup {
        --jornadabot-robot-size: min(58vw, 190px);
        --jornadabot-wordmark-size: clamp(2.55rem, 12vw, 3.5rem);
    }

    .login-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
        margin-top: 34px;
    }

    .login-feature-list > div:nth-child(2n) {
        border-right: 0;
    }

    .login-feature-list svg {
        width: 30px;
        height: 30px;
    }

    .login-panel-inner {
        width: min(calc(100% - 36px), 400px);
        padding: 44px 0 56px;
    }

    .login-brand-logo {
        width: min(100%, 248px);
        margin-bottom: 34px;
    }

    .login-provider,
    .login-field,
    .login-field input,
    .login-show-button,
    .login-submit {
        min-height: 58px;
        height: 58px;
    }
}

/* Dashboard entry splash and tenant onboarding */
.entry-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.68)),
        url("/brand/zen-onboarding.png") left bottom / cover no-repeat;
    pointer-events: none;
    opacity: 0;
    visibility: visible;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.entry-splash.visible {
    opacity: 1;
}

.entry-splash.fading {
    opacity: 0;
    visibility: hidden;
}

.entry-splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2) 48%, transparent 78%);
    pointer-events: none;
}

.entry-splash-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100%, 900px);
    padding: 34px 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.entry-splash-copy.visible {
    opacity: 1;
    transform: translateY(0);
}

.entry-splash.fading .entry-splash-copy {
    opacity: 0;
    transform: translateY(-10px);
}

.entry-splash-layout {
    animation: entrySplashLifecycle 2000ms ease forwards;
}

html.entria-entry-splash-pending .portal-shell {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.entry-splash-copy-layout {
    animation: entrySplashCopyLifecycle 1900ms ease forwards;
}

.entry-splash-copy span {
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.entry-splash-copy h1 {
    color: #0d1b2a;
    font-size: clamp(2.4rem, 5.2vw, 5.5rem);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: 0;
}

.entry-content {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@keyframes entrySplashLifecycle {
    0% {
        opacity: 0;
        visibility: visible;
        pointer-events: auto;
    }

    22%,
    72% {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes entrySplashCopyLifecycle {
    0%,
    8% {
        opacity: 0;
        transform: translateY(12px);
    }

    32%,
    68% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.dashboard-onboarding-stage {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 118px);
    padding: clamp(18px, 3vw, 54px) 0;
}

.dashboard-onboarding-panel {
    display: grid;
    gap: 18px;
    width: min(100%, 1040px);
    justify-self: center;
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
}

.dashboard-onboarding-head {
    display: grid;
    gap: 7px;
}

.dashboard-onboarding-head span {
    color: #14b8a6;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-onboarding-head h2 {
    margin: 0;
    color: #0d1b2a;
    font-size: 1.38rem;
    font-weight: 880;
    letter-spacing: 0;
}

.dashboard-onboarding-head p {
    color: #6b7890;
    font-weight: 620;
}

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

.dashboard-onboarding-grid .validation-message {
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 720;
}

.dashboard-setup-path {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dce5f3;
    border-radius: 14px;
    background: #f8fbff;
}

.dashboard-setup-path-head {
    display: grid;
    gap: 4px;
}

.dashboard-setup-path-head span {
    color: #14b8a6;
    font-size: 0.78rem;
    font-weight: 840;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-setup-path-head h3 {
    margin: 0;
    color: #0d1b2a;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 840;
}

.dashboard-setup-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-setup-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 126px;
    padding: 12px;
    border: 1px solid #e3ebf7;
    border-radius: 12px;
    background: #ffffff;
}

.dashboard-setup-steps li > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef8f7;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 860;
}

.dashboard-setup-steps strong {
    display: block;
    color: #0d1b2a;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 840;
}

.dashboard-setup-steps p {
    margin: 5px 0 0;
    color: #66728a;
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 620;
}

.dashboard-demo-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #f4d7a5;
    border-radius: 14px;
    background: #fff8eb;
}

.dashboard-demo-choice h3 {
    margin: 0 0 4px;
    color: #7c4a03;
    font-size: 1rem;
    font-weight: 840;
}

.dashboard-demo-choice p {
    color: #8a5a12;
    font-size: 0.9rem;
    font-weight: 650;
}

.dashboard-choice-buttons {
    display: inline-grid;
    grid-template-columns: repeat(2, 72px);
    gap: 8px;
}

.dashboard-choice-button {
    min-height: 40px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #ffffff;
    color: #213455;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-choice-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.dashboard-onboarding-actions {
    display: flex;
    justify-content: flex-end;
}

.dashboard-header-compact {
    margin-top: 4px;
}

@media (max-width: 860px) {
    .entry-splash {
        background-position: 18% bottom;
    }

    .entry-splash-copy h1 {
        max-width: 330px;
        font-size: clamp(2.2rem, 12vw, 3.65rem);
    }

    .dashboard-onboarding-grid,
    .dashboard-setup-steps,
    .dashboard-demo-choice {
        grid-template-columns: 1fr;
    }

    .dashboard-setup-steps li {
        min-height: 0;
    }

    .dashboard-choice-buttons {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-onboarding-actions {
        justify-content: stretch;
    }

    .dashboard-onboarding-actions .school-primary-button {
        width: 100%;
    }
}
.tenant-signup-panel {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #dce6f4;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.tenant-signup-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.tenant-signup-table-shell {
    margin-top: 14px;
}

.tenant-signup-review-row td {
    background: #f8fbff;
}

.tenant-signup-review-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce6f4;
    border-radius: 14px;
    background: #ffffff;
}

.tenant-signup-review-box > div:first-child,
.tenant-signup-review-box .full,
.tenant-signup-review-actions {
    grid-column: 1 / -1;
}

.tenant-signup-review-box strong {
    color: #071b40;
    font-weight: 850;
}

.tenant-signup-review-box p {
    margin: 4px 0 0;
    color: #60708d;
    font-size: 0.9rem;
    font-weight: 650;
}

.tenant-signup-notes {
    min-height: 90px;
    resize: vertical;
}

.signup-layout {
    align-items: start;
}

@media (max-width: 760px) {
    .tenant-signup-panel {
        padding: 14px;
    }

    .tenant-signup-actions,
    .tenant-signup-actions .school-secondary-button {
        width: 100%;
    }

    .tenant-signup-review-box {
        grid-template-columns: 1fr;
    }
}

.school-readonly-field {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #f8fafc;
    color: #0d1b2a;
    font-weight: 800;
}

.school-detail-list {
    display: grid;
    gap: 4px;
}

.school-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eef3fb;
}

.school-detail-row:last-child {
    border-bottom: 0;
}

.school-detail-row span {
    color: #72809a;
    font-weight: 700;
}

.school-detail-row strong {
    color: #0d1b2a;
    text-align: right;
}

@media (max-width: 1100px) {
    .company-review-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1400px) {
    .company-closure-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-closure-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .company-review-summary-grid {
        grid-template-columns: 1fr;
    }

    .company-closure-fields,
    .company-closure-actions,
    .company-closure-flow {
        grid-template-columns: 1fr;
    }

    .company-closure-state {
        align-items: stretch;
        flex-direction: column;
    }

    .company-closure-state-meta {
        min-width: 0;
        text-align: left;
    }

    .company-closure-actions .school-secondary-button,
    .company-closure-actions .school-primary-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}

/* Password recovery */
.login-shell-compact {
    min-height: 100vh;
    background: #ffffff;
}

.login-card.login-card-single {
    width: min(calc(100% - 48px), 620px);
    min-height: 0;
    grid-template-columns: 1fr;
    margin: clamp(28px, 7vh, 72px) auto;
    border: 1px solid #e4e6eb;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.login-card-single .login-panel {
    min-height: 0;
}

.login-card-single .login-panel-inner {
    width: min(calc(100% - 48px), 424px);
    padding: clamp(34px, 6vh, 56px) 0;
}

.login-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #157347;
    font-size: 0.94rem;
    font-weight: 700;
}

.login-helper-text,
.login-password-policy {
    margin: 0 0 18px;
    color: #737b8c;
    font-size: 0.94rem;
    line-height: 1.5;
    font-weight: 560;
}

.login-password-policy {
    margin: 14px 0 0;
    font-size: 0.82rem;
    text-align: center;
}

.login-form-spaced {
    margin-top: 4px;
}

.login-link-stack a,
.login-demo-link a {
    color: #6f7787;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
}

.login-link-stack a:hover,
.login-link-stack a:focus-visible,
.login-demo-link a:hover,
.login-demo-link a:focus-visible {
    color: #242832;
}

@media (max-width: 640px) {
    .login-card.login-card-single {
        width: min(calc(100% - 28px), 420px);
        border-radius: 22px;
    }

    .login-card-single .login-panel-inner {
        width: min(calc(100% - 36px), 360px);
    }
}
.login-two-factor-setup {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.1rem;
}

.login-two-factor-qr {
    display: grid;
    place-items: center;
    width: min(100%, 260px);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid #e3e8f1;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.login-two-factor-qr svg {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
}

.login-two-factor-qr span {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}
.login-two-factor-secret {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: #f8fafc;
    color: #111827;
    overflow-wrap: anywhere;
}

.login-two-factor-secret span {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.login-two-factor-secret strong {
    font-size: 1.02rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
    word-break: break-all;
}

.login-two-factor-secret small {
    color: #6b7280;
    line-height: 1.45;
}

.login-secondary-form {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.login-secondary-submit {
    border: 0;
    background: transparent;
    color: #5e97f6;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0.35rem 0.5rem;
}

.login-secondary-submit:hover,
.login-secondary-submit:focus-visible {
    color: #3454d1;
    text-decoration: underline;
}

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

    .work-main-grid,
    .work-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .work-greeting-card,
    .work-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .work-filter-button,
    .work-panel-head .dashboard-panel-link {
        width: 100%;
    }

    .work-alert-grid,
    .work-quick-actions,
    .work-today-grid {
        grid-template-columns: 1fr;
    }

    .work-task-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .work-task-head {
        display: none;
    }
}
@media (max-width: 1180px) {
    .cloud-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .cloud-pricing-head {
        justify-items: start;
        text-align: left;
    }

    .cloud-pricing-head h2 {
        font-size: 2.15rem;
    }

    .cloud-pricing-grid {
        grid-template-columns: 1fr;
    }

    .cloud-price-card {
        min-height: auto;
        padding: 22px;
    }

    .cloud-price-card-top {
        padding-right: 0;
    }
}
/* Landing polish: compact shared nav, pricing CTA and distributor sizing. */
@media (min-width: 861px) {
    .cloud-nav-shell {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 20px;
        width: min(calc(100% - 72px), 1680px);
        min-height: 72px;
        padding: 0 20px;
    }

    .cloud-brand {
        width: 142px;
    }

    .cloud-nav {
        justify-content: center;
        gap: clamp(14px, 1.35vw, 28px);
        font-size: clamp(0.82rem, 0.76vw, 0.96rem);
    }

    .cloud-nav-actions {
        gap: 12px;
        font-size: clamp(0.84rem, 0.78vw, 0.98rem);
    }

    .cloud-login-trigger {
        min-width: 132px;
        min-height: 40px;
        padding: 0 10px 0 42px;
    }

    .cloud-login-trigger::before {
        left: 9px;
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    .cloud-login-trigger::after {
        left: 18px;
        width: 13px;
        height: 23px;
    }

    .cloud-nav-primary {
        min-width: 146px;
        min-height: 50px;
        padding: 0 22px;
    }
}

.cloud-price-main-cta,
.cloud-price-main-cta:visited,
.cloud-price-main-cta .cloud-trigger-label {
    color: #ffffff;
    opacity: 1;
}

.cloud-price-main-cta.cloud-company-trigger::before,
.cloud-price-main-cta.cloud-company-trigger::after {
    display: none;
}

.cloud-price-main-cta:hover,
.cloud-price-main-cta:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
}

.cloud-distributor {
    padding: 72px 0 82px;
}

.cloud-distributor-shell {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr);
    gap: 24px;
}

.cloud-distributor-story {
    gap: 22px;
    padding: 26px;
    border-radius: 24px;
}

.cloud-distributor-logo-wrap {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 20px;
}

.cloud-distributor-copy {
    max-width: 640px;
}

.cloud-distributor-copy h2 {
    font-size: clamp(1.85rem, 2.65vw, 3.1rem);
    line-height: 1.04;
}

.cloud-distributor-copy p:last-child {
    font-size: 0.96rem;
    line-height: 1.48;
}

.cloud-distributor-benefits article {
    grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
}

.cloud-distributor-benefits strong {
    font-size: 0.9rem;
}

.cloud-distributor-benefits span {
    font-size: 0.88rem;
}

.cloud-distributor-form {
    padding: 26px;
}

.cloud-distributor-form .cloud-contact-form-heading {
    gap: 12px;
}

.cloud-distributor-form .cloud-contact-form-heading h2 {
    font-size: clamp(1.6rem, 2.05vw, 2.25rem);
}

.cloud-distributor-form .cloud-contact-form-heading p {
    font-size: 0.94rem;
    line-height: 1.46;
}

.cloud-distributor-form .cloud-contact-field input,
.cloud-distributor-form .cloud-contact-field select {
    min-height: 48px;
    border-radius: 13px;
}

.cloud-distributor-form .cloud-contact-field textarea {
    min-height: 118px;
    border-radius: 13px;
}

@media (max-width: 1320px) and (min-width: 861px) {
    .cloud-nav-shell {
        grid-template-columns: 138px minmax(0, 1fr) auto;
        gap: 14px;
        width: min(calc(100% - 44px), 1260px);
        padding: 0 16px;
    }

    .cloud-brand {
        width: 132px;
    }

    .cloud-nav {
        gap: 14px;
        font-size: 0.82rem;
    }

    .cloud-nav-actions {
        gap: 8px;
        font-size: 0.82rem;
    }

    .cloud-login-trigger {
        min-width: 118px;
        padding-left: 38px;
    }

    .cloud-nav-primary {
        min-width: 132px;
        padding-inline: 18px;
    }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .cloud-nav-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 70px;
        border-radius: 999px;
    }

    .cloud-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .cloud-menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 2;
        display: none;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border: 1px solid rgba(12, 15, 24, 0.11);
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 22px 54px rgba(18, 21, 30, 0.14);
    }

    .cloud-nav-shell[data-menu-open="true"] .cloud-menu-panel {
        display: grid;
    }

    .cloud-nav {
        display: grid;
        justify-content: stretch;
        gap: 0;
        width: 100%;
        font-size: 0.98rem;
    }

    .cloud-nav a {
        min-height: 42px;
        border-bottom: 1px solid rgba(12, 15, 24, 0.08);
    }

    .cloud-nav a:last-child {
        border-bottom: 0;
    }

    .cloud-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .cloud-nav-actions .cloud-login-trigger,
    .cloud-nav-actions .cloud-nav-primary {
        width: 100%;
        min-width: 0;
    }

    .cloud-nav-actions .cloud-login-trigger {
        min-height: 48px;
        padding: 0 16px;
        border: 1px solid rgba(12, 15, 24, 0.1);
    }

    .cloud-nav-actions .cloud-login-trigger::before,
    .cloud-nav-actions .cloud-login-trigger::after {
        display: none;
    }
}

@media (max-width: 980px) {
    .cloud-distributor-shell {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-logo-wrap {
        max-width: 520px;
    }
}

@media (max-width: 860px) {
    .cloud-nav-shell {
        top: 12px;
        width: min(calc(100% - 28px), 720px);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        border-radius: 24px;
        padding: 14px;
    }

    .cloud-brand {
        width: 128px;
    }

    .cloud-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .cloud-distributor {
        padding: 64px 0 72px;
    }

    .cloud-distributor-story,
    .cloud-distributor-form {
        padding: 20px;
    }

    .cloud-distributor-logo-wrap {
        max-width: 360px;
        border-radius: 16px;
    }
}
/* Pricing CTA final color guard. */
.cloud-price-card .cloud-price-main-cta,
.cloud-price-card .cloud-price-main-cta:visited,
.cloud-price-card .cloud-price-main-cta:hover,
.cloud-price-card .cloud-price-main-cta:focus-visible,
.cloud-price-card .cloud-price-main-cta .cloud-trigger-label {
    color: #ffffff !important;
}

.cloud-price-card .cloud-price-main-cta {
    opacity: 1 !important;
}
/* Distributor compact pass. */
.cloud-distributor {
    width: min(calc(100% - 72px), 1240px);
    padding: 54px 0 66px;
}

.cloud-distributor-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.86fr);
    gap: 22px;
    align-items: start;
}

.cloud-distributor-story {
    grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
    align-items: center;
    gap: 18px 24px;
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
}

.cloud-distributor-logo-wrap {
    width: min(100%, 340px);
    max-width: 340px;
    aspect-ratio: 3.95 / 1;
    margin: 0;
    border-radius: 18px;
}

.cloud-distributor-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cloud-distributor-copy {
    gap: 10px;
    max-width: 520px;
}

.cloud-distributor-copy h2 {
    font-size: clamp(1.6rem, 2vw, 2.35rem);
    line-height: 1.08;
}

.cloud-distributor-copy p:last-child {
    font-size: 0.88rem;
    line-height: 1.42;
}

.cloud-distributor-benefits {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cloud-distributor-benefits article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.cloud-distributor-benefits strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.cloud-distributor-benefits span {
    font-size: 0.76rem;
    line-height: 1.34;
}

.cloud-distributor-form {
    align-self: start;
    padding: 22px;
    border-radius: 24px;
}

.cloud-distributor-form .cloud-contact-form-heading {
    gap: 8px;
    margin-bottom: 14px;
}

.cloud-distributor-form .cloud-contact-form-heading span {
    font-size: 0.68rem;
}

.cloud-distributor-form .cloud-contact-form-heading h2 {
    max-width: 440px;
    font-size: clamp(1.35rem, 1.65vw, 1.9rem);
    line-height: 1.08;
}

.cloud-distributor-form .cloud-contact-form-heading p {
    max-width: 520px;
    font-size: 0.84rem;
    line-height: 1.42;
}

.cloud-distributor-form .cloud-contact-form-grid {
    gap: 12px;
}

.cloud-distributor-form .cloud-contact-field {
    gap: 7px;
}

.cloud-distributor-form .cloud-contact-field span {
    font-size: 0.78rem;
}

.cloud-distributor-form .cloud-contact-field input,
.cloud-distributor-form .cloud-contact-field select {
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 12px;
}

.cloud-distributor-form .cloud-contact-field textarea {
    min-height: 92px;
    padding: 12px 14px;
    border-radius: 12px;
}

.cloud-distributor-form .cloud-contact-consent {
    margin-top: 14px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.cloud-distributor-form .cloud-button {
    min-height: 48px;
    margin-top: 16px;
}

@media (max-width: 1180px) and (min-width: 861px) {
    .cloud-distributor-shell {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-story {
        grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    }

    .cloud-distributor-form {
        width: min(100%, 760px);
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .cloud-distributor {
        width: min(calc(100% - 32px), 560px);
        padding: 48px 0 58px;
    }

    .cloud-distributor-story {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 20px;
    }

    .cloud-distributor-logo-wrap {
        width: 100%;
        max-width: 320px;
        justify-self: center;
    }

    .cloud-distributor-copy {
        text-align: left;
    }

    .cloud-distributor-benefits {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-benefits article {
        min-height: 0;
        padding: 12px;
    }

    .cloud-distributor-form {
        padding: 18px;
        border-radius: 20px;
    }
}
/* Distributor tighter vertical rhythm. */
.cloud-distributor-story {
    gap: 14px 22px;
    padding: 18px;
}

.cloud-distributor-copy {
    gap: 8px;
}

.cloud-distributor-copy .cloud-section-label {
    font-size: 0.68rem;
}

.cloud-distributor-copy h2 {
    font-size: clamp(1.45rem, 1.8vw, 2.05rem);
}

.cloud-distributor-copy p:last-child {
    font-size: 0.82rem;
    line-height: 1.34;
}

.cloud-distributor-benefits {
    gap: 8px;
    padding-top: 10px;
}

.cloud-distributor-benefits article {
    min-height: 76px;
    padding: 10px 11px;
    border-radius: 13px;
}

.cloud-distributor-benefits strong {
    font-size: 0.76rem;
}

.cloud-distributor-benefits span {
    font-size: 0.7rem;
    line-height: 1.28;
}

.cloud-distributor-form {
    gap: 12px;
    padding: 18px;
}

.cloud-distributor-form .cloud-contact-form-heading {
    gap: 6px;
    margin-bottom: 0;
}

.cloud-distributor-form .cloud-contact-form-heading h2 {
    font-size: clamp(1.22rem, 1.45vw, 1.62rem);
}

.cloud-distributor-form .cloud-contact-form-heading p {
    font-size: 0.78rem;
    line-height: 1.34;
}

.cloud-distributor-form .cloud-contact-form-grid {
    gap: 9px 10px;
}

.cloud-distributor-form .cloud-contact-field {
    gap: 5px;
}

.cloud-distributor-form .cloud-contact-field span {
    font-size: 0.72rem;
}

.cloud-distributor-form .cloud-contact-field input,
.cloud-distributor-form .cloud-contact-field select {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.86rem;
}

.cloud-distributor-form .cloud-contact-field textarea {
    min-height: 74px;
    padding: 9px 12px;
    font-size: 0.86rem;
}

.cloud-distributor-form .cloud-contact-consent {
    margin-top: 0;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.28;
}

.cloud-distributor-form .cloud-contact-consent input {
    width: 16px;
    height: 16px;
}

.cloud-distributor-form .cloud-button {
    min-height: 42px;
    margin-top: 0;
    font-size: 0.86rem;
}

@media (max-width: 760px) {
    .cloud-distributor-benefits article {
        min-height: 0;
    }

    .cloud-distributor-form .cloud-contact-form-grid {
        grid-template-columns: 1fr;
    }
}
/* Distributor responsive cascade fix. */
@media (max-width: 980px) {
    .cloud-distributor-shell {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-story,
    .cloud-distributor-form {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 760px) {
    .cloud-distributor-shell {
        gap: 16px;
    }

    .cloud-distributor-copy h2 {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .cloud-distributor-copy p:last-child {
        font-size: 0.84rem;
    }

    .cloud-distributor-logo-wrap {
        width: min(100%, 300px);
        max-width: 300px;
    }

    .cloud-distributor-form .cloud-contact-field textarea {
        min-height: 84px;
    }
}

.form-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-muted, #6b7894);
  font-size: 0.82rem;
  line-height: 1.35;
}

.settings-holiday-year-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-toggle-row small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted, #6b7894);
}

.work-schedule-meal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.1;
}

.work-schedule-meal-toggle span {
  color: var(--color-text-muted, #6b7894);
  font-size: 0.78rem;
  font-weight: 700;
}

.company-holiday-toolbar {
  align-items: flex-start;
}

.company-holiday-toolbar h2 {
  margin: 0 0 0.25rem;
  color: var(--color-text-strong, #0f1a2a);
  font-size: 1.25rem;
}

.company-holiday-toolbar p {
  margin: 0;
  color: var(--color-text-muted, #6b7894);
}

.company-holiday-table td small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted, #6b7894);
  line-height: 1.3;
}

.company-holiday-worked {
  color: #047857;
  background: #e9f9ef;
}

.company-holiday-off {
  color: #d97706;
  background: #fff7e6;
}

.company-holiday-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.company-holiday-modal-body {
  display: grid;
  gap: 1rem;
}

.company-holiday-form-grid {
  align-items: end;
}

.company-holiday-rule-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.company-holiday-rule-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.35rem 0.8rem;
  min-height: 5.45rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border, #dbe4f2);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.company-holiday-rule-option.is-selected {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.1);
}

.company-holiday-rule-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: #2563eb;
}

.company-holiday-rule-option span {
  color: var(--color-text-strong, #0f1a2a);
  font-weight: 800;
}

.company-holiday-rule-option small {
  grid-column: 2;
  color: var(--color-text-muted, #6b7894);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .company-holiday-rule-picker {
    grid-template-columns: 1fr;
  }
}

.shift-section-helper {
    margin: -0.35rem 0 1.25rem;
    color: #6b7894;
    font-size: 1rem;
}

.shift-employee-picker {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shift-employee-picker > small,
.shift-check-field small,
.shift-manual-codes span {
    color: #6b7894;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.shift-employee-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    max-height: 17rem;
    overflow: auto;
    padding: 0.15rem;
}

.shift-employee-option {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    gap: 0.85rem;
    min-height: 4.35rem;
    padding: 0.9rem 1rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.shift-employee-option:hover {
    border-color: #9fd5eb;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
    transform: translateY(-1px);
}

.shift-employee-option input {
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.shift-employee-option span,
.shift-check-field > span,
.shift-manual-codes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shift-employee-option strong,
.shift-check-field strong {
    color: #101828;
    font-weight: 800;
}

.shift-employee-option small {
    color: #73809b;
    font-size: 0.86rem;
    font-weight: 700;
}

.shift-selected-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.shift-selected-chip {
    align-items: center;
    background: #eef9f9;
    border: 1px solid #b9eeee;
    border-radius: 999px;
    color: #123055;
    display: inline-flex;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem 0.45rem 0.9rem;
}

.shift-selected-chip button,
.shift-clear-selection {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e3f2;
    border-radius: 999px;
    color: #42526e;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.shift-selected-chip button {
    height: 1.75rem;
    width: 1.75rem;
}

.shift-clear-selection {
    min-height: 2.4rem;
    padding: 0 0.95rem;
}

.shift-manual-codes {
    gap: 0.5rem;
}

.shift-check-field {
    align-items: flex-start;
}

.shift-check-field input {
    margin-top: 0.15rem;
}

@media (max-width: 760px) {
    .shift-employee-options {
        grid-template-columns: 1fr;
    }
}

.shift-employee-code-row {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.shift-employee-code-row .app-form-textarea {
    min-height: 4.8rem;
}

.shift-search-button {
    align-self: stretch;
    min-width: 13rem;
    white-space: nowrap;
}

.shift-employee-modal {
    width: min(100%, 920px);
}

.shift-employee-modal-body {
    display: grid;
    gap: 1rem;
}

.shift-select-all-row {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    color: #213455;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 0.85rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
}

.shift-select-all-row input {
    height: 1.2rem;
    width: 1.2rem;
}

.shift-employee-modal-list {
    display: grid;
    gap: 0.75rem;
    max-height: 26rem;
    overflow: auto;
    padding: 0.15rem;
}

.shift-employee-modal-list .shift-employee-option {
    min-height: 3.75rem;
}

.shift-employee-empty,
.shift-employee-modal-summary {
    background: #f8fbff;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    color: #6b7894;
    font-weight: 800;
    padding: 1rem;
}

.shift-employee-modal-summary {
    color: #213455;
    text-align: right;
}

@media (max-width: 760px) {
    .shift-employee-code-row {
        grid-template-columns: 1fr;
    }

    .shift-search-button {
        width: 100%;
    }
}

.shift-section-heading-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.shift-section-helper {
    color: #7180a0;
    margin: 0.25rem 0 0;
}

.shift-pattern-list {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin: 1rem 0 1.35rem;
}

.shift-pattern-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 1rem;
}

.shift-pattern-card.is-muted {
    opacity: 0.6;
}

.shift-pattern-card strong {
    color: #101828;
    display: block;
    font-weight: 900;
}

.shift-pattern-card small,
.shift-pattern-card span {
    color: #7180a0;
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.shift-pattern-card-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
}

.shift-pattern-modal {
    width: min(100%, 1080px);
}

.shift-pattern-modal-body {
    display: grid;
    gap: 1.1rem;
}

.shift-pattern-segment-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
}

.shift-pattern-segment-header strong {
    color: #101828;
    font-weight: 900;
}

.shift-pattern-segments {
    display: grid;
    gap: 0.8rem;
}

.shift-pattern-segment {
    align-items: end;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 3rem minmax(8.5rem, 0.75fr) minmax(6rem, 0.5fr) minmax(12rem, 1fr) minmax(12rem, 1fr) auto;
    padding: 0.85rem;
}

.shift-segment-order {
    align-self: center;
    background: #eef5ff;
    border-radius: 14px;
    color: #2864d8;
    display: grid;
    font-weight: 900;
    height: 2.65rem;
    place-items: center;
    width: 2.65rem;
}

@media (max-width: 980px) {
    .shift-pattern-segment {
        grid-template-columns: 1fr;
    }

    .shift-segment-order {
        width: 100%;
    }
}

/* Shift assignment employee picker emphasis */
.school-toolbar-grid .shift-employee-picker {
    background: #f8fbff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    grid-column: 1 / -1;
    padding: 1rem;
}

.shift-employee-picker > span {
    color: #101828;
    font-size: 1.08rem;
    font-weight: 900;
}

.shift-employee-picker > small {
    color: #667491;
    font-size: 0.96rem;
    line-height: 1.45;
    max-width: 62rem;
}

.shift-employee-code-row {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
    margin-top: 0.2rem;
}

.shift-employee-code-row .app-form-textarea {
    min-height: 6rem;
}

.shift-search-button {
    font-size: 1rem;
    min-width: 15rem;
}

@media (max-width: 900px) {
    .shift-employee-code-row {
        grid-template-columns: 1fr;
    }

    .shift-search-button {
        width: 100%;
    }
}

/* Shift assignment command layout */
.shift-command-panel {
    padding: 1rem 1.25rem;
}

.shift-primary-actions {
    justify-content: flex-end;
    margin-bottom: 0;
}

.shift-primary-actions .school-primary-button,
.shift-primary-actions .school-secondary-button {
    min-width: 13rem;
}

.shift-form-panel {
    animation: fadeIn 0.16s ease-out;
}

.shift-input-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.shift-inline-error {
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .shift-primary-actions {
        justify-content: stretch;
    }

    .shift-primary-actions .school-primary-button,
    .shift-primary-actions .school-secondary-button {
        width: 100%;
    }
}

/* Shift assignment preview calendar */
.shift-preview-card{display:grid;gap:1.25rem;margin-top:1.25rem;padding:1.25rem;border:1px solid rgba(210,222,242,.95);border-radius:1.25rem;background:#fff}.shift-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.shift-preview-header .school-section-title{margin-bottom:.25rem}.shift-preview-status{display:inline-flex;align-items:center;justify-content:center;min-width:9rem;padding:.65rem .9rem;border-radius:999px;font-weight:800;white-space:nowrap}.shift-preview-status.is-ok{color:#15803d;background:#dcfce7}.shift-preview-status.is-warning{color:#b45309;background:#fef3c7}.shift-preview-status.is-danger{color:#b91c1c;background:#fee2e2}.shift-preview-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.shift-preview-metric{display:grid;gap:.25rem;min-height:7rem;padding:1rem;border:1px solid rgba(210,222,242,.95);border-radius:1rem;background:#f8fbff}.shift-preview-metric span,.shift-preview-metric small{color:#667391;font-weight:700}.shift-preview-metric strong{font-size:2rem;line-height:1;color:#0f172a}.shift-preview-metric.has-conflicts{background:#fff7ed;border-color:#fed7aa}.shift-conflict-panel{display:grid;gap:1rem;padding:1rem;border:1px solid #fecaca;border-radius:1rem;background:#fff7f7}.shift-conflict-panel h3,.shift-calendar-preview h3,.shift-block-preview h3{margin:0;font-size:1rem}.shift-conflict-panel p{margin:.25rem 0 0;color:#667391}.shift-conflict-actions{display:flex;flex-wrap:wrap;gap:.75rem}.shift-conflict-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.75rem}.shift-conflict-list article{display:grid;gap:.2rem;padding:.9rem;border:1px solid rgba(254,202,202,.95);border-radius:.85rem;background:#fff}.shift-conflict-list article span,.shift-conflict-list article small{color:#667391;font-weight:700}.shift-calendar-preview,.shift-block-preview{display:grid;gap:.75rem}.shift-calendar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.shift-calendar-heading span{color:#667391;font-weight:700}.shift-calendar-scroll{overflow-x:auto;border:1px solid rgba(210,222,242,.95);border-radius:1rem}.shift-calendar-table{width:100%;min-width:52rem;border-collapse:collapse}.shift-calendar-table th,.shift-calendar-table td{padding:.85rem;border-bottom:1px solid rgba(226,232,240,.9);text-align:left;vertical-align:middle}.shift-calendar-table th{color:#667391;font-size:.82rem;font-weight:800;white-space:nowrap}.shift-calendar-table td:first-child{min-width:14rem}.shift-calendar-table td:first-child strong,.shift-calendar-table td:first-child span{display:block}.shift-calendar-table td:first-child span{color:#667391;font-size:.85rem;font-weight:700}.shift-day-pill{display:inline-flex;align-items:center;justify-content:center;min-width:5.5rem;padding:.45rem .6rem;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}.shift-day-pill.is-planned{color:#047857;background:#d1fae5}.shift-day-pill.is-conflict{color:#b45309;background:#fef3c7}.shift-block-list{display:flex;flex-wrap:wrap;gap:.65rem}.shift-block-list span{display:inline-flex;align-items:center;gap:.4rem;padding:.6rem .75rem;border:1px solid rgba(210,222,242,.95);border-radius:999px;background:#f8fbff;font-weight:800}.shift-block-list small{color:#667391;font-weight:700}@media(max-width:980px){.shift-preview-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.shift-preview-header,.shift-calendar-heading{align-items:stretch;flex-direction:column}.shift-preview-summary-grid{grid-template-columns:1fr}}
/* Shift assignment delete controls */
.shift-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:1.25rem;margin-bottom:.75rem}.shift-list-heading .school-section-title{margin-bottom:.15rem}.shift-delete-summary{display:grid;gap:.35rem;padding:1rem;border:1px solid rgba(210,222,242,.95);border-radius:1rem;background:#f8fbff}.shift-delete-summary strong{font-size:1.1rem}.shift-delete-summary span,.shift-delete-summary small{color:#667391;font-weight:700}@media(max-width:760px){.shift-list-heading{align-items:stretch;flex-direction:column}.shift-list-heading .school-danger-button{width:100%}}
/* Shift assignment pagination */
.shift-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;color:#667391;font-weight:800}.shift-page-size{display:flex;align-items:center;gap:.65rem}.shift-page-size .school-select-field{min-width:6rem;height:3rem;padding:.5rem 2.25rem .5rem .9rem}.shift-pagination-actions{display:flex;gap:.65rem}.shift-pagination-actions .school-secondary-button{min-width:7rem}@media(max-width:760px){.shift-pagination{align-items:stretch;flex-direction:column}.shift-pagination-actions{display:grid;grid-template-columns:1fr 1fr}.shift-pagination-actions .school-secondary-button{width:100%;min-width:0}}
.shift-confirm-summary {
    margin-bottom: 1rem;
}

.shift-confirm-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.2rem;
    color: #52627d;
    font-weight: 800;
}

.shift-confirm-list strong {
    color: #101828;
}
.shift-vigency-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.shift-vigency-pill.is-active {
    background: #dcfce7;
    color: #15803d;
}

.shift-vigency-pill.is-future {
    background: #eaf2ff;
    color: #2563eb;
}

.shift-vigency-pill.is-expired {
    background: #f1f5f9;
    color: #64748b;
}

/* Empresas */
.tenant-page-header,
.company-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.company-settings-header > div:first-child {
    min-width: 0;
}

.company-settings-header h1 {
    max-width: 920px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.company-settings-header p {
    max-width: 780px;
}

.tenant-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 220px;
}

.tenant-new-button {
    min-width: 154px;
}

.tenant-plan-note {
    display: inline-flex;
    max-width: 340px;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    color: #51627d;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.35;
}

.tenant-directory-panel {
    width: 100%;
}

.tenant-directory-panel-header {
    gap: 14px;
}

.tenant-directory-panel .school-table-shell {
    border-radius: 18px;
}

.tenant-directory-panel .school-data-table {
    min-width: 760px;
}

.tenant-row-actions,
.tenant-config-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tenant-context-switch-form {
    display: contents;
}

.tenant-link-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    color: #1d4ed8;
    font-weight: 850;
    cursor: pointer;
}

.tenant-link-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.tenant-config-layout {
    grid-template-columns: minmax(0, 980px);
}

.tenant-config-header {
    align-items: flex-start;
}

.tenant-config-actions .school-secondary-button {
    min-height: 42px;
}

.tenant-state-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
}

.tenant-state-note strong {
    font-weight: 900;
}

.tenant-state-note span {
    color: #276749;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.4;
}

.settings-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #60708d;
    font-size: 0.88rem;
    font-weight: 800;
}

.settings-breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

.settings-breadcrumb a:hover {
    text-decoration: underline;
}

.tenant-plan-button {
    min-width: 104px;
}

.company-config-tab-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 18px;
    min-width: 0;
    margin: -4px -4px 16px;
    padding: 0 4px;
    border-bottom: 1px solid #d9e4f2;
    overflow: visible;
}

.company-config-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 4px 12px;
    border: 0;
    background: transparent;
    color: #4d5f7b;
    font-size: 0.9rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.company-config-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.company-config-tab.active {
    color: #1d4ed8;
}

.company-config-tab.active::after {
    background: #2563eb;
}

.company-config-tab-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.company-config-tab-icon .school-stat-svg {
    width: 18px;
    height: 18px;
}

.settings-compact-detail-list {
    gap: 0;
}

.settings-compact-detail-list .app-detail-row {
    grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

.settings-compact-detail-list .app-detail-row:first-child {
    padding-top: 0;
}

.settings-compact-detail-list .app-detail-row span,
.settings-compact-detail-list .app-detail-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.settings-info-bar {
    align-items: flex-start;
    gap: 12px;
}

.settings-info-bar .school-info-copy {
    min-width: 0;
}

.settings-info-bar .school-info-copy strong,
.settings-info-bar .school-info-copy div {
    overflow-wrap: anywhere;
}

.settings-noi-catalog-panel .school-table-shell {
    margin-top: 14px;
}

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

.settings-summary-grid.settings-integrations-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 980px;
}

.settings-whatsapp-status-card span {
    font-size: 1.6rem;
    overflow-wrap: anywhere;
}

.settings-noi-summary-grid .settings-summary-card span {
    font-size: 1.55rem;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .settings-summary-grid.settings-noi-summary-grid {
        grid-template-columns: 1fr;
    }
}

.company-config-panel {
    display: grid;
    gap: 18px;
    max-width: 980px;
    padding: 22px;
    border: 1px solid #dce6f4;
    border-radius: 8px;
    background: #fff;
}

.company-employer-registration-panel {
    max-width: 1120px;
    margin-top: 18px;
}

.company-employer-registration-table {
    min-width: 960px;
}

.company-employer-registration-table td > small,
.company-employer-registration-table td > strong {
    display: block;
}

.company-employer-registration-table td > small {
    margin-top: 4px;
    color: #72809a;
}

.company-employer-location-list {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.company-employer-location-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.company-employer-location-item span {
    display: grid;
    gap: 2px;
}

.company-employer-location-item small {
    color: #72809a;
    font-size: 0.76rem;
}

.company-employer-location-item em {
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
}

.company-employer-location-item em.active {
    background: #eaf9ef;
    color: #2f9d58;
}

.company-employer-location-item em.inactive {
    background: #fff0f0;
    color: #c94a4a;
}

.company-employer-registration-empty {
    padding: 28px;
    color: #64748b;
    text-align: center;
}

.company-employer-location-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e7edf6;
}

.company-employer-location-heading strong {
    color: #0f1f3d;
}

.company-employer-location-heading span {
    color: #72809a;
    font-size: 0.82rem;
}

.company-employer-checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #fff;
}

.company-employer-checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.company-employer-checkbox-line strong {
    color: #23324f;
    font-size: 0.9rem;
}

.employer-registration-checkbox small,
.company-employer-registration-modal .school-labeled-field > small,
.employee-employer-registration-field small {
    color: #72809a;
    font-size: 0.78rem;
    line-height: 1.4;
}

.company-employer-uppercase {
    text-transform: uppercase;
}

.employee-employer-registration-field select {
    width: 100%;
}
.company-config-whatsapp-panel {
    max-width: 1120px;
}

.company-config-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.company-config-panel-header h3 {
    margin: 0;
    color: #0f1f3d;
    font-size: 1.1rem;
    font-weight: 900;
}

.company-config-panel-header p {
    margin: 6px 0 0;
    color: #5e6e89;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.company-config-form-grid .full {
    grid-column: 1 / -1;
}

.company-config-logo-box {
    max-width: 560px;
}

.company-config-save-row {
    display: flex;
    justify-content: flex-end;
}

.company-whatsapp-config-box {
    border-radius: 8px;
    background: #f8fbff;
}

.company-config-actions-row .school-primary-button,
.company-config-actions-row .school-secondary-button {
    min-height: 42px;
}

@media (max-width: 1100px) {
    .tenant-page-header,
    .company-settings-header,
    .tenant-state-note {
        flex-direction: column;
        align-items: stretch;
    }

    .tenant-page-actions,
    .tenant-page-actions .school-primary-button,
    .company-settings-header .school-secondary-button {
        width: 100%;
    }

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

@media (max-width: 760px) {

    .tenant-row-actions,
    .tenant-row-actions .school-secondary-button,
    .tenant-row-actions .tenant-link-button,
    .tenant-config-actions,
    .tenant-config-actions .school-secondary-button {
        width: 100%;
    }
}
@media (max-width: 760px) {
    .company-config-panel,
    .company-config-whatsapp-panel {
        max-width: none;
        padding: 18px;
    }

    .company-config-panel-header,
    .company-config-save-row {
        flex-direction: column;
        align-items: stretch;
    }

    .company-employer-location-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-config-panel-header .school-primary-button,
    .company-config-form-grid,
    .company-config-form-grid .full,
    .company-config-save-row .school-primary-button,
    .tenant-template-grid,
    .tenant-whatsapp-status-grid {
        width: 100%;
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

/* Landing pricing user plan and distributor balance. */
.cloud-user-plan-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    width: min(100%, 940px);
    margin: 30px auto 0;
    padding: 18px 20px;
    border: 1px solid #e7eefc;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f5fff9 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.cloud-user-plan-copy {
    display: grid;
    gap: 5px;
}

.cloud-user-plan-copy span {
    color: var(--cloud-blue);
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cloud-user-plan-copy h3 {
    margin: 0;
    color: var(--cloud-text);
    font-size: 1.35rem;
    line-height: 1.08;
    font-weight: 950;
}

.cloud-user-plan-copy p {
    max-width: 560px;
    margin: 0;
    color: #777777;
    font-size: 0.92rem;
    line-height: 1.42;
    font-weight: 680;
}

.cloud-user-plan-price {
    display: grid;
    justify-items: end;
    min-width: 152px;
}

.cloud-user-plan-price strong {
    color: var(--cloud-text);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 950;
}

.cloud-user-plan-price small {
    margin-top: 5px;
    color: #777777;
    font-size: 0.76rem;
    font-weight: 820;
    text-align: right;
}

.cloud-user-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: #101219;
    color: #ffffff;
    font-weight: 930;
    white-space: nowrap;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 5px 0 rgba(0, 0, 0, 0.14);
}

.cloud-user-plan-cta .cloud-trigger-label,
.cloud-user-plan-cta:hover,
.cloud-user-plan-cta:focus-visible {
    color: #ffffff !important;
}

.cloud-distributor {
    width: min(calc(100% - 56px), 1440px);
    padding: 72px 0 88px;
}

.cloud-distributor-shell {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.92fr);
    gap: 34px;
    align-items: start;
}

.cloud-distributor-story {
    grid-template-columns: minmax(270px, 430px) minmax(0, 1fr);
    gap: 22px 30px;
    padding: 28px;
    border-radius: 26px;
}

.cloud-distributor-logo-wrap {
    width: min(100%, 430px);
    max-width: 430px;
    border-radius: 20px;
}

.cloud-distributor-copy {
    gap: 11px;
}

.cloud-distributor-copy .cloud-section-label {
    font-size: 0.74rem;
}

.cloud-distributor-copy h2 {
    font-size: clamp(1.95rem, 2.45vw, 3rem);
    line-height: 1.04;
}

.cloud-distributor-copy p:last-child {
    font-size: 0.94rem;
    line-height: 1.45;
}

.cloud-distributor-benefits {
    gap: 12px;
    padding-top: 16px;
}

.cloud-distributor-benefits article {
    min-height: 96px;
    padding: 14px;
    border-radius: 16px;
}

.cloud-distributor-benefits strong {
    font-size: 0.86rem;
}

.cloud-distributor-benefits span {
    font-size: 0.78rem;
    line-height: 1.34;
}

.cloud-distributor-form {
    padding: 26px;
    border-radius: 26px;
}

.cloud-distributor-form .cloud-contact-form-heading {
    gap: 8px;
    margin-bottom: 8px;
}

.cloud-distributor-form .cloud-contact-form-heading h2 {
    font-size: clamp(1.7rem, 2vw, 2.45rem);
    line-height: 1.05;
}

.cloud-distributor-form .cloud-contact-form-heading p {
    font-size: 0.9rem;
    line-height: 1.45;
}

.cloud-distributor-form .cloud-contact-form-grid {
    gap: 12px 14px;
}

.cloud-distributor-form .cloud-contact-field input,
.cloud-distributor-form .cloud-contact-field select {
    min-height: 44px;
}

.cloud-distributor-form .cloud-contact-field textarea {
    min-height: 96px;
}

.cloud-distributor-form .cloud-button {
    min-height: 48px;
}

@media (max-width: 1180px) {
    .cloud-user-plan-strip {
        width: min(100%, 860px);
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .cloud-user-plan-cta {
        grid-column: 1 / -1;
        justify-self: end;
    }

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

    .cloud-distributor-form {
        width: min(100%, 760px);
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .cloud-user-plan-strip {
        grid-template-columns: 1fr;
        gap: 16px;
        width: min(100%, 560px);
        margin-top: 24px;
        padding: 18px;
    }

    .cloud-user-plan-price {
        justify-items: start;
    }

    .cloud-user-plan-price small {
        text-align: left;
    }

    .cloud-user-plan-cta {
        justify-self: stretch;
        width: 100%;
    }

    .cloud-distributor {
        width: min(calc(100% - 32px), 620px);
        padding: 56px 0 66px;
    }

    .cloud-distributor-story {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .cloud-distributor-logo-wrap {
        width: min(100%, 360px);
        max-width: 360px;
        justify-self: center;
    }

    .cloud-distributor-copy h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .cloud-distributor-benefits {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-form {
        padding: 22px;
    }
}

/* Landing biometric and device control section. */
.cloud-checking {
    width: min(calc(100% - 64px), 1400px);
    margin: 0 auto;
    padding: 88px 0 92px;
    scroll-margin-top: 128px;
}

.cloud-checking-head {
    display: grid;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
}

.cloud-checking-head h2 {
    max-width: 860px;
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(2.25rem, 4vw, 4.7rem);
    line-height: 1.03;
    font-weight: 950;
}

.cloud-checking-head p:last-child {
    max-width: 760px;
    margin: 20px 0 0;
    color: #7c7c7c;
    font-size: 1.04rem;
    line-height: 1.55;
    font-weight: 680;
}

.cloud-checking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
    gap: 28px;
    align-items: stretch;
}

.cloud-check-card {
    position: relative;
    display: grid;
    gap: 24px;
    min-width: 0;
    min-height: 560px;
    padding: 30px;
    border: 1px solid #e7e7e7;
    border-radius: 28px;
    overflow: hidden;
    background: #f4f4f4;
}

.cloud-check-card.primary {
    grid-template-columns: minmax(0, 0.98fr) minmax(260px, 0.72fr);
    background:
        radial-gradient(circle at 84% 18%, rgba(82, 221, 151, 0.18), transparent 32%),
        linear-gradient(135deg, #08101b 0%, #101927 56%, #132235 100%);
    color: #ffffff;
    box-shadow: 0 28px 72px rgba(8, 16, 27, 0.18);
}

.cloud-check-card.secondary {
    align-content: start;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.cloud-check-copy {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    z-index: 1;
}

.cloud-check-copy span {
    color: var(--cloud-blue);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.cloud-check-card.primary .cloud-check-copy span {
    color: #7fb5ff;
}

.cloud-check-copy h3 {
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    line-height: 1.05;
    font-weight: 950;
}

.cloud-check-card.primary .cloud-check-copy h3 {
    color: #ffffff;
}

.cloud-check-copy p {
    margin: 0;
    color: #777777;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 680;
}

.cloud-check-card.primary .cloud-check-copy p,
.cloud-check-card.primary .cloud-check-copy li {
    color: rgba(255, 255, 255, 0.78);
}

.cloud-check-copy ul {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.cloud-check-copy li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #686868;
    font-size: 0.94rem;
    line-height: 1.38;
    font-weight: 760;
}

.cloud-check-copy li svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #5b95ee;
}

.cloud-check-card.primary .cloud-check-copy li svg {
    color: #52dd97;
}

.cloud-biometric-visual,
.cloud-mobile-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
}

.cloud-biometric-visual {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 50% 92%, rgba(82, 221, 151, 0.22), transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cloud-biometric-device {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(72%, 230px);
    min-height: 320px;
    padding: 24px 18px;
    border-radius: 32px;
    background: linear-gradient(180deg, #111827 0%, #060a12 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cloud-device-camera {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #52dd97;
    box-shadow: 0 0 0 6px rgba(82, 221, 151, 0.12);
}

.cloud-device-screen {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 100%;
    min-height: 116px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    color: #101219;
}

.cloud-device-screen strong {
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.cloud-device-screen small {
    color: #6f7684;
    font-size: 0.78rem;
    font-weight: 800;
}

.cloud-fingerprint-pad {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border-radius: 28px;
    background: linear-gradient(180deg, #222b3b, #101722);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cloud-fingerprint-pad span,
.cloud-fingerprint-pad span::before,
.cloud-fingerprint-pad span::after {
    display: block;
    border: 3px solid #52dd97;
    border-top-color: transparent;
    border-radius: 50%;
}

.cloud-fingerprint-pad span {
    width: 46px;
    height: 46px;
    position: relative;
}

.cloud-fingerprint-pad span::before,
.cloud-fingerprint-pad span::after {
    content: "";
    position: absolute;
    inset: 8px;
}

.cloud-fingerprint-pad span::after {
    inset: 18px;
}

.cloud-biometric-status {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 2px;
    min-width: 158px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #101219;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.cloud-biometric-status strong {
    font-size: 0.96rem;
    font-weight: 950;
}

.cloud-biometric-status span {
    color: #737373;
    font-size: 0.78rem;
    font-weight: 760;
}

.cloud-mobile-visual {
    min-height: 300px;
    margin-top: 4px;
    background: #e8f1ff;
}

.cloud-phone-shell {
    display: grid;
    place-items: center;
    width: 182px;
    min-height: 310px;
    padding: 12px;
    border-radius: 36px;
    background: #101219;
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.22);
}

.cloud-phone-screen {
    display: grid;
    place-items: center;
    gap: 8px;
    width: 100%;
    min-height: 286px;
    padding: 22px 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    text-align: center;
}

.cloud-phone-check {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #3ba05b;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 950;
}

.cloud-phone-screen strong {
    color: #101219;
    font-size: 1.08rem;
    font-weight: 950;
}

.cloud-phone-screen small,
.cloud-phone-screen em {
    color: #757575;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 760;
}

.cloud-distributor-shell > *,
.cloud-distributor-story,
.cloud-distributor-form {
    min-width: 0;
}

.cloud-distributor-logo-wrap {
    display: grid;
    place-items: center;
    width: min(100%, 560px);
    max-width: 560px;
    aspect-ratio: auto;
    min-height: 134px;
    padding: 16px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.035);
}

.cloud-distributor-badge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 92px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(135deg, #071528 0%, #0b1f36 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.cloud-distributor-brand {
    display: block;
    min-width: 0;
}

.cloud-distributor-brand img {
    display: block;
    width: min(100%, 230px);
    max-width: 230px;
    height: auto;
    object-fit: contain;
}

.cloud-distributor-divider {
    width: 1px;
    height: 58px;
    background: rgba(255, 255, 255, 0.18);
}

.cloud-distributor-label {
    color: #ffffff;
    font-size: clamp(0.9rem, 1.45vw, 1.18rem);
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.cloud-distributor-copy h2 {
    max-width: 100%;
    overflow-wrap: normal;
    text-wrap: balance;
}

@media (max-width: 1280px) {
    .cloud-distributor-shell {
        grid-template-columns: 1fr;
    }

    .cloud-distributor-story,
    .cloud-distributor-form {
        width: min(100%, 900px);
        justify-self: center;
    }
}

@media (max-width: 980px) {
    .cloud-checking-grid {
        grid-template-columns: 1fr;
    }

    .cloud-check-card.primary {
        grid-template-columns: 1fr;
    }

    .cloud-check-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .cloud-checking {
        width: min(calc(100% - 32px), 620px);
        padding: 62px 0 68px;
    }

    .cloud-checking-head {
        margin-bottom: 28px;
    }

    .cloud-checking-head h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cloud-check-card {
        padding: 22px;
        border-radius: 22px;
    }

    .cloud-check-copy h3 {
        font-size: clamp(1.65rem, 9vw, 2.35rem);
    }

    .cloud-biometric-visual,
    .cloud-mobile-visual {
        min-height: 300px;
    }

    .cloud-biometric-status {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: 0;
    }

    .cloud-distributor-logo-wrap {
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 12px;
    }

    .cloud-distributor-badge {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        min-height: 0;
        padding: 18px;
        border-radius: 24px;
        text-align: center;
    }

    .cloud-distributor-brand img {
        width: min(100%, 220px);
    }

    .cloud-distributor-divider {
        width: min(100%, 220px);
        height: 1px;
    }

    .cloud-distributor-label {
        white-space: normal;
    }
}

/* Distributor card without duplicate heading. */
.cloud-distributor-story {
    grid-template-columns: 1fr;
    align-content: center;
}

.cloud-distributor-story .cloud-distributor-logo-wrap {
    width: min(100%, 760px);
    max-width: 760px;
    justify-self: center;
}

.cloud-distributor-story .cloud-distributor-badge {
    max-width: 720px;
    margin: 0 auto;
}

.cloud-distributor-benefits {
    grid-column: 1;
}

@media (max-width: 760px) {
    .cloud-distributor-story .cloud-distributor-logo-wrap,
    .cloud-distributor-story .cloud-distributor-badge {
        max-width: none;
    }
}
/* Keep original distributor logo visible without cropping. */
.cloud-distributor-story .cloud-distributor-logo-wrap {
    width: min(100%, 620px);
    max-width: 620px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.cloud-distributor-story .cloud-distributor-logo-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 760px) {
    .cloud-distributor-story .cloud-distributor-logo-wrap {
        width: min(100%, 420px);
        max-width: 420px;
    }
}
/* Trial registration flow based on login layout. */
.trial-flow-shell {
    background: #ffffff;
}

.trial-flow-card {
    grid-template-columns: minmax(390px, 46%) minmax(0, 54%);
}

.trial-flow-panel {
    order: 1;
}

.trial-flow-hero {
    order: 2;
}

.trial-flow-panel-inner {
    width: min(calc(100% - 64px), 456px);
    padding: clamp(34px, 5.2vh, 58px) 0;
}

.trial-flow-brand-logo {
    width: min(100%, 246px);
    margin: 0 0 clamp(28px, 4vh, 42px);
}

.trial-flow-heading {
    margin-bottom: 24px;
}

.trial-flow-heading p {
    margin: 0 0 9px;
    color: #5d8be8;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.trial-flow-heading h1 {
    margin: 0;
    color: #1f2024;
    font-size: clamp(2rem, 2.4vw, 2.64rem);
    line-height: 1.02;
    font-weight: 920;
}

.trial-flow-heading span {
    display: block;
    margin-top: 12px;
    color: #777d88;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 650;
}

.trial-flow-form {
    gap: 18px;
}

.trial-stepper {
    display: grid;
    grid-template-columns: 30px 1fr 30px 1fr 30px;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.trial-stepper span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eceff4;
    color: #8a909a;
    font-size: 0.84rem;
    font-weight: 900;
}

.trial-stepper span.is-current,
.trial-stepper span.is-done {
    background: #111318;
    color: #ffffff;
}

.trial-stepper i {
    height: 4px;
    border-radius: 999px;
    background: #eceff4;
}

.trial-step-copy {
    min-height: 62px;
}

.trial-step-copy span {
    display: block;
    margin-bottom: 6px;
    color: #5d8be8;
    font-size: 0.84rem;
    font-weight: 900;
}

.trial-step-copy strong {
    display: block;
    color: #22252c;
    font-size: clamp(1.22rem, 1.45vw, 1.52rem);
    line-height: 1.15;
    font-weight: 900;
}

.trial-step-copy p {
    margin: 8px 0 0;
    color: #858585;
    font-size: 0.94rem;
    line-height: 1.44;
    font-weight: 650;
}

.trial-step {
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.trial-step.is-active {
    display: block;
}

.trial-field-group {
    border-radius: 8px;
    background: #edf3ff;
}

.trial-field-group .login-field {
    background: #edf3ff;
}

.trial-field-group .login-field input,
.trial-field-group .login-field select {
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 24px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #22252c;
    font: inherit;
}

.trial-field-group .login-field input::placeholder {
    color: #777d88;
    opacity: 1;
}

.trial-uppercase-input {
    text-transform: uppercase;
}

.trial-field-error {
    display: block;
    margin: 10px 24px 0;
    color: #d84d4d;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}
.trial-select-field {
    position: relative;
}

.trial-select-field::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #777d88;
    border-bottom: 2px solid #777d88;
    transform: translateY(-66%) rotate(45deg);
    pointer-events: none;
}

.trial-select-field select {
    appearance: none;
    padding-right: 46px;
}

.trial-summary-card {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border-radius: 8px 8px 0 0;
    background: #edf3ff;
}

.trial-summary-card span {
    color: #5d8be8;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.trial-summary-card strong {
    color: #22252c;
    font-size: 1.28rem;
    line-height: 1.15;
    font-weight: 920;
}

.trial-summary-card small {
    color: #777d88;
    font-size: 0.9rem;
    font-weight: 760;
}

.trial-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-top: 2px solid #ffffff;
    border-radius: 0 0 8px 8px;
    background: #edf3ff;
    color: #555d6a;
    font-size: 0.9rem;
    line-height: 1.42;
    font-weight: 700;
}

.trial-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #111318;
}

.trial-consent a {
    color: #5d8be8;
    font-weight: 900;
    text-decoration: none;
}

.trial-flow-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
}

.trial-flow-actions .trial-next-button:first-child {
    grid-column: 1 / -1;
}

.trial-next-button,
.trial-back-button {
    height: 58px;
    min-height: 58px;
    border-radius: 0 0 8px 8px;
}

.trial-back-button {
    min-width: 118px;
    border: 1px solid #d9dde6;
    background: #ffffff;
    color: #22252c;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.trial-next-button:disabled,
.trial-back-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.trial-flow-state {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 14px;
    background: #edf3ff;
    color: #22252c;
}

.trial-flow-state.success {
    background: #eefcf4;
}

.trial-flow-state.info {
    background: #edf3ff;
}

.trial-flow-state strong {
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 920;
}

.trial-flow-state span {
    color: #69707c;
    font-size: 0.98rem;
    line-height: 1.46;
    font-weight: 700;
}

.trial-flow-state-link {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #111318;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.trial-flow-error {
    margin-bottom: 0;
}

.trial-flow-login-link a {
    color: #111318;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.trial-flow-hero-content {
    min-height: 100vh;
}

@media (max-width: 1180px) {
    .trial-flow-card {
        grid-template-columns: minmax(360px, 49%) minmax(0, 51%);
    }

    .trial-flow-panel-inner {
        width: min(calc(100% - 48px), 424px);
    }
}

@media (max-width: 980px) {
    .trial-flow-card {
        grid-template-columns: 1fr;
    }

    .trial-flow-panel {
        order: 1;
    }

    .trial-flow-hero {
        order: 2;
        display: grid;
        min-height: auto;
    }

    .trial-flow-hero-content {
        min-height: 560px;
    }

    .trial-flow-panel-inner {
        padding: 50px 0 58px;
    }
}

@media (max-width: 640px) {
    .trial-flow-panel-inner {
        width: min(calc(100% - 36px), 400px);
        padding: 40px 0 50px;
    }

    .trial-flow-brand-logo {
        width: min(100%, 230px);
        margin-bottom: 28px;
    }

    .trial-flow-heading h1 {
        font-size: 2rem;
    }

    .trial-step-copy {
        min-height: 70px;
    }

    .trial-flow-actions {
        grid-template-columns: 1fr;
    }

    .trial-back-button,
    .trial-next-button {
        width: 100%;
    }

    .trial-flow-hero-content {
        min-height: 540px;
    }
}

/* Trial registration visual refinement. */
.trial-flow-shell {
    padding: 0;
    background: #ffffff;
}

.trial-flow-card {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.trial-flow-panel,
.trial-flow-hero {
    min-height: 100vh;
}

.trial-flow-panel {
    position: relative;
    display: grid;
    place-items: center;
}

.trial-flow-panel-inner {
    width: min(calc(100% - 96px), 414px);
    min-height: auto;
    padding: clamp(118px, 15vh, 158px) 0 clamp(42px, 6vh, 70px);
}

.trial-flow-brand-logo {
    position: absolute;
    top: clamp(34px, 4.6vh, 54px);
    left: clamp(34px, 4.8vw, 62px);
    z-index: 2;
    width: clamp(132px, 8.8vw, 168px);
    max-width: calc(50vw - 84px);
    margin: 0;
}

.trial-flow-heading {
    margin-bottom: clamp(58px, 7vh, 86px);
}

.trial-flow-heading p,
.trial-step-copy span {
    display: none;
}

.trial-step-copy {
    min-height: auto;
    margin-bottom: 28px;
}

.trial-step-copy strong {
    font-size: clamp(1.12rem, 1.25vw, 1.32rem);
}

.trial-flow-form {
    gap: 16px;
}

.trial-flow-actions {
    margin-top: 18px;
}

.trial-next-button,
.trial-next-button:visited,
.trial-next-button:hover,
.trial-next-button:focus-visible,
.trial-flow-state-link,
.trial-flow-state-link:visited,
.trial-flow-state-link:hover,
.trial-flow-state-link:focus-visible {
    color: #ffffff !important;
}

.trial-next-button {
    background: #111318 !important;
    opacity: 1;
}

.trial-next-button:disabled {
    background: #9a9a9a !important;
    color: #ffffff !important;
    opacity: 1;
}

.trial-flow-state-link {
    background: #111318;
}

@media (max-width: 1180px) {
    .trial-flow-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .trial-flow-panel-inner {
        width: min(calc(100% - 72px), 408px);
    }
}

@media (max-width: 980px) {
    .trial-flow-card {
        grid-template-columns: 1fr;
    }

    .trial-flow-panel,
    .trial-flow-hero {
        min-height: auto;
    }

    .trial-flow-brand-logo {
        position: static;
        width: 150px;
        max-width: none;
        margin: 0 0 44px;
    }

    .trial-flow-panel-inner {
        width: min(calc(100% - 48px), 424px);
        padding: 42px 0 58px;
    }

    .trial-flow-heading {
        margin-bottom: 44px;
    }
}

@media (max-width: 640px) {
    .trial-flow-brand-logo {
        width: 132px;
        margin-bottom: 34px;
    }

    .trial-flow-panel-inner {
        width: min(calc(100% - 36px), 400px);
    }
}

/* Platform admin shared surface */
.platform-page {
    --pa-navy: #07152e;
    --pa-blue: #2259f2;
    --pa-blue-dark: #1549dc;
    --pa-cyan: #16b8c8;
    --pa-green: #11bd7e;
    --pa-amber: #f59f25;
    --pa-red: #e94747;
    --pa-purple: #8f51f7;
    --pa-ink: #101b3d;
    --pa-muted: #65718c;
    --pa-border: #e4eaf4;
    --pa-page: #f7faff;
    min-height: 100vh;
    padding: 0 24px 34px;
    background: var(--pa-page);
    color: var(--pa-ink);
}

.platform-page .school-hero.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 82px;
    margin: 0 -24px 24px;
    padding: 18px 32px;
    border: 0;
    border-bottom: 1px solid var(--pa-border);
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 31, 56, 0.04);
}

.platform-page .school-hero.compact::before,
.platform-page .school-hero.compact::after {
    content: none;
}

.platform-page .school-hero h1 {
    margin: 0;
    color: var(--pa-ink);
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
}

.platform-page .school-hero p {
    margin: 6px 0 0;
    max-width: none;
    color: #405077;
    font-size: 0.88rem;
    line-height: 1.35;
}

.platform-page .school-eyebrow {
    display: none;
}

.platform-page .platform-topbar-tools {
    display: grid;
    grid-template-columns: minmax(260px, 520px) auto auto;
    align-items: center;
    gap: 10px;
}

.platform-page .platform-topbar-tools.is-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-page .platform-global-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    background: #f8fbff;
}

.platform-page .platform-global-search span {
    color: #5d6d8d;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.platform-page .platform-global-search input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--pa-ink);
    font: inherit;
    font-size: 0.84rem;
    outline: none;
}

.platform-page .school-primary-button,
.platform-page .school-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.platform-page .school-primary-button {
    background: linear-gradient(135deg, var(--pa-blue), var(--pa-blue-dark));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(34, 89, 242, 0.22);
}

.platform-page .school-secondary-button {
    background: #ffffff;
    color: #244064;
    border-color: var(--pa-border);
    box-shadow: 0 8px 18px rgba(21, 34, 62, 0.06);
}

.platform-page .school-primary-button:hover,
.platform-page .school-secondary-button:hover {
    transform: translateY(-1px);
}

.platform-page .school-primary-button:disabled,
.platform-page .school-secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.platform-page .school-form-feedback {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 18px;
    padding: 0 16px;
    border: 1px solid #cdebdc;
    border-radius: 8px;
    background: #f0fbf5;
    color: #147a46;
    font-size: 0.9rem;
    font-weight: 750;
}

.platform-page .dashboard-empty-state {
    margin: 0;
    padding: 28px;
    color: var(--pa-muted);
    text-align: center;
}

.platform-page .tenant-platform-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.platform-page .dashboard-card {
    position: relative;
    min-height: 108px;
    padding: 20px 20px 18px 74px;
    overflow: hidden;
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(23, 33, 62, 0.06);
}

.platform-page .dashboard-card::before {
    position: absolute;
    left: 22px;
    top: 28px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: currentColor;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
}

.platform-page .dashboard-card:nth-child(1)::before { content: "T"; background: #def8eb; color: #15945d; }
.platform-page .dashboard-card:nth-child(2)::before { content: "!"; background: #fff1cf; color: #d97706; }
.platform-page .dashboard-card:nth-child(3)::before { content: "$"; background: #e5f7ef; color: #15803d; }
.platform-page .dashboard-card:nth-child(4)::before { content: "x"; background: #ffe1e1; color: #dc2626; }
.platform-page .dashboard-card:nth-child(5)::before { content: "?"; background: #f0e7ff; color: var(--pa-purple); }
.platform-page .dashboard-card:nth-child(6)::before { content: "$"; background: #e3f8ee; color: #16834f; }

.platform-page .dashboard-card span {
    display: block;
    margin: 0 0 6px;
    color: #566582;
    font-size: 0.78rem;
    font-weight: 800;
}

.platform-page .dashboard-card strong {
    display: block;
    color: var(--pa-ink);
    font-size: 1.72rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.platform-page .dashboard-card small {
    display: block;
    margin-top: 10px;
    color: #16834f;
    font-size: 0.76rem;
    font-weight: 750;
}

.platform-page .dashboard-card:nth-child(2) small { color: #d97706; }
.platform-page .dashboard-card:nth-child(4) small { color: #c72b2b; }
.platform-page .dashboard-card:nth-child(5) small { color: var(--pa-purple); }
.platform-page .dashboard-card:nth-child(6) small { color: #16834f; }

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

.platform-page .tenant-search-results-panel {
    margin: 0 0 18px;
    overflow: hidden;
}

.platform-page .tenant-search-results-list {
    display: grid;
    gap: 0;
}

.platform-page .tenant-search-results-list button {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-top: 1px solid var(--pa-border);
    background: #ffffff;
    color: var(--pa-ink);
    text-align: left;
    cursor: pointer;
}

.platform-page .tenant-search-results-list button:hover {
    background: #f8fbff;
}

.platform-page .tenant-search-results-list span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--pa-blue);
    font-size: 0.78rem;
    font-weight: 900;
}

.platform-page .tenant-search-results-list strong,
.platform-page .tenant-search-results-list small {
    display: block;
}

.platform-page .tenant-search-results-list small {
    margin-top: 4px;
    color: var(--pa-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.platform-page .tenant-search-results-list em {
    color: #d97706;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.platform-page .school-subpanel {
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(21, 34, 62, 0.06);
}

.platform-page .tenant-directory-panel {
    min-width: 0;
    overflow: hidden;
}

.platform-page .tenant-commercial-panel {
    overflow: hidden;
}

.platform-page .school-subpanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--pa-border);
}

.platform-page .school-subpanel-header.compact {
    min-height: auto;
    padding-bottom: 16px;
}

.platform-page .school-subpanel-header h3 {
    margin: 0;
    color: var(--pa-ink);
    font-size: 1rem;
    font-weight: 850;
}

.platform-page .school-subpanel-header p {
    margin: 5px 0 0;
    color: var(--pa-muted);
    font-size: 0.78rem;
}

.platform-page .tenant-directory-panel-header {
    min-height: 74px;
}

.platform-page .school-toolbar-actions,
.platform-page .settings-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-page .settings-form-grid {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.platform-page .school-labeled-field {
    display: grid;
    gap: 7px;
    color: #566582;
    font-size: 0.74rem;
    font-weight: 850;
}

.platform-page .school-labeled-field.full {
    grid-column: 1 / -1;
}

.platform-page .school-select-field,
.platform-page .school-code-input {
    min-height: 38px;
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    background: #fbfdff;
    color: #22304f;
    font: inherit;
    font-size: 0.82rem;
    outline: none;
}

.platform-page .school-select-field { padding: 0 34px 0 12px; }
.platform-page .school-code-input { padding: 0 12px; }

.platform-page textarea.school-code-input {
    min-height: 112px;
    padding-top: 10px;
    resize: vertical;
}

.platform-page .school-select-field:focus,
.platform-page .school-code-input:focus {
    border-color: rgba(34, 89, 242, 0.58);
    box-shadow: 0 0 0 3px rgba(34, 89, 242, 0.11);
}

.platform-page .school-table-shell {
    width: 100%;
    overflow: auto;
}

.platform-page .school-data-table {
    width: 100%;
    min-width: 930px;
    border-collapse: separate;
    border-spacing: 0;
    color: #1a2747;
    font-size: 0.82rem;
}

.platform-page .school-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pa-border);
    background: #fbfdff;
    color: #51607e;
    font-size: 0.72rem;
    font-weight: 850;
    text-align: left;
}

.platform-page .school-data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pa-border);
    background: #ffffff;
    vertical-align: middle;
}

.platform-page .school-data-table tbody tr:hover td,
.platform-page .school-data-table tbody tr.school-row-selected td {
    background: #f1f6ff;
}

.platform-page .school-person-title {
    color: var(--pa-ink);
    font-weight: 850;
}

.platform-page .school-muted-copy,
.platform-page .school-data-table small {
    display: block;
    margin-top: 4px;
    color: #6f7b94;
    font-size: 0.73rem;
    font-weight: 600;
}

.platform-page .school-actions-cell {
    width: 104px;
    text-align: right;
}

.platform-page .school-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.platform-page .school-status-active { background: #e5f8ef; color: #127a48; }
.platform-page .school-status-blue-soft { background: #e8f0ff; color: #2259f2; }
.platform-page .school-status-warning-soft { background: #fff2d2; color: #c46a00; }
.platform-page .school-status-danger-soft { background: #ffe3e3; color: #bd2a2a; }
.platform-page .school-status-muted-soft { background: #edf1f7; color: #526079; }

.platform-page .tenant-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--pa-border);
    background: #ffffff;
    overflow-x: auto;
}

.platform-page .tenant-filter-bar .school-select-field {
    flex: 0 0 198px;
    width: 198px;
}

.platform-page .platform-segment-tabs {
    display: flex;
    gap: 4px;
    padding: 0 12px;
    border-bottom: 1px solid var(--pa-border);
    overflow-x: auto;
    scrollbar-width: thin;
}

.platform-page .platform-segment-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4d5d7c;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.platform-page .platform-segment-tabs button span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf2fb;
    color: #426087;
    font-size: 0.7rem;
    font-weight: 900;
}

.platform-page .platform-segment-tabs button.is-active {
    color: var(--pa-blue);
    border-bottom-color: var(--pa-blue);
    background: linear-gradient(180deg, rgba(34, 89, 242, 0.04), rgba(34, 89, 242, 0.08));
}

.platform-page .platform-segment-tabs button.is-active span {
    background: #e4ecff;
    color: var(--pa-blue);
}

.platform-page .tenant-followup-panel {
    margin: 0 0 18px;
    overflow: hidden;
}

.platform-page .tenant-task-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.platform-page .tenant-task-card {
    --task-accent: var(--pa-green);
    --task-soft: #e5f8ef;
    --task-bg: #fbfffd;
    display: grid;
    gap: 18px;
    min-height: 188px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--task-accent) 28%, #ffffff);
    border-radius: 8px;
    background: var(--task-bg);
    box-shadow: 0 16px 28px rgba(20, 32, 58, 0.05);
}

.platform-page .tenant-task-card.task-urgent.has-items {
    --task-accent: var(--pa-red);
    --task-soft: #ffe3e3;
    --task-bg: #fffafa;
}

.platform-page .tenant-task-card.task-important {
    --task-accent: #d97706;
    --task-soft: #fff1d6;
    --task-bg: #fffdf9;
}

.platform-page .tenant-task-card.task-reminder {
    --task-accent: #15945d;
    --task-soft: #e4f8ec;
    --task-bg: #fbfffd;
}

.platform-page .tenant-task-card-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.platform-page .tenant-task-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: var(--task-soft);
    color: var(--task-accent);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.platform-page .tenant-task-card h4 {
    margin: 4px 0 6px;
    color: var(--pa-ink);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.15;
}

.platform-page .tenant-task-card-heading p {
    margin: 0;
    color: color-mix(in srgb, var(--task-accent) 78%, #172443);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.35;
}

.platform-page .tenant-task-card-heading strong {
    color: var(--task-accent);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.platform-page .tenant-task-preview {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 36px;
}

.platform-page .tenant-task-preview > span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--task-accent);
}

.platform-page .tenant-task-preview p {
    margin: 0;
    min-width: 0;
    color: #5a6680;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
}

.platform-page .tenant-task-preview em {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--task-accent);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.platform-page .tenant-task-card > button,
.platform-page .tenant-task-card > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid color-mix(in srgb, var(--task-accent) 28%, #ffffff);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--task-accent);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.platform-page .tenant-task-card > button:not(:disabled):hover,
.platform-page .tenant-task-card > button:not(:disabled):focus-visible,
.platform-page .tenant-task-card > a:hover,
.platform-page .tenant-task-card > a:focus-visible {
    border-color: var(--task-accent);
    background: #ffffff;
    outline: none;
}

.platform-page .tenant-task-card > button:disabled {
    cursor: default;
    opacity: 1;
}

@media (max-width: 1440px) {
    .platform-page .tenant-platform-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .platform-page .tenant-task-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .platform-page .platform-topbar-tools {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .platform-page .platform-global-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .platform-page {
        padding: 0 14px 24px;
    }

    .platform-page .school-hero.compact {
        align-items: flex-start;
        flex-direction: column;
        margin: 0 -14px 18px;
        padding: 18px;
    }

    .platform-page .platform-topbar-tools,
    .platform-page .platform-topbar-tools.is-compact,
    .platform-page .tenant-platform-kpis,
    .platform-page .tenant-task-board,
    .platform-page .settings-form-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .platform-page .platform-topbar-tools.is-compact {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-page .tenant-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-page .tenant-filter-bar .school-select-field {
        flex-basis: auto;
        width: 100%;
    }

    .platform-page .school-toolbar-actions,
    .platform-page .settings-form-actions {
        width: 100%;
        justify-content: stretch;
    }

    .platform-page .school-toolbar-actions > *,
    .platform-page .settings-form-actions > *,
    .platform-page .platform-topbar-tools.is-compact > * {
        flex: 1 1 100%;
    }

    .platform-page .tenant-task-card {
        padding: 18px;
    }

    .platform-page .tenant-task-card-heading {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .platform-page .tenant-task-icon {
        width: 48px;
        height: 48px;
    }
}
/* End platform admin shared surface */

/* Platform admin control pages */
.platform-page .platform-control-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.platform-page .platform-control-summary {
    position: sticky;
    top: 18px;
}

.platform-page .platform-action-list {
    display: grid;
    gap: 10px;
    padding: 16px 18px 18px;
}

.platform-page .platform-action-list .school-secondary-button,
.platform-page .platform-action-list .school-primary-button {
    width: 100%;
}

.platform-page .platform-config-list {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.platform-page .platform-config-list section {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dfe7f4;
    border-radius: 8px;
    background: #fbfdff;
}

.platform-page .platform-config-list section strong {
    color: #102044;
    font-size: 0.86rem;
    font-weight: 900;
}

.platform-page .platform-config-list section p {
    margin: 0;
    color: #60708e;
    font-size: 0.78rem;
    line-height: 1.4;
}

.platform-page .platform-config-list.is-table section {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    align-items: center;
}

.platform-page .platform-permission-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 420px;
}

.platform-page .platform-permission-badges span,
.platform-page .platform-permission-badges em {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2353e8;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .platform-page .platform-control-grid {
        grid-template-columns: 1fr;
    }

    .platform-page .platform-control-summary {
        position: static;
    }
}

@media (max-width: 760px) {
    .platform-page .platform-config-list.is-table section {
        grid-template-columns: 1fr;
    }
}
/* End platform admin control pages */

/* Platform tenant operation pages */
.platform-operations-page .school-hero.compact {
    align-items: flex-start;
}

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

.platform-operations-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(180px, 0.7fr));
    align-items: end;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.platform-inline-search {
    display: grid;
    gap: 0.35rem;
    color: var(--school-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.platform-inline-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(99, 129, 177, 0.26);
    border-radius: 12px;
    background: #fff;
    color: var(--school-ink);
    font: inherit;
    font-weight: 700;
    padding: 0.75rem 0.9rem;
    outline: none;
}

.platform-inline-search input:focus {
    border-color: rgba(44, 92, 255, 0.58);
    box-shadow: 0 0 0 3px rgba(44, 92, 255, 0.12);
}

.platform-operations-page .school-data-table small {
    display: block;
    margin-top: 0.25rem;
    color: var(--school-muted);
    font-weight: 600;
}

.platform-operations-page .school-actions-cell .school-secondary-button {
    min-width: 86px;
    justify-content: center;
}

@media (max-width: 1180px) {
    .platform-operations-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-operations-filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .platform-operations-kpis {
        grid-template-columns: 1fr;
    }
}
/* End platform tenant operation pages */
/* Platform operation review modal */
.platform-operation-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: start center;
    padding: 28px;
    overflow-y: auto;
    background: rgba(6, 21, 46, 0.42);
    backdrop-filter: blur(3px);
}

.platform-operation-modal {
    width: min(860px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(6, 21, 46, 0.28);
}

.platform-operation-modal .school-subpanel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
}

.platform-operation-modal-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(99, 129, 177, 0.28);
    border-radius: 8px;
    background: #ffffff;
    color: #526079;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.platform-operation-modal-close:hover,
.platform-operation-modal-close:focus-visible {
    border-color: rgba(44, 92, 255, 0.45);
    color: #2259f2;
    outline: none;
}

.platform-operation-modal-body {
    display: grid;
    gap: 16px;
    padding: 18px 22px;
}

.platform-operation-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.platform-operation-detail-grid > div,
.platform-operation-context-box,
.platform-operation-guidance {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dfe7f4;
    border-radius: 8px;
    background: #fbfdff;
}

.platform-operation-detail-grid span,
.platform-operation-detail-grid small {
    display: block;
    color: #62718d;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}

.platform-operation-detail-grid strong {
    display: block;
    margin-top: 5px;
    color: #112047;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.platform-operation-context-box h4,
.platform-operation-guidance strong {
    display: block;
    margin: 0 0 6px;
    color: #0f1f45;
    font-size: 0.9rem;
    font-weight: 900;
}

.platform-operation-context-box p,
.platform-operation-guidance p {
    margin: 0;
    color: #526079;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.platform-operation-guidance {
    border-color: #d9eadf;
    background: #f5fcf8;
}

.platform-operation-guidance.is-demo {
    border-color: #dbe6ff;
    background: #f5f8ff;
}

.platform-operation-inline-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dfe7f4;
    border-radius: 8px;
    background: #ffffff;
}

.platform-operation-inline-field span {
    color: #62718d;
    font-size: 0.74rem;
    font-weight: 900;
}

.platform-operation-inline-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(99, 129, 177, 0.28);
    border-radius: 8px;
    background: #f8fbff;
    color: #112047;
    font: inherit;
    font-weight: 750;
    padding: 0.7rem 0.82rem;
    outline: none;
}

.platform-operation-inline-field input:focus {
    border-color: rgba(44, 92, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(44, 92, 255, 0.12);
}

.platform-operation-email-history {
    display: grid;
    gap: 0.75rem;
    padding: 12px 14px;
    border: 1px solid #dfe7f4;
    border-radius: 8px;
    background: #ffffff;
}

.platform-operation-email-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.platform-operation-email-history-header h4 {
    margin: 0;
    color: #0f1f45;
    font-size: 0.9rem;
    font-weight: 900;
}

.platform-operation-email-history-header span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2357f2;
    font-size: 0.78rem;
    font-weight: 900;
}

.platform-operation-email-history-empty {
    margin: 0;
    color: #62718d;
    font-size: 0.84rem;
    font-weight: 750;
}

.platform-operation-email-history-list {
    display: grid;
    gap: 0.6rem;
}

.platform-operation-email-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr);
    gap: 1rem;
    padding: 10px 12px;
    border: 1px solid #e1e9f6;
    border-left: 4px solid #2d5bff;
    border-radius: 8px;
    background: #f9fbff;
}

.platform-operation-email-history-item.is-failed {
    border-left-color: #df3b3b;
    background: #fff8f8;
}

.platform-operation-email-history-item strong,
.platform-operation-email-history-item span,
.platform-operation-email-history-item small {
    display: block;
    overflow-wrap: anywhere;
}

.platform-operation-email-history-item strong {
    color: #102148;
    font-size: 0.84rem;
    font-weight: 900;
}

.platform-operation-email-history-item span {
    margin-top: 0.2rem;
    color: #33446b;
    font-size: 0.8rem;
    font-weight: 780;
}

.platform-operation-email-history-item small {
    margin-top: 0.18rem;
    color: #64728d;
    font-size: 0.74rem;
    font-weight: 700;
}

.platform-operation-email-history-meta {
    text-align: right;
}

.platform-operation-email-history-meta span {
    display: inline-flex;
    justify-content: center;
    min-width: 74px;
    margin-left: auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #eaf8ef;
    color: #147a46;
    font-size: 0.72rem;
    font-weight: 900;
}

.platform-operation-email-history-item.is-failed .platform-operation-email-history-meta span {
    background: #ffe9e9;
    color: #b32626;
}

.platform-operation-modal-actions {
    padding: 16px 22px 20px;
    border-top: 1px solid #e4eaf4;
}

.platform-operation-email-backdrop {
    z-index: 90;
}

.platform-operation-email-modal {
    width: min(1040px, calc(100vw - 56px));
}

.platform-operation-email-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 22px;
}

.platform-operation-email-message-field textarea {
    min-height: 230px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.platform-operation-email-preview {
    grid-column: 1 / -1;
    overflow: hidden;
    border: 1px solid #dce7f8;
    border-radius: 10px;
    background: #f5f8ff;
}

.platform-operation-email-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #dce7f8;
    background: #ffffff;
    color: #0b1838;
    font-size: 0.82rem;
    font-weight: 900;
}

.platform-operation-email-preview-frame {
    display: block;
    width: 100%;
    height: min(520px, 56vh);
    border: 0;
    background: #f5f8ff;
}

.platform-operation-email-feedback {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #c7ecd6;
    border-radius: 10px;
    background: #f1fbf6;
    color: #147a46;
    font-size: 0.82rem;
    font-weight: 850;
}

.platform-operations-page .school-actions-cell button.school-secondary-button {
    min-width: 86px;
}

@media (max-width: 980px) {
    .platform-operation-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .platform-operation-modal-backdrop {
        padding: 12px;
    }

    .platform-operation-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .platform-operation-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* End platform operation review modal */
.billing-screen {
    gap: 20px;
}

.billing-page-header {
    align-items: flex-start;
}

.billing-summary-panel,
.billing-plans-panel {
    display: grid;
    gap: 18px;
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
}

.billing-summary-grid article,
.billing-current-plan-strip > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fbfdff;
}

.billing-summary-grid span,
.billing-current-plan-strip span,
.billing-plan-card-header span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.billing-summary-grid strong,
.billing-current-plan-strip strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.billing-summary-grid small,
.billing-current-plan-strip small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.billing-current-plan-strip {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.billing-plan-modal {
    width: min(100%, 1080px);
}

.billing-plan-modal-body {
    display: grid;
    gap: 16px;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.billing-plan-grid-page {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
}

.billing-plan-card {
    --plan-accent: #35c99d;
    --plan-accent-soft: #eafbf5;
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 0.62fr) 1px minmax(260px, 1fr);
    gap: 24px;
    min-width: 0;
    min-height: 214px;
    padding: 28px 28px 24px;
    overflow: visible;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.billing-plan-card:nth-child(2n) {
    --plan-accent: #20242b;
    --plan-accent-soft: #f3f5f8;
}

.billing-plan-card:nth-child(3n) {
    --plan-accent: #2563eb;
    --plan-accent-soft: #eff6ff;
}

.billing-plan-card:hover,
.billing-plan-card:focus-within {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--plan-accent) 30%, #dfe7f2);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.billing-plan-card-main,
.billing-plan-card-details {
    display: grid;
    align-content: start;
    min-width: 0;
}

.billing-plan-card-main {
    gap: 12px;
}

.billing-plan-card-details {
    gap: 14px;
}

.billing-plan-card-divider {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(180deg, transparent 0%, #e7edf6 18%, #e7edf6 82%, transparent 100%);
}

.billing-plan-card-header {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
}

.billing-plan-card-header span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fbfdff;
    color: #6c7484;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.billing-plan-card h4 {
    margin: 0;
    color: #151a24;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.1;
}

.billing-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 5px;
    margin-top: 2px;
    color: #151a24;
}

.billing-plan-price span {
    flex: 1 0 100%;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 850;
}

.billing-plan-price strong {
    color: #151a24;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.94;
}

.billing-plan-price em {
    color: #a7adb8;
    font-size: 1.08rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.billing-plan-card p {
    margin: 0;
    color: #687386;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.45;
}

.billing-plan-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.billing-plan-card dl div {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.billing-plan-card dt {
    color: #8a93a3;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-plan-card dd {
    margin: 3px 0 0;
    color: #172033;
    font-size: 0.98rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.billing-plan-card ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    color: #4f5b6f;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.36;
    list-style: none;
}

.billing-plan-card li {
    position: relative;
    min-height: 18px;
    padding-left: 27px;
    overflow-wrap: normal;
}

.billing-plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    border: 1.6px solid var(--plan-accent);
    border-radius: 999px;
    background: #ffffff;
}

.billing-plan-card li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 5px;
    height: 3px;
    margin: 0;
    border-left: 1.8px solid var(--plan-accent);
    border-bottom: 1.8px solid var(--plan-accent);
    transform: rotate(-45deg);
}

.billing-plan-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.billing-plan-actions .school-primary-button,
.billing-plan-actions .school-secondary-button {
    flex: 0 1 auto;
    min-width: 104px;
    min-height: 38px;
    justify-content: center;
    padding-inline: 16px;
    border-radius: 8px;
}
.tenant-plan-header-button {
    min-width: 142px;
}

@media (max-width: 980px) {
    .billing-summary-grid,
    .billing-current-plan-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .billing-plan-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .billing-plan-card-divider {
        width: 100%;
        min-height: 1px;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #e7edf6 18%, #e7edf6 82%, transparent 100%);
    }

    .billing-change-preview dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-plan-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-plan-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-plan-actions .school-primary-button,
    .billing-plan-actions .school-secondary-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .billing-summary-grid,
    .billing-current-plan-strip,
    .billing-plan-grid,
    .billing-plan-grid-page {
        grid-template-columns: 1fr;
    }
}
.billing-need-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.billing-need-option {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.billing-need-option:hover,
.billing-need-option.is-selected {
    border-color: #93c5fd;
    background: #f8fbff;
}

.billing-need-option span {
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 900;
}

.billing-need-option strong {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
}

.billing-need-option small {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.billing-selection-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 2px 0;
}

.billing-selection-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.billing-selection-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.4;
}

.billing-plan-card.is-selected {
    --plan-accent: #16a34a;
    --plan-accent-soft: #ecfdf5;
    border-color: #86efac;
    background:
        linear-gradient(180deg, rgba(248, 255, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%),
        linear-gradient(135deg, #dcfce7 0%, #eff6ff 100%);
    box-shadow: 0 24px 58px rgba(22, 163, 74, 0.15);
}

.billing-plan-card.is-selected .billing-plan-card-header span {
    background: #dcfce7;
    color: #166534;
}

.billing-change-preview {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.1);
}

.billing-change-preview span,
.billing-change-preview dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-change-preview strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
}

.billing-change-preview p {
    margin: 6px 0 0;
    color: #475569;
    line-height: 1.45;
}

.billing-change-preview dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.billing-change-preview dl div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
}

.billing-change-preview dd {
    margin: 4px 0 0;
    color: #10213f;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.billing-change-preview ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 0.86rem;
}
.billing-period-panel {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.billing-period-panel > strong {
    color: #166534;
    font-size: 0.86rem;
    font-weight: 900;
}

.billing-period-panel .billing-plan-actions {
    margin-top: 0;
}

@media (max-width: 820px) {
    .billing-need-grid {
        grid-template-columns: 1fr;
    }
}

.billing-trial-panel {
    display: grid;
    gap: 14px;
    padding: 22px 24px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 78%);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.08);
}

.billing-trial-panel.is-warning {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 78%);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.1);
}

.billing-trial-panel.is-expired {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 78%);
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.11);
}

.billing-trial-copy {
    display: grid;
    gap: 8px;
    max-width: 680px;
}

.billing-trial-copy span {
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-trial-panel.is-warning .billing-trial-copy span {
    color: #c2410c;
}

.billing-trial-panel.is-expired .billing-trial-copy span {
    color: #dc2626;
}

.billing-trial-copy strong {
    color: #0f172a;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.95;
}

.billing-trial-copy p,
.billing-trial-panel > small {
    color: #64748b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.billing-trial-progress {
    width: min(520px, 100%);
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.billing-trial-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.billing-trial-panel.is-warning .billing-trial-progress i {
    background: #f59e0b;
}

.billing-trial-panel.is-expired .billing-trial-progress i {
    background: #ef4444;
}

.billing-trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.billing-trial-actions .school-primary-button,
.billing-trial-actions .school-secondary-button {
    min-width: 132px;
    justify-content: center;
}

@media (max-width: 640px) {
    .billing-trial-panel {
        padding: 18px;
    }

    .billing-trial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-trial-actions .school-primary-button,
    .billing-trial-actions .school-secondary-button {
        width: 100%;
    }
}
/* Worker portal and informational QR refinements */
.settings-company-grid {
    grid-template-columns: minmax(0, 1fr);
}

.settings-company-grid > .school-subpanel,
.settings-grid.settings-company-grid > .school-subpanel:nth-of-type(3),
.settings-grid.settings-company-grid > .school-subpanel:nth-of-type(6) {
    grid-column: 1 / -1;
}

.settings-company-grid .settings-form-grid {
    grid-template-columns: minmax(0, 1fr);
}

.settings-vacation-policy-panel .school-subpanel-header {
    align-items: center;
}

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

.settings-vacation-add-grid {
    margin-top: 16px;
}

.settings-vacation-table-shell {
    margin-top: 14px;
}

.worker-portal-metrics .school-metric-card {
    display: flex;
    min-height: 118px;
    padding: 18px 20px;
}

.worker-portal-metrics .school-metric-copy {
    width: 100%;
    min-width: 0;
}

.worker-portal-metrics .school-metric-label,
.worker-portal-metrics .school-metric-subvalue {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.worker-portal-metrics .school-metric-value {
    line-height: 1;
}

@media (max-width: 760px) {
    .settings-summary-grid.settings-vacation-summary-grid {
        grid-template-columns: 1fr;
    }
}

.company-vacation-edit-modal .school-code-input,
.company-vacation-edit-modal .company-vacation-notes-input {
    width: 100%;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #ffffff;
    color: #213455;
    box-sizing: border-box;
    font: inherit;
    outline: none;
}

.company-vacation-edit-modal .school-code-input {
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
}

.company-vacation-edit-modal .company-vacation-notes-input {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.company-vacation-edit-modal .school-code-input:focus,
.company-vacation-edit-modal .company-vacation-notes-input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.school-banner-success {
    background: #edfdf5;
    color: #117647;
    border: 1px solid #c8f4dd;
}

.company-vacation-movement-panel {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e7edf6;
}

.company-vacation-movement-panel h4 {
    margin: 0;
    color: #0f1b2d;
    font-size: 0.98rem;
    font-weight: 800;
}

.company-vacation-movement-panel p {
    margin: 4px 0 0;
    color: #65738e;
    font-size: 0.86rem;
}

.company-vacation-movement-list {
    display: grid;
    gap: 9px;
}

.company-vacation-movement-item {
    display: grid;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid #dfe9f6;
    border-radius: 12px;
    background: #f8fbff;
}

.company-vacation-movement-meta,
.company-vacation-movement-days {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.company-vacation-movement-meta {
    color: #65738e;
    font-size: 0.8rem;
    font-weight: 700;
}

.company-vacation-movement-days strong {
    color: #0f1b2d;
    font-size: 0.95rem;
}

.company-vacation-movement-days span {
    border-radius: 999px;
    background: #e8f3ff;
    color: #1d4ed8;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.company-vacation-movement-note {
    color: #53627c;
    font-size: 0.86rem;
}
.company-vacation-premium-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.company-vacation-premium-status.is-paid {
    background: #ecfdf5;
    color: #047857;
}

.company-vacation-check-field {
    display: grid;
    gap: 8px;
}

.company-vacation-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #213455;
    font-size: 0.92rem;
}

.company-vacation-check input {
    width: 18px;
    height: 18px;
}

.company-vacation-usage-list {
    display: grid;
    gap: 9px;
}

.company-vacation-usage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #dfe9f6;
    border-radius: 12px;
    background: #ffffff;
}

.company-vacation-usage-item div {
    display: grid;
    gap: 3px;
}

.company-vacation-usage-item strong {
    color: #07172f;
    font-size: 0.95rem;
}

.company-vacation-usage-item div span {
    color: #64708a;
    font-size: 0.84rem;
    font-weight: 700;
}

.company-vacation-usage-item > span {
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Worker portal kiosk redesign */
.worker-portal-screen {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 34px 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.10), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.10), transparent 28rem),
        #f4f8fc;
    color: #07172f;
}

.worker-portal-shell {
    width: min(100%, 760px);
    display: grid;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(202, 216, 235, 0.95);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.worker-portal-shell.is-auth {
    width: min(100%, 840px);
    padding: 28px;
}

.worker-portal-shell.is-dashboard {
    padding-bottom: 26px;
}

.worker-portal-brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    padding: 22px 30px;
    background: linear-gradient(135deg, #057d78 0%, #098f86 52%, #0b6f86 100%);
    color: #ffffff;
}

.worker-portal-shell.is-auth .worker-portal-brandbar {
    border-radius: 16px;
}

.worker-portal-company-brand,
.worker-portal-entria-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.worker-portal-company-brand {
    gap: 12px;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: 0;
}

.worker-portal-company-brand img {
    max-width: 190px;
    max-height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    padding: 5px 8px;
}

.worker-portal-company-brand strong,
.worker-portal-entria-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.worker-portal-company-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.worker-portal-entria-brand {
    gap: 10px;
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.9rem;
    font-weight: 850;
}

.worker-portal-entria-brand img {
    width: 128px;
    max-height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
}

.worker-portal-status-band {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    margin: 0 28px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(225, 247, 236, 0.96), rgba(242, 250, 245, 0.96));
    color: #05824f;
    font-weight: 900;
}

.worker-portal-shell.is-auth .worker-portal-status-band {
    margin: 0;
}

.worker-portal-status-band svg,
.worker-portal-period-band svg,
.worker-portal-primary-button svg,
.worker-portal-report-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.worker-portal-empty-state,
.worker-portal-auth-panel {
    display: grid;
    gap: 20px;
}

.worker-portal-empty-state h1,
.worker-portal-auth-heading h1,
.worker-portal-employee-hero h1,
.worker-portal-section-block h2 {
    margin: 0;
    letter-spacing: 0;
}

.worker-portal-empty-state p,
.worker-portal-auth-heading p,
.worker-portal-employee-hero p {
    margin: 0;
    color: #64708a;
}

.worker-portal-auth-heading h1 {
    color: #07172f;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
}

.worker-portal-auth-form {
    display: grid;
    gap: 16px;
}

.worker-portal-field {
    display: grid;
    gap: 8px;
    color: #65738e;
    font-size: 0.86rem;
    font-weight: 850;
}

.worker-portal-field input,
.worker-portal-field textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d4e0f0;
    border-radius: 13px;
    background: #f7fbff;
    color: #07172f;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.worker-portal-field input {
    padding: 0 16px;
}

.worker-portal-field textarea {
    min-height: 112px;
    padding: 14px 16px;
    resize: vertical;
}

.worker-portal-field input:focus,
.worker-portal-field textarea:focus {
    border-color: rgba(20, 184, 166, 0.65);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.worker-portal-primary-button,
.worker-portal-secondary-button,
.worker-portal-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 0 18px;
    font: inherit;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.worker-portal-primary-button {
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.worker-portal-solid-button {
    background: linear-gradient(135deg, #07837b 0%, #0b9384 100%);
    box-shadow: 0 16px 28px rgba(7, 131, 123, 0.22);
}

.worker-portal-secondary-button {
    background: #ffffff;
    border-color: #d6e2f1;
    color: #07172f;
}

.worker-portal-report-button {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.22);
}

.worker-portal-primary-button:hover,
.worker-portal-secondary-button:hover,
.worker-portal-report-button:hover {
    transform: translateY(-1px);
}

.worker-portal-primary-button:disabled,
.worker-portal-secondary-button:disabled,
.worker-portal-report-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.worker-portal-message,
.worker-portal-info-note {
    margin: 0 28px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #eaf3ff;
    color: #0f3f93;
    font-weight: 800;
}

.worker-portal-shell.is-auth .worker-portal-message,
.worker-portal-shell.is-auth .worker-portal-info-note {
    margin: 0;
}

.worker-portal-message-warning {
    background: #fff7e6;
    color: #9a5a00;
}

.worker-portal-employee-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dce5f2;
}

.worker-portal-avatar {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b8f86 0%, #057d78 100%);
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(7, 131, 123, 0.24);
}

.worker-portal-employee-hero span {
    color: #273a58;
    font-size: 1.16rem;
}

.worker-portal-employee-hero h1 {
    color: #07172f;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    line-height: 1.08;
    font-weight: 950;
}

.worker-portal-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 28px;
    border-bottom: 1px solid #dce5f2;
}

.worker-portal-schedule-grid article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 18px;
    border-right: 1px solid #dce5f2;
}

.worker-portal-schedule-grid article:last-child {
    border-right: 0;
}

.worker-portal-schedule-grid article span:not(.worker-portal-round-icon) {
    display: block;
    color: #64708a;
    font-weight: 750;
}

.worker-portal-schedule-grid strong {
    display: block;
    color: #07172f;
    font-size: 1.22rem;
    line-height: 1.1;
    word-break: keep-all;
}

.worker-portal-round-icon,
.worker-portal-metric-row article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
}

.worker-portal-round-icon svg,
.worker-portal-metric-row svg {
    width: 26px;
    height: 26px;
}

.worker-portal-round-icon.is-blue,
.worker-portal-metric-row .is-blue > span {
    background: linear-gradient(135deg, #2563eb, #0f6fd8);
}

.worker-portal-round-icon.is-green,
.worker-portal-metric-row .is-green > span {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.worker-portal-period-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin: -4px 28px 0;
    border-radius: 11px;
    background: #eaf3ff;
    color: #155bd6;
    font-size: 1.06rem;
    font-weight: 850;
}

.worker-portal-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 28px;
    border: 1px solid #dce5f2;
    background: #ffffff;
}

.worker-portal-metric-row article {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 20px 14px;
    text-align: center;
    border-right: 1px solid #dce5f2;
}

.worker-portal-metric-row article:last-child {
    border-right: 0;
}

.worker-portal-metric-row strong {
    color: #07172f;
    font-size: 2rem;
    line-height: 1;
}

.worker-portal-metric-row small {
    color: #07172f;
    font-size: 0.94rem;
    font-weight: 850;
}

.worker-portal-metric-row em {
    color: #64708a;
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 650;
}

.worker-portal-metric-row .is-gold > span {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.worker-portal-metric-row .is-red > span {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.worker-portal-facts,
.worker-portal-section-block {
    margin: 0 28px;
    border: 1px solid #dce5f2;
    background: #ffffff;
}

.worker-portal-facts {
    display: grid;
}

.worker-portal-facts div,
.worker-portal-history-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid #e7edf6;
}

.worker-portal-facts div:last-child,
.worker-portal-history-list div:last-child {
    border-bottom: 0;
}

.worker-portal-facts span,
.worker-portal-history-list span {
    color: #273a58;
    font-weight: 750;
}

.worker-portal-facts strong,
.worker-portal-history-list strong {
    color: #07172f;
    font-weight: 950;
    text-align: right;
}

.worker-portal-section-block {
    display: grid;
    gap: 14px;
    padding: 0 0 18px;
    border: 0;
}

.worker-portal-section-block h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #07172f;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 950;
}

.worker-portal-section-block h2::before {
    content: "";
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: #07837b;
}

.worker-portal-section-block.is-history h2::before {
    background: #2563eb;
}

.worker-portal-report-form h2::before {
    background: #f97316;
}

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

.worker-portal-history-list {
    border: 1px solid #dce5f2;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .worker-portal-screen {
        padding: 18px 10px;
        place-items: start center;
    }

    .worker-portal-shell,
    .worker-portal-shell.is-auth {
        padding: 0 0 20px;
        border-radius: 18px;
    }

    .worker-portal-brandbar,
    .worker-portal-shell.is-auth .worker-portal-brandbar {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 20px;
        border-radius: 0;
    }

    .worker-portal-company-brand {
        width: 100%;
        font-size: 1.7rem;
    }

    .worker-portal-entria-brand {
        width: 100%;
        justify-content: space-between;
    }

    .worker-portal-status-band,
    .worker-portal-shell.is-auth .worker-portal-status-band,
    .worker-portal-message,
    .worker-portal-info-note,
    .worker-portal-employee-hero,
    .worker-portal-schedule-grid,
    .worker-portal-period-band,
    .worker-portal-metric-row,
    .worker-portal-facts,
    .worker-portal-section-block,
    .worker-portal-shell.is-auth .worker-portal-message,
    .worker-portal-shell.is-auth .worker-portal-info-note {
        margin-left: 18px;
        margin-right: 18px;
    }

    .worker-portal-auth-panel,
    .worker-portal-empty-state {
        margin: 0 18px;
    }

    .worker-portal-employee-hero,
    .worker-portal-schedule-grid article,
    .worker-portal-facts div,
    .worker-portal-history-list div {
        align-items: flex-start;
    }

    .worker-portal-employee-hero {
        grid-template-columns: 1fr;
    }

    .worker-portal-avatar {
        width: 88px;
        height: 88px;
        font-size: 1.75rem;
    }

    .worker-portal-schedule-grid,
    .worker-portal-metric-row,
    .worker-portal-two-columns {
        grid-template-columns: 1fr;
    }

    .worker-portal-schedule-grid article,
    .worker-portal-metric-row article {
        border-right: 0;
        border-bottom: 1px solid #dce5f2;
    }

    .worker-portal-schedule-grid article:last-child,
    .worker-portal-metric-row article:last-child {
        border-bottom: 0;
    }

    .worker-portal-metric-row article {
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .worker-portal-metric-row article strong,
    .worker-portal-metric-row article small,
    .worker-portal-metric-row article em {
        grid-column: 2;
    }
}
/* Softer operational palette refinements */
.school-banner-danger {
    border: 1px solid #ffd7d7;
    background: #fff7f7;
    color: #a93b3b;
}

.work-avatar {
    background: linear-gradient(135deg, #2b7de9 0%, #17a7b3 100%);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.work-greeting-pill.success {
    border-color: #cfeee3;
    background: #f4fbf8;
    color: #0f766e;
}

.work-greeting-pill.warning {
    border-color: #f5dfbd;
    background: #fffaf1;
    color: #a76012;
}

.work-greeting-pill.danger {
    border-color: #f5d3d3;
    background: #fff7f7;
    color: #a43f3f;
}

.work-alert-card.danger {
    border-color: #f4d4d4;
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.work-alert-card.warning,
.work-alert-card.gold {
    border-color: #f4dfbd;
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.work-alert-card.success {
    border-color: #d0ece0;
    background: linear-gradient(180deg, #f7fcfa 0%, #ffffff 100%);
}

.work-alert-card.danger .work-alert-icon,
.work-alert-card.warning .work-alert-icon,
.work-alert-card.gold .work-alert-icon,
.work-alert-card.blue .work-alert-icon,
.work-alert-card.success .work-alert-icon {
    border: 1px solid currentColor;
    background: #ffffff;
    opacity: 0.92;
}

.work-alert-card.danger .work-alert-icon,
.work-alert-card.danger .work-alert-count,
.work-alert-card.danger .work-alert-body > strong {
    color: #b44444;
}

.work-alert-card.warning .work-alert-icon,
.work-alert-card.gold .work-alert-icon,
.work-alert-card.warning .work-alert-count,
.work-alert-card.gold .work-alert-count,
.work-alert-card.warning .work-alert-body > strong,
.work-alert-card.gold .work-alert-body > strong {
    color: #bd650f;
}

.work-alert-card.success .work-alert-icon,
.work-alert-card.success .work-alert-count,
.work-alert-card.success .work-alert-body > strong {
    color: #0f766e;
}

.work-alert-card.danger .work-alert-bullet { background: #d96a6a; }
.work-alert-card.warning .work-alert-bullet,
.work-alert-card.gold .work-alert-bullet { background: #d99021; }
.work-alert-card.success .work-alert-bullet { background: #2aa889; }

.work-alert-card.danger .work-alert-chip,
.work-alert-card.danger .work-alert-action {
    border-color: #f5d3d3;
    background: #fff8f8;
    color: #a43f3f;
}

.work-alert-card.warning .work-alert-chip,
.work-alert-card.gold .work-alert-chip,
.work-alert-card.warning .work-alert-action,
.work-alert-card.gold .work-alert-action {
    border-color: #f4dfbd;
    background: #fffaf2;
    color: #a76012;
}

.work-alert-card.success .work-alert-chip,
.work-alert-card.success .work-alert-action {
    border-color: #d0ece0;
    background: #f4fbf8;
    color: #0f766e;
}

.work-today-card.success {
    background: #f4fbf8;
    color: #0f766e;
}

.work-today-card.warning {
    background: #fffaf1;
    color: #a76012;
}

.work-today-card.danger {
    background: #fff7f7;
    color: #a43f3f;
}

/* Worker portal: calmer Entria/JornadaBot colors */
.worker-portal-screen {
    place-items: center;
    padding: clamp(18px, 4vh, 40px) 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(18, 150, 163, 0.07), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.08), transparent 28rem),
        #f5f8fc;
}

.worker-portal-shell {
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.worker-portal-shell.is-auth {
    width: min(100%, 760px);
    align-self: center;
    padding: 24px;
}

.worker-portal-shell.is-dashboard {
    align-self: start;
    margin-bottom: 36px;
}

.worker-portal-brandbar {
    background: linear-gradient(135deg, #0f6f7d 0%, #0c6877 55%, #115a70 100%);
}

.worker-portal-status-band {
    border: 1px solid #d5eee8;
    background: #f1faf6;
    color: #0f766e;
}

.worker-portal-company-fallback {
    background: rgba(255, 255, 255, 0.96);
    color: #0f6f7d;
    box-shadow: none;
}

.worker-portal-field input:focus,
.worker-portal-field textarea:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.worker-portal-primary-button {
    background: linear-gradient(135deg, #2563eb 0%, #1296a3 100%);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.18);
}

.worker-portal-solid-button {
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    box-shadow: 0 14px 26px rgba(14, 116, 144, 0.16);
}

.worker-portal-report-button {
    background: linear-gradient(135deg, #e89a18 0%, #d97706 100%);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.16);
}

.worker-portal-avatar {
    border: 1px solid #cfe7e7;
    background: #f1f8f8;
    color: #0f6f73;
    box-shadow: none;
}

.worker-portal-round-icon,
.worker-portal-metric-row article > span {
    width: 52px;
    height: 52px;
    border: 1px solid #dbe7fb;
    background: #f2f7ff;
    color: #2563eb;
    box-shadow: none;
}

.worker-portal-round-icon.is-blue,
.worker-portal-metric-row .is-blue > span {
    border-color: #dbe7fb;
    background: #f2f7ff;
    color: #2563eb;
}

.worker-portal-round-icon.is-green,
.worker-portal-metric-row .is-green > span {
    border-color: #cfeee8;
    background: #f0faf7;
    color: #0f766e;
}

.worker-portal-metric-row .is-gold > span {
    border-color: #f4dfbd;
    background: #fff8eb;
    color: #b76a12;
}

.worker-portal-metric-row .is-red > span {
    border-color: #f4d4d4;
    background: #fff7f7;
    color: #b44444;
}

.worker-portal-period-band,
.worker-portal-message,
.worker-portal-info-note {
    background: #edf5ff;
    color: #1958bd;
}

.worker-portal-section-block h2::before {
    background: #0e7490;
}

.worker-portal-report-form h2::before {
    background: #d97706;
}

@media (max-width: 720px) {
    .worker-portal-screen {
        place-items: center;
    }

    .worker-portal-shell.is-dashboard {
        align-self: start;
    }
}

/* Worker portal internal dashboard */
.worker-portal-screen.is-dashboard-screen {
    place-items: start center;
    padding: 42px 18px 54px;
    background: #ffffff;
}

.worker-portal-shell.is-dashboard {
    width: min(100%, 760px);
    display: grid;
    gap: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.worker-portal-shell.is-dashboard .worker-portal-message,
.worker-portal-shell.is-dashboard .worker-portal-info-note {
    margin: 0;
}

.worker-portal-shell.is-dashboard .worker-portal-message {
    border-radius: 12px;
}

.worker-portal-employee-hero {
    margin: 0;
    padding: 0 0 34px;
    gap: 22px;
    border-bottom: 1px solid #dce5f2;
}

.worker-portal-avatar {
    width: 98px;
    height: 98px;
    border: 1px solid #cfe7e7;
    background: #f1f8f8;
    color: #0f6f73;
    font-size: 1.55rem;
    box-shadow: none;
}

.worker-portal-employee-hero span {
    color: #34435c;
    font-size: 1.02rem;
    font-weight: 700;
}

.worker-portal-employee-hero h1 {
    color: #07172f;
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 0.98;
    font-weight: 950;
}

.worker-portal-employee-hero p {
    color: #64708a;
    font-size: 0.95rem;
    font-weight: 700;
}

.worker-portal-schedule-grid {
    margin: 0;
    border-bottom: 1px solid #dce5f2;
}

.worker-portal-schedule-grid article {
    justify-content: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px 24px;
}

.worker-portal-schedule-grid .worker-portal-round-icon,
.worker-portal-schedule-grid .worker-portal-round-icon.is-blue,
.worker-portal-schedule-grid .worker-portal-round-icon.is-green {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #53627c;
}

.worker-portal-schedule-grid .worker-portal-round-icon svg {
    width: 36px;
    height: 36px;
}

.worker-portal-schedule-grid article span:not(.worker-portal-round-icon) {
    color: #64708a;
    font-size: 0.95rem;
    font-weight: 850;
}

.worker-portal-schedule-grid strong {
    color: #07172f;
    font-size: 1.06rem;
    font-weight: 950;
}

.worker-portal-period-band {
    min-height: 52px;
    margin: 4px 0 46px;
    border-radius: 10px;
    background: #edf5ff;
    color: #1958bd;
    font-size: 1.02rem;
    font-weight: 950;
}

.worker-portal-period-band svg {
    width: 21px;
    height: 21px;
}

.worker-portal-metric-row {
    margin: 0;
    border: 1px solid #dce5f2;
    background: #ffffff;
}

.worker-portal-metric-row article {
    gap: 8px;
    min-height: 152px;
    padding: 20px 14px 18px;
}

.worker-portal-metric-row article > span {
    width: 50px;
    height: 50px;
}

.worker-portal-metric-row svg {
    width: 25px;
    height: 25px;
}

.worker-portal-metric-row strong {
    font-size: 2rem;
    font-weight: 950;
}

.worker-portal-metric-row small {
    color: #07172f;
    font-size: 0.88rem;
    font-weight: 950;
}

.worker-portal-metric-row em {
    color: #64708a;
    font-size: 0.82rem;
    font-weight: 800;
}

.worker-portal-facts {
    margin: 0;
    border: 1px solid #dce5f2;
    background: #ffffff;
}

.worker-portal-facts div,
.worker-portal-history-list div {
    min-height: 54px;
    padding: 0 20px;
}

.worker-portal-facts span,
.worker-portal-history-list span {
    color: #273a58;
    font-size: 0.95rem;
    font-weight: 850;
}

.worker-portal-facts strong,
.worker-portal-history-list strong {
    color: #07172f;
    font-size: 0.95rem;
    font-weight: 950;
}

.worker-portal-section-block {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 14px;
}

.worker-portal-vacation-form {
    margin-top: 30px;
}

.worker-portal-section-block h2 {
    gap: 10px;
    color: #07172f;
    font-size: 1.1rem;
    font-weight: 950;
}

.worker-portal-section-block h2::before {
    width: 5px;
    height: 34px;
    background: #0e7490;
}

.worker-portal-section-block.is-history h2::before {
    background: #2563eb;
}

.worker-portal-report-form h2::before {
    background: #d97706;
}

.worker-portal-two-columns {
    gap: 18px;
}

.worker-portal-section-block .worker-portal-field {
    color: #60708b;
    font-size: 0.82rem;
    font-weight: 950;
}

.worker-portal-section-block .worker-portal-field input,
.worker-portal-section-block .worker-portal-field textarea {
    border-color: #d4e0f0;
    border-radius: 12px;
    background: #f7fbff;
    font-size: 0.92rem;
    font-weight: 850;
}

.worker-portal-section-block .worker-portal-field textarea {
    min-height: 116px;
}

.worker-portal-solid-button,
.worker-portal-report-button {
    min-height: 56px;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 950;
}

.worker-portal-solid-button {
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    box-shadow: 0 14px 24px rgba(14, 116, 144, 0.14);
}

.worker-portal-history-list {
    border: 1px solid #dce5f2;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.worker-portal-report-form {
    margin-top: 18px;
}

.worker-portal-report-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 14px 24px rgba(217, 119, 6, 0.14);
}

.worker-portal-inline-feedback {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #cfe3ff;
    border-radius: 12px;
    background: #edf5ff;
    color: #1958bd;
    font-size: 0.9rem;
    font-weight: 850;
}

.worker-portal-inline-feedback.is-error {
    border-color: #f5c4c4;
    background: #fff7f7;
    color: #b42323;
}

.worker-portal-inline-feedback.is-success {
    border-color: #ccebdd;
    background: #f0faf5;
    color: #087443;
}

.worker-portal-confirm-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d4e0f0;
    border-radius: 12px;
    background: #f8fbff;
}

.worker-portal-confirm-box strong {
    color: #07172f;
    font-size: 0.98rem;
    font-weight: 950;
}

.worker-portal-confirm-box span {
    color: #52627c;
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.45;
}

.worker-portal-confirm-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 10px;
    margin-top: 2px;
}

.worker-portal-confirm-button {
    min-height: 46px;
    border-radius: 11px;
    box-shadow: none;
}

.worker-portal-dashboard-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 6px auto 0;
}

.worker-portal-dashboard-footer img {
    width: 172px;
    max-width: 56%;
    height: auto;
    object-fit: contain;
}

.worker-portal-dashboard-footer span {
    margin-top: 7px;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1;
}

@media (max-width: 720px) {
    .worker-portal-screen.is-dashboard-screen {
        padding: 28px 18px 44px;
    }

    .worker-portal-shell.is-dashboard {
        width: 100%;
        padding: 0;
        border-radius: 0;
    }

    .worker-portal-employee-hero,
    .worker-portal-schedule-grid,
    .worker-portal-period-band,
    .worker-portal-metric-row,
    .worker-portal-facts,
    .worker-portal-section-block,
    .worker-portal-shell.is-dashboard .worker-portal-message,
    .worker-portal-shell.is-dashboard .worker-portal-info-note {
        margin-left: 0;
        margin-right: 0;
    }

    .worker-portal-employee-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .worker-portal-avatar {
        width: 82px;
        height: 82px;
        font-size: 1.28rem;
    }

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

    .worker-portal-schedule-grid article {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #dce5f2;
    }

    .worker-portal-schedule-grid article:last-child {
        border-bottom: 0;
    }

    .worker-portal-period-band {
        margin-bottom: 34px;
        padding: 0 14px;
        text-align: center;
    }

    .worker-portal-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .worker-portal-metric-row article {
        grid-template-columns: none;
        justify-items: center;
        text-align: center;
        border-bottom: 1px solid #dce5f2;
    }

    .worker-portal-metric-row article:nth-child(2n) {
        border-right: 0;
    }

    .worker-portal-metric-row article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .worker-portal-metric-row article strong,
    .worker-portal-metric-row article small,
    .worker-portal-metric-row article em {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .worker-portal-employee-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .worker-portal-two-columns,
    .worker-portal-metric-row {
        grid-template-columns: 1fr;
    }

    .worker-portal-metric-row article,
    .worker-portal-metric-row article:nth-child(2n),
    .worker-portal-metric-row article:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #dce5f2;
    }

    .worker-portal-metric-row article:last-child {
        border-bottom: 0;
    }
}
/* Worker portal informational login */
.worker-portal-screen.is-login-screen {
    place-items: center;
    padding: 24px 18px;
    background: #ffffff;
}

.worker-portal-shell.is-login {
    width: min(100%, 420px);
    min-height: calc(100vh - 48px);
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.worker-portal-shell.is-login .worker-portal-message,
.worker-portal-shell.is-login .worker-portal-message-warning {
    margin: 0 0 18px;
    border-radius: 10px;
    text-align: center;
}

.worker-portal-login-panel {
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 74px;
}
.worker-portal-login-loading {
    justify-content: flex-start;
}

.worker-portal-login-loading-copy {
    margin: 0 0 auto;
}

.worker-portal-login-loading-copy h1 {
    margin: 0;
    color: #07172f;
    font-size: 1.35rem;
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: 0;
}

.worker-portal-login-loading-copy p {
    margin: 16px 0 0;
    color: #64708a;
    font-size: 0.94rem;
    line-height: 1.5;
    font-weight: 700;
}

.worker-portal-login-company {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    color: #111827;
}

.worker-portal-login-company img {
    width: 58px;
    max-width: 104px;
    height: 58px;
    object-fit: contain;
}

.worker-portal-login-company strong {
    font-size: 1.82rem;
    font-weight: 950;
    line-height: 1;
}

.worker-portal-login-company-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 950;
}

.worker-portal-login-rh-message {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    margin: 0 0 84px;
    color: #111827;
}

.worker-portal-login-rh-header {
    display: contents;
}

.worker-portal-login-rh-avatar {
    grid-column: 1;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff, #dff7ef);
    color: #0f3f93;
    font-size: 0.58rem;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(15, 63, 147, 0.12);
}

.worker-portal-login-rh-header > span:last-child {
    grid-column: 2;
    align-self: center;
    color: #111827;
    font-size: 0.96rem;
    font-style: italic;
    font-weight: 950;
    line-height: 1;
}

.worker-portal-login-rh-message p {
    grid-column: 2;
    margin: 5px 0 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.35;
}

.worker-portal-login-heading {
    margin-bottom: 18px;
}

.worker-portal-login-heading h1 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 950;
}

.worker-portal-login-heading p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 750;
}

.worker-portal-login-form {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eeeeef;
    border: 1px solid #eceef2;
}

.worker-portal-login-field {
    position: relative;
    display: block;
    gap: 0;
    color: inherit;
    font-size: 1rem;
}

.worker-portal-login-field > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.worker-portal-login-field input,
.worker-portal-password-input {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid #ffffff;
    border-radius: 0;
    background: #eeeeef;
    color: #111827;
    box-shadow: none;
}

.worker-portal-login-field input {
    padding: 0 21px;
    font-size: 0.95rem;
    font-weight: 850;
}

.worker-portal-login-field input::placeholder {
    color: #737780;
    opacity: 1;
}

.worker-portal-password-input {
    display: flex;
    align-items: center;
}

.worker-portal-password-input input {
    flex: 1 1 auto;
    border-bottom: 0;
}

.worker-portal-password-input button {
    align-self: stretch;
    min-width: 64px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.worker-portal-login-field input:focus,
.worker-portal-password-input:focus-within {
    background: #f7f7f8;
    box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.08);
    outline: none;
}

.worker-portal-login-submit,
.worker-portal-login-submit:disabled {
    width: 100%;
    min-height: 58px;
    border-radius: 0;
    background: #202020;
    color: #ffffff;
    box-shadow: none;
}

.worker-portal-login-submit:hover:not(:disabled) {
    transform: none;
    background: #111111;
}

.worker-portal-login-outline {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border-radius: 6px;
    border-color: #202020;
    background: #ffffff;
    color: #111827;
    box-shadow: none;
}

.worker-portal-login-outline:hover:not(:disabled) {
    transform: none;
    background: #f8fafc;
}

.worker-portal-login-link {
    display: inline-flex;
    justify-content: center;
    margin: 28px auto 0;
    border: 0;
    background: transparent;
    color: #7b8190;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 950;
    cursor: pointer;
}

.worker-portal-login-entria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0 0;
    padding-top: 38px;
}

.worker-portal-login-entria img {
    width: 172px;
    max-width: 56%;
    height: auto;
    object-fit: contain;
}

.worker-portal-login-entria span {
    margin-top: 7px;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1;
}

@media (max-height: 780px) {

    .worker-portal-login-company {
        margin-bottom: 20px;
    }

}

@media (max-width: 520px) {
    .worker-portal-screen.is-login-screen {
        padding: 18px;
    }

    .worker-portal-shell.is-login,
    .worker-portal-login-panel {
        min-height: calc(100vh - 36px);
    }

    .worker-portal-login-panel {
        padding-top: 54px;
    }

    .worker-portal-login-company {
        margin-bottom: 22px;
    }

    .worker-portal-login-company strong {
        font-size: 1.7rem;
    }
}

.worker-portal-section-copy,
.worker-portal-form-help {
    margin: 0;
    color: #60708b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.worker-portal-report-select-grid,
.worker-portal-attention-grid {
    align-items: end;
}

.worker-portal-attention-form h2::before {
    background: #0e7490;
}

.worker-portal-anonymous-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #cfe7e7;
    border-radius: 12px;
    background: #f2f9f8;
    cursor: pointer;
}

.worker-portal-anonymous-option input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #0e7490;
    flex: 0 0 auto;
}

.worker-portal-anonymous-option span {
    display: grid;
    gap: 3px;
}

.worker-portal-anonymous-option strong {
    color: #17324d;
    font-size: 0.94rem;
}

.worker-portal-anonymous-guidance {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid #f0d18a;
    border-radius: 12px;
    background: #fff8e8;
    color: #725111;
    font-size: 0.9rem;
    line-height: 1.5;
}

.worker-portal-anonymous-guidance strong {
    color: #5f4107;
}


.worker-portal-section-block .worker-portal-field select.worker-portal-select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 16px;
    border: 1px solid #d4e0f0;
    border-radius: 12px;
    background: #f7fbff;
    color: #07172f;
    font-size: 0.92rem;
    font-weight: 850;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6b7a92 50%), linear-gradient(135deg, #6b7a92 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.worker-portal-section-block .worker-portal-field select.worker-portal-select:disabled {
    color: #94a3b8;
    background-color: #f2f6fb;
}

.worker-portal-report-history-list {
    display: grid;
    gap: 0;
    border: 1px solid #dce5f2;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.worker-portal-report-history-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5edf7;
}

.worker-portal-report-history-list article:last-child {
    border-bottom: 0;
}

.worker-portal-report-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d9e7f6;
    background: #eef6ff;
    color: #2563eb;
    font-weight: 950;
}

.worker-portal-report-icon.is-green { background: #e9f8f2; color: #0f766e; border-color: #bfe8dc; }
.worker-portal-report-icon.is-blue { background: #eef6ff; color: #2563eb; border-color: #cfe0ff; }
.worker-portal-report-icon.is-red { background: #fff1f2; color: #dc2626; border-color: #fecdd3; }
.worker-portal-report-icon.is-violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.worker-portal-report-icon.is-slate { background: #f1f5f9; color: #475569; border-color: #dbe4ef; }

.worker-portal-report-history-list strong,
.worker-portal-report-history-list small {
    display: block;
}

.worker-portal-report-history-list strong {
    color: #07172f;
    font-size: 0.95rem;
    font-weight: 950;
}

.worker-portal-report-history-list small {
    margin-top: 3px;
    color: #60708b;
    font-size: 0.78rem;
    font-weight: 750;
}

.worker-portal-report-history-list em {
    min-width: 98px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 950;
}

.worker-portal-report-history-list em.is-success { background: #e7f8ed; color: #159947; }
.worker-portal-report-history-list em.is-active { background: #eaf2ff; color: #2563eb; }
.worker-portal-report-history-list em.is-danger { background: #fff1f2; color: #dc2626; }
.worker-portal-report-history-list em.is-pending { background: #fff7e6; color: #b45309; }

.worker-portal-section-block.is-report-history h2::before {
    background: #2563eb;
}

@media (max-width: 720px) {
    .worker-portal-report-history-list article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .worker-portal-report-history-list em {
        grid-column: 2;
        justify-self: start;
    }
}
.company-internal-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.company-internal-report-summary article {
    min-height: 96px;
    padding: 18px;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.company-internal-report-summary span,
.company-internal-report-summary small {
    display: block;
    color: #60708b;
    font-size: 0.82rem;
    font-weight: 850;
}

.company-internal-report-summary strong {
    display: block;
    margin: 8px 0 4px;
    color: #07172f;
    font-size: 1.8rem;
    font-weight: 950;
}

.company-internal-report-priority {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 950;
}

.company-internal-report-priority.is-high { background: #fff1f2; color: #dc2626; }
.company-internal-report-priority.is-medium { background: #fff7e6; color: #b45309; }
.company-internal-report-priority.is-normal { background: #eaf2ff; color: #2563eb; }

.company-internal-report-type strong,
.company-internal-report-type span {
    display: block;
}

.company-internal-report-type strong {
    color: #07172f;
    font-weight: 950;
}

.company-internal-report-type span,
.company-internal-report-comment {
    color: #53637d;
    font-size: 0.9rem;
    line-height: 1.35;
}

.company-internal-report-comment {
    max-width: 360px;
}

.company-internal-report-followup-log {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #f8fbff;
}

.company-internal-report-followup-log h4 {
    margin: 0 0 6px;
    color: #07172f;
    font-size: 0.95rem;
    font-weight: 950;
}

.company-internal-report-followup-log p {
    margin: 0;
    color: #53637d;
}

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

@media (max-width: 720px) {
    .company-internal-report-summary {
        grid-template-columns: 1fr;
    }
}
/* Landing compliance: 40-hour reform and NOM-035. */
.cloud-hero-copy h1 {
    max-width: 980px;
}

.cloud-hero {
    min-height: 820px;
}

.cloud-trust-row {
    margin-top: 30px;
}

@media (min-width: 861px) {
    .cloud-hero-docs {
        bottom: -250px;
    }
}

@media (max-width: 860px) {
    .cloud-hero-docs {
        bottom: -210px;
    }
}

.cloud-compliance {
    width: min(calc(100% - 64px), 1400px);
    margin: 0 auto;
    padding: 96px 0 84px;
    scroll-margin-top: 128px;
}

.cloud-compliance-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
    margin-bottom: 38px;
}

.cloud-compliance-head h2 {
    max-width: 780px;
    margin: 0;
    color: var(--cloud-text);
    font-size: clamp(2.35rem, 4.25vw, 4.8rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-compliance-included {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    max-width: 310px;
    padding: 16px 18px;
    border: 1px solid #bfe9d2;
    border-radius: 8px;
    background: #effbf5;
    color: #12683e;
}

.cloud-compliance-included svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: #1fa86a;
    color: #ffffff;
}

.cloud-compliance-included span {
    display: grid;
    gap: 2px;
    font-size: 0.86rem;
    line-height: 1.3;
    font-weight: 720;
}

.cloud-compliance-included strong {
    color: #0c5130;
    font-weight: 950;
}

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

.cloud-compliance-card {
    min-width: 0;
    padding: 34px;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #f5f8fd;
}

.cloud-compliance-card.nom035 {
    border-color: #cfe8dc;
    background: #f4faf7;
}

.cloud-compliance-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cloud-compliance-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #dceaff;
    color: #377ddc;
}

.cloud-compliance-card.nom035 .cloud-compliance-icon {
    background: #d9f3e6;
    color: #168857;
}

.cloud-compliance-icon svg {
    width: 27px;
    height: 27px;
}

.cloud-compliance-tag {
    color: #377ddc;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cloud-compliance-card.nom035 .cloud-compliance-tag {
    color: #168857;
}

.cloud-compliance-card h3 {
    max-width: 570px;
    margin: 0 0 16px;
    color: var(--cloud-text);
    font-size: clamp(1.65rem, 2.5vw, 2.6rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.cloud-compliance-card > p {
    max-width: 620px;
    margin: 0;
    color: #707680;
    font-size: 1rem;
    line-height: 1.58;
    font-weight: 680;
}

.cloud-compliance-card ul {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.cloud-compliance-card li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #454b55;
    font-size: 0.94rem;
    line-height: 1.4;
    font-weight: 780;
}

.cloud-compliance-card li svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #377ddc;
}

.cloud-compliance-card.nom035 li svg {
    color: #168857;
}

.cloud-hours-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    padding: 22px 24px;
    border: 1px solid #e1e5ec;
    border-radius: 8px;
    background: #ffffff;
}

.cloud-hours-path::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    background: #d9dee7;
    transform: translateY(-50%);
}

.cloud-hours-path span {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 4px;
    width: max-content;
    min-width: 76px;
    justify-self: center;
    padding: 8px 12px;
    background: #ffffff;
    color: #6d7480;
    font-size: 0.88rem;
    font-weight: 850;
}

.cloud-hours-path strong {
    color: #333842;
    font-size: 0.78rem;
    font-weight: 950;
}

.cloud-hours-path .active {
    border: 1px solid #a9e0c5;
    border-radius: 6px;
    background: #effbf5;
    color: #137247;
}

.cloud-hours-path .active strong {
    color: #0f5e3b;
}

.cloud-compliance-note {
    max-width: 900px;
    margin: 18px auto 0;
    color: #777e89;
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: 680;
    text-align: center;
}

.cloud-pricing-included {
    margin-top: 20px;
    padding: 9px 12px;
    border: 1px solid #bfe9d2;
    border-radius: 6px;
    background: #effbf5;
    color: #12683e;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 900;
}

@media (max-width: 980px) {
    .cloud-hero {
        min-height: 920px;
    }

    .cloud-compliance-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cloud-compliance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cloud-hero {
        min-height: 980px;
    }

    .cloud-compliance {
        width: min(calc(100% - 32px), 620px);
        padding: 66px 0 60px;
    }

    .cloud-compliance-head {
        gap: 24px;
        margin-bottom: 26px;
    }

    .cloud-compliance-head h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }

    .cloud-compliance-included {
        max-width: none;
    }

    .cloud-compliance-card {
        padding: 24px;
    }

    .cloud-compliance-card h3 {
        font-size: clamp(1.55rem, 8vw, 2.15rem);
    }

    .cloud-hours-path {
        grid-template-columns: repeat(5, minmax(64px, 1fr));
        gap: 0;
        padding: 16px 8px;
        overflow-x: auto;
    }

    .cloud-hours-path::before {
        left: 44px;
        right: 44px;
    }

    .cloud-hours-path span {
        min-width: 64px;
        padding: 8px 6px;
    }
}

.worker-portal-guide h2 { margin-bottom: 8px; }
.worker-portal-guide-list { display: grid; gap: 10px; margin-top: 18px; }
.worker-portal-guide-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #dfe7f1; border-radius: 14px; background: #fff; }
.worker-portal-guide-list article > div { display: grid; gap: 4px; }
.worker-portal-guide-list article span { color: #6f7d95; font-size: .86rem; line-height: 1.45; }
.worker-portal-guide-list .worker-portal-primary-button { width: auto; min-height: 42px; padding: 0 18px; }
.worker-portal-guide-outcome { max-width: 360px; text-align: right; }
.worker-portal-guide-outcome span { color: #42536d; }
.worker-portal-guide-form { display: grid; gap: 14px; margin-top: 18px; }
.worker-portal-guide-heading { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid #dfe7f1; }
.worker-portal-guide-heading span { color: #6f7d95; }
.worker-portal-guide-notice { padding: 12px 14px; border-radius: 12px; background: #eef6ff; color: #315078; line-height: 1.5; }
.worker-portal-guide-question { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 14px; padding: 14px; border: 1px solid #dfe7f1; border-radius: 14px; background: #fff; }
.worker-portal-guide-question > span { display: grid; gap: 5px; }
.worker-portal-guide-question strong { color: #172b4d; line-height: 1.45; }
.worker-portal-guide-question small { color: #6f7d95; line-height: 1.4; }
.worker-portal-guide-question select { min-height: 44px; padding: 0 12px; border: 1px solid #cfdaea; border-radius: 10px; background: #fff; color: #172b4d; }
.worker-portal-guide-actions { display: flex; justify-content: flex-end; gap: 10px; }
.worker-portal-guide-request { border-color: #b9d8ff; background: #f3f8ff; }

.worker-portal-pending-guide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 16px 0; padding: 16px 18px; border: 1px solid #f3c86a; border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #fff); box-shadow: 0 10px 28px rgba(167, 105, 13, .08); }
.worker-portal-pending-guide-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid #f0b84a; border-radius: 15px; background: #fff; color: #c36b00; }
.worker-portal-pending-guide-icon svg { width: 25px; height: 25px; }
.worker-portal-pending-guide > div { display: grid; gap: 3px; }
.worker-portal-pending-guide strong { color: #172b4d; font-size: 1.02rem; }
.worker-portal-pending-guide span, .worker-portal-pending-guide small { color: #6b7280; line-height: 1.4; }
.worker-portal-pending-guide-action { min-width: 150px; padding: 13px 18px; border: 0; border-radius: 13px; background: linear-gradient(90deg, #2563eb, #14b8a6); color: #fff; font: inherit; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px rgba(37, 99, 235, .16); }
.worker-portal-pending-guide-action:hover { color: #fff; filter: brightness(.98); }
.worker-portal-guide-thankyou { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 16px 0; padding: 16px 18px; border: 1px solid #a7e2c3; border-radius: 16px; background: #effcf5; color: #145c3d; }
.worker-portal-guide-thankyou > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 999px; background: #d9f7e7; color: #16845a; }
.worker-portal-guide-thankyou svg { width: 23px; height: 23px; }
.worker-portal-guide-thankyou > div { display: grid; gap: 4px; }
.worker-portal-guide-thankyou strong { font-size: 1.04rem; }
.worker-portal-guide-thankyou p { margin: 0; color: #39735b; line-height: 1.5; }
.worker-portal-guide-thankyou > button { border: 0; background: transparent; color: #39735b; font-size: 1.35rem; cursor: pointer; }

.worker-portal-guide-modal { width: min(100%, 960px); }
.worker-portal-guide-modal .app-modal-header { position: sticky; top: 0; z-index: 2; background: #fff; }
.worker-portal-guide-modal .worker-portal-guide-form { gap: 18px; margin-top: 0; }
.worker-portal-guide-context { display: grid; grid-template-columns: 1.05fr 1fr .7fr 1.45fr .8fr; overflow: hidden; border: 1px solid #dfe7f2; border-radius: 14px; background: #fff; }
.worker-portal-guide-context > div { display: grid; gap: 5px; min-width: 0; padding: 14px 16px; border-right: 1px solid #e7edf5; }
.worker-portal-guide-context > div:last-child { border-right: 0; }
.worker-portal-guide-context span { color: #6f7d95; font-size: .78rem; font-weight: 700; }
.worker-portal-guide-context strong { overflow: hidden; color: #172b4d; font-size: .91rem; line-height: 1.35; text-overflow: ellipsis; }
.worker-portal-guide-status { justify-self: start; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: #4f46e5 !important; font-size: .78rem !important; }
.worker-portal-guide-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.worker-portal-guide-support { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid; border-radius: 13px; line-height: 1.45; }
.worker-portal-guide-support strong { color: #172b4d; font-size: .94rem; }
.worker-portal-guide-support span { color: #5e6c84; font-size: .86rem; }
.worker-portal-guide-support.is-help { border-color: #ddd6fe; background: #f7f5ff; }
.worker-portal-guide-support.is-private { border-color: #f5d98a; background: #fff9e9; }
.worker-portal-guide-progress { display: grid; grid-template-columns: minmax(220px, auto) 1fr; align-items: center; gap: 20px; }
.worker-portal-guide-progress > div:first-child { display: grid; gap: 3px; }
.worker-portal-guide-progress strong { color: #172b4d; }
.worker-portal-guide-progress span { color: #6f7d95; font-size: .84rem; }
.worker-portal-guide-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eef7; }
.worker-portal-guide-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #14b8a6); transition: width .2s ease; }
.worker-portal-guide-questions { display: grid; gap: 16px; }
.worker-portal-guide-question-card { display: grid; gap: 20px; padding: 24px; border: 1px solid #dfe7f2; border-radius: 16px; background: #fff; }
.worker-portal-guide-question-card.is-incomplete { border-color: #e05252; background: #fffafa; box-shadow: 0 0 0 3px rgba(224, 82, 82, .12); }
.worker-portal-assessment-missing { margin: -4px 0 0; color: #b42318; font-size: .92rem; font-weight: 800; }
.worker-portal-guide-question-heading { display: flex; align-items: flex-start; gap: 14px; }
.worker-portal-guide-question-number { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #2563eb, #14b8a6); color: #fff; font-size: 1.05rem; font-weight: 900; }
.worker-portal-guide-question-heading > div { display: grid; gap: 7px; min-width: 0; }
.worker-portal-guide-question-heading strong { color: #172b4d; font-size: 1.14rem; line-height: 1.5; }
.worker-portal-guide-question-heading small { color: #60708b; font-size: .98rem; line-height: 1.65; }
.worker-portal-guide-answer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.worker-portal-guide-answer-options button { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px; border: 1px solid #d8e2ef; border-radius: 12px; background: #fff; color: #42536d; font: inherit; font-size: 1.02rem; cursor: pointer; }
.worker-portal-guide-answer-options button:hover, .worker-portal-guide-answer-options button.selected { border-color: #2563eb; background: #f3f7ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #2563eb; }
.worker-portal-guide-answer-options button > span { width: 16px; height: 16px; border: 2px solid #b9c7da; border-radius: 999px; background: #fff; }
.worker-portal-guide-answer-options button.selected > span { border: 5px solid #2563eb; }
.worker-portal-guide-answer-options button strong { font-weight: 800; }
.worker-portal-guide-modal .worker-portal-guide-actions { position: sticky; bottom: -20px; z-index: 2; margin: 4px -22px -20px; padding: 16px 22px; border-top: 1px solid #e5ecf5; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
@media (max-width: 680px) {
    .worker-portal-guide-list article, .worker-portal-guide-question { grid-template-columns: 1fr; }
    .worker-portal-guide-actions { flex-direction: column-reverse; }
    .worker-portal-guide-actions button { width: 100%; }
    .worker-portal-pending-guide { grid-template-columns: auto 1fr; align-items: start; }
    .worker-portal-pending-guide-action { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
    .worker-portal-guide-progress { grid-template-columns: 1fr; gap: 10px; }
    .worker-portal-guide-context { grid-template-columns: 1fr 1fr; }
    .worker-portal-guide-context > div { border-bottom: 1px solid #e7edf5; }
    .worker-portal-guide-support-grid { grid-template-columns: 1fr; }
    .worker-portal-guide-question-card { padding: 15px; }
    .worker-portal-guide-answer-options { grid-template-columns: 1fr 1fr; }
}

.worker-portal-assessment-modal { width: min(100%, 960px); }
.worker-portal-assessment-section { display: grid; gap: 14px; }
.worker-portal-assessment-section > h4 { margin: 0; color: #172b4d; font-size: 1.15rem; }
.worker-portal-assessment-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.worker-portal-assessment-options button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 10px 12px; border: 1px solid #d8e2ef; border-radius: 12px; background: #fff; color: #42536d; font: inherit; font-size: .94rem; cursor: pointer; }
.worker-portal-assessment-options button:hover, .worker-portal-assessment-options button.selected { border-color: #2563eb; background: #f3f7ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #2563eb; }
.worker-portal-assessment-options button > span { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid #b9c7da; border-radius: 999px; background: #fff; }
.worker-portal-assessment-options button.selected > span { border: 5px solid #2563eb; }
.worker-portal-assessment-options button strong { font-weight: 800; }
.worker-portal-assessment-binary-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .worker-portal-assessment-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .worker-portal-assessment-options { grid-template-columns: 1fr; }
    .worker-portal-assessment-options button { justify-content: flex-start; }
    .worker-portal-assessment-binary-options { grid-template-columns: 1fr 1fr; }
}

/* Entorno laboral · Resultados NOM-035 */
.results-screen {
    display: grid;
    gap: 1.35rem;
    color: #17243c;
}

.results-header h1 {
    margin: 0;
    color: #17243c;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.results-header p {
    margin: .55rem 0 0;
    color: #74809a;
    font-size: 1.08rem;
}

.results-filter-bar {
    display: grid;
    grid-template-columns: minmax(150px, .6fr) minmax(240px, .9fr) minmax(360px, 1.7fr);
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #dce5f1;
    border-radius: 20px;
    background: #fff;
}

.results-filter-bar label {
    display: grid;
    gap: .45rem;
    color: #52617b;
    font-weight: 800;
}

.results-filter-bar select {
    width: 100%;
    min-height: 52px;
    padding: 0 2.7rem 0 1rem;
    border: 1px solid #d3deed;
    border-radius: 14px;
    background: #fff;
    color: #17243c;
    font: inherit;
    font-weight: 750;
}

.results-tabs {
    display: flex;
    gap: 1.8rem;
    overflow-x: auto;
    border-bottom: 1px solid #dfe6f0;
}

.results-tabs button {
    padding: .4rem .15rem .9rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #63708a;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
}

.results-tabs button.active {
    border-color: #10b9b0;
    color: #2868e8;
}

.results-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.results-kpis article,
.results-panel {
    border: 1px solid #dce5f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 53, 82, .045);
}

.results-kpis article {
    display: grid;
    gap: .25rem;
    padding: 1.2rem 1.3rem;
}

.results-kpis span,
.results-kpis small {
    color: #71809d;
    font-weight: 700;
}

.results-kpis strong {
    color: #17243c;
    font-size: 1.55rem;
}

.results-summary-grid,
.results-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 1rem;
}

.results-panel {
    padding: 1.35rem;
}

.results-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.results-panel h2 {
    margin: 0;
    font-size: 1.2rem;
}

.results-panel-heading p,
.results-attention-panel > div p {
    margin: .35rem 0 0;
    color: #74809a;
}

.results-donut-layout {
    display: grid;
    grid-template-columns: minmax(190px, .85fr) minmax(220px, 1.15fr);
    align-items: center;
    gap: 1.6rem;
    min-height: 260px;
}

.results-donut {
    display: grid;
    place-items: center;
    width: 210px;
    aspect-ratio: 1;
    margin: auto;
    border-radius: 50%;
    position: relative;
}

.results-donut::after {
    content: "";
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: #fff;
}

.results-donut span {
    z-index: 1;
    display: grid;
    text-align: center;
    color: #74809a;
    font-weight: 700;
}

.results-donut span strong {
    color: #17243c;
    font-size: 1.8rem;
}

.results-risk-legend {
    display: grid;
    gap: .75rem;
}

.results-risk-legend div {
    display: grid;
    grid-template-columns: 12px 1fr auto 28px;
    align-items: center;
    gap: .65rem;
}

.results-risk-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.results-risk-legend small {
    color: #8a95aa;
    text-align: right;
}

.is-null { --risk-color: #6d5ce8; --risk-soft: #eeeafd; }
.is-low { --risk-color: #20985a; --risk-soft: #e6f7ee; }
.is-medium { --risk-color: #d88900; --risk-soft: #fff3db; }
.is-high { --risk-color: #e55b19; --risk-soft: #ffeadf; }
.is-very-high { --risk-color: #d93232; --risk-soft: #ffe8e8; }
.is-empty { --risk-color: #6f7b91; --risk-soft: #edf1f5; }

.results-risk-legend i,
.results-score-track span {
    background: var(--risk-color);
}

.results-attention-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.results-risk-badge {
    min-width: 180px;
    margin: 1.25rem 0 .9rem;
    padding: .85rem 1.3rem;
    border-radius: 18px;
    background: var(--risk-soft);
    color: var(--risk-color);
    font-size: 2rem;
}

.results-criterion {
    max-width: 520px;
    color: #52617b;
    line-height: 1.55;
}

.results-action-link {
    margin-top: .65rem;
    text-decoration: none;
}

.results-download-button,
.results-download-button:visited,
.results-download-button:hover,
.results-download-button span,
.results-download-button svg {
    color: #fff !important;
}

.results-download-button {
    text-decoration: none;
}

.results-score-list {
    display: grid;
}

.results-score-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.5fr) 100px;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid #edf1f6;
}

.results-score-row:first-child {
    border-top: 0;
}

.results-score-row > div:first-child {
    display: grid;
    gap: .25rem;
}

.results-score-row small {
    color: #7b87a0;
}

.results-score-track {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf1f5;
}

.results-score-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.results-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 76px;
    padding: .35rem .7rem;
    border-radius: 99px;
    background: var(--risk-soft);
    color: var(--risk-color);
    font-weight: 850;
}

.results-report-sheet dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: 1px solid #e2e8f1;
    border-radius: 16px;
    overflow: hidden;
}

.results-report-sheet dl div {
    padding: 1rem;
    border-bottom: 1px solid #e7edf5;
}

.results-report-sheet dl div:nth-child(odd) {
    border-right: 1px solid #e7edf5;
}

.results-report-sheet dt {
    color: #71809a;
    font-size: .85rem;
    font-weight: 800;
}

.results-report-sheet dd {
    margin: .35rem 0 0;
    color: #17243c;
    font-weight: 750;
    line-height: 1.45;
}

.results-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e7f1;
    border-radius: 16px;
}

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

.results-table th,
.results-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8edf4;
    text-align: left;
    vertical-align: middle;
}

.results-table th {
    background: #f7f9fc;
    color: #64718a;
    font-size: .86rem;
}

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

.results-actions-column {
    width: 90px;
    text-align: center !important;
}

.results-empty,
.results-panel-empty {
    display: grid;
    gap: .4rem;
    place-items: center;
    min-height: 180px;
    padding: 2rem;
    border: 1px dashed #ccd7e7;
    border-radius: 18px;
    color: #74809a;
    text-align: center;
}

.results-privacy-note {
    margin: 1rem 0 0;
    padding: .9rem 1rem;
    border-radius: 14px;
    background: #eef5ff;
    color: #405d89;
    line-height: 1.5;
}

.results-questionnaire-modal {
    width: min(1100px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
}

.results-questionnaire-summary,
.results-gates {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.results-questionnaire-summary > span,
.results-gates > span {
    padding: .75rem 1rem;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #fff;
}

.results-answer-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.results-answer-list article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
}

.results-answer-list article > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2b70ed, #13b8ae);
    color: #fff;
    font-weight: 900;
}

.results-answer-list article div {
    display: grid;
    gap: .35rem;
}

.results-answer-list article small {
    color: #3370dd;
    font-weight: 850;
}

.results-answer-list article p {
    margin: .25rem 0 0;
    color: #167b67;
    font-weight: 850;
}

@media (max-width: 1000px) {
    .results-filter-bar,
    .results-kpis,
    .results-summary-grid,
    .results-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-filter-application {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .results-filter-bar,
    .results-kpis,
    .results-summary-grid,
    .results-detail-grid,
    .results-donut-layout,
    .results-report-sheet dl {
        grid-template-columns: 1fr;
    }

    .results-score-row {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    .results-report-sheet dl div:nth-child(odd) {
        border-right: 0;
    }
}

.shift-pattern-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.shift-pattern-picker-field {
    position: relative;
}

.shift-pattern-picker {
    position: relative;
}

.shift-pattern-picker-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    color: #11203a;
    cursor: pointer;
    display: flex;
    gap: 0.9rem;
    justify-content: space-between;
    min-height: 4.1rem;
    padding: 0.8rem 1rem;
    text-align: left;
    width: 100%;
}

.shift-pattern-picker-button:hover,
.shift-pattern-picker-button[aria-expanded="True"],
.shift-pattern-picker-button[aria-expanded="true"] {
    border-color: #89cce4;
    box-shadow: 0 0 0 3px rgba(32, 169, 191, 0.12);
}

.shift-pattern-picker-button strong,
.shift-pattern-picker-option strong {
    color: #13213a;
    display: block;
    font-weight: 900;
}

.shift-pattern-picker-button small,
.shift-pattern-picker-option small {
    color: #667895;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.18rem;
}

.shift-pattern-picker-caret {
    color: #6c7d98;
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.shift-pattern-picker-menu {
    background: #fff;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(17, 32, 58, 0.16);
    display: grid;
    gap: 0.45rem;
    left: 0;
    margin-top: 0.45rem;
    max-height: 22rem;
    overflow: auto;
    padding: 0.55rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 15;
}

.shift-pattern-picker-option {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    padding: 0.8rem;
    text-align: left;
}

.shift-pattern-picker-option:hover,
.shift-pattern-picker-option.is-selected {
    background: #f0fbfc;
    border-color: #b7e6ef;
}

.shift-pattern-picker-group {
    color: #6d7b92;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.55rem 0.1rem;
    text-transform: uppercase;
}

.shift-pattern-picker-empty {
    color: #72809a;
    font-weight: 750;
    padding: 0.8rem;
}

.shift-pattern-manager-modal {
    width: min(100%, 980px);
}

.shift-pattern-manager-body {
    display: grid;
    gap: 1rem;
}

.shift-pattern-manager-actions {
    display: flex;
    justify-content: flex-end;
}

.shift-pattern-manager-list {
    display: grid;
    gap: 0.85rem;
}

.shift-pattern-manager-card {
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.shift-pattern-manager-card.is-muted {
    background: #f8fafc;
}

.shift-pattern-manager-card-main,
.shift-pattern-manager-card-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.shift-pattern-manager-card-main strong {
    color: #101828;
    display: block;
    font-weight: 900;
}

.shift-pattern-manager-card-main small,
.shift-pattern-segment-summary {
    color: #7180a0;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.22rem;
}

.shift-pattern-status-pill {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.38rem 0.7rem;
}

.shift-pattern-status-pill.is-active {
    background: #e8f8ef;
    color: #087a43;
}

.shift-pattern-status-pill.is-inactive {
    background: #eef2f7;
    color: #69778e;
}

.shift-pattern-empty-state {
    background: #f8fbff;
    border: 1px dashed #cdd9ea;
    border-radius: 18px;
    color: #6b7890;
    display: grid;
    gap: 0.25rem;
    padding: 1.1rem;
}

.shift-pattern-empty-state strong {
    color: #13213a;
    font-weight: 900;
}

@media (max-width: 760px) {
    .shift-pattern-toolbar,
    .shift-pattern-manager-card-actions,
    .shift-pattern-manager-card-main {
        align-items: stretch;
        flex-direction: column;
    }

    .shift-pattern-toolbar > button,
    .shift-pattern-manager-card-actions > button {
        width: 100%;
    }
}

/* Compact rotation pattern manager rows */
.shift-pattern-manager-list {
    gap: 0.55rem;
}

.shift-pattern-manager-card {
    align-items: center;
    box-shadow: none;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(12rem, 1.1fr) minmax(16rem, 1.5fr) auto auto;
    min-height: 4.35rem;
    padding: 0.8rem 1rem;
}

.shift-pattern-manager-card-main {
    align-items: center;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.shift-pattern-manager-card-main small {
    margin-top: 0.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shift-pattern-segment-summary {
    margin-top: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shift-pattern-status-pill {
    justify-self: end;
    white-space: nowrap;
}

.shift-pattern-manager-card-actions {
    justify-content: flex-end;
    white-space: nowrap;
}

.shift-pattern-manager-card-actions .school-secondary-button {
    min-height: 2.75rem;
    padding-inline: 1rem;
}

@media (max-width: 920px) {
    .shift-pattern-manager-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .shift-pattern-segment-summary {
        grid-column: 1 / -1;
    }

    .shift-pattern-manager-card-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .shift-pattern-manager-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .shift-pattern-status-pill {
        justify-self: start;
    }
}

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

.results-header > .school-secondary-button {
    flex: 0 0 auto;
    text-decoration: none;
}

.results-questionnaire-modal .app-modal-header {
    padding: 1.35rem 1.5rem;
}

.results-questionnaire-modal .app-modal-title {
    display: grid;
    gap: .35rem;
}

.results-questionnaire-modal .app-modal-title h3 {
    font-size: 1.35rem;
}

.results-questionnaire-modal .app-modal-title p {
    margin: 0;
    font-size: .95rem;
}

.results-questionnaire-modal .app-modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 1.35rem 1.5rem;
}

.results-questionnaire-modal .app-modal-footer {
    padding: 1rem 1.5rem;
}

.results-document-paper {
    display: grid;
    gap: 0;
}

.results-document-highlight {
    display: grid;
    gap: .45rem;
    margin-bottom: 1.15rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #dce5f1;
    border-left: 5px solid #2868e8;
    border-radius: 14px;
    background: #f7faff;
}

.results-document-highlight span {
    color: #687790;
    font-size: .86rem;
    font-weight: 800;
}

.results-document-highlight strong {
    color: #17243c;
    font-size: 1.45rem;
}

.results-document-highlight p {
    margin: 0;
    color: #52617b;
    line-height: 1.5;
}

.results-document-paper table {
    page-break-inside: avoid;
}

@media (max-width: 720px) {
    .results-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media print {
    .results-document-paper .case-document-section,
    .results-document-paper table,
    .results-document-highlight {
        break-inside: avoid;
    }
}

.action-plan-search > div {
    height: 46px;
    overflow: hidden;
}

.action-plan-search > div > svg {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}

.action-plan-search > div > input {
    min-width: 0;
    height: 40px;
    flex: 1 1 auto;
}
.action-plan-card-date > svg,
.action-plan-tags svg {
    width: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
}

.action-plan-evidence > svg {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}
.worker-portal-pending-communication {
    border-color: #b9d8ff;
    background: linear-gradient(135deg, #f3f8ff, #fff);
}
.worker-portal-pending-communication .worker-portal-pending-guide-icon {
    border-color: #b9d8ff;
    color: #2563eb;
}
.worker-portal-communication-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #fff;
}
.worker-portal-communication-context > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid #e7edf5;
}
.worker-portal-communication-context > div:last-child { border-right: 0; }
.worker-portal-communication-context span {
    color: #71809a;
    font-size: .78rem;
    font-weight: 800;
}
.worker-portal-communication-context strong { color: #172b4d; }
.worker-portal-communication-content {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #fff;
    color: #263957;
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-wrap;
}
.worker-portal-communication-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f9fbfe;
}
.worker-portal-communication-material a { color: #2563eb; font-weight: 900; }
.worker-portal-communication-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef4ff;
    color: #354d88;
    line-height: 1.5;
}
@media (max-width: 680px) {
    .worker-portal-communication-context { grid-template-columns: 1fr; }
    .worker-portal-communication-context > div { border-right: 0; border-bottom: 1px solid #e7edf5; }
    .worker-portal-communication-context > div:last-child { border-bottom: 0; }
    .worker-portal-communication-material { align-items: flex-start; flex-direction: column; }
}
/* Canonical title for authenticated portal sections. */
:where(
    .dashboard-header .dashboard-title,
    .school-page-header h1,
    .school-hero.compact h1,
    .company-executive-header h1,
    .wellbeing-hero h1,
    .assessment-header h1,
    .results-header h1,
    .action-plan-header h1,
    .comms-header h1,
    .cases-page-header h1,
    .gov-header h1,
    .dossier-header h1,
    .policy-detail-header h1
) {
    color: rgb(13, 27, 42) !important;
    font-family: "Poppins", "Segoe UI Variable", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;
    line-height: 32px !important;
    text-transform: none !important;
}
.company-attendance-integrity-hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
}
