:root {
	--navy: #0b1a2d;
	--navy-2: #102438;
	--card: #142c45;
	--card-2: #1a3654;
	--line: rgba(255, 255, 255, .08);
	--text: #f2f6fa;
	--muted: #9fb3c6;
	--teal: #4aafc9;
	--teal-2: #1683a0;
	--teal-3: #0a4263;
	--gold: #c8a55a;
	--red: #e5534b;
	--r: 18px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
	--font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--font); font-size: 16px; }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: contain; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
[hidden] { display: none !important; }
svg { flex: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.splash-logo { width: 84px; height: 84px; background: url("icons/icon-192.png") center / contain no-repeat; animation: pulse 1.6s ease-in-out infinite; }
.splash-name { color: var(--muted); font-size: 15px; letter-spacing: .3px; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }
.shell { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(84px + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(11, 26, 45, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .logo { width: 36px; height: 36px; flex: none; background: url("icons/icon-192.png") center / contain no-repeat; }
.top h1 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .tt { flex: 1; min-width: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-2); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--text); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.view { padding: 14px 16px 8px; }
.offline { margin: 12px 16px 0; padding: 10px 14px; border-radius: 12px; background: rgba(200, 165, 90, .12); color: var(--gold); font-size: 13.5px; border: 1px solid rgba(200, 165, 90, .3); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(11, 26, 45, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { position: relative; border: 0; background: none; padding: 10px 2px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--teal); }
.tab.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--teal); }
.badge { position: absolute; top: 5px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge.gold { background: var(--gold); color: var(--navy); }
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 18px 16px; background: radial-gradient(120% 90% at 85% 0%, rgba(74, 175, 201, .32), transparent 60%), linear-gradient(160deg, #123150, #0c2036); border: 1px solid rgba(74, 175, 201, .25); }
.hero-state { font-size: 13px; color: var(--muted); }
.hero-title { font-size: 23px; font-weight: 800; margin: 2px 0 4px; line-height: 1.3; }
.hero-sub { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.hero .row-btns { margin-top: 14px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px; font-size: 15px; font-weight: 800; }
.sec-title a, .sec-title button { font-size: 13px; font-weight: 600; color: var(--teal); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.num { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; cursor: pointer; color: var(--text); text-decoration: none; }
.num b { display: block; font-size: 23px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.num span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: var(--text); }
.li:last-child { border-bottom: 0; }
.li:active { background: rgba(255, 255, 255, .03); }
.li .bd { flex: 1; min-width: 0; }
.li .tt { font-weight: 700; font-size: 14.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub.wrap { white-space: normal; }
.li time, .li .end { color: var(--muted); font-size: 12px; flex: none; text-align: left; }
.chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.li.unread .tt { color: #fff; }
.li.unread .sub { color: #d7e3ee; font-weight: 600; }
.ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(74, 175, 201, .14); color: var(--teal); }
.ic.gold { background: rgba(200, 165, 90, .16); color: var(--gold); }
.ic.red { background: rgba(229, 83, 75, .16); color: var(--red); }
.ic svg { width: 20px; height: 20px; }
.av { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(145deg, var(--teal-2), var(--teal-3)); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.cnt.gold { background: var(--gold); color: var(--navy); }
.tm { width: 54px; flex: none; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; direction: ltr; }
.tm small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; direction: rtl; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(74, 175, 201, .14); color: var(--teal); white-space: nowrap; }
.pill.gold { background: rgba(200, 165, 90, .16); color: var(--gold); }
.pill.red { background: rgba(229, 83, 75, .16); color: #ff9c95; }
.pill.mute { background: rgba(255, 255, 255, .07); color: var(--muted); }
.issues { display: flex; flex-direction: column; gap: 10px; }
.issue { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r); background: var(--card); border: 1px solid rgba(200, 165, 90, .35); cursor: pointer; }
.issue.red { border-color: rgba(229, 83, 75, .45); background: linear-gradient(135deg, rgba(229, 83, 75, .12), var(--card)); }
.issue.teal { border-color: rgba(74, 175, 201, .35); }
.issue .bd { flex: 1; min-width: 0; }
.issue .tt { font-weight: 800; font-size: 14.5px; line-height: 1.45; }
.issue .tx { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
.req { position: relative; padding: 14px; margin-bottom: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.req::before { content: ""; position: absolute; inset-block: 0; right: 0; width: 4px; background: var(--gold); }
.req.teal::before { background: var(--teal); }
.req.mute::before { background: rgba(255, 255, 255, .15); }
.req-h { display: flex; align-items: center; gap: 10px; }
.req-h .bd { flex: 1; min-width: 0; }
.req-h .tt { font-weight: 800; font-size: 15px; line-height: 1.4; }
.req-h .sub { color: var(--muted); font-size: 12.5px; }
.req-body { margin-top: 10px; font-size: 13.5px; color: #c9d6e2; line-height: 1.7; }
.slot { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; }
.slot .bd { flex: 1; min-width: 0; font-size: 14px; }
.slot .bd small { display: block; color: var(--muted); font-size: 12px; }
.swap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.swap s { color: var(--muted); }
.swap svg { width: 16px; height: 16px; color: var(--gold); transform: scaleX(-1); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 14px; border: 0; background: var(--teal-2); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; position: relative; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.soft { background: rgba(74, 175, 201, .14); color: var(--teal); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 11px; }
.btn svg { width: 18px; height: 18px; }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .85); border-top-color: transparent; animation: spin .8s linear infinite; }
.btn.gold.busy::after { border-color: var(--navy); border-top-color: transparent; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--navy-2); color: var(--muted); font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--teal-3); border-color: var(--teal-2); color: #fff; }
.chip b { font-weight: 800; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; margin: 14px 0; }
.seg button { border: 0; background: none; padding: 9px 4px; border-radius: 10px; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.seg button.on { background: var(--card-2); color: var(--text); }
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .field { padding-right: 42px; }
.field { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-2); color: var(--text); font-size: 16px; outline: none; }
.field:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(22, 131, 160, .25); }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.6; }
.lbl-f { display: block; font-size: 13px; color: var(--muted); margin: 12px 2px 6px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="date"].field, input[type="time"].field { direction: ltr; text-align: right; min-height: 46px; }
.err-t { color: #ffb4ae; background: rgba(229, 83, 75, .14); border: 1px solid rgba(229, 83, 75, .35); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
.group { margin-bottom: 18px; }
.group > .gt { color: var(--muted); font-size: 13px; font-weight: 700; margin: 0 6px 8px; }
.set { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set .lbl { flex: 1; font-size: 14.5px; line-height: 1.45; min-width: 0; }
.set .lbl small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.5; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: #2a4058; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--teal-2); }
.switch input:checked + span::before { transform: translateX(-20px); }
.switch input:disabled + span { opacity: .5; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); margin-bottom: 12px; background: var(--card-2); border: 1px solid rgba(74, 175, 201, .25); }
.banner > svg { width: 26px; height: 26px; flex: none; color: var(--teal); margin-top: 2px; }
.banner .t { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.banner p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.banner.gold { background: rgba(200, 165, 90, .1); border-color: rgba(200, 165, 90, .35); }
.banner.gold > svg { color: var(--gold); }
.banner.red { background: linear-gradient(135deg, rgba(229, 83, 75, .22), rgba(229, 83, 75, .08)); border-color: rgba(229, 83, 75, .45); }
.banner.red > svg { color: var(--red); }
.banner .bd { flex: 1; min-width: 0; }
.banner .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; }
.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty svg { width: 60px; height: 60px; color: var(--teal); opacity: .9; }
.empty .t { color: var(--text); font-weight: 800; font-size: 17px; margin: 12px 0 4px; }
.empty p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.skel { height: 84px; border-radius: var(--r); background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-bottom: 10px; }
.skel.sm { height: 60px; }
@keyframes sk { to { background-position: -200% 0; } }
.client-h { display: flex; gap: 14px; align-items: center; }
.client-h .bd { flex: 1; min-width: 0; }
.client-h .nm { font-size: 20px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.client-h .em { color: var(--muted); font-size: 13px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fact b { color: var(--text); font-weight: 700; }
.fact svg { width: 14px; height: 14px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--navy-2); color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.quick svg { width: 22px; height: 22px; color: var(--teal); }
.progress { height: 8px; border-radius: 4px; background: var(--navy-2); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-radius: 4px; }
.progress.gold i { background: linear-gradient(90deg, #e6c983, var(--gold)); }
.task { padding: 14px; margin-bottom: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.task-h { display: flex; gap: 10px; align-items: flex-start; }
.task-h .bd { flex: 1; min-width: 0; }
.task-h .tt { font-weight: 800; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.task-h .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.items { list-style: none; margin: 10px 0 0; padding: 0; }
.items li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; color: #c9d6e2; line-height: 1.6; overflow-wrap: anywhere; }
.items li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.items li.done { color: var(--muted); }
.items li.done svg { color: var(--teal); }
.items li.done span { text-decoration: line-through; }
.note { padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; gap: 10px; }
.note .bd { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.note time { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; height: 30px; }
.del svg { width: 18px; height: 18px; }
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.chat-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; background: rgba(11, 26, 45, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chat-top .bd { flex: 1; min-width: 0; cursor: pointer; }
.chat-top .tt { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top .sub { color: var(--muted); font-size: 12px; }
.msgs { flex: 1; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { align-self: center; margin: 10px 0 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; }
.bub { max-width: 82%; padding: 9px 12px 6px; border-radius: 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.bub.them { align-self: flex-start; background: var(--card-2); border-bottom-right-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--teal-3); border: 1px solid rgba(74, 175, 201, .3); border-bottom-left-radius: 6px; }
.bub .meta { display: flex; gap: 6px; align-items: center; justify-content: flex-end; color: rgba(242, 246, 250, .55); font-size: 11px; margin-top: 2px; direction: ltr; }
.bub .meta svg { width: 14px; height: 14px; }
.bub .meta .read { color: var(--teal); }
.bub img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; margin-bottom: 4px; cursor: zoom-in; }
.bub a { color: #9bd8ea; word-break: break-all; }
.bub.pending { opacity: .6; }
.bub.failed { border: 1px solid rgba(229, 83, 75, .6); }
.composer { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px calc(10px + var(--safe-b)); background: rgba(11, 26, 45, .97); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--navy-2); color: var(--text); font-size: 16px; line-height: 1.5; outline: none; }
.composer textarea:focus { border-color: var(--teal-2); }
.composer .icon-btn { width: 46px; height: 46px; border-radius: 23px; }
.composer .send { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.composer .send[disabled] { opacity: .45; }
.composer .send.busy svg { animation: spin .8s linear infinite; }
.att-prev { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--navy-2); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.att-prev img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.att-prev .bd { flex: 1; }
body.in-chat .tabs { display: none; }
body.in-chat .shell { padding-bottom: 0; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; }
.cal-h b { font-size: 17px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dn { text-align: center; color: var(--muted); font-size: 11.5px; padding: 4px 0; }
.cal .d { aspect-ratio: 1 / 1; border-radius: 12px; background: var(--card); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal .d.out { opacity: .3; }
.cal .d.today { border-color: var(--teal-2); color: var(--teal); }
.cal .d.sel { background: var(--teal-3); border-color: var(--teal-2); color: #fff; }
.cal .dots { display: flex; gap: 3px; height: 6px; }
.cal .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cal .dots i.g { background: var(--gold); }
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(30px + var(--safe-t)) 22px calc(30px + var(--safe-b)); max-width: 420px; margin: 0 auto; }
.login .logo { width: 104px; height: 104px; margin: 0 auto 16px; background: url("icons/icon-512.png") center / contain no-repeat; filter: drop-shadow(0 10px 30px rgba(74, 175, 201, .35)); }
.login h1 { text-align: center; margin: 0; font-size: 25px; font-weight: 800; }
.login .host { text-align: center; color: var(--muted); margin: 4px 0 28px; direction: ltr; }
.login .gbox { display: flex; justify-content: center; min-height: 48px; }
.login .err { color: #ffb4ae; background: rgba(229, 83, 75, .14); border: 1px solid rgba(229, 83, 75, .35); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; margin-top: 14px; }
.login .wait { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.login .lnote { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 28px; line-height: 1.8; }
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(3, 10, 20, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 640px; max-height: 90vh; max-height: 90dvh; overflow: auto; background: var(--navy-2); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + var(--safe-b)); border-top: 1px solid var(--line); animation: up .25s ease; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 4px auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 19px; }
.sheet p { color: var(--muted); line-height: 1.75; font-size: 14px; margin: 0 0 12px; }
.sheet .row-btns { margin-top: 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100vw - 32px)); background: #24405e; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: toastin .2s; text-align: center; line-height: 1.6; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast.bad { background: #6e2a2a; }
body.in-chat .toast { bottom: calc(86px + var(--safe-b)); }
.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 20px; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.muted { color: var(--muted); }
.mt { margin-top: 12px; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.qa { white-space: pre-line; font-size: 14px; line-height: 1.7; color: #c9d6e2; margin: 2px 0 12px; overflow-wrap: anywhere; }
.qq { font-size: 12.5px; color: var(--muted); font-weight: 700; }
@media (min-width: 700px) { .view { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.hello { display: flex; align-items: center; gap: 12px; margin: 2px 2px 14px; }
.hello .bd { flex: 1; min-width: 0; }
.hello .t { font-size: 21px; font-weight: 800; line-height: 1.3; }
.hello .s { color: var(--muted); font-size: 13px; }
.hero .when { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.hero .when .wt { font-size: 34px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero .when .wd { font-size: 18px; font-weight: 800; color: #cfe8f1; }
.hero .count { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(200, 165, 90, .16); color: var(--gold); font-size: 12.5px; font-weight: 700; }
.hero .count svg { width: 14px; height: 14px; }
.hero.gold { background: radial-gradient(120% 90% at 85% 0%, rgba(200, 165, 90, .3), transparent 60%), linear-gradient(160deg, #1d2a36, #101d2b); border-color: rgba(200, 165, 90, .35); }
.pts-big { font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: #f3dfae; }
.pts-big small { font-size: 15px; color: var(--muted); font-weight: 700; margin-right: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px 11px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.3; }
.tile svg { width: 24px; height: 24px; color: var(--teal); }
.tile.gold svg { color: var(--gold); }
.tile .cnt { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; font-size: 11px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.check-row:last-child { border-bottom: 0; }
.check-row .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.check-row .ck svg { width: 15px; height: 15px; }
.check-row.done .ck { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.check-row.done .tt { color: var(--muted); text-decoration: line-through; }
.check-row .bd { flex: 1; min-width: 0; }
.check-row .tt { font-weight: 700; font-size: 14px; }
.check-row .end { color: var(--gold); font-size: 12.5px; font-weight: 800; flex: none; }
.svc { display: block; width: 100%; text-align: right; padding: 15px; margin-bottom: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.svc:active { border-color: var(--teal-2); }
.svc-h { display: flex; gap: 12px; align-items: flex-start; }
.svc-h .bd { flex: 1; min-width: 0; }
.svc-h .tt { font-weight: 800; font-size: 15.5px; line-height: 1.45; }
.svc-h .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.6; }
.svc .price { flex: none; text-align: left; font-weight: 800; font-size: 16px; color: #f3dfae; white-space: nowrap; }
.svc .price small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.svc .facts { margin-top: 10px; }
.prod { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.prod:last-child { border-bottom: 0; }
.prod img, .prod .ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--navy-2); }
.prod .bd { flex: 1; min-width: 0; }
.prod .tt { font-weight: 700; font-size: 14px; line-height: 1.45; }
.prod .sub { color: #f3dfae; font-size: 13px; font-weight: 700; }
.cal .d { cursor: default; }
.cal .d.open { background: var(--card-2); border-color: rgba(74, 175, 201, .35); color: var(--text); cursor: pointer; }
.cal .d.full { color: var(--muted); text-decoration: line-through; }
.cal .d.off { opacity: .28; background: transparent; }
.cal .d.open::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.cal .d.sel { background: var(--teal-3); border-color: var(--teal-2); color: #fff; }
.cal .d.sel::after { background: #fff; }
.cal .blank { aspect-ratio: 1 / 1; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot-b { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; line-height: 1.25; }
.slot-b small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.slot-b.sel { background: var(--teal-3); border-color: var(--teal-2); color: #fff; }
.slot-b[disabled] { opacity: .35; cursor: default; }
.days-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.days-scroll::-webkit-scrollbar { display: none; }
.day-b { flex: none; width: 64px; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-align: center; }
.day-b b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.day-b span { display: block; color: var(--muted); font-size: 11.5px; }
.day-b.sel { background: var(--teal-3); border-color: var(--teal-2); }
.day-b.sel span { color: #cfe8f1; }
.picked { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.picked .p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid rgba(74, 175, 201, .3); font-size: 14px; }
.picked .p .n { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-3); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; flex: none; }
.picked .p .bd { flex: 1; min-width: 0; }
.summary { padding: 14px; border-radius: var(--r); background: var(--card-2); border: 1px solid rgba(74, 175, 201, .25); margin-top: 12px; }
.summary .r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.summary .r span { color: var(--muted); }
.summary .r b { text-align: left; }
.tz-note { color: var(--muted); font-size: 12px; margin: 10px 2px 0; line-height: 1.6; }
.steps-bar { display: flex; gap: 6px; margin: 0 0 14px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--navy-2); }
.steps-bar i.on { background: var(--teal); }
.appt { position: relative; padding: 14px; margin-bottom: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.appt::before { content: ""; position: absolute; inset-block: 0; right: 0; width: 4px; background: var(--teal); }
.appt.gold::before { background: var(--gold); }
.appt.red::before { background: var(--red); }
.appt.past { opacity: .75; }
.appt.past::before { background: rgba(255, 255, 255, .15); }
.appt-h { display: flex; align-items: center; gap: 12px; }
.appt-h .date { width: 56px; flex: none; text-align: center; padding: 6px 0; border-radius: 13px; background: var(--navy-2); border: 1px solid var(--line); }
.appt-h .date b { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.appt-h .date span { display: block; color: var(--muted); font-size: 11px; }
.appt-h .bd { flex: 1; min-width: 0; }
.appt-h .tt { font-weight: 800; font-size: 15px; line-height: 1.4; }
.appt-h .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.appt .note-t { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--navy-2); font-size: 13px; color: #c9d6e2; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.stars { display: flex; gap: 6px; justify-content: center; direction: rtl; margin: 6px 0 4px; }
.stars button { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .22); padding: 0; display: grid; place-items: center; }
.stars button svg { width: 38px; height: 38px; }
.stars button.on { color: var(--gold); }
.stars button.on svg { fill: currentColor; }
.stars-sm { display: inline-flex; gap: 2px; color: var(--gold); direction: rtl; vertical-align: middle; }
.stars-sm svg { width: 15px; height: 15px; fill: currentColor; }
.stars-sm .off { color: rgba(255, 255, 255, .18); }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(74, 175, 201, .08); border: 1px solid rgba(74, 175, 201, .2); font-size: 13.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.reply b { display: block; color: var(--teal); font-size: 12.5px; margin-bottom: 2px; }
.rv-text { margin-top: 8px; font-size: 14px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; color: #d7e3ee; }
.mood-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood-pick button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer; font-variant-numeric: tabular-nums; }
.mood-pick button.sel { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.chart { width: 100%; height: 170px; display: block; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--navy); stroke: var(--teal); stroke-width: 2; }
.chart .pt.last { fill: var(--gold); stroke: var(--gold); }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.steps { position: relative; padding-right: 18px; }
.steps::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 6px; width: 2px; background: var(--line); }
.step { position: relative; padding: 0 12px 16px 0; }
.step::before { content: ""; position: absolute; right: -17px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255, 255, 255, .25); }
.step.done::before { background: var(--teal-2); border-color: var(--teal-2); }
.step.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 165, 90, .2); }
.step .tt { font-weight: 800; font-size: 14.5px; }
.step .sub { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.login .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 20px 0 14px; }
.login .or::before, .login .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login form .field, .login form .pw-wrap { margin-top: 10px; }
.login form > :first-child { margin-top: 0; }
.login .links { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13.5px; }
.login .links button { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 6px 0; font-weight: 700; }
.login .ok { color: #cfe8f1; background: rgba(74, 175, 201, .12); border: 1px solid rgba(74, 175, 201, .3); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; margin-top: 14px; }
.login h2 { margin: 0 0 6px; font-size: 19px; text-align: center; }
.login .intro { text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-left: 46px; }
.pw-wrap button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-wrap button svg { width: 20px; height: 20px; }
.dock { position: sticky; bottom: 0; z-index: 25; }
.dock .composer { position: static; }
.cost { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px; font-size: 11.5px; color: var(--muted); background: rgba(11, 26, 45, .97); border-top: 1px solid var(--line); }
.cost b { color: var(--gold); font-weight: 700; }
.cost.bad b { color: #ff9c95; }
.code { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--navy-2); border: 1px dashed rgba(200, 165, 90, .5); }
.code b { flex: 1; font-size: 17px; letter-spacing: 1px; direction: ltr; text-align: right; color: #f3dfae; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts button { padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-weight: 800; font-size: 20px; }
.opts button small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.opts button.sel { border-color: var(--gold); background: rgba(200, 165, 90, .14); }
.pts-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pts-row:last-child { border-bottom: 0; }
.pts-row .bd { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pts-row .bd small { display: block; color: var(--muted); font-size: 11.5px; }
.pts-row .v { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.pts-row .v.plus { color: var(--teal); }
.pts-row .v.minus { color: #ff9c95; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { flex: 1 1 auto; position: relative; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row span { display: block; text-align: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-2); color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.radio-row input:checked + span { background: var(--teal-3); border-color: var(--teal-2); color: #fff; }
.radio-row input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.av-edit { position: relative; cursor: pointer; flex: none; }
.av-edit i { position: absolute; bottom: -4px; left: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-2); display: grid; place-items: center; border: 2px solid var(--card); }
.av-edit i svg { width: 14px; height: 14px; color: #fff; }
.admin-av { width: 36px; height: 36px; border-radius: 12px; flex: none; overflow: hidden; background: linear-gradient(145deg, var(--teal-2), var(--teal-3)); display: grid; place-items: center; font-weight: 800; }
.admin-av { position: relative; }
.admin-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.is-light {
	--navy: #f1f5f9;
	--navy-2: #f6f9fb;
	--card: #ffffff;
	--card-2: #eef4f8;
	--line: rgba(15, 23, 42, .08);
	--text: #0f172a;
	--muted: #64748b;
	--teal: #1683a0;
}
html.is-light, html.is-light body { background: linear-gradient(180deg, #e9f1f6 0%, #f4f7fa 60%) fixed; color: var(--text); }
html.is-light .card, html.is-light .list, html.is-light .num, html.is-light .summary { box-shadow: 0 1px 0 #fff inset, 0 10px 22px -18px rgba(6, 34, 58, .45); }
html.is-light .top, html.is-light .chat-top { background: linear-gradient(140deg, #0b1a2d 0%, #0a3354 60%, #0f557a 100%); color: #fff; border-bottom: 0; box-shadow: 0 10px 24px -14px rgba(6, 34, 58, .8); }
html.is-light .top .sub, html.is-light .chat-top .sub { color: rgba(255, 255, 255, .72); }
html.is-light .top .icon-btn, html.is-light .chat-top .icon-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); color: #fff; }
html.is-light .tabs { left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); padding: 6px; border: 1px solid rgba(15, 23, 42, .06); border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 36px -16px rgba(6, 34, 58, .45), 0 4px 10px -4px rgba(6, 34, 58, .12); }
html.is-light .tab { border-radius: 17px; color: #64748b; padding: 7px 2px 6px; }
html.is-light .tab.on { color: #0a4263; background: linear-gradient(180deg, #e3f4f9, #cfeaf3); }
html.is-light .tab.on::before { display: none; }
html.is-light .shell { padding-bottom: calc(100px + var(--safe-b)); }
html.is-light .hero { color: #fff; }
html.is-light .hero .hero-state, html.is-light .hero .hero-sub { color: rgba(255, 255, 255, .78); }
html.is-light .li.unread .tt { color: var(--text); }
html.is-light .li.unread .sub, html.is-light .rv-text { color: #334155; }
html.is-light .req-body, html.is-light .items li, html.is-light .qa, html.is-light .appt .note-t { color: #334155; }
html.is-light .pts-big, html.is-light .svc .price, html.is-light .prod .sub, html.is-light .code b, html.is-light [style*="#f3dfae"] { color: #7a5f1e !important; }
html.is-light .hero .when .wd, html.is-light .day-b.sel span { color: #0a4263; }
html.is-light .pill.red, html.is-light .cost.bad b, html.is-light .pts-row .v.minus { color: #b42318; }
html.is-light .err-t, html.is-light .login .err { color: #b42318; }
html.is-light .login .ok { color: #0a4263; }
html.is-light .li:active { background: rgba(15, 23, 42, .03); }
html.is-light .pill.mute, html.is-light .day-sep { background: #eef2f6; }
html.is-light .switch span { background: #cbd5e1; }
html.is-light .stars button, html.is-light .stars-sm .off { color: #cbd5e1; }
html.is-light .chart .grid { stroke: rgba(15, 23, 42, .08); }
html.is-light .step::before { border-color: #cbd5e1; }
html.is-light .check-row .ck { border-color: #cbd5e1; }
html.is-light .req.mute::before, html.is-light .appt.past::before { background: #cbd5e1; }
html.is-light .sheet .grab { background: #cbd5e1; }
html.is-light .composer, html.is-light .cost { background: rgba(255, 255, 255, .97); }
html.is-light .bub a { color: #0a6f8c; }
html.is-light .toast { background: #0f2a44; color: #fff; }
html.is-light .toast.bad { background: #8a2c2c; }
html.is-light .offline { color: #7a5f1e; }
html.is-light .bub.me { color: #fff; }
html.is-light .bub.me .meta { color: rgba(255, 255, 255, .7); }
html.is-light .bub.me a { color: #cfeaf3; }
html.is-light .bub.them { background: #fff; border: 1px solid var(--line); }
html.is-light .bub.them .meta { color: #64748b; }
html.is-light .summary { background: #fff; border-color: rgba(22, 131, 160, .25); }
html.is-light .hero .pts-big { color: #f3dfae !important; }
