.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 6px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.admin-brand img { width: 62px; height: auto; filter: drop-shadow(0 0 16px rgba(255,200,70,.6)) drop-shadow(0 0 3px rgba(255,236,160,.6)); }
.admin-brand > span { display: grid; }
.callig-sm { font: 400 2.3rem/1 var(--font-callig); }
.admin-brand .sub { color: var(--gold-hi); font-size: 1rem; }
.who { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); font-weight: 700; }
.btn-small, .who button { min-height: 40px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.admin { padding-bottom: 20px; }
.gate { max-width: 440px; margin: 26px auto; }
.who-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.pick { margin: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px solid var(--line); border-radius: 16px; font: 400 1.6rem/1 var(--font-graffiti); text-transform: uppercase; color: var(--gold-hi); background: #140f08; cursor: pointer; }
.pick input:checked + span { background: var(--btn); color: var(--ink); border-color: #ffe7a0; box-shadow: 0 0 22px rgba(217,180,74,.35); }
.pick input:focus-visible + span { outline: 3px solid #ffe08a; outline-offset: 3px; }
#pin { font-size: 1.8rem; letter-spacing: .5em; text-align: center; }
.wide { width: 100%; margin-top: 16px; min-height: 58px; font-size: 1.15rem; }
.share-bar { display: grid; gap: 10px; margin: 10px 0 16px; padding: 16px; }
.share-title { margin: 0; color: var(--gold); font-size: 1.3rem; }
.share-url { margin: 2px 0 0; font-weight: 700; word-break: break-all; color: var(--gold-hi); }
.share-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.share-bar .status { margin: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.tabs button { min-height: 48px; padding: 8px 6px; font-size: .95rem; }
.tabs button[aria-selected="true"], .view-toggle button[aria-pressed="true"] { background: var(--btn); color: var(--ink); border-color: #ffe7a0; }
.small-tabs { grid-template-columns: repeat(4, 1fr); }
.small-tabs button { font-size: .85rem; }
@media (min-width: 760px) { .tabs { grid-template-columns: repeat(6, 1fr); } .small-tabs { grid-template-columns: repeat(4, 1fr); max-width: 640px; } .share-bar { grid-template-columns: 1fr auto; align-items: center; } .share-bar .status { grid-column: 1 / -1; } }
.day-nav { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px auto; gap: 6px; }
.day-nav input { min-width: 0; }
.day-nav button { padding: 8px; font-size: 1.3rem; }
.day-nav #day-today { font-size: .95rem; padding: 8px 12px; }
.view-toggle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.view-toggle button { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; color: var(--muted); }
label.inline input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--gold); }
.day-summary { font: 400 1.4rem/1.2 var(--font-graffiti); text-transform: uppercase; color: var(--gold-hi); margin: 6px 0 10px; }
.day-head { font: 400 1.3rem/1.2 var(--font-graffiti); text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.appt { border: 2px solid var(--line-soft); border-left: 6px solid var(--gold); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); display: grid; gap: 6px; }
.appt.st-cancelled { opacity: .55; border-left-color: #7a3b30; }
.appt.st-completed { border-left-color: #6f9a4d; }
.appt.st-arrived { border-left-color: #f6e08f; }
.appt.st-no-show { border-left-color: #a35a3a; }
.appt-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.appt-time { font: 400 1.6rem/1 var(--font-graffiti); color: var(--gold-hi); }
.appt-what { font-weight: 750; }
.appt-who { font-size: 1.1rem; font-weight: 700; }
.appt-meta { color: var(--muted); font-size: .85rem; }
.appt-note { color: var(--gold-hi); font-style: italic; margin: 0; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.appt-actions a, .appt-actions button, .appt-actions select { min-height: 42px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; width: auto; }
.appt-actions select { min-width: 150px; }
.empty-note { color: var(--muted); padding: 16px; border: 1px dashed var(--line-soft); border-radius: 14px; text-align: center; }
.sub-title { font: 400 1.25rem/1.2 var(--font-graffiti); text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.block-row, .menu-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.block-row span { flex: 1; }
.menu-cat { border: 2px solid var(--line-soft); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; }
.menu-cat-head { display: flex; gap: 8px; align-items: center; }
.menu-cat-head input { font-weight: 800; color: var(--gold-hi); }
.menu-row input.m-name { flex: 3; }
.menu-row input.m-price { flex: 1; min-width: 80px; }
.menu-row button, .menu-cat-head button, .block-row button { min-height: 44px; padding: 6px 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.danger { color: var(--danger) !important; border-color: #8a3b2b !important; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
@media (min-width: 760px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } .stat-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
.stat { border: 2px solid var(--line); border-radius: 18px; padding: 16px 8px; text-align: center; background: linear-gradient(180deg, rgba(217,180,74,.16), rgba(217,180,74,.03)); box-shadow: 0 0 26px rgba(217,180,74,.12); }
.stat-num { display: block; font: 400 2.8rem/1.05 var(--font-callig); }
.stat-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat-tables .panel { padding: 14px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--gold-hi); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
td.num, th.num { text-align: right; font-weight: 800; }
.small { font-size: .85rem; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone-frame { margin: 10px auto; width: min(100%, 420px); height: 820px; border: 3px solid var(--line); border-radius: 36px; overflow: hidden; box-shadow: 0 0 40px rgba(217,180,74,.2); background: #000; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog { max-width: 520px; width: calc(100% - 24px); color: var(--text); max-height: 90vh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.75); }

/* ---------- locations ---------- */
.loc-panel { padding: 14px; margin-top: 12px; }
.loc-map { height: 360px; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #111; margin: 10px 0 6px; box-shadow: 0 0 22px rgba(217,180,74,.15); }
@media (min-width: 760px) { .loc-map { height: 460px; } }
.loc-map .leaflet-container { background: #0b0907; font: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #16120c; color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 12px 14px; font-size: .9rem; line-height: 1.45; }
.leaflet-container a.leaflet-popup-close-button { color: var(--gold); }
.leaflet-container .leaflet-control-attribution { background: rgba(11,9,7,.8); color: var(--muted); font-size: 10px; }
.leaflet-container .leaflet-control-attribution a { color: var(--gold); }
.leaflet-bar a { background: #16120c; color: var(--gold); border-bottom-color: var(--line-soft); }
.loc-pin { display: grid; place-items: center; border-radius: 50%; color: var(--ink); font: 800 13px/1 var(--font-ui); background: radial-gradient(circle at 35% 30%, #fff3b8, #e2b73f 55%, #9b6c12); border: 2px solid #fff3b8; box-shadow: 0 0 14px 4px rgba(217,180,74,.55); }
.loc-pop h4 { margin: 0 0 4px; font: 400 1.25rem/1.1 var(--font-callig); color: var(--gold-hi); }
.loc-pop dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 6px 0 8px; }
.loc-pop dt { color: var(--muted); } .loc-pop dd { margin: 0; font-weight: 800; text-align: right; }
.loc-pop a { color: var(--gold-hi); font-weight: 700; }
.loc-table th button { all: unset; cursor: pointer; font-weight: 800; color: inherit; padding: 6px 0; }
.loc-table th button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.loc-table td a { color: var(--gold-hi); font-weight: 700; }
.loc-table .nopin { color: var(--muted); font-style: italic; }

.osm-dark { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.45) sepia(.25); }

/* Phone alerts panel */
.alerts-panel { display: grid; gap: 10px; margin: 0 0 16px; padding: 16px; }
.alerts-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; font: 800 .85rem/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--line-soft); background: #1a140a; color: var(--muted); }
.pill-on { background: var(--btn); color: var(--ink); border-color: #fff2b0; box-shadow: 0 0 16px rgba(255,200,70,.6); }
.pill-blocked { background: #331a14; color: var(--danger); border-color: #8a3b2b; }
.check-row { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-weight: 700; color: var(--gold-hi); }
.check-row input { width: 26px; height: 26px; min-height: 0; padding: 0; accent-color: #e6bd4c; flex: none; }
.alerts-panel .status { margin: 0; }
.alerts-panel details summary { cursor: pointer; font-weight: 800; color: var(--gold-hi); min-height: 44px; display: flex; align-items: center; }
.help-steps { margin: 6px 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.45; }
.alerts-panel #push-off { justify-self: start; }

/* ---------- accordion backend ---------- */
.admin { padding-bottom: 72px; }
.admin-head { padding-top: 8px; padding-bottom: 4px; }
.jump-bar { position: sticky; top: 0; z-index: 45; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-padding-inline: 12px; padding: 8px 2px 10px; margin: 0 -4px 12px; background: linear-gradient(180deg, #0c0a07 72%, rgba(12, 10, 7, .94)); border-bottom: 2px solid var(--line-soft); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.jump-bar::-webkit-scrollbar { display: none; }
.jump-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line-soft); background: #14100a; color: var(--gold-hi); text-decoration: none; font: 800 .78rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.jump-chip.on { background: var(--btn); color: var(--ink); border-color: #fff2b0; box-shadow: 0 0 12px rgba(255,200,70,.45); }
.acc-list { display: grid; gap: 10px; }
.acc { border: 3px solid transparent; border-radius: 20px; background: linear-gradient(#15110a, #13100a) padding-box, var(--foil-edge) border-box; box-shadow: inset 0 0 0 1px rgba(255,236,160,.1), 0 8px 24px rgba(0,0,0,.35); overflow: hidden; scroll-margin-top: 64px; }
.acc-h { margin: 0; font: inherit; }
button.acc-head, .acc-head { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 22px; gap: 10px; align-items: center; min-height: 56px; padding: 8px 14px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-shadow: none; color: var(--gold-hi); text-align: left; cursor: pointer; }
.acc-icon { width: 22px; height: 22px; color: var(--gold); }
.acc-meta { display: grid; gap: 2px; min-width: 0; }
.acc-title { font: 400 1.2rem/1.1 var(--font-graffiti); text-transform: uppercase; letter-spacing: .04em; color: var(--gold-hi); }
.acc-sum { font: 650 .75rem/1.2 var(--font-ui); color: var(--muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sum:empty { display: none; }
.acc-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 26px; padding: 2px 8px; border-radius: 999px; background: #1a140a; border: 2px solid var(--line); color: var(--gold-hi); font: 800 .75rem/1 var(--font-ui); }
.acc-badge[hidden] { display: none !important; }
.acc-chevron { width: 20px; height: 20px; color: var(--gold); transition: transform .2s ease; }
.acc.open { box-shadow: inset 0 0 0 1px rgba(255,236,160,.16), 0 10px 28px rgba(0,0,0,.45), 0 0 22px rgba(240,190,70,.12); }
.acc.open .acc-chevron { transform: rotate(180deg); }
.acc-body { display: none; padding: 2px 14px 16px; }
.acc.open .acc-body { display: block; }
@media (prefers-reduced-motion: reduce) { .acc-chevron { transition: none; } }
@media (hover: hover) and (pointer: fine) {
  button.acc-head:hover, .jump-chip:hover { filter: brightness(1.12); }
}
.inner-panel { border: 2px solid var(--line-soft); border-radius: 16px; padding: 12px; margin: 0 0 10px; background: rgba(0,0,0,.2); }
.to-top { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
.phone-frame { height: min(68vh, 640px); }
.alerts-panel.acc { } /* keep hook for existing alert styles */
.alerts-panel .acc-body { display: none; }
.alerts-panel.open .acc-body { display: grid; gap: 10px; }
.share-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin: 6px 0; }
.share-url { margin: 0 0 8px; font-weight: 700; word-break: break-all; color: var(--gold-hi); }
@media (min-width: 760px) {
  .share-actions { grid-template-columns: 2fr 1fr; max-width: 560px; }
  .acc-title { font-size: 1.35rem; }
}

@media (max-width: 430px) {
  .day-nav { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .day-nav #day-today { grid-column: 1 / -1; }
}
