/* Elite+ CRM — same brand system as the website: navy #073251, orange #F59345, sand, cream; Outfit/Questrial; Tajawal for Arabic. */
@font-face { font-family: "Outfit"; src: url(fonts/outfit-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url(fonts/outfit-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Questrial"; src: url(fonts/questrial-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Questrial"; src: url(fonts/questrial-latin-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tajawal"; src: url(fonts/tajawal-400-arabic.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url(fonts/tajawal-700-arabic.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; src: url(fonts/tajawal-800-arabic.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --navy: #073251; --navy-2: #0c4268; --orange: #F59345; --orange-deep: #F1592A; --orange-text: #B4480F; --sand: #F5BE6E;
  --cream: #FEFCFC; --bg: #F6F4F1; --surface: #fff; --surface-2: #F7F7F7; --line: #E6E9EC; --text: #073251; --muted: #5C6B75;
  --s-partial: #9AA6B0; --s-new: #2F74D0; --s-contacted: #7C5CD6; --s-qualified: #C98410; --s-booked: #0E9F6E; --s-lost: #8A97A3; --s-spam: #B8C1C9;
  --good: #0E8A5F; --warn: #B7700A; --bad: #D23B3B; --wa: #1FA855;
  --f-head: "Outfit", system-ui, sans-serif; --f-body: "Questrial", system-ui, sans-serif;
  --radius: 20px; --radius-sm: 14px; --shadow: 0 8px 30px rgba(7, 50, 81, .07); --shadow-lg: 0 18px 50px rgba(7, 50, 81, .16);
  --hdr: 64px;
  color-scheme: light;
}
[lang="ar"] { --f-head: "Tajawal", "Outfit", system-ui, sans-serif; --f-body: "Tajawal", "Questrial", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[lang="ar"] body { font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--orange-text); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.boot { min-height: 100vh; display: grid; place-items: center; background: var(--navy); }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- buttons (website style: pills) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 42px; padding: .55em 1.25em; border-radius: 999px; border: 2px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 147, 69, .3); }
.btn--primary:hover { background: #F7A05A; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn--sm { min-height: 34px; padding: .35em .95em; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .i { width: 1.1em; height: 1.1em; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--orange-text); font-weight: 700; text-decoration: underline; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 80% at 100% 0%, var(--navy-2) 0%, var(--navy) 55%); }
.auth__card { width: min(420px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px 28px; }
.auth__logo { display: block; height: 54px; margin: 0 auto 18px; }
.auth__card h1 { font-size: 1.5rem; text-align: center; }
.auth__card .sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.auth__lang { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); font-weight: 700; }
.auth__err { background: color-mix(in srgb, var(--bad) 9%, #fff); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 12px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .k { font-size: .82rem; font-weight: 700; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.textarea { min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(7, 50, 81, .12); }
.hint { font-size: .8rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgba(7, 50, 81, .22); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: var(--hdr); padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.hdr__logo { height: 34px; width: auto; flex: none; }
.hdr__tag { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); border-inline-start: 1px solid rgba(255, 255, 255, .25); padding-inline-start: 12px; white-space: nowrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; background: none; border: 0; color: rgba(255, 255, 255, .78); font-family: var(--f-head); font-weight: 700; font-size: .92rem; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tab[aria-current="page"] { color: var(--navy); background: var(--orange); }
.tab .badge { position: absolute; top: 0; inset-inline-end: 0; background: var(--orange-deep); color: #fff; font-size: .64rem; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.tab[aria-current="page"] .badge { background: var(--navy); }
.hdr__right { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr__lang { min-width: 40px; height: 36px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-family: var(--f-head); font-weight: 800; font-size: .85rem; padding: 0 10px; }
.hdr__lang:hover { background: rgba(255, 255, 255, .12); }
.user { position: relative; }
.user__btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; padding: 0 12px 0 4px; font-weight: 700; font-size: .88rem; }
[dir="rtl"] .user__btn { padding: 0 4px 0 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--navy); display: inline-grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: .72rem; flex: none; }
.user__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: #fff; color: var(--navy); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.user__menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .85rem; }
.user__menu .who b { display: block; font-size: .95rem; }
.user__menu button { display: block; width: 100%; text-align: start; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.user__menu button:hover { background: var(--surface-2); }
@media (max-width: 860px) { .hdr__tag { display: none; } .user__btn .nm { display: none; } .user__btn { padding: 0 4px; } }
@media (max-width: 680px) {
  .hdr__in { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .tabs { order: 3; flex-basis: 100%; }
  .hdr__right { margin-inline-start: auto; }
}

/* ---------- layout ---------- */
.main { max-width: 1440px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.vhead h2 { font-size: 1.55rem; }
.vhead p { margin: 4px 0 0; color: var(--muted); }
.vhead__tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-height: 40px; }
.toolbar .search { min-width: min(280px, 100%); flex: 1 1 220px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.panel h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h3 .ct { margin-inline-start: auto; font-size: .8rem; color: var(--muted); font-weight: 700; }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.mt { margin-top: 16px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--orange); }
.kpi--alert { border-top-color: var(--bad); background: color-mix(in srgb, var(--bad) 5%, #fff); }
.kpi .lab { font-size: .8rem; font-weight: 700; color: var(--muted); }
.kpi .num { font-family: var(--f-head); font-weight: 800; font-size: 1.85rem; margin-top: 4px; letter-spacing: -.02em; }
.kpi--alert .num { color: var(--bad); }
.kpi .sub { font-size: .78rem; color: var(--muted); }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); background: none; border-inline: 0; border-top: 0; width: 100%; text-align: start; }
button.li:hover { background: var(--surface-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.li .s { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); font-size: .92rem; padding: 14px 0; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: #fff; white-space: nowrap; background: var(--c, var(--muted)); }
.sla { font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sla--ok { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good); }
.sla--due { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.sla--over { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c, var(--muted)); }

/* ---------- funnel / bars ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(96px, 30%) 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .lbl { font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 7px; min-width: 0; }
.bar .track { display: block; height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--orange)); min-width: 2px; }
.bar .v { font-weight: 800; text-align: end; }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #EFECE8; border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.col__h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-family: var(--f-head); font-weight: 800; }
.col__h .ct { margin-inline-start: auto; background: #fff; border-radius: 999px; font-size: .76rem; padding: 1px 9px; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { display: block; width: 100%; text-align: start; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--c, var(--line)); border-radius: 12px; padding: 11px 12px; box-shadow: 0 2px 6px rgba(7, 50, 81, .05); }
.card:hover { border-color: var(--orange); border-inline-start-color: var(--c, var(--orange)); }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card .nm { font-weight: 800; font-family: var(--f-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .sv { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.card .meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card .own { margin-inline-start: auto; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .9rem; }
th { text-align: start; font-size: .76rem; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAF8; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-lead], tbody tr[data-camp], tbody tr[data-staff] { cursor: pointer; }
tbody tr[data-lead]:hover, tbody tr[data-camp]:hover, tbody tr[data-staff]:hover { background: #FBFAF8; }
.num-cell { text-align: end; font-variant-numeric: tabular-nums; }
.good { color: var(--good); font-weight: 800; }
.bad { color: var(--bad); font-weight: 800; }

/* ---------- drawer (lead file) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(7, 50, 81, .45); z-index: 50; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100vw); background: var(--cream); z-index: 51; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none; }
.dr__h { background: var(--navy); color: #fff; padding: max(16px, env(safe-area-inset-top)) 18px 16px; }
.dr__top { display: flex; align-items: flex-start; gap: 10px; }
.dr__nm { font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; }
.dr__sub { opacity: .85; font-size: .9rem; margin-top: 2px; }
.dr__x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; flex: none; }
.dr__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dr__actions .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.dr__actions .btn--outline:hover { background: #fff; color: var(--navy); }
.dr__b { overflow-y: auto; padding: 16px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.stages { display: flex; gap: 4px; flex-wrap: wrap; }
.stage { font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.stage[aria-current="step"] { background: var(--c); color: #fff; border-color: transparent; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.dl .k { font-size: .76rem; color: var(--muted); font-weight: 700; }
.dl .v { font-weight: 700; overflow-wrap: anywhere; }
.sec-t { font-family: var(--f-head); font-weight: 800; font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.answers { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; }
.answers dt { color: var(--muted); font-weight: 700; }
.answers dd { margin: 0; font-weight: 700; }
.tl { display: flex; flex-direction: column; gap: 10px; }
.ev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; border-inline-start: 4px solid var(--c, var(--line)); }
.ev .h { display: flex; gap: 8px; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.ev .h b { color: var(--navy); }
.ev .b { white-space: pre-wrap; overflow-wrap: anywhere; }
.noteform { display: flex; gap: 8px; align-items: flex-end; }
.noteform .textarea { min-height: 52px; }
.appt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 100%; text-align: start; }
.appt-row:hover { border-color: var(--orange); }
.appt-row + .appt-row { margin-top: 8px; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(7, 50, 81, .5); }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal__h { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: flex-start; gap: 10px; }
.modal__h h2 { font-size: 1.2rem; }
.modal__h p { margin: 3px 0 0; opacity: .85; font-size: .88rem; }
.modal__b { padding: 18px 20px; }
.modal__f { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--cream); }
.modal__f .spacer { margin-inline-end: auto; }
.form-err { color: var(--bad); font-weight: 700; font-size: .9rem; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.seg button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: start; font-weight: 800; font-family: var(--f-head); display: flex; align-items: center; gap: 8px; }
.seg button:hover { border-color: var(--c, var(--navy)); }
.seg button[aria-pressed="true"] { border-color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 10%, #fff); }
.seg-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 14px; min-height: 1.2em; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; font-weight: 800; }
.slot small { display: block; font-weight: 700; font-size: .72rem; color: var(--good); }
.slot[disabled] { opacity: .45; background: var(--surface-2); cursor: not-allowed; }
.slot[disabled] small { color: var(--bad); }
.slot[aria-pressed="true"] { border-color: var(--s-booked); background: color-mix(in srgb, var(--s-booked) 12%, #fff); }
.temp-pw { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; background: #fff; border: 2px dashed var(--orange); border-radius: 12px; padding: 14px; text-align: center; direction: ltr; user-select: all; }

/* ---------- calendar ---------- */
.cal-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-title { font-family: var(--f-head); font-weight: 800; }
.cal { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cal table { min-width: 900px; table-layout: fixed; }
.cal th { text-align: center; background: #FBFAF8; }
.cal th.today { color: var(--navy); background: color-mix(in srgb, var(--orange) 18%, #fff); }
.cal th button { background: none; border: 0; font: inherit; color: inherit; font-weight: 800; width: 100%; }
.cal td { height: 54px; padding: 4px; border-inline-start: 1px solid var(--line); vertical-align: top; }
.cal td.time { width: 64px; text-align: center; font-weight: 800; color: var(--muted); font-size: .82rem; vertical-align: middle; border-inline-start: 0; }
.cal td.closed { background: repeating-linear-gradient(135deg, #F4F2EF, #F4F2EF 6px, #EEEBE7 6px, #EEEBE7 12px); }
.cal td.past { background: #F6F4F1; }
.cal td.free { background: color-mix(in srgb, var(--good) 6%, #fff); }
.cal td.partly { background: color-mix(in srgb, var(--warn) 9%, #fff); }
.cal td.full { background: color-mix(in srgb, var(--bad) 8%, #fff); }
.cal td.sel-day { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--orange) 45%, transparent); }
.cal .cap { display: block; font-size: .68rem; font-weight: 800; color: var(--muted); }
.ap { display: block; width: 100%; text-align: start; border: 0; border-radius: 8px; padding: 3px 7px; font-size: .74rem; font-weight: 800; color: #fff; background: var(--c, var(--s-booked)); margin-bottom: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.agenda .li .time { font-family: var(--f-head); font-weight: 800; min-width: 104px; }

/* ---------- inbox placeholder ---------- */
.soon { text-align: center; padding: 40px 20px; }
.soon__icon { width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--orange) 18%, #fff); color: var(--orange-text); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.8rem; }
.soon p { max-width: 640px; margin: 10px auto 18px; color: var(--muted); }
.steps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.steps span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .88rem; }

/* ---------- settings ---------- */
.hours { width: 100%; min-width: 0; }
.hours td, .hours th { padding: 6px 8px; }
.hours .input { min-height: 38px; padding: 6px 8px; }

/* ---------- toast / lightbox ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: var(--bad); }
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(4, 22, 36, .94); display: grid; place-items: center; padding: 56px 16px 24px; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.lb__fig img { max-width: min(100%, 1100px); max-height: 78vh; border-radius: 12px; object-fit: contain; background: #0b2233; }
.lb__fig figcaption { color: #fff; font-size: .92rem; text-align: center; }
.lb__btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lb__btn:hover { background: rgba(255, 255, 255, .28); }
.lb__x { top: 14px; inset-inline-end: 14px; font-size: 1.1rem; }
.lb__prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
.lb__del { position: absolute; bottom: 16px; inset-inline-end: 16px; background: #fff; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(1300px, 100%); }
.cmp .lb__fig img { max-height: 80vh; width: 100%; }
@media (max-width: 700px) { .cmp { grid-template-columns: 1fr; } .cmp .lb__fig img { max-height: 40vh; } }

/* ---------- photos ---------- */
.notice { background: color-mix(in srgb, var(--sand) 25%, #fff); border: 1px solid color-mix(in srgb, var(--sand) 70%, #fff); color: var(--navy); border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin: 0; }
.sec-t__act { margin-inline-start: auto; display: inline-flex; gap: 6px; }
.photo { position: relative; }
.ph-tag { position: absolute; inset-inline-start: 6px; bottom: 6px; background: rgba(7, 50, 81, .82); color: #fff; font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; max-width: calc(100% - 12px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; text-align: start; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.pcard:hover { border-color: var(--orange); }
.pcard__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__none { font-size: 2rem; opacity: .4; }
.pcard__b { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; font-size: .88rem; }
.pcard__b b { font-family: var(--f-head); font-size: .98rem; }
.pcard__chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.linklike { background: none; border: 0; padding: 0; text-align: start; min-width: 0; }
.modal--wide { width: min(1040px, 100%); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: .84rem; }
.fchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ggroup + .ggroup { margin-top: 18px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gitem { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; text-align: start; box-shadow: 0 2px 8px rgba(7, 50, 81, .08); }
.gitem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.gitem.picked { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 147, 69, .35); }
.gcap { display: block; padding: 6px 8px; font-size: .76rem; color: var(--muted); }
.gcap b { color: var(--navy); }
.upprev { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- print: only the day's schedule ---------- */
@media print {
  body { background: #fff; }
  .hdr, .no-print, .toolbar, .vhead__tools, .cal, .legend, #modal-root, .toast { display: none !important; }
  .main { padding: 0; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* Excel import */
.imp-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.imp-map .field { margin-bottom: 10px; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.imp-sum .chip.good { color: var(--good); } .imp-sum .chip.bad, .imp-t .bad { color: var(--bad); }
.imp-t td, .imp-t th { padding: 6px 10px; font-size: 13px; }
.imp-t tr.imp-bad td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.imp-note { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-done { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 12px; }
.imp-done .big { font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1; }
@media (max-width: 720px) { .imp-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
