/* com_appointments: staff screens. They are full pages of their own, without the site template. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.com-appointments {
  --ink: #1c1b1a; --text: #292524; --muted: #57534e; --faint: #a8a29e;
  --line: #e7e5e0; --line-strong: #d6d3cc; --soft: #f6f5f2; --soft-2: #f0efeb; --hover: #faf9f7;
  --red: #c8322b; --red-dark: #a92820; --red-soft: #fbe6e4; --red-tint: #faf1f0; --danger: #b91c1c;
  box-sizing: border-box; color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.4; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
}
.com-appointments *, .com-appointments *::before, .com-appointments *::after { box-sizing: border-box; }
.com-appointments [hidden] { display: none !important; }
:where(.com-appointments) :is(h1, h2, h3) { margin: 0; color: var(--ink); font-family: inherit; line-height: 1.25; }
:where(.com-appointments) :is(button, input, select, textarea) { margin: 0; color: inherit; font-family: inherit; }
:where(.com-appointments) button { cursor: pointer; }
:where(.com-appointments) a { color: inherit; text-decoration: none; }
.com-appointments :focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.al-page { margin: 0; background: #fff; }
.al-i { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.al-i.is-solid { fill: currentColor; stroke: none; }
.al-spacer { flex: 1; }
.al-nowrap { white-space: nowrap; }
.al-muted { color: var(--muted); font-size: 12px; }

/* status colours */
.s-booked { --s-bg: #f0efeb; --s-fg: #44403c; --s-head: #d6d3cc; --s-head-fg: #1c1b1a; }
.s-accepted { --s-bg: #e7eefc; --s-fg: #1d4ed8; --s-head: #1d4ed8; --s-head-fg: #fff; }
.s-in_progress { --s-bg: #fbefd9; --s-fg: #92400e; --s-head: #b45309; --s-head-fg: #fff; }
.s-ready { --s-bg: #e2f3e6; --s-fg: #166534; --s-head: #166534; --s-head-fg: #fff; }
.s-delivered { --s-bg: #e9e7e2; --s-fg: #44403c; --s-head: #57534e; --s-head-fg: #fff; }
.s-waiting { --s-bg: #ede9fe; --s-fg: #5b21b6; }
.s-partner { --s-bg: #cffafe; --s-fg: #155e75; }
.s-no_show { --s-bg: #fbe6e4; --s-fg: #b91c1c; --s-head: #b91c1c; --s-head-fg: #fff; }
.s-cancelled { --s-bg: #e7e5e0; --s-fg: #57534e; }

/* frame */
.al-app { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: #fff; }
.al-app.has-panel { grid-template-columns: 216px minmax(0, 1fr) 420px; }

/* side menu */
.al-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; height: 100vh; height: 100dvh; padding: 18px 12px 12px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--soft); }
.al-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; font-weight: 800; letter-spacing: .06em; }
.al-brand-mark { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 7px; background: var(--red); color: #fff; font-size: 13px; letter-spacing: 0; }
.al-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; transition: background .08s; }
.al-nav .al-i { color: var(--muted); }
.al-nav:hover { background: var(--soft-2); }
.al-nav.is-active { background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
.al-nav.is-active .al-i { color: var(--red); }
.al-nav.is-alert .al-i, .al-nav.is-alert .al-count { color: var(--danger); }
.al-nav-label { flex: 1; min-width: 0; }
.al-nav .al-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.al-side-title { margin: 18px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.al-side-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.al-user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.al-avatar { display: flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.al-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-side-links { display: flex; flex-wrap: wrap; gap: 4px 14px; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 500; }
.com-appointments .al-side-links a:hover { color: var(--red); }

/* main column */
.al-main { display: flex; flex-direction: column; min-width: 0; }
.al-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.al-day-nav, .al-date-tools { display: flex; align-items: center; gap: 4px; }
.al-square { display: flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); }
.al-square:hover { background: var(--hover); }
.al-picker { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.al-picker input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; cursor: pointer; }
.al-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.al-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.al-today-mark { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.al-stats { display: flex; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
.al-stats:empty { display: none; }
.al-stats b { color: var(--ink); font-weight: 700; }
.al-search-box { display: flex; align-items: center; gap: 8px; width: 270px; height: 36px; margin: 0; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--muted); }
.al-search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.al-search-box input { flex: 1; min-width: 0; height: 34px; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.al-search-box kbd { padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; font-size: 12px; }
.al-search-toggle, .al-only-phone, .al-fab, .al-bottom, .al-more, .al-panel-back { display: none; }
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .08s; }
.al-btn:hover { background: var(--hover); }
.al-btn:disabled { opacity: .6; cursor: default; }
.al-btn-primary { border-color: var(--red); background: var(--red); color: #fff; font-weight: 700; }
.al-btn-primary:hover { background: var(--red-dark); }
.al-btn-danger { border-color: #f3c9c5; color: var(--danger); }
.al-btn-danger:hover { background: var(--red-soft); }
.al-btn-solid-danger, .al-btn-solid-danger:hover { border-color: var(--danger); background: var(--danger); color: #fff; }
.al-link-btn { min-height: 34px; padding: 4px 0; border: 0; background: none; color: var(--red); font-size: 14px; font-weight: 700; }

/* dates */
.al-strip { position: relative; display: flex; flex: none; gap: 4px; padding: 10px 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.al-strip::-webkit-scrollbar { display: none; }
.al-day { position: relative; display: flex; flex: 1 0 60px; flex-direction: column; align-items: center; padding: 5px 2px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); line-height: 1.2; text-align: center; transition: background .08s; }
.al-day:hover { background: var(--hover); }
.al-day-name { color: var(--muted); font-size: 12px; font-weight: 600; }
.al-day-num { font-size: 17px; font-weight: 800; white-space: nowrap; }
.al-day-num em { margin-left: 3px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.al-day small { color: var(--muted); font-size: 12px; font-weight: 600; }
.al-day.is-today { border-color: var(--ink); }
.al-day.is-off { background: var(--soft); }
.al-day.is-off .al-day-num { color: var(--muted); }
.al-day.is-full small { color: var(--danger); font-weight: 700; }
.al-day.is-blocked { border-color: #f3c9c5; background: var(--red-soft); }
.al-day.is-blocked small { color: var(--danger); font-weight: 700; }
.al-day.is-active, .al-day.is-active:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.al-day.is-active .al-day-name, .al-day.is-active .al-day-num, .al-day.is-active .al-day-num em, .al-day.is-active small { color: #fff; }
.al-day.is-active.is-blocked, .al-day.is-active.is-blocked:hover { border-color: var(--danger); background: var(--danger); }
.al-day:has(.gu-transit), .al-nav:has(.gu-transit) { outline: 2px dashed var(--red); outline-offset: 1px; }
.al-day .gu-transit, .al-nav .gu-transit { display: none !important; }

/* load of the day */
.al-load { display: flex; flex: none; align-items: center; gap: 18px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.al-free { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.al-free b { color: var(--ink); font-size: 19px; font-weight: 800; }
.al-slotbar { display: flex; flex: 1; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.al-slotbar::-webkit-scrollbar { display: none; }
.al-slot { flex: 1 0 42px; max-width: 96px; padding: 4px 2px; border: 0; border-radius: 6px; background: none; color: var(--text); transition: background .08s; }
.al-slot:hover { background: var(--soft-2); }
.com-appointments .al-slot:disabled { background: none; cursor: not-allowed; }
.al-pips { display: flex; gap: 2px; margin-bottom: 4px; }
.al-pips i { flex: 1; height: 7px; border-radius: 2px; background: var(--line); }
.al-pips i.is-on { background: var(--red); }
.al-pips .al-fill { overflow: hidden; }
.al-pips .al-fill i { display: block; height: 100%; border-radius: 0; background: var(--red); }
.al-slot-time { display: block; font-size: 12px; font-weight: 600; color: #44403c; }
.al-slot.is-full .al-slot-time { color: var(--danger); font-weight: 800; }
.al-slot-gap { flex: 0 0 14px; align-self: stretch; margin: 4px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 5px); }
.al-mail-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 24px; background: var(--red-soft); color: #7f1d1d; font-size: 14px; }
.al-mail-text { flex: 1 1 280px; min-width: 0; }
.al-mail-when { opacity: .8; }
.al-mail-alert .al-btn { flex: none; background: #fff; }
.al-notice { margin: 8px 24px 0; padding: 7px 12px; border-radius: 8px; background: var(--red-soft); color: var(--danger); font-weight: 700; }

/* toolbar */
.al-toolbar { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 24px; }
.al-modes { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--soft-2); }
.al-mode { height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: #44403c; font-size: 13px; font-weight: 700; }
.al-mode.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, .16); }
.al-filter { height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.al-content { flex: 1; min-width: 0; padding: 0 24px 24px; }
.al-section { margin: 12px 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.com-appointments .al-section.is-alert { color: var(--danger); }
.al-empty { padding: 48px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 15px; text-align: center; }
.al-empty p { margin: 0 0 12px; }

/* table */
.al-table-wrap { overflow-x: auto; }
.al-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.al-table th { padding: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; }
.al-table .al-th-star, .al-table .al-th-del { cursor: default; }
.al-table td { padding: 5px 8px; border-bottom: 1px solid var(--soft-2); vertical-align: middle; }
.al-row { background: #fff; cursor: pointer; }
.al-row:hover { background: var(--hover); }
.al-row.is-selected { background: var(--red-tint); box-shadow: inset 3px 0 0 var(--red); }
.al-row.is-dim .al-open, .al-row.is-dim .al-name, .al-row.is-dim .al-work { opacity: .65; }
.al-table .al-td-star { width: 72px; padding: 0 0 0 4px; white-space: nowrap; }
.al-card { position: relative; }
.al-grip { display: none; color: var(--faint); cursor: grab; touch-action: none; }
.al-star { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); vertical-align: middle; }
.al-star:hover { background: var(--soft-2); }
.al-star .al-i { stroke-width: 1.8; }
.al-star.is-on { color: var(--red); }
.al-star.is-on .al-i { fill: currentColor; }
.al-done { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); vertical-align: middle; }
.al-done:hover { background: var(--soft-2); color: #166534; }
.al-done .al-i { stroke-width: 2.6; }
.com-appointments .al-done.is-on { background: #e2f3e6; color: #166534; }
.al-td-time { width: 58px; font-weight: 700; }
.al-td-time.is-same { color: var(--faint); }
.al-open { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--ink); font-size: 14px; text-align: left; }
.al-plate { font-weight: 800; letter-spacing: .03em; }
.al-model { color: #44403c; }
.al-open:hover .al-plate { color: var(--red); }
.al-name { display: block; font-weight: 600; }
.al-phone { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 500; }
.com-appointments .al-phone:hover { color: var(--red); text-decoration: underline; }
.al-td-work { color: #44403c; cursor: pointer; }
.al-work { margin-right: 6px; }
.al-tag { display: inline-block; margin-right: 4px; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.al-tag-plain { border-color: transparent; background: var(--soft-2); color: #44403c; }
.al-tag-info { border-color: transparent; background: #e0f2fe; color: #075985; }
.al-td-status { width: 136px; }
.com-appointments .al-status { width: 124px; height: 28px; padding: 0 22px 0 10px; border: 0; border-radius: 6px; background-color: var(--s-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position: right 6px center; background-repeat: no-repeat; background-size: 13px; color: var(--s-fg); font-size: 13px; font-weight: 700; appearance: none; cursor: pointer; }
.al-status option { background: #fff; color: var(--ink); font-weight: 400; }
.al-table .al-td-del { width: 40px; padding: 0; }
.al-del { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: none; color: #78716c; transition: background .08s, color .08s; }
.al-del:hover { background: var(--red-soft); color: var(--danger); }

/* board */
.al-noshow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; padding: 7px 12px; border-radius: 9px; background: var(--red-soft); color: var(--danger); font-weight: 700; }
.com-appointments .al-noshow button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: #fff; color: var(--danger); font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.al-board { display: grid; grid-template-columns: repeat(5, minmax(176px, 1fr)); gap: 10px; overflow-x: auto; align-items: stretch; }
.al-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 6px; border-radius: 12px; background: var(--soft); }
.com-appointments .al-col-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--s-head); color: var(--s-head-fg); font-size: 14px; font-weight: 800; }
.al-col-head span { font-size: 15px; }
.al-col-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 340px; }
.al-card { padding: 11px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(28, 27, 26, .12); cursor: pointer; }
.al-card.is-selected { box-shadow: 0 0 0 2px var(--red); }
.al-card .al-star { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; }
.al-card .al-done { position: absolute; top: 5px; right: 38px; width: 32px; height: 32px; }
.al-card .al-grip { position: absolute; top: 12px; right: 72px; }
.al-card-body { cursor: pointer; }
.al-card-time { font-size: 20px; font-weight: 800; line-height: 1.1; }
.al-card-plate { margin-top: 9px; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.al-card-model { font-weight: 600; }
.al-card-work { margin-top: 7px; color: #44403c; font-size: 13px; }
.al-card-name { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.al-card-tags { margin-top: 6px; }
.al-card-tags:empty { display: none; }

/* booking panel */
.al-panel { position: sticky; top: 0; height: 100vh; height: 100dvh; border-left: 1px solid var(--line); background: #fff; box-shadow: -10px 0 28px rgba(28, 27, 26, .06); }
.al-panel form { display: flex; flex-direction: column; height: 100%; min-width: 0; margin: 0; }
.com-appointments .al-head-status { display: none; }
.al-panel-head { display: flex; flex: none; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.al-panel-title { flex: 1; min-width: 0; }
.al-panel-title b { display: block; font-size: 22px; font-weight: 800; letter-spacing: .03em; line-height: 1.2; }
.al-panel-title b.is-new { font-size: 19px; letter-spacing: 0; }
.al-panel-title span { color: #44403c; font-weight: 500; }
.com-appointments .al-panel-close { border-color: transparent; background: var(--soft-2); }
.al-steps { display: flex; flex: none; flex-wrap: wrap; gap: 5px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.al-step { height: 30px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.al-step:hover { background: var(--hover); }
.com-appointments .al-step.is-active, .com-appointments .al-step.is-active:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.al-panel-body { flex: 1; min-width: 0; min-height: 0; padding: 2px 20px 12px; overflow-x: hidden; overflow-y: auto; }
.al-panel-foot { display: flex; flex: none; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--hover); }
.al-form-error { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--red-soft); color: #7f1d1d; font-weight: 600; }
.al-sec { padding: 14px 0; border-bottom: 1px solid var(--soft-2); }
.al-sec:last-child { border-bottom: 0; }
.com-appointments .al-sec h2 { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.al-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.com-appointments .al-sec-head h2 { margin: 0; }
.com-appointments .al-call { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.al-grid > * { min-width: 0; }
.al-grid-3 { grid-template-columns: 1.2fr 1fr 1fr; }
.al-field { display: block; margin: 0; }
.al-sec > .al-field + .al-field { margin-top: 10px; }
.com-appointments .al-input.al-time-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); cursor: pointer; text-align: left; }
.com-appointments .al-time-btn:hover { border-color: var(--ink); }
.com-appointments .al-time-btn b { font-weight: 800; }
.al-time-btn .al-i { color: var(--muted); }
.com-appointments #al-form-blocked { margin: 10px 0 0; }
.al-field > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.com-appointments .al-input { display: block; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.com-appointments input.al-input { min-width: 0; max-width: 100%; }
/* Safari on iOS gives date fields their own width and centres the text */
@supports (-webkit-touch-callout: none) {
  .com-appointments input[type="date"].al-input { appearance: none; -webkit-appearance: none; }
  .com-appointments input[type="date"].al-input::-webkit-date-and-time-value { margin: 0; line-height: 42px; text-align: left; }
}
.com-appointments textarea.al-input { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
.com-appointments .al-input:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.com-appointments .al-plate-input { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.al-slot-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 4px; margin-top: 10px; }
.com-appointments .al-slot-picks .al-notice { grid-column: 1 / -1; margin: 0 0 4px; }
.com-appointments .al-pick { height: 32px; padding: 0 2px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.com-appointments .al-pick:hover { border-color: var(--ink); }
.com-appointments .al-pick.is-full, .com-appointments .al-pick.is-full:hover { border-color: var(--soft-2); background: var(--soft-2); color: var(--faint); font-weight: 500; cursor: not-allowed; }
.com-appointments .al-pick.is-active, .com-appointments .al-pick.is-active:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.al-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.com-appointments .al-options .al-check { margin: 0; align-items: flex-start; }
.al-work-edit { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.al-work-edit input[type="checkbox"], .al-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.com-appointments .al-work-edit input:checked ~ .al-input { color: var(--muted); text-decoration: line-through; }
.al-check { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 500; cursor: pointer; }
.al-lookup:empty { display: none; }
.al-lookup { margin-top: 10px; }
.al-found { display: block; width: 100%; margin-bottom: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); text-align: left; }
.al-found:hover { border-color: var(--ink); }
.al-found small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.al-history-wrap summary { color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.al-history { margin: 8px 0 0; padding: 0; font-size: 13px; list-style: none; }
.al-history li { margin-bottom: 5px; }

/* photos */
.al-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.al-photos:empty { display: none; }
.al-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--soft-2); }
.al-photo.is-sending img { opacity: .5; }
.al-photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.al-photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.com-appointments .al-photo-del { position: absolute; top: 3px; right: 3px; display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: rgba(28, 27, 26, .72); color: #fff; }
.al-photo-add { position: relative; display: inline-block; margin-top: 4px; cursor: pointer; }
.al-photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.al-tag-photo { display: inline-flex; align-items: center; gap: 3px; vertical-align: bottom; }
.al-photo-view { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(28, 27, 26, .88); cursor: zoom-out; }
.al-photo-view img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* toast and drag */
.al-toast { position: fixed; bottom: 20px; left: 50%; z-index: 1100; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 10px 14px; border-radius: 10px; background: var(--ink); box-shadow: 0 10px 26px rgba(28, 27, 26, .3); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .1s; }
.al-toast.is-visible { opacity: 1; pointer-events: auto; }
.al-toast.is-error { background: var(--danger); }
.com-appointments .al-toast button { flex: none; height: 32px; margin: -4px -6px -4px 0; padding: 0 12px; border: 0; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; }
.gu-mirror { position: fixed !important; z-index: 9999 !important; margin: 0 !important; list-style: none; opacity: .95; cursor: grabbing; }
tr.gu-mirror { display: block; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(28, 27, 26, .25); }
tr.gu-mirror td { display: block; padding: 0; border: 0; }
.al-card.gu-mirror { box-shadow: 0 12px 28px rgba(28, 27, 26, .25); }
.gu-hide { display: none !important; }
.gu-unselectable { user-select: none !important; }
.gu-transit { opacity: .3; }

/* slot limits page */
.al-limits { max-width: 980px; margin: 0 auto; padding: 24px; }
.al-limits-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.com-appointments .al-limits-head h1 { font-size: 22px; font-weight: 800; }
.al-limits > p { margin: 0 0 16px; color: var(--muted); }
.al-limits-box { margin-bottom: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.al-limits-table { width: 100%; border-collapse: collapse; }
.al-limits-table th, .al-limits-table td { padding: 5px 6px; border-bottom: 1px solid var(--soft-2); font-size: 14px; font-weight: 700; text-align: center; vertical-align: middle; }
.al-limits-table thead th { background: var(--soft); color: var(--muted); font-size: 13px; }
.com-appointments .al-limits-table input { width: 60px; height: 34px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 14px; font-weight: 600; text-align: center; }
.al-limits-actions { display: flex; align-items: center; gap: 10px; }
.al-santa-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.al-santa-switch b { flex: 1; }
.al-santa-form { margin-bottom: 24px; }
.al-santa-label { display: block; margin-bottom: 6px; font-weight: 700; }
.com-appointments .al-santa-text { height: auto; min-height: 160px; padding: 10px; margin-bottom: 10px; resize: vertical; }
.com-appointments .al-santa-title { margin: 8px 0 4px; font-size: 18px; font-weight: 800; }
.al-slot-cell { display: inline-flex; align-items: center; gap: 2px; }
.com-appointments .al-slot-cell input[type=number] { width: 44px; }
.al-slot-eye { display: flex; width: 22px; height: 34px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.al-slot-eye:hover { background: var(--soft-2); color: var(--ink); }
.al-slot-eye .al-eye-off, .al-slot-cell.is-hidden .al-eye-on { display: none; }
.al-slot-cell.is-hidden .al-eye-off { display: block; }
.al-slot-cell.is-hidden .al-slot-eye { color: var(--red); }
.com-appointments .al-slot-cell.is-hidden input[type=number] { border-style: dashed; background: var(--soft); color: transparent; }
.al-requests-search { width: 100%; max-width: 360px; margin-bottom: 14px; }
.al-requests-table { width: 100%; border-collapse: collapse; }
.al-requests-table th, .al-requests-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft-2); font-size: 14px; text-align: left; vertical-align: top; }
.al-requests-table thead th { background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.al-requests-table a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.al-requests-name { font-weight: 700; }
.al-requests-wish { min-width: 240px; overflow-wrap: anywhere; }
.al-requests-date { color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .al-requests-table thead { display: none; }
  .al-requests-table, .al-requests-table tbody, .al-requests-table tr, .al-requests-table td { display: block; width: 100%; }
  .al-requests-table tr { padding: 12px; border-bottom: 1px solid var(--soft-2); }
  .al-requests-table tr[hidden] { display: none; }
  .al-requests-table td { padding: 2px 0; border: 0; }
  .al-requests-wish { min-width: 0; }
}

/* public placeholder page keeps the site template */
.com-appointments .alert { padding: 9px 12px; border-radius: 8px; background: #f0efeb; }

@media (max-width: 1240px) {
  .al-app.has-panel { grid-template-columns: 216px minmax(0, 1fr); }
  .al-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 900; width: 420px; max-width: 100vw; height: auto; box-shadow: -14px 0 40px rgba(28, 27, 26, .18); }
}
@media (pointer: coarse) and (min-width: 761px) {
  .al-grip { display: inline-flex; padding: 6px 2px; }
}

/* phone */
@media (max-width: 760px) {
  .al-app, .al-app.has-panel { display: block; min-height: 0; padding-bottom: 62px; }
  .al-side, .al-only-wide, .al-new-top, .al-search-box kbd, .al-panel-close { display: none; }
  .al-only-phone { display: inline; }
  .al-search-toggle, .al-panel-back { display: flex; }
  .al-top { gap: 8px; padding: 12px 16px 8px; border-bottom: 0; }
  .al-day-nav { display: none; }
  .al-heading { flex: 1; min-width: 0; }
  .al-top > .al-spacer { display: none; }
  .al-title { font-size: 21px; }
  .al-today-mark { font-size: 13px; }
  .al-square { width: 44px; height: 44px; border-radius: 10px; }
  .al-date-tools { order: 1; }
  .al-date-tools .al-btn { height: 44px; border-radius: 10px; }
  .al-search-toggle { order: 2; }
  .al-search-box { display: none; order: 3; flex: 1 1 100%; width: 100%; height: 44px; }
  .al-app.show-search .al-search-box { display: flex; }
  .al-search-box input { font-size: 16px; }
  .al-strip { padding: 0 16px 8px; border-bottom: 0; }
  .al-day { flex: 0 0 58px; padding: 5px 0; border-radius: 10px; }
  .al-day small { font-size: 11px; }
  .al-day.is-off small { font-size: 10.5px; }
  .al-day-num em { display: none; }
  .al-load { display: block; padding: 0 16px 6px; border-bottom: 0; }
  .al-free { display: none; }
  .al-slot { flex: 0 0 44px; padding: 7px 3px 4px; }
  .al-notice { margin: 0 16px 8px; }
  .al-toolbar { padding: 4px 16px 8px; }
  .al-modes { flex: 1 1 100%; }
  .al-mode { flex: 1; height: 40px; font-size: 14px; }
  .al-filter { height: 40px; flex: 1; font-size: 14px; }
  #al-day-actions .al-btn { height: 40px; }
  .al-toolbar > .al-spacer { display: none; }
  .al-content { padding: 0 0 84px; }
  .com-appointments .al-section { margin: 10px 16px 4px; }
  .al-empty { margin: 8px 16px; }
  .al-plist { border-top: 1px solid var(--line); }
  .al-prow { cursor: pointer; display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto; gap: 0 4px; align-items: center; padding: 8px 12px 8px 4px; border-bottom: 1px solid var(--soft-2); }
  .al-prow.is-dim .al-prow-main { opacity: .65; }
  .al-prow .al-star, .al-prow .al-done { width: 40px; height: 44px; }
  .al-prow-main { min-width: 0; padding: 2px 0; border: 0; background: none; color: var(--ink); text-align: left; }
  .al-prow-top { display: block; font-size: 16px; white-space: nowrap; }
  .al-prow-time { margin-right: 7px; font-weight: 800; }
  .al-prow-sub { display: block; overflow: hidden; color: #44403c; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .com-appointments .al-prow .al-status { width: 96px; height: 34px; padding-left: 7px; font-size: 12px; }
  .al-ptabs { display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  .al-ptabs::-webkit-scrollbar { display: none; }
  .com-appointments .al-ptab { flex: none; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--s-fg); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
  .com-appointments .al-ptab.is-active { border-color: var(--s-head); background: var(--s-head); color: var(--s-head-fg); }
  .al-pcards { display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 10px 16px; background: var(--soft); }
  .al-pempty { margin: 32px 0; color: var(--muted); font-weight: 600; text-align: center; }
  .al-card { padding: 12px; }
  .al-card .al-star { top: 4px; right: 4px; width: 44px; height: 44px; }
  .al-card .al-done { top: 4px; right: 50px; width: 44px; height: 44px; }
  .al-card-time { font-size: 22px; }
  .al-card-plate { font-size: 17px; }
  .com-appointments .al-fab { position: fixed; right: 16px; bottom: 78px; z-index: 50; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border: 0; border-radius: 16px; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 50, 43, .35); }
  .al-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 62px; border-top: 1px solid var(--line); background: #fff; }
  .com-appointments .al-tabbar { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; border: 0; background: none; color: #44403c; font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; }
  .com-appointments .al-tabbar.is-active { color: var(--red); font-weight: 800; }
  .al-tabbar b { font-weight: 800; }
  .al-more { position: fixed; right: 8px; bottom: 70px; z-index: 70; display: block; min-width: 220px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(28, 27, 26, .25); }
  .al-more-item { display: block; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; }
  .al-panel { position: fixed; inset: 0; z-index: 800; width: 100%; max-width: none; height: auto; border-left: 0; }
  .al-panel-head { padding: 10px 12px; }
  .al-panel-title b { font-size: 20px; }
  .com-appointments .al-steps { display: none; }
  .com-appointments .al-head-status { display: block; flex: none; width: 124px; height: 40px; font-size: 13px; }
  .al-panel-body { padding: 2px 16px 12px; }
  .al-panel-foot { padding: 10px 16px; }
  .al-panel-foot .al-btn { height: 44px; }
  .com-appointments #al-delete { flex: none; width: 44px; padding: 0; font-size: 0; gap: 0; }
  .com-appointments .al-call { height: 44px; padding: 0 14px; font-size: 14px; }
  .com-appointments .al-input { height: 44px; font-size: 16px; }
  .al-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-grid-3 .al-field:last-child { grid-column: 1 / -1; }
  .com-appointments .al-pick { height: 40px; }
  .al-del { width: 44px; height: 44px; }
  .com-appointments .al-photo-del { width: 32px; height: 32px; }
  .al-limits { padding: 16px; }
  .al-toast { bottom: 74px; }
}

/* installed app: sign-in, start screen, device list */
.al-login, .al-boot { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--soft); }
.al-boot { background: #fff; }
.al-login { align-items: flex-start; overflow-y: auto; }
.al-login-box { margin: auto; }
.al-register-box { max-width: 440px; }
.al-login-switch { color: var(--muted); font-size: 14px; text-align: center; }
.al-login-switch a { color: var(--red); font-weight: 600; }
.al-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-team .al-santa-title { margin: 24px 0 10px; }
.al-team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.al-team-actions .al-input { width: auto; min-width: 150px; }
.al-team-actions .al-btn { white-space: nowrap; }
.al-team tr.is-blocked td:not(:last-child) { opacity: .55; }
.al-team .al-tag { margin: 0 0 0 6px; font-weight: 600; vertical-align: 1px; }
.al-team .al-tag.is-danger { border-color: var(--danger); color: var(--danger); }
.al-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.al-member { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.al-member-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.al-member-body .al-form-error { margin: 0; }
.al-member-body p { margin: 0; }
.al-member-body .al-limits-actions { margin: 4px 0 0; }
.al-member-section { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.al-boot .al-brand-mark { width: 56px; height: 56px; font-size: 26px; }
.al-login-box { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 360px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.al-login-box h1 { font-size: 20px; }
.al-login-box p { margin: 0; }
.al-login-box .al-brand { padding: 0; }
.al-login-box .al-input { font-size: 16px; }
.al-login-box .al-btn { justify-content: center; width: 100%; height: 44px; }
.al-devices { width: min(520px, calc(100vw - 32px)); max-height: 80vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.al-devices::backdrop { background: rgba(28, 27, 26, .35); }
.al-devices-list { margin: 0; padding: 0 16px 16px; list-style: none; }
.al-device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.al-device:first-child { border-top: 0; }
.com-appointments[hidden] { display: none !important; }

/* Phone edges: status bar, notch and home indicator. The insets are zero everywhere else. */
.al-page { --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); }
.al-app::before { content: ""; position: fixed; top: 0; right: 0; left: 0; z-index: 40; height: var(--sat); background: #fff; pointer-events: none; }
.al-main { padding-right: var(--sar); }
.al-side { padding-top: calc(18px + var(--sat)); padding-bottom: calc(12px + var(--sab)); padding-left: calc(12px + var(--sal)); }
.al-top { padding-top: calc(12px + var(--sat)); }
.al-panel-head { padding-top: calc(14px + var(--sat)); padding-right: calc(16px + var(--sar)); }
.al-panel-foot { padding-right: calc(20px + var(--sar)); padding-bottom: calc(12px + var(--sab)); }
.al-toast { bottom: calc(20px + var(--sab)); }
.al-login, .al-boot, .al-photo-view { padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal)); }
.al-limits { padding: calc(24px + var(--sat)) calc(24px + var(--sar)) calc(24px + var(--sab)) calc(24px + var(--sal)); }
@media (max-width: 760px) {
  .al-app, .al-app.has-panel { padding-bottom: calc(62px + var(--sab)); }
  .al-main { padding-left: var(--sal); }
  .al-limits { padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal)); }
  .al-top { padding-top: calc(12px + var(--sat)); }
  .al-bottom { height: calc(62px + var(--sab)); padding: 0 var(--sar) var(--sab) var(--sal); }
  .com-appointments .al-fab { right: calc(16px + var(--sar)); bottom: calc(78px + var(--sab)); }
  .al-more { right: calc(8px + var(--sar)); bottom: calc(70px + var(--sab)); }
  .al-toast { bottom: calc(74px + var(--sab)); }
  .al-panel-head { padding: calc(10px + var(--sat)) calc(12px + var(--sar)) 10px calc(12px + var(--sal)); }
  .al-panel-foot { padding: 10px calc(16px + var(--sar)) calc(10px + var(--sab)) calc(16px + var(--sal)); }
}

/* install guide */
.al-guide { box-sizing: border-box; max-width: 620px; margin: 0 auto; padding: calc(24px + var(--sat)) calc(16px + var(--sar)) calc(32px + var(--sab)) calc(16px + var(--sal)); }
.al-guide h1 { margin: 16px 0 6px; font-size: 26px; font-weight: 800; }
.al-guide .al-brand { padding: 0; }
.al-guide-lead { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.al-guide .al-guide-main { display: flex; justify-content: center; align-items: center; width: 100%; height: 52px; margin-bottom: 16px; font-size: 16px; }
.al-guide-done p { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.al-guide-card { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.al-guide-card h2 { margin-bottom: 10px; font-size: 18px; font-weight: 800; }
.al-guide-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.al-guide-card ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.al-guide-card li + li { margin-top: 8px; }
.al-guide-other { margin-bottom: 14px; }
.al-guide-other summary { padding: 8px 0 12px; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.al-guide .al-notice { margin-bottom: 14px; }
.al-guide-browser { display: inline-block; padding: 6px 0; font-size: 14px; }
.al-side .al-install-link { margin-top: auto; color: var(--red); font-weight: 600; }
.al-side .al-install-link .al-i { color: var(--red); }
.al-side .al-install-link:not([hidden]) + .al-side-foot { margin-top: 8px; }
.al-side .al-push-nav { margin-top: auto; }
.al-side .al-push-nav.is-on .al-i { color: var(--red); }
.al-side .al-push-nav:not([hidden]) + .al-install-link { margin-top: 0; }
.al-side .al-push-nav:not([hidden]) + .al-install-link[hidden] + .al-side-foot { margin-top: 8px; }
.al-more .al-install-link { color: var(--red); }
.al-login-box .al-login-install { display: flex; align-items: center; border-color: var(--red); color: var(--red); font-weight: 700; }

/* iOS blurs the page under its status bar past the safe area, so an installed app keeps the heading lower */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (max-width: 760px) {
    .al-top { padding-top: calc(32px + var(--sat)); }
    .al-panel-head { padding-top: calc(30px + var(--sat)); }
    .al-limits, .al-guide { padding-top: calc(36px + var(--sat)); }
  }
}

/* language switcher */
.al-langs { display: flex; gap: 2px; }
.al-langs a { padding: 3px 7px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.3; }
.al-langs a:hover { background: var(--soft-2); }
.al-langs a.is-active { background: var(--ink); color: #fff; }
.al-side-foot .al-langs { padding: 2px; border-radius: 8px; background: var(--soft-2); }
.al-side-foot .al-langs a { flex: 1; padding: 4px 0; text-align: center; }
.al-side-foot .al-langs a:hover { background: none; color: var(--ink); }
.al-side-foot .al-langs a.is-active { background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.al-more-langs { padding: 8px 12px; }
.al-login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* the warning is the first thing under the status bar of an installed app */
.al-mail-alert { padding-top: calc(10px + var(--sat)); padding-right: calc(24px + var(--sar)); padding-left: calc(24px + var(--sal)); }
