/* Стили половины «Сдаю/продаю» (docs/PARTS.md, часть В): подача и правка по шагам, мои объявления и статистика, окна
   просмотра, уведомления, профиль и настройки, организация и команда, ЖК застройщика, безопасность и правила.
   Классы — с приставкой o-. Цвета — только переменные из /shared/tokens.css; общие элементы — в /styles.css.
   Телефон в первую очередь (360–390 px), с 900 px — ПК. */

/* ───────── общее ───────── */
.o-inl { display: inline-flex; vertical-align: -2px; }
.o-hint { font-size: 13px; color: var(--muted); }
.o-req { color: var(--danger); margin-left: 3px; }
.o-self-start { align-self: flex-start; }
.o-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.o-wrap { overflow-wrap: anywhere; }
.o-row-wrap { flex-wrap: wrap; row-gap: 8px; }
.o-row-wrap > .grow { flex: 1 1 180px; }
.o-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.o-row-btns > .btn { flex: 1 1 auto; }
.o-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.o-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 560px) { .o-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.o-more { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-weight: 650; font-size: 14px; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.o-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.o-toggle b { font-weight: 600; }
.o-pick { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.o-pick.o-none { color: var(--faint); }
.o-pick > .ic:last-child { color: var(--faint); }

.o-reject { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--danger-soft); border-left: 3px solid var(--danger); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.o-reject-h { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); }
.o-reject-h b { color: var(--ink); }
.o-appeal { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.o-appeal.accepted b { color: var(--free-ink); }

/* ───────── подача объявления по шагам ───────── */
.o-sell-grid { display: grid; gap: 24px; padding-top: 4px; }
.o-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: calc(var(--hdr) + 64px); }
.o-form > .notice { margin: 0; }
.o-step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.o-steps { display: flex; flex-direction: column; gap: 8px; }
.o-steps-t { font-size: 15px; }
.o-steps-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.o-steps-i { display: block; width: 100%; height: 20px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.o-steps-i::before { content: ''; display: block; height: 6px; border-radius: 6px; background: var(--surface-3); transition: background var(--t) var(--ease); }
.o-steps-i.ok::before { background: var(--brand-300); }
.o-steps-i.on::before { background: var(--primary); }
.o-steps-i.need::before { background: var(--danger); }
.o-block { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.o-block > h2, .o-block-h h2, .o-h2 { font-size: 17px; letter-spacing: -.01em; font-weight: 700; color: var(--ink); }
.o-block-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.o-block.bad { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.o-side { display: none; }

.o-choice3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.o-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); text-align: left; min-width: 0; }
.o-choice > .ic { color: var(--primary); }
.o-choice b { font-size: 14px; line-height: 1.2; }
.o-choice .muted { font-size: 12px; line-height: 1.25; }
.o-choice.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.o-choice.big { gap: 6px; padding: 16px; }
.o-choice.big b { font-size: 16px; }
@media (max-width: 380px) { .o-choice3 { grid-template-columns: minmax(0, 1fr); } .o-choice { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 8px; } }
.o-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .o-types { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.o-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 84px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; font-size: 14px; font-weight: 600; line-height: 1.2; min-width: 0; }
.o-type > span:last-child { min-width: 0; max-width: 100%; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 380px) { .o-type { font-size: 13px; } }
.o-type.on { border-color: var(--primary); background: var(--primary-soft); }
.o-type-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.o-type.on .o-type-ic { background: var(--surface); }
.o-kinds, .o-kinds2 { display: flex; flex-direction: column; gap: 8px; }
.o-kind { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.o-kind .radio { margin-top: 3px; }
.o-kind.on { border-color: var(--primary); background: var(--primary-soft); }
.o-kind:disabled { opacity: .6; cursor: not-allowed; }
.o-kind .tag { margin-bottom: 4px; }
.o-kind-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.o-place { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.o-place.bad { box-shadow: 0 0 0 1.5px var(--danger); }
.o-metro { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.o-metro li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; flex-wrap: wrap; }
.o-metro li > b { flex: 1 1 100px; font-size: 14px; }
.o-metro-min { display: inline-flex; align-items: center; gap: 4px; }
.o-metro-min .input { width: 52px; min-height: 38px; padding: 4px 6px; text-align: center; font-size: 15px; }
.o-metro-by { width: auto; min-height: 38px; padding: 4px 30px 4px 10px; font-size: 14px; flex: none; }
.o-metro li .icon-btn { width: 38px; height: 38px; }
.o-zhk-ph { width: 44px; height: 44px; border-radius: 10px; flex: none; }

.o-attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.o-attr.wide { grid-column: 1 / -1; }
@media (max-width: 420px) { .o-attrs { grid-template-columns: minmax(0, 1fr); } }
.o-money-in { position: relative; display: flex; align-items: center; }
.o-money-in .input { font-variant-numeric: tabular-nums; padding-right: 52px; }
.o-money-cur { position: absolute; right: 14px; color: var(--muted); font-weight: 600; pointer-events: none; white-space: nowrap; }
.o-price-in { font-size: 22px; font-weight: 700; min-height: 56px; }
.o-price-in + .o-money-cur { font-size: 16px; }
.o-money-in:has(.o-price-in) .input { padding-right: 104px; }
.o-free { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--free-ink); }
.o-est { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.o-warn { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: 10px; }
.o-warn.err { background: var(--danger-soft); color: var(--danger); }
.o-warn.hold { background: var(--warn-soft); color: var(--warn); }
.o-warn > span:last-child { color: var(--ink); }

.o-money { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: color-mix(in oklab, var(--accent-soft) 70%, var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.o-money-first { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; font-weight: 600; }
.o-money-sum { font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.o-money-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.o-money-items li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.o-money-month { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px dashed color-mix(in oklab, var(--accent) 50%, transparent); font-size: 14px; }
.o-money.compact { padding: 8px 10px; gap: 4px; margin-top: 4px; }
.o-money.compact .o-money-first { font-size: 12px; }
.o-money.compact .o-money-sum { font-size: 15px; }
.o-money.compact .o-money-month { font-size: 12px; padding-top: 4px; }
.o-money.compact .tag { display: none; }

.o-bar { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 8px; margin: 4px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.o-bar .btn { min-width: 0; }
.o-bar { flex-wrap: wrap; }
.o-bar > .grow { flex: 1 1 150px; }
@media (max-width: 400px) { .o-bar .btn { padding-inline: 14px; } }
.o-bar-back { padding-inline: 14px; flex: none; }
.app:not(.bare) .o-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .app:not(.bare) .o-bar { bottom: 0; } }

.o-check-title { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.o-check-title b { font-size: 16px; overflow-wrap: anywhere; }
.o-todo { display: flex; flex-direction: column; gap: 2px; }
.o-todo > b { margin-bottom: 4px; }
.o-todo-i { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 14px; color: var(--ink-2); }
.o-todo-i:hover { background: var(--surface-2); }
.o-todo-i > .ic { color: var(--primary); }
.o-todo-i > span:nth-child(2) { flex: 1; min-width: 0; }
.o-ready { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--free-ink); }
.o-prev-m { max-width: 320px; }

.o-prev { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); }
.o-prev-ph { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.o-prev-ph img { width: 100%; height: 100%; object-fit: cover; }
.o-prev-no { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 13px; }
.o-prev-b { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }

.o-side-steps { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.o-side-step { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; text-align: left; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.o-side-step:hover { background: var(--surface-2); }
.o-side-step.on { background: var(--primary-soft); color: var(--primary-soft-ink); }
.o-side-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; flex: none; }
.o-side-step.on .o-side-n { background: var(--primary); color: var(--on-primary); }
.o-side-n.ok { background: var(--ok-soft); color: var(--free-ink); }
.o-side-step.need .o-side-n { background: var(--danger-soft); color: var(--danger); }
.o-side-c { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.o-side-h { font-size: 13px; font-weight: 700; color: var(--muted); }
.o-side-tip { display: flex; gap: 8px; align-items: flex-start; }
.o-side-tip .ic { color: var(--free); margin-top: 2px; }

.o-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 48px; padding-bottom: 32px; }
.o-done-ic { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; }
.o-done-ic.ok { background: var(--ok-soft); color: var(--free-ink); }
.o-done-ic.wait { background: var(--warn-soft); color: var(--warn); }
.o-done h1 { outline: none; }
.o-done > p { max-width: 460px; }
.o-done .notice { text-align: left; }
.o-done-card { width: 100%; max-width: 460px; padding: 6px; text-align: left; }
.o-done-act { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; }

.o-map { position: relative; height: min(56dvh, 480px); min-height: 260px; border-radius: 16px; overflow: hidden; background: var(--surface-2); flex: none; }
.o-map-in { position: absolute; inset: 0; z-index: 0; }
.o-map-wait { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--surface-2); }
.o-map-foot { display: flex; align-items: center; gap: 8px; }
.o-pin i { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.o-approx { stroke: var(--brand); fill: var(--brand); fill-opacity: .18; }

@media (min-width: 1000px) {
  .o-sell-grid { grid-template-columns: minmax(0, 720px) 300px; justify-content: center; gap: 28px; }
  .o-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--hdr) + 20px); align-self: start; }
  .o-steps { display: none; }
  .o-prev-m { display: none; }
  .o-bar { margin-inline: 0; padding-inline: 0; border-top: 0; background: var(--bg); }
  .o-done-act { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
}
.page:has(.o-sell-grid) > .topbar { max-width: 1104px; }

/* фото в форме */
.o-photos-w { display: flex; flex-direction: column; gap: 10px; }
.o-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .o-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) { .o-photos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.o-ph, .o-ph-new { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; }
.o-photos.small .o-ph, .o-photos.small .o-ph-new { aspect-ratio: 4 / 3; }
.o-ph { overflow: hidden; background: var(--surface-2); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t); }
.o-ph-b { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: grab; border-radius: inherit; }
.o-ph-b img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.o-photos.small .o-ph-b img { object-fit: contain; background: #fff; }
.o-ph.sel { box-shadow: 0 0 0 3px var(--brand); }
.o-ph.drag { transform: scale(1.06); box-shadow: var(--sh-3); opacity: .9; z-index: 2; }
.o-photos.dragging .o-ph-b { cursor: grabbing; }
.o-ph.err img { filter: grayscale(1); opacity: .45; }
.o-ph-cover { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; pointer-events: none; }
.o-ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(18, 20, 42, .66); color: #fff; }
.o-ph-x::after { content: ''; position: absolute; inset: -8px; }
.o-ph-prog { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.o-ph-prog i { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .2s linear; }
.o-ph-retry { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: color-mix(in oklab, var(--danger-soft) 80%, transparent); color: var(--danger); font-size: 12px; font-weight: 700; }
.o-ph-add { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: 14px;
  color: var(--primary); background: var(--primary-soft); cursor: pointer; font-size: 13px; padding: 6px; }
.o-ph-add small { color: var(--muted); font-size: 11px; }
@media (hover: none) { .o-ph-add small { display: none; } }
.o-ph-add:focus-within { box-shadow: var(--ring); }
.o-ph-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.o-ph-tools .btn { margin-right: auto; }

/* ───────── мои объявления ───────── */
.o-my-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.o-my-tools:empty { display: none; }
.o-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); flex: 1 1 240px; max-width: 420px; min-width: 0; }
.o-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.o-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.o-teamlink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 600; font-size: 14px; max-width: 100%; }
.o-agentsel { width: auto; flex: 0 1 220px; min-width: 0; min-height: 44px; }
.o-my-list, .o-cx-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .o-my-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.o-my { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.o-my-top { display: flex; gap: 12px; color: var(--ink); text-decoration: none !important; min-width: 0; border-radius: 14px; }
.o-my-ph { width: 96px; height: 96px; border-radius: 14px; flex: none; }
.o-my-closed .o-my-ph, .o-my-archived .o-my-ph { filter: grayscale(.6); opacity: .8; }
.o-my-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.o-my-t { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.o-my-stats { display: flex; gap: 4px 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.o-my-stats span { display: inline-flex; align-items: center; gap: 4px; }
.o-my-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.o-my-meta .tag { white-space: normal; text-align: left; }
.o-my-slots { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.o-my-slots > .ic:first-child { color: var(--primary); }
.o-my-slots:hover { background: var(--primary-soft); }
.o-my-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.o-my-act .btn-ghost { background: var(--surface-2); }
.o-my-act .btn:disabled { opacity: .75; }
.o-my-act .icon-btn { width: 38px; height: 38px; }
.o-agent { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.o-stale { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--warn-soft); font-size: 14px; }
.o-stale > p:first-child { display: flex; gap: 6px; align-items: flex-start; }
.o-stale > p:first-child .ic { color: var(--warn); margin-top: 2px; }
@media (max-width: 480px) { .o-my-act { gap: 5px; } .o-my-act .btn-sm { padding: 0 9px; font-size: 13.5px; gap: 6px; } .o-my-act .btn:not(:disabled) .ic { display: none; } .o-my-act .icon-btn { width: 34px; } .o-my-act .o-bump-l { display: none; } }

.o-one { display: flex; flex-direction: column; gap: 12px; }
.o-one .card { margin: 0; }
.o-one-top { display: flex; gap: 14px; }
.o-one-ph { width: 96px; height: 96px; border-radius: 16px; flex: none; }
.o-one-t { font-size: 19px; margin: 6px 0 2px; overflow-wrap: anywhere; }
.o-one-price { font-size: 20px; white-space: normal; }
.o-one-money { color: var(--ink-2); margin-top: 4px; }
.o-one-head .notice { margin: 0; }
.o-one-act { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .o-one-act .btn { flex: 1 1 auto; } }
.o-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .o-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.o-kpi { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; min-width: 0; color: var(--ink); }
.o-kpi.on { border-color: var(--brand); background: var(--primary-soft); }
.o-kpi-l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); max-width: 100%; }
.o-kpi-v { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.o-chart { margin: 0; }
.o-chart-cap { font-size: 14px; margin-bottom: 6px; }
.o-chart svg { width: 100%; height: auto; overflow: visible; }
.o-chart-grid { stroke: var(--line); stroke-width: 1; }
.o-chart-t { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.o-chart-bar { fill: var(--brand); transition: fill var(--t-fast); }
.o-chart-bar.zero { fill: var(--surface-3); }
.o-chart-bar.on { fill: var(--accent); }
.o-facts { margin: 0; display: grid; gap: 8px; }
.o-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.o-facts dt { color: var(--muted); flex: none; }
.o-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.o-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.o-hist-i { display: flex; gap: 10px; font-size: 14px; }
.o-hist-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.o-hist-i.reject .o-hist-ic, .o-hist-i.owner_kind .o-hist-ic { background: var(--danger-soft); color: var(--danger); }
.o-hist-i.approve .o-hist-ic, .o-hist-i.auto_pass .o-hist-ic, .o-hist-i.restore .o-hist-ic { background: var(--ok-soft); color: var(--free-ink); }
.o-hist-i.auto_hold .o-hist-ic { background: var(--warn-soft); color: var(--warn); }
.o-one-cols { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) {
  .o-one-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .o-one-top { gap: 18px; } .o-one-ph { width: 132px; height: 132px; }
  .o-stats { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 24px; }
  .o-stats > * { grid-column: 1 / -1; }
  .o-stats > .o-kpis { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; }
  .o-stats > .o-chart, .o-stats > .o-kpis + .sk { grid-column: 2; }
}

/* ───────── окна просмотра ───────── */
.o-slots { display: flex; flex-direction: column; gap: 12px; }
.o-slots .card { margin: 0; }
.o-slots > .notice { margin: 0; }
.o-slots-grid { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) { .o-slots-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); } .o-open { position: sticky; top: calc(var(--hdr) + 16px); } }
.o-cal-quick .chip { min-height: 36px; font-size: 13px; }
.o-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.o-cal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 2px; }
.o-cal-d { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 52px; padding: 5px 2px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; }
.o-cal-d.we .o-cal-n { color: var(--accent-ink); }
.o-cal-d.has { background: var(--surface-2); }
.o-cal-d.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.o-cal-n { font-size: 15px; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; align-items: center; }
.o-cal-n small { font-size: 9.5px; font-weight: 600; color: var(--muted); line-height: 1; }
.o-cal-m { display: flex; gap: 2px; }
.o-cal-m i, .o-cal-legend i { font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; display: grid; place-items: center; }
.o-cal-m i.f, .o-cal-legend i.f { background: var(--ok-soft); color: var(--free-ink); }
.o-cal-m i.b, .o-cal-legend i.b { background: var(--accent); color: var(--on-accent); }
.o-cal-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.o-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.o-cal-legend i { width: 12px; min-width: 12px; height: 12px; }
@media (max-width: 380px) { .o-cal { gap: 3px; } .o-cal-d { min-height: 48px; border-radius: 10px; } .o-cal-n { font-size: 14px; } }
.o-open-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.o-open-row .input { min-width: 0; }
.o-days { display: flex; flex-direction: column; gap: 12px; }
.o-slot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.o-slot { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.o-slot:last-child { border-bottom: 0; }
.o-slot-t { font-weight: 700; flex: none; min-width: 96px; }
.o-slot.booked .o-slot-t { color: var(--accent-ink); }
.o-slot-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.o-slot-who a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; min-width: 0; max-width: 100%; }
.o-slot-who .link { font-size: 13px; min-height: 28px; }
@media (max-width: 380px) { .o-slot-t { min-width: 84px; font-size: 14px; } }

/* ───────── уведомления ───────── */
.o-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.o-notes-day { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 4px 2px; }
.o-notes-day:first-child { margin-top: 2px; }
.o-note-i { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.o-note-i:hover { border-color: var(--line-strong); }
.o-note-i.new { background: color-mix(in oklab, var(--primary-soft) 55%, var(--surface)); border-color: transparent; }
.o-note-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.o-note-ic.ok { background: var(--ok-soft); color: var(--free-ink); }
.o-note-ic.danger { background: var(--danger-soft); color: var(--danger); }
.o-note-ic.warn { background: var(--warn-soft); color: var(--warn); }
.o-note-ic.brand { background: var(--primary-soft); color: var(--primary-soft-ink); }
.o-note-ic.accent { background: var(--accent-soft); color: var(--accent-ink); }
.o-note-ph { position: relative; width: 44px; height: 44px; flex: none; }
.o-note-ph .img { width: 44px; height: 44px; border-radius: 12px; }
.o-note-ic.mini { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-sizing: content-box; }
.o-note-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 14px; }
.o-note-b b { font-size: 15px; overflow-wrap: anywhere; }
.o-note-t { color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 6px; }

/* ───────── профиль и настройки ───────── */
.o-guest { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 20px; margin: 8px 0 16px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 60%), radial-gradient(70% 60% at 0% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%), var(--surface); }
.o-guest p { max-width: 420px; }
.o-guest-mark { animation: bm-float 4s ease-in-out infinite; }
.o-blocked { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin: 8px 0 14px; border-radius: 20px; background: var(--danger-soft); border-left: 4px solid var(--danger); }
.o-blocked-h { display: flex; gap: 8px; align-items: flex-start; color: var(--danger); }
.o-blocked-h b { color: var(--ink); font-size: 16px; }
.o-blocked .btn { align-self: flex-start; }
.o-me { display: flex; align-items: center; gap: 14px; padding: 6px 2px 14px; }
.o-me-n { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 21px; min-width: 0; }
.o-me-n > span:first-child { overflow-wrap: anywhere; }
.o-me-r { margin: 3px 0 1px; }
.o-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.o-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; min-width: 0; }
.o-tile:hover { border-color: var(--line-strong); }
.o-tile .ic { color: var(--primary); margin-bottom: 4px; }
.o-tile b { font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.o-tile span:not(.ic) { font-size: 11.5px; letter-spacing: -.01em; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-tile span:not(.ic) { white-space: normal; overflow: visible; }
@media (max-width: 400px) {
  .o-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; }
  .o-tile .ic { grid-row: 1 / 3; margin: 0; }
  .o-me .ava { width: 60px !important; height: 60px !important; }
}
.o-tile-n { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--badge); color: #fff; }
.o-ver { margin: 18px 0 8px; }
.menu-i:disabled { opacity: .5; }
.menu-i .seg { flex: none; max-width: 100%; }
.o-ava-row { display: flex; align-items: center; gap: 16px; }
.o-ava-act { display: flex; flex-wrap: wrap; gap: 8px; }
.o-ava-act label { cursor: pointer; }
.o-ava-act label:focus-within { box-shadow: var(--ring); }
.o-edit { padding-bottom: 24px; }
.o-settings .menu-h:first-child { margin-top: 8px; }
.o-omsg { border-radius: 11px; flex: none; }
.o-hours { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.o-hours .input { width: 112px; min-height: 40px; padding: 6px 8px; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
@media (max-width: 380px) { .o-hours .input { width: 100px; padding-inline: 4px; } }
.o-note-p { margin: 10px 6px 0; }
.o-rsum { flex-direction: row; align-items: center; gap: 16px; }
.o-rsum-v { font-size: 38px; letter-spacing: -.03em; line-height: 1; }
.o-revs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.o-revs .card { margin: 0; gap: 10px; }
.o-rev.hidden { border-style: dashed; }
.o-rev-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.o-rev p, .o-compl p { overflow-wrap: anywhere; }
.o-rev-l { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.o-rev-l .img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.o-rev-reply { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.o-rev .btn { align-self: flex-start; }

/* ───────── организация и команда ───────── */
.o-team { display: flex; flex-direction: column; gap: 12px; }
.o-seg .seg { display: flex; width: 100%; }
.o-seg .seg-i { flex: 1 1 auto; }
.o-team .card { margin: 0; }
.o-intro { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; border: 1px solid var(--line); margin-bottom: 12px;
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%), var(--surface); }
.o-intro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.o-intro li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.o-intro li .ic { color: var(--primary); margin-top: 1px; }
.o-orgform { padding-bottom: 8px; }
.o-orgform-h { display: flex; align-items: center; gap: 10px; }
.o-pics { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
.o-onephoto { position: relative; height: 104px; display: grid; place-items: center; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--primary); cursor: pointer; overflow: hidden; }
.o-onephoto.round { border-radius: 50%; }
.o-onephoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.o-onephoto:focus-within { box-shadow: var(--ring); }
.o-onephoto-t { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(18, 20, 42, .62); color: #fff; white-space: nowrap; }
.o-onephoto-wait { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--surface) 70%, transparent); z-index: 1; }
.o-slug { display: flex; align-items: center; gap: 6px; }
.o-slug .muted { flex: none; font-size: 14px; }
.o-orghead { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.o-orghead-cover { position: absolute; left: 0; right: 0; top: 0; height: 64px; opacity: .55; }
.o-orghead-in { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.o-orghead-cover + .o-orghead-in { margin-top: 28px; }
.o-orghead-in .ava { box-shadow: 0 0 0 3px var(--surface); }
.o-orghead-n { font-size: 20px; overflow-wrap: anywhere; }
.o-orgnums { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.o-orgnums a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none !important; min-width: 0; }
.o-orgnums b { font-size: 18px; font-variant-numeric: tabular-nums; }
.o-orgnums span { font-size: 12px; color: var(--muted); }
.o-orgnums .ic { color: var(--primary); height: 25px; align-items: center; }
.o-zhklink { min-height: 56px; font-size: 14px; }
.o-member-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; }
.o-member .icon-btn { width: 40px; height: 40px; }
.o-qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 16px; width: 224px; max-width: 100%; margin: 0 auto; }
.o-qr svg { width: 200px; height: 200px; max-width: 100%; }
.o-link { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; display: flex; min-width: 0; }
.o-join { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; margin-top: 8px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.o-join .notice { text-align: left; }
.o-join-about { max-width: 460px; color: var(--ink-2); overflow-wrap: anywhere; }
.o-cxform { display: flex; flex-direction: column; gap: 12px; }
.o-cxform > .notice { margin: 0; }
.o-bld { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.o-bld-h { display: flex; align-items: center; justify-content: space-between; }
.o-bld-h .icon-btn { width: 36px; height: 36px; }
.o-bld-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.o-bld .input { background: var(--surface); }

/* ───────── безопасность и правила ───────── */
.o-info { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.o-info .card, .o-info .menu { margin: 0; }
.o-info-hero { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 60%), var(--surface); }
.o-info-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-ink); }
.o-info-h { margin-top: 14px; }
.o-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.o-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.o-tip-n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; font-weight: 700; }
.o-shield { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.o-shield-i { display: flex; gap: 12px; align-items: flex-start; }
@media (min-width: 700px) { .o-shield { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }
.o-info-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.o-rules { display: grid; gap: 10px; }
.o-rules h3 { display: flex; align-items: center; gap: 8px; }
.o-rules h3 .ic { color: var(--primary); }
.o-banned, .o-score { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
@media (min-width: 700px) { .o-banned { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.o-kind-list { display: grid; gap: 8px; }
.o-kind-list div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
