/* Requested layout refinements, shared by narrow and desktop screens. */
.lead-form-footer{justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.lead-save-actions{display:flex;gap:8px}
.topbar .top-actions{display:flex;flex-direction:column-reverse;align-items:flex-end;gap:4px;align-self:flex-start;margin-top:0}
.top-actions #today{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.top-actions .server-status{font-size:12px;white-space:nowrap}
#backToWelcome{display:block;margin:0 auto}
.stock-movement-grid>label{display:flex;flex-direction:column;justify-content:flex-end}
.stock-movement-grid input,.stock-movement-grid select{flex:none}
.menu-order-row>.menu-drag-handle{display:flex;align-items:center;justify-content:center}
.menu-drag-handle svg{display:block;flex:none;width:12px;height:20px;fill:currentColor}
.dashboard-tile:not(.tile-management){padding:22px 16px 14px}
.dashboard-tile.tile-centered .tile-body,.dashboard-tile .tile-stat-content,.dashboard-tile .tile-stat-button{justify-content:flex-start;align-items:center;text-align:center}
.dashboard-tile .tile-stat-button{padding-top:14px}
.dashboard-tile .stat-label{margin:0 0 8px;min-height:18px;line-height:18px;font-size:13px}
.dashboard-tile .stat-num,.student-tile-counts b{font-size:26px;line-height:30px}
.dashboard-tile .stat-sub,.student-tile-counts span{margin-top:5px;line-height:16px}
.dashboard-tile[data-size="2,1"] .student-tile-counts{align-items:start}
.tile-debt-wide{align-items:start;padding-top:14px}
.tile-debt-wide .tile-debt-list{align-self:center}
.dashboard-tile[data-card="unmarked"]{padding:16px}
.dashboard-tile[data-card="unmarked"] .tile-body{justify-content:flex-start;align-items:stretch;text-align:left}
.home-journals .tile-stat-button{min-height:0;padding-top:0;align-items:flex-start;text-align:left}
.home-journals h3{margin:0 0 9px}
.dashboard-tile[data-tile-go]{cursor:pointer}
.dashboard-tile[data-tile-go]:focus-visible{outline:2px solid var(--wine);outline-offset:3px}
.dashboard-tile.tile-intro{padding:14px 16px;height:auto;align-self:start}
.tile-intro .tile-body{height:auto;justify-content:flex-start}
.tile-intro .tile-full{width:100%}
.tile-intro .tile-full h3{margin:0 0 10px}
.tile-intro[data-size="2,1"] .home-quick-actions .btn{font-size:12px;padding:6px 8px}
.trial-notice{width:320px;padding:11px 13px;gap:6px}
.trial-notice p{font-size:12px}
.trial-notice-when{font-size:12px;gap:4px 7px}
.trial-arrival{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;margin-top:2px}
.trial-arrival input{width:16px;height:16px;accent-color:var(--wine);margin:0;flex:none}
.trial-attendance-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.trial-attendance-actions .btn{font-size:11px;padding:3px 6px}
.trial-admin-notices{margin:0 0 20px}
.trial-admin-notices h2{font-size:17px}
.trial-admin-notice{border:1px solid #cce5d9;background:#f3fbf6;border-radius:9px;padding:10px 13px;max-width:650px;margin-top:8px;font-size:13px}
.trial-admin-notice.absent{background:#fff8f1;border-color:#f0ddc7}
.trial-admin-notice small{display:block;margin-top:5px;color:var(--sub)}
.salary-table .expense-actions{display:grid;grid-template-columns:minmax(95px,max-content);justify-content:start;gap:5px}
.salary-table .expense-actions .btn{width:100%;min-height:31px;text-align:center;box-sizing:border-box}
.telegram-phone-field{position:relative;min-width:0}
.telegram-phone-field .phone-field{padding-right:36px}
.telegram-toggle{position:absolute;right:7px;bottom:9px;width:28px;height:28px;display:grid;place-items:center;padding:5px;border:0;border-radius:50%;background:#edf0f3;color:#8c98a4}
.telegram-toggle svg{width:18px;height:18px;fill:currentColor}
.telegram-toggle.is-added{color:#168acc;background:#e3f3fc}
.telegram-toggle:focus-visible{outline:2px solid #168acc;outline-offset:2px}
.telegram-dot{display:inline-block;width:9px;height:9px;margin-left:7px;border-radius:50%;vertical-align:middle}
.telegram-dot[data-telegram-membership="none"]{background:#b52a42}
.telegram-dot[data-telegram-membership="student"]{background:#27834e}
.telegram-dot[data-telegram-membership="guardian"]{background:#e4b52f;box-shadow:inset 0 0 0 1px #9d7205}
.telegram-dot[data-telegram-membership="both"]{background:#168acc}
.nav-lead-alert:not([hidden]){display:inline-block;width:9px;height:9px;margin-left:9px;border-radius:50%;background:var(--wine);vertical-align:middle}
.idle-preference{margin-top:22px;max-width:240px}
.idle-preference select{width:100%;margin-top:7px}
.idle-preference .hint{font-size:12px;font-weight:400;line-height:1.45}
.hours-editor{padding:15px;background:#f7f8fa;border:1px solid var(--line);border-radius:10px;margin:18px 0}
.hours-editor h4{margin:0 0 13px}
.hours-day-choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}
.form-body .hours-day-choices label{display:flex;align-items:center;gap:6px;background:white;padding:8px 10px;border-radius:7px;border:1px solid var(--line)}
.form-body .hours-day-choices input,.form-body .hours-closed input{width:16px;height:16px;display:inline-block;margin:0;accent-color:var(--wine)}
.hours-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr)) auto;gap:12px;align-items:end}
.hours-editor-fields .hours-closed{display:flex;align-items:center;gap:7px;min-height:40px}
.hours-editor-fields>.btn{justify-self:start;grid-column:1/-1}
.hours-individual{margin-top:18px}
.hours-editor[hidden]{display:none}
.week-patterns{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:start;gap:18px}
@media(max-width:810px){.topbar{gap:10px}.topbar .top-actions{display:flex;max-width:45%;gap:3px}.top-actions #today{font-size:12px}.top-actions .server-status{font-size:11px}.hours-editor-fields{grid-template-columns:minmax(0,1fr)}.hours-editor-fields>.btn{grid-column:auto}.idle-preference{max-width:none}}
.server-status.is-offline .status-dot{background:#929aa5}

@media(max-width:480px){.tile-intro[data-size="2,1"] .home-quick-actions .btn{font-size:11px;line-height:14px;padding:4px;overflow-wrap:anywhere}}

/* 0.41.2 Beta: compact trial statuses and collapsible centre settings. */
.trial-notice-when{justify-content:flex-start;gap:4px 10px}
.trial-attendance-compact{flex-wrap:nowrap;gap:7px}
.trial-attendance-compact small{font-size:12px;color:var(--sub);font-weight:400}
.trial-attendance-toggle{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;padding:0;border:1px solid #c8ced6;border-radius:4px;background:#f2f4f7;color:#6b7684;font-size:17px;line-height:1;font-weight:750}
.trial-attendance-toggle.is-present{background:#e7f6ed;border-color:#7ab497;color:#237b4a}
.trial-attendance-toggle.is-absent{background:#fff0f2;border-color:#dda5b1;color:#a31e36}
.trial-attendance-toggle:disabled{cursor:default;opacity:.6}
.trial-attendance-toggle:focus-visible,.centre-section-toggle:focus-visible{outline:2px solid var(--wine);outline-offset:2px}
.week-group .week-group-subject{font-size:15px;font-weight:750;line-height:1.4}
.week-group .week-group-time{font-size:14px;font-weight:750;line-height:1.4}
.centre-section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
.centre-section-head h3{margin:0;min-width:0}
.centre-section-head.is-closed{margin-bottom:0}
.centre-section-toggle{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;color:var(--wine);background:white;font-size:22px;line-height:1;font-weight:600}
.centre-section-content[hidden]{display:none}

/* Trial bookings are displayed separately from active enrolments. */
.schedule-trial-count{display:block;margin-top:5px;font-size:12px;font-weight:500;line-height:1.4;color:#7f293b}
.schedule-trial-student .schedule-trial-name{font-weight:650;overflow-wrap:anywhere}

/* Expanded applications keep names and current stages readable within one row. */
.dashboard-tile[data-card="leads"]{padding:16px}
.home-leads{height:100%;min-height:0;width:100%}
.home-leads>.tile-compact-only{height:100%}
.dashboard-tile[data-size="2,1"] .home-leads-wide,.dashboard-tile[data-size="2,2"] .home-leads-wide{display:flex;flex-direction:column;gap:7px;height:100%;min-height:0}
.dashboard-tile .home-leads-heading{height:auto;flex:0 0 auto;flex-direction:row;justify-content:center;gap:10px;padding:0}
.dashboard-tile .home-leads-heading .stat-label{margin:0}
.dashboard-tile .home-leads-heading .stat-num{font-size:22px;line-height:24px}
.home-lead-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;text-align:left;scrollbar-width:thin}
.home-lead-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;min-height:26px;padding:4px 0;border-top:1px solid var(--line);line-height:1.3}
.home-lead-row strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.home-lead-row span{font-size:11px;color:var(--sub);overflow-wrap:anywhere}
.home-lead-list:focus-visible{outline:2px solid var(--wine);outline-offset:1px;border-radius:3px}
.schedule-trial-label{font-size:12px;font-weight:500;color:#8e2337}
.schedule-trial-date{display:block;font-size:11px;font-weight:400;line-height:1.35;color:#596477;margin-top:3px}
.schedule-table td.schedule-trial-student{vertical-align:middle;border-left:2px solid #bd7988}
.roster-trial-students{margin:14px 0 20px;padding-top:12px;border-top:1px solid var(--line)}
