/* СметаЛупа: фирменный стиль (синий + оранжевый) и новые элементы рабочей части. Подключается последним. */

/* ---------- логотип ---------- */
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--brand); text-decoration: none; }
.wordmark span { color: var(--marker); }
a.brand { text-decoration: none; color: inherit; border-radius: 12px; }
.logo-img { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 19px; line-height: 1.15; }

/* ---------- шапка и вкладки ---------- */
.top { gap: 8px; }
.tabs { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 14px; padding: 4px; }
.tab { border-radius: 10px; padding: 8px 14px; transition: background .15s, color .15s; }
.tab.on { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .tab.on { color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab.on { color: var(--paper); } }
.beta { display: inline-block; font: 700 11px/16px var(--sans); font-style: normal; padding: 0 5px; border-radius: 6px; background: var(--marker-soft); color: #A0520A; vertical-align: 1px; }
.tab.on .beta { background: var(--marker); color: #fff; }
:root[data-theme="dark"] .beta { color: var(--marker); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .beta { color: var(--marker); } }
.icon-btn:hover { background: var(--surface); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- поле поиска: мягче, как на главной ---------- */
.search input {
  border: 1.5px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--action); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--action) 18%, transparent); }

/* ---------- кнопки ---------- */
.btn { border-radius: 10px; transition: border-color .15s, background .15s; }
.btn-main, .btn.btn-main { background: var(--action); border-color: var(--action); color: var(--action-ink); font-weight: 600; }
.btn-main:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.act { color: var(--action); }
.more { border-radius: 12px; }

/* ---------- вход ---------- */
.gate-mascot { width: 212px; height: auto; margin-bottom: -6px; }
.gate-name { font-size: 32px; }
#gateKey { border: 1.5px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
#gateKey:focus { border-color: var(--action); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--action) 18%, transparent); }
.gate-btn { border: 0; border-radius: 14px; background: var(--action); color: var(--action-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--action) 30%, transparent); transition: background .15s, transform .1s; }
.gate-btn:hover { background: var(--action-hover); }
.gate-btn:active { transform: translateY(1px); }
.gate-foot a { color: var(--action); }

/* ---------- пустое состояние с маскотом ---------- */
.empty-hero { display: flex; gap: 18px; align-items: center; }
.empty-hero img { width: 120px; height: 120px; flex: none; }
.empty-hero img.materials-search-hero { height: auto; }
.empty { max-width: 760px; }
@media (max-width: 720px) { .empty-hero { flex-direction: column; align-items: flex-start; } .empty-hero img { width: 96px; height: 96px; } }

/* ---------- базы: «только эта» и плашка выбора ---------- */
.g-bw { display: inline-flex; align-items: center; gap: 2px; }
.g-only { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.g-only:hover { color: var(--action); background: var(--action-soft); }
.g-bw.off .g-base span { background: transparent; border-style: dashed; opacity: .75; }
.g-bw.off .g-base b { color: var(--muted); }
.g-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--action-soft); border: 1px solid color-mix(in srgb, var(--action) 35%, transparent); font-size: 14.5px; }
.g-scope[hidden] { display: none; }
.g-scope > span { flex: 1 1 260px; }
.g-scope-ic { width: 22px; height: 22px; flex: none; }
.g-scope-more { color: var(--ink-2); }
.g-scope .btn { background: var(--surface); }

/* ---------- «выбирали N раз» ---------- */
.picks { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6;
  background: var(--action-soft); color: var(--action); white-space: nowrap; }
