/* Choice panels */
.choice-source, .has-choices .date-readable { display:none !important; }
.choice-trigger { width:100%; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:4px; text-align:left; }
.choice-trigger span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.choice-trigger .ico { width:13px; height:13px; color:#6c7d95; }
.trip-field .choice-trigger { height:24px; padding:0; color:#253550; font-size:.93rem; font-weight:590; letter-spacing:-.025em; }
.trip-field .choice-trigger[aria-expanded=true], .trip-field .choice-trigger:hover { color:var(--blue); }
.day-field .choice-trigger .ico { visibility:hidden; }
.field .choice-trigger { padding:11px 13px; min-height:45px; border:1px solid #d5deea; border-radius:11px; font-size:1rem; font-weight:450; background:white; }
.choice-dialog { --choice-blue:#3465c9; position:fixed; inset:auto; margin:0; width:320px; max-width:calc(100vw - 24px); max-height:min(78dvh,535px); padding:17px; border:1px solid #dce4ef; border-radius:18px; box-shadow:0 14px 48px #162d522c,0 2px 6px #162d520a; overflow:auto; overscroll-behavior:contain; }
.choice-dialog::backdrop { background:transparent; }
body:has(.choice-dialog[open]) { overflow:clip; }
.choice-head, .cal-actions, .cal-range, .choice-search, .choice-options button { display:flex; align-items:center; }
.choice-head { justify-content:space-between; gap:12px; margin-bottom:14px; }
.choice-head h2 { font-size:1.2rem; letter-spacing:-.035em; font-weight:620; line-height:1.2; }
.choice-close,.cal-pages button { display:grid; place-items:center; padding:0; border-radius:50%; width:33px; height:33px; color:#4f6179; background:#f0f4fa; }
.choice-close:hover,.cal-pages button:hover:not(:disabled) { background:#e5edfa; color:var(--blue-dark); }
.choice-close .ico,.cal-pages .ico { width:16px; height:16px; }
.choice-search { border:1px solid #d7e1ef; border-radius:11px; padding:0 10px; gap:8px; height:42px; background:#f8fafd; }
.choice-search:focus-within { border-color:#93b2ec; }
.choice-search .ico { width:17px; color:#5c7294; }
.choice-search input { background:none; border:0; flex:1; min-width:0; outline:none; font-size:.87rem; }
.choice-options { max-height:min(52dvh,320px); overflow:auto; overscroll-behavior:contain; padding:3px; margin:8px -3px -3px; scrollbar-width:thin; }
.choice-options button { width:100%; min-height:43px; padding:5px 8px; gap:10px; border-radius:10px; text-align:left; font-size:.9rem; }
.choice-options button:hover { background:#f3f6fa; }
.choice-options button[aria-pressed=true] { background:#eaf1ff; color:#244f9e; font-weight:600; }
.option-symbol { width:26px; height:26px; display:grid; place-items:center; color:#6080ab; }
.option-symbol .ico { width:17px; height:17px; }
.choice-tick { margin-left:auto; color:var(--blue); }
.choice-none { padding:20px 8px; color:var(--muted); font-size:.86rem; }
.range-choice { width:578px; max-height:min(88dvh,610px); padding:19px; }
.cal-range { padding:4px; background:#f3f6fb; border-radius:12px; gap:4px; }
.cal-range > button { flex:1; padding:5px 10px; border-radius:9px; text-align:left; min-height:44px; }
.cal-range > button[aria-pressed=true] { background:#fff; color:#264e96; box-shadow:0 1px 5px #3d546315; }
.cal-range small,.cal-range strong { display:block; }
.cal-range small { font-size:.69rem; }
.cal-range strong { font-size:.88rem; font-weight:580; }
.cal-range > span .ico { width:15px; color:#7189a9; }
.cal-months { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.cal-month h3 { text-align:center; font-size:.9rem; font-weight:600; margin:17px 0 10px; text-transform:capitalize; line-height:26px; }
.cal-pages { height:0; position:relative; top:14px; display:flex; justify-content:space-between; pointer-events:none; }
.cal-pages button { pointer-events:auto; width:29px; height:29px; }
.cal-pages button:disabled { opacity:.35; cursor:default; }
.cal-grid,.cal-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.cal-week { color:#73829a; font-size:.66rem; margin-bottom:4px; }
.cal-day { height:32px; border-radius:8px; font-size:.84rem; padding:0; position:relative; }
.cal-day:not(:disabled):hover { background:#e7effe; color:var(--blue-dark); }
.cal-day:disabled { cursor:default; opacity:.33; }
.cal-day.is-edge, .cal-day.is-edge:not(:disabled):hover { color:#fff; background:var(--blue); opacity:1; font-weight:650; }
.cal-day.in-range { background:#e8f0ff; color:#244c91; border-radius:4px; }
.cal-day.is-today::after { content:''; width:4px; height:4px; border-radius:50%; background:currentColor; position:absolute; bottom:3px; left:calc(50% - 2px); }
.cal-day:focus-visible { outline-offset:-2px; }
.cal-actions { margin-top:14px; padding-top:13px; border-top:1px solid var(--line); gap:10px; }
.cal-actions > span { flex:1; text-align:right; color:var(--muted); font-size:.75rem; }
.cal-actions .primary { min-height:37px; padding:7px 19px; }
.cal-actions .textlink { font-size:.81rem; }
@media(max-width:880px) { .trip-field .choice-trigger { font-size:.85rem; } }
@media(max-width:620px) {
  .choice-dialog,.range-choice { left:0; top:auto; bottom:0; width:100%; max-width:100%; max-height:90dvh; padding:19px max(18px,env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0; }
  .choice-dialog::backdrop { background:#172b4555; }
  .choice-options { max-height:52dvh; }
  .choice-options button { min-height:46px; }
  .cal-months { grid-template-columns:1fr; }
  .cal-day { height:36px; }
  .cal-actions .primary { min-height:42px; }
}
.yandex-box { position:relative; background:#eef3f8; }
.yandex-box iframe { width:100%; height:100%; display:block; border:0; }
.ym-links { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; margin-top:5px; color:var(--blue-dark); font-size:.76rem; }
.ym-links a { padding:4px 0; }
.ym-links a:hover { text-decoration:underline; }
.map-tools { display:flex; margin-right:auto; gap:5px; }
.map-tool { color:var(--blue-dark); background:#eaf1ff; padding:6px 10px; border-radius:8px; }
.map-tool[hidden],.point-picker[hidden] { display:none; }
.point-picker { position:absolute; inset:45px 48px 90px 12px; cursor:crosshair; border:1px dashed #3054869a; background:transparent; border-radius:6px; }
.map-listing { display:flex; gap:10px; justify-content:space-between; align-items:center; border:1px solid var(--line); border-radius:12px; padding:9px 12px; min-width:0; }
.maplist .map-listing a { border:0; padding:0; }
.map-listing button { flex:none; color:var(--blue); font-size:.8rem; border-radius:9px; padding:7px; }
.map-listing.is-current { border-color:#8cadde; background:#f6f9ff; }
.map-paging { display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:8px; }

.desk-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:5px; width:fit-content; margin:0 0 22px; border-radius:14px; background:#f2f5fa; }
.desk-tabs a { display:inline-flex; gap:7px; align-items:center; padding:9px 13px; border-radius:10px; font-size:.84rem; font-weight:560; }
.desk-tabs .ico { width:16px; height:16px; }
.desk-tabs [aria-current] { color:var(--blue-dark); background:white; box-shadow:0 1px 5px #263d5b13; }
.moderation-queue,.desk-inbox,.desk-chat { max-width:960px; }
.moderation-entry { display:grid; grid-template-columns:100px minmax(0,1fr) auto; align-items:center; gap:18px; padding:15px 0; border-bottom:1px solid var(--line); }
.moderation-entry:last-child { border:0; }
.moderation-entry img { display:block; width:100px; height:79px; object-fit:cover; border-radius:12px; background:var(--wash); }
.moderation-entry h3 { margin:3px 0; font-size:1rem; }
.moderation-entry p { color:var(--muted); font-size:.84rem; }
.moderation-entry .row { justify-content:flex-end; gap:8px; }
.queue-count { display:inline-flex; align-items:center; justify-content:center; border-radius:30px; padding:3px 10px; color:var(--blue-dark); background:#edf3ff; font-size:.8rem; }
.desk-thread { display:flex; align-items:center; gap:13px; padding:14px 5px; border-top:1px solid var(--line); }
.desk-thread:hover { background:#f8fafd; }
.desk-thread strong,.desk-thread small,.last-msg { display:block; }
.desk-thread > span:nth-child(2) { min-width:0; overflow-wrap:anywhere; }
.last-msg { margin-top:4px; max-width:62ch; color:var(--muted); font-size:.83rem; }
.desk-avatar { display:grid; place-items:center; flex:none; width:40px; height:40px; background:#ecf2fd; color:#3c62a1; border-radius:13px; font-style:normal; font-weight:640; }
.thread-state { margin-left:auto; flex:none; text-align:right; color:var(--muted); }
.thread-state b { display:inline-block; padding:3px 8px; background:#fff2db; color:#7b5312; border-radius:9px; font-size:.69rem; }
.thread-state small { font-size:.68rem; margin-top:4px; }
.desk-empty { color:var(--muted); padding:19px 2px; }
.desk-paging { display:flex; justify-content:space-between; }
.desk-chat-head { display:flex; align-items:center; gap:12px; margin-top:9px; padding:15px 0; border-bottom:1px solid var(--line); }
.desk-chat-head h2 { margin:0; }
.desk-log { display:flex; flex-direction:column; overflow:auto; height:clamp(220px,40dvh,450px); padding:15px 2px; gap:9px; }
.desk-bubble { align-self:flex-start; max-width:min(85%,620px); background:#f1f4fa; padding:9px 13px; border-radius:14px 14px 14px 3px; overflow-wrap:anywhere; }
.desk-bubble.mine { align-self:flex-end; background:#e7efff; border-radius:14px 14px 3px 14px; }
.desk-bubble p { white-space:pre-wrap; margin:2px 0; }
.desk-bubble time,.desk-bubble small { font-size:.68rem; color:#53647b; }
.desk-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; margin-top:10px; }
.desk-compose label { grid-column:1; grid-row:1; }
.desk-compose .primary { grid-column:2; grid-row:1; }
.desk-compose .formerr { grid-column:1/-1; }
.desk-compose textarea { width:100%; border:1px solid #cfd9e8; padding:9px 12px; border-radius:12px; resize:vertical; font-size:.95rem; }
.desk-chat [hidden] { display:none }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.support-entry { display:flex; align-items:center; gap:12px; padding:13px 16px; background:#f0f5fd; color:#284d87; border-radius:13px; font-size:.92rem; font-weight:580; margin:0 0 14px; }
.support-entry .ico:last-child { margin-left:auto; width:16px; }
.admin-access { color:var(--blue-dark); font-size:.82rem; font-weight:580; padding:7px; }
.admin-access[hidden] { display:none; }
@media(max-width:850px) { .mast .admin-access { display:none; } }
@media(max-width:650px) {
 .desk-tabs { width:100%; flex-wrap:nowrap; overflow:auto; }
 .desk-tabs a { white-space:nowrap; padding:8px 9px; font-size:.74rem; }
 .desk-tabs .ico { display:none; }
 .moderation-entry { grid-template-columns:70px minmax(0,1fr); gap:10px; }
 .moderation-entry img { width:70px; height:63px; }
 .moderation-entry .row { grid-column:1/-1; justify-content:flex-start; }
 .desk-thread { gap:8px; }
 .desk-avatar { width:32px; height:32px; }
 .desk-thread small { font-size:.68rem; }
 .desk-compose { grid-template-columns:1fr; }
 .desk-compose .primary { grid-column:1; grid-row:auto; justify-self:end; }
}

.choice-dialog[open]:not(.range-choice) {display:flex;flex-direction:column}
.choice-dialog .choice-head,.choice-dialog .choice-search {flex-shrink:0}
.choice-options {min-height:0}

.point-picker { touch-action:none; }