.picks::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.legend .picks { min-width: 150px; justify-content: center; margin-right: 8px; }
.picks-del { padding: 0 0 0 4px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.picks-del:hover { color: var(--danger, #b43c36); }

/* ---------- ФСНБ: цены, легенда, бренд ---------- */
.f-prices { margin: -2px 0 12px; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.f-prices .muted { margin: 0; font-size: 12.5px; }
.f-prices[hidden] { display: none; }
.f-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.f-legend[hidden] { display: none; }
.f-legend .pct { font-size: 11px; padding: 1px 4px; margin-right: 4px; }
.legend .pct { display: inline-block; min-width: 150px; text-align: center; margin-right: 8px; font-size: 12.5px; }
.t-brand { background: var(--marker-soft); color: #A0520A; }
.legend .t-brand { min-width: 150px; text-align: center; margin-right: 8px; }
.legend > div { display: flex; align-items: baseline; gap: 0; }
@media (max-width: 720px) { .legend > div { flex-direction: column; gap: 4px; } .legend .pct, .legend .picks, .legend .t-brand { min-width: 0; } }

/* ---------- «Нашлось не то» ---------- */
.miss-line { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.miss-line[hidden] { display: none; }

/* ---------- бета-режимы ---------- */
.beta-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 14px; padding: 9px 14px; border-radius: 12px;
  background: var(--marker-soft); color: var(--ink); font-size: 14px; }
.beta-note .beta { background: var(--marker); color: #fff; }

/* ---------- карточка модели оборудования ---------- */
.model-card { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--marker); }
.model-card[hidden] { display: none; }
.mc-head { display: flex; gap: 12px; align-items: center; }
.mc-head img { width: 56px; height: 56px; flex: none; }
.mc-head > div { flex: 1; min-width: 0; }
.mc-name { font-weight: 700; font-size: 17px; }
.mc-vendor { font-weight: 500; font-size: 13px; color: var(--muted); }
.mc-type { font-size: 14px; color: var(--ink-2); }
.mc-type .muted { font-size: 12.5px; }
.mc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 10px; }
.mc-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.mc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 14px; padding: 6px 8px; border-radius: 8px; background: var(--paper); }
.mc-list li .meta { grid-column: 2; text-align: left; font-size: 12.5px; }
.mc-list li .act { grid-column: 2; justify-self: start; }
.mc-cols .muted { font-size: 12.5px; margin: 4px 0 0; }
.mc-notes { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.mc-notes p { margin: 3px 0; }
.mc-foot { margin: 8px 0 0; font-size: 12.5px; }
@media (max-width: 720px) { .mc-cols { grid-template-columns: 1fr; } .mc-list li { grid-template-columns: 1fr; } .mc-list li .meta, .mc-list li .act { grid-column: 1; } }

/* ---------- окно обратной связи ---------- */
.fb-sheet { width: min(540px, calc(100vw - 24px)); }
.fb-form { display: grid; gap: 4px; padding-top: 14px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fb-kinds label { position: relative; cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; }
.fb-kinds label { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); }
.fb-kinds label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.fb-kinds label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb-q { font-size: 14px; padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.fb-q .muted { font-size: 12.5px; }
.fb-form textarea { width: 100%; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px; resize: vertical; }
.fb-help { margin: 2px 0 6px; }

@media (max-width: 720px) {
  .top { padding-top: 12px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .tab { font-size: 14px; padding: 8px 4px; }
  .g-only { padding: 4px 3px; }
  .mc-head img { display: none; }
  .mc-name { font-size: 16px; }
}

/* ---------- смета: разделы и заголовки ---------- */
.s-sec-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr.s-sec .s-sectitle { font-weight: 700; }
tr.s-head td { background: transparent; }
tr.s-head .s-sectitle { font-weight: 600; font-style: italic; font-size: 14.5px; }

/* ---------- личный кабинет в настройках ---------- */
.plan-now { display: inline-block; margin-top: 4px; font-size: 14px; }
.plans-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.pm { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.pm.on { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.pm span { color: var(--ink-2); font-weight: 600; }
.pm small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.acc-det summary { cursor: pointer; font-size: 14px; color: var(--action); margin: 8px 0; }
.acc-pw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-pw input { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); flex: 1 1 180px; }
.acc-code { margin-top: 10px; }
.acc-code-v { font: 700 18px var(--sans); letter-spacing: .08em; }
@media (max-width: 720px) { .plans-mini { grid-template-columns: 1fr; } }

/* ---------- стоимость ---------- */
.g-cost { margin-top: 6px; }
.g-cost-h { font-size: 13px; margin: 6px 0 2px; }
.g-cost select, .s-calc select { height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); max-width: 100%; }
.s-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 6px; font-size: 14px; color: var(--ink-2); }
.s-cost { margin: 8px 0 18px; }
.s-cost[hidden] { display: none; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.c-table td, .c-table th { padding: 6px 8px; }
.c-n { text-align: right; white-space: nowrap; font-family: var(--sans); font-size: 13px; }
.c-code { font-family: var(--sans); font-size: 12.5px; white-space: nowrap; }
.c-sec td { font-weight: 700; background: var(--paper); }
.c-table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.plans-mini > p { grid-column: 1 / -1; margin: 4px 0 0; }

/* ---------- программа для Windows (тонкий клиент) и вход в неё через браузер ---------- */
.gate-desk { width: 100%; display: grid; gap: 8px; }
.gate-btn-alt { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: none; font-size: 15px; }
.gate-btn-alt:hover { border-color: var(--action); background: var(--surface); color: var(--ink); }
.gate-desk-code summary { cursor: pointer; font-size: 14px; color: var(--action); text-align: center; list-style: none; }
.gate-desk-code summary::-webkit-details-marker { display: none; }
.gate-desk-code form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0 6px; }
.gate-desk-code input { height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 17px var(--sans); letter-spacing: .12em; text-align: center; text-transform: uppercase; min-width: 0; }
.gate-desk-code .gate-btn { padding: 0 16px; }
.desk-code { font-family: var(--sans); font-size: 1.15em; letter-spacing: .12em; color: var(--ink); }
.gate-oauth.desk-off { display: none !important; }
.desk-plan { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--marker-soft); color: var(--ink); font-size: 13.5px; }
.desk-plan span { flex: 1 1 auto; }
.desk-plan .icon-btn { width: 30px; height: 30px; }
.desk-ok p { margin: 10px 0; }
.desk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.d-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-hk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }
.d-hk { width: 240px; height: 42px; padding: 0 12px; font: 600 15px var(--sans); background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-radius: 10px; cursor: pointer; caret-color: transparent; }
.d-hk.rec, .d-hk:focus { outline: none; border-color: var(--action); }
.d-st { font-size: 13px; }
.d-st.ok { color: var(--ok); }
.d-st.bad { color: var(--danger); }
#d_settings .g-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
#d_settings .g-check input { margin-top: 4px; }
.d-log { max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 12px/1.45 var(--sans); white-space: pre-wrap; word-break: break-word; }
.acc-app { margin: 4px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* ---------- одна вкладка поиска: переключатель «Расценки / Материалы» и метка «только …» ---------- */
.kind-sw { display: inline-flex; flex: none; align-self: center; padding: 4px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.kind-sw button { border: 0; background: transparent; padding: 0 16px; height: 44px; border-radius: 10px; font: 600 15px inherit; font-family: inherit; color: var(--ink-2); cursor: pointer; }
.kind-sw button.on { background: var(--ink); color: var(--paper); }
.kind-sw button:not(.on):hover { color: var(--ink); background: var(--paper); }
@media (max-width: 720px) { .search { flex-wrap: wrap; } .search input { flex: 1 1 100%; min-width: 0; } .kind-sw { order: -1; } .kind-sw button { height: 38px; padding: 0 12px; } }
/* оплата тарифа в кабинете */
.pm .pm-pay { margin-top: 8px; width: 100%; }
.pm .pm-year { margin: 3px 0; }
.pm-terms { display: grid; gap: 4px; margin-top: 8px; font-weight: 400 !important; }
.pm-terms label { white-space: nowrap; cursor: pointer; }
.pm-months label { margin-right: 8px; white-space: nowrap; }
/* избранное, история, свои слова */
.fav-open { flex: none; width: 46px; border: 1px solid var(--line-strong, #c9d2e0); border-radius: 12px; background: var(--surface, #fff); color: #F28C1B; font-size: 22px; line-height: 1; cursor: pointer; }
.fav-open:hover { background: var(--paper, #f5f7fb); }
.act.act-fav.on { color: #c26a06; font-weight: 600; }
.hist-drop { position: absolute; z-index: 30; background: var(--surface, #fff); border: 1px solid var(--line-strong, #c9d2e0); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 30, 60, .15); padding: 6px; max-height: 340px; overflow: auto; }
.hist-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 4px 8px; }
.hist-clear { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.hist-i { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.hist-i:hover { background: var(--paper, #f2f5fa); }
.fav-list { list-style: none; margin: 0 0 10px; padding: 0; }
.fav-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fav-acts { display: flex; gap: 6px; align-items: flex-start; flex: none; }
#synBox { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; margin-bottom: 6px; }
/* выбор цен (сплит-формы) */
.price-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; padding: 4px 4px 0; font-size: 14px; }
.price-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.pp { position: relative; display: inline-flex; align-items: center; }
/* редакция ФСНБ-2022 (дополнение) — рядом с выбором цен */
.ed-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); margin-right: 6px; }
.ed-sel { height: 32px; max-width: min(300px, 70vw); padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.ed-sel:focus { outline: 2px solid var(--accent, #2459E0); outline-offset: 0; border-color: transparent; }
.ed-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(242, 140, 27, .14); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.ed-note { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--paper, rgba(36, 89, 224, .06)); font-size: 13px; color: var(--ink-2); }
.pp-in { height: 32px; width: min(420px, 62vw); padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.pp-in:focus { outline: 2px solid var(--accent, #2459E0); outline-offset: 0; border-color: transparent; }
.pp-btn { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 26px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.pp-off .pp-in { opacity: .6; }
.pp-dd { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: max(100%, 360px); max-width: calc(100vw - 32px); max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 30, 60, .18); padding: 4px 0; }
.pp-grp { padding: 8px 12px 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.pp-opt { padding: 6px 12px 6px 20px; cursor: pointer; font-size: 14px; color: var(--ink); }
.pp-opt.on { font-weight: 600; }
.pp-opt.pp-act, .pp-opt:hover { background: var(--paper, rgba(36, 89, 224, .08)); }
.pp-none { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.p-ann .p-vq { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.pv-row { width: 74px; height: 24px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; text-align: right; }
.pv-row:focus { outline: 2px solid var(--accent, #2459E0); border-color: transparent; }
.p-ann .p-vol { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; }
.p-ann .p-vol b { display: inline; font-size: 13px; }
.price-note { margin: 0; }
.p-ann { margin-top: 6px; text-align: right; line-height: 1.2; }
.p-ann b { display: block; font-size: 15px; color: var(--ink); }
.p-ann span { display: block; font-size: 11.5px; color: var(--muted); }
.res:has(.p-ann) .price { display: none; }

.pin-menu { position: relative; display: inline-block; }
.pin-menu > summary { list-style: none; white-space: nowrap; }
.pin-menu > summary::-webkit-details-marker { display: none; }
.pin-menu > summary.pinned { color: var(--action); font-weight: 700; }
.pin-pop { position: absolute; z-index: 45; right: 0; top: calc(100% + 5px); display: grid; grid-template-columns: repeat(5, 32px); gap: 4px; width: 210px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-up); }
.pin-pop > b, .pin-pop > .pin-remove { grid-column: 1 / -1; }
.pin-pop button { min-height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; }
.pin-pop .pin-remove { color: var(--danger); }
.pin-add[hidden] { display: none; }
.pin-add-dlg { width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px #0004; }
.pin-add-dlg::backdrop { background: #14203399; }
.pin-add-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pin-add-head h2 { margin: 0; font-size: 20px; }
#pinAddForm { display: grid; gap: 12px; }
#pinAddForm input, #pinAddForm select { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; }
.pin-add-tab { color: var(--ink-2); font-size: 14px; }
.pin-add-preview { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; }
.pin-add-preview[hidden] { display: none; }
#pinAddError:empty { display: none; }
#pinAddError { margin: 0; }
@media (max-width: 720px) { .pin-add-dlg { padding: 16px; } .pin-add { white-space: normal; } }

.tour-shade { position: fixed; inset: 0; z-index: 900; background: rgb(15 23 42 / 35%); }
.tour-mark { position: fixed; z-index: 901; pointer-events: none; border: 3px solid var(--marker); border-radius: 12px; box-shadow: 0 0 0 6px rgb(242 140 27 / 25%), 0 0 30px rgb(0 0 0 / 25%); }
.tour-tip { position: fixed; z-index: 902; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-up); color: var(--ink); }
.tour-tip h2 { margin: 4px 0 6px; font-size: 20px; }
.tour-tip p { margin: 0 0 12px; line-height: 1.45; }
.tour-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.tour-top button { border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.tour-btns { display: flex; gap: 8px; }
.tour-btns .btn { flex: 1; }
.tour-btns .btn[hidden] { display: none; }
.tour-skip { display: block; margin: 8px auto 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
@media (max-width: 700px) { .tour-tip { max-height: 45dvh; overflow: auto; } .tour-open span { display: none; } }
