/* web-20261118-r1 (owner tasks 17.11): existing components only. */
/* Б1: three equal actions on the first screen of Home — «Новая запись», «Загрузить файл», «Вставить ссылку» */
#start .landing-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px !important; max-width: 640px; }
#start .landing-actions > button { width: 100%; min-height: 52px; justify-content: center; padding-inline: 14px; white-space: nowrap; }
@media (max-width: 980px) { #start .landing-actions { grid-template-columns: 1fr; max-width: none; } #start .landing-actions > button { min-height: 52px; } }
/* web-20261118-r2: at 981–1365 px the hero column is narrow — the labels overflowed their buttons (r1). One column up to 1199 px
   (as on tablets), a little tighter at 1200–1365 px; three equal buttons from 1366 px. */
@media (min-width: 981px) and (max-width: 1199px) { #start .landing-actions { grid-template-columns: 1fr; max-width: 360px; gap: 10px !important; } }
@media (min-width: 1200px) and (max-width: 1365px) { #start .landing-actions { gap: 8px !important; } #start .landing-actions > button { padding-inline: 8px; font-size: 15px; gap: 6px; } }
@media (min-width: 1200px) and (max-width: 1279px) { #start .landing-actions > button { font-size: 14px; padding-inline: 6px; } }
/* Б5: «Войти» for guests, a profile icon after sign-in */
.topbar .mx-head-account { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.topbar .mx-head-account i { font-size: 18px; }
.topbar .mx-head-account:not(.is-signed) { background: var(--primary, #1677e5); color: #fff; border: 1px solid transparent; }
.topbar .mx-head-account:not(.is-signed) i { display: none; }
.topbar .mx-head-account.is-signed { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--line, #d6deea); background: var(--panel, #fff); color: var(--text, #0d1830); }
.topbar .mx-head-account.is-signed .mx-head-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar .mx-head-account.is-signed i { font-size: 22px; }
@media (max-width: 760px) { body > .topbar .top-actions > button.mx-head-account { width: auto !important; min-width: 0 !important; min-height: 44px; padding: 0 14px !important; font-size: 15px; } body > .topbar .top-actions > button.mx-head-account.is-signed { width: 44px !important; padding: 0 !important; } }
/* В7: meetxt.com — payment «скоро» with «Сообщить, когда появится» */
#payment.mx-com-soon-on [data-buy-pack], #payment.mx-com-soon-on .mx-tbank-tier-pay, #payment.mx-com-soon-on .checkout-closed { display: none !important; }
.mx-com-soon { margin: 14px 0 8px; padding: 16px 18px; border-radius: 14px; background: #eef5ff; border: 1px solid #cfe0fb; color: #22324f; }
.mx-com-soon h3 { margin: 0 0 6px; font-size: 18px; }
.mx-com-soon p { margin: 0 0 12px; line-height: 1.5; }
.mx-com-soon-form { display: grid; gap: 10px; max-width: 520px; }
.mx-com-soon-email { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.mx-com-soon-email input { min-height: 44px; padding: 0 12px; border: 1px solid #b9cbe6; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: #0d1830; }
.mx-com-soon .mx-com-soon-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.45; min-height: 44px; margin: 0; }
.mx-com-soon .mx-com-soon-consent input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: 0 0 auto; }
.mx-com-soon-form button { justify-self: start; min-height: 44px; }
.mx-com-soon-msg { margin: 0; font-size: 14px; }
.mx-tbank-body .mx-com-soon { margin: 0; }
:root[data-theme="dark"] .mx-com-soon { background: #13244a; border-color: #2a4372; color: #e3ebff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mx-com-soon { background: #13244a; border-color: #2a4372; color: #e3ebff; } }

/* ---- web-20261118-r2 (owner Д): Кабинет ---- */
/* Д2: the left menu works as tabs — one section at a time */
#account .mx-acct-flow.mx-acct-tabs > .mx-acct-sec:not(.is-current) { display: none !important; }
#account .mx-acct-jump a { min-height: 44px; display: flex; align-items: center; }
#account .mx-acct-jump a[aria-current="page"] { background: var(--mx-select-soft, #eaf3fe); color: var(--primary, #1677e5); font-weight: 700; border-radius: 10px; }
#account .mx-acct-jump a.mx-acct-tab-danger { color: var(--danger, #c0362c); }
#account .mx-acct-sec-title:focus { outline: none; }
/* Д3: «Дополнительно» */
#account details.mx-acct-more { padding: 0; }
#account details.mx-acct-more > summary { display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 12px 18px; cursor: pointer; list-style: none; }
#account details.mx-acct-more > summary::-webkit-details-marker { display: none; }
#account .mx-acct-more-title { font-weight: 700; }
#account .mx-acct-more-sub { font-size: 14px; color: var(--muted, #5b6475); }
#account details.mx-acct-more > :not(summary) { margin-left: 18px; margin-right: 18px; }
#account details.mx-acct-more > .mx-card { margin-bottom: 14px; box-shadow: none; }
/* Д5: «Очистить локальные данные» in «Опасная зона» */
#account .mx-clear-local { display: grid; gap: 10px; justify-items: start; padding: 16px 18px; }
#account .mx-clear-local .hint { margin: 0; }
#account .mx-clear-local #clear-local { min-height: 44px; }
/* Д4: «Давно не использовалось» is a note, not an error */
#account .device-state.inactive { color: var(--muted, #5b6475) !important; background: transparent !important; border-color: var(--line, #d6deea) !important; }
/* Б3: the bot is one line in Кабинет; its full settings are on «Бот и календари» */
#account #mx-acct-bot #mx-meetbot-settings { display: none !important; }
#account .mx-bot-line { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 16px 18px; }
#account .mx-bot-line-text { margin: 0; font-weight: 600; }
#account .mx-bot-line-go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; text-decoration: none; }
/* Г2: «Возможности» card = title, one line, «Подробнее»; wider columns (no 233 px cards); folded plan details on phones */
#solutions .mx-feat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
#solutions .mx-feat > p.mx-clamp:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#solutions .mx-clamp-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin-top: 2px; font-weight: 700; color: var(--primary, #1677e5); background: none; border: 0; cursor: pointer; }
@media (max-width: 760px) {
  #payment .mx-fold-sec > h3 { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; }
  #payment .mx-fold-sec > h3::after { content: '▾'; font-size: 18px; color: var(--muted, #5b6475); transition: transform .15s; }
  #payment .mx-fold-sec.is-open > h3::after { transform: rotate(180deg); }
  #payment .mx-fold-sec:not(.is-open) > :not(h3) { display: none !important; }
}
@media (max-width: 760px) {
  /* Возможности on phones: compact cards (icon next to the title), smaller guide screenshots, the example opens by its title */
  #solutions .mx-feat { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 12px 14px; }
  #solutions .mx-feat > i { grid-row: 1; align-self: center; font-size: 20px; margin: 0; }
  #solutions .mx-feat > h4 { grid-column: 2; margin: 0; }
  #solutions .mx-feat > p, #solutions .mx-feat > .mx-clamp-more { grid-column: 1 / -1; margin-top: 6px; }
  #solutions .mx-feat-grid { gap: 10px; }
  #how-it-works .mx-guide-step figure { max-height: 190px; }
  #solutions .mx-fold-ex .mx-example-copy h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; }
  #solutions .mx-fold-ex .mx-example-copy h2::after { content: '▾'; font-size: 20px; color: var(--muted, #5b6475); }
  #solutions .mx-fold-ex.is-open .mx-example-copy h2::after { content: '▴'; }
  #solutions .mx-fold-ex:not(.is-open) > :not(.mx-example-copy), #solutions .mx-fold-ex:not(.is-open) .mx-example-copy > :not(h2):not(.editorial-kicker) { display: none !important; }
}
@media (max-width: 760px) {
  #solutions .mx-fold-grp > h3 { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; border-bottom: 1px solid var(--line, #e2e8f2); }
  #solutions .mx-fold-grp > h3::after { content: '▾'; font-size: 18px; color: var(--muted, #5b6475); }
  #solutions .mx-fold-grp.is-open > h3::after { content: '▴'; }
  #solutions .mx-fold-grp:not(.is-open) > :not(h3) { display: none !important; }
  #solutions .mx-fold-grp.is-open > h3 { margin-bottom: 10px; }
}

/* Б3 (web-20261118-r2): «Новая запись» — the bot as one line (full form on /bot.html) */
#record #meetbot-panel { display: none !important; }
#record .mx-rec-bot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0; color: var(--muted, #5b6475); }
#record .mx-rec-bot-line a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--primary, #1677e5); }
/* Е2 (web-20261118-r2): phone tap targets ≥ 44 px — logo, plan chip, «Политика данных» / «Оферта и условия», checkboxes, selects */
@media (max-width: 760px) {
  body > .topbar .brand { min-height: 44px; display: inline-flex; align-items: center; }
  body > .topbar .plan-chip { min-height: 44px; }
  #record .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
  #record label.compact-toggle, #record label.legal-consent { min-height: 44px; display: flex; align-items: center; }
  #history .mx-lib-tool select, #history select, #record select { min-height: 44px; }
  #record .mx-free-line a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* web-20261118-r2: «Бот и календари» in the header — the row must still fit at 1366–1919 px (the hidden «Новая запись» keeps its
   place on purpose: no jump between screens). Slightly tighter items, the plan chip in its short form («🎁 2 ч», as on phones) and the
   Android item as its icon (full names stay for screen readers). */
@media (min-width: 761px) {
  body > .topbar #main-nav > .ghost { padding-inline: 8px; }
  body > .topbar #main-nav .mx-nav-android { padding-inline: 8px; }
  body > .topbar #main-nav .mx-nav-android .mx-nav-android-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body > .topbar #main-nav .mx-nav-android .mx-nav-android-short { display: none !important; }
}
/* 1061–1365 px: «Бот и календари» as «Бот» in the header row (full name kept for screen readers and in the phone menu) */
@media (min-width: 1061px) and (max-width: 1365px) {
  body > .topbar #main-nav > #mb-navlink[data-short] { font-size: 0 !important; }
  body > .topbar #main-nav > #mb-navlink[data-short]::before { content: attr(data-short); font-size: 14px; }
}
/* 1200–1279 px: with «Бот» in the row the name next to the logo hides, as it already does at 1061–1199 (the logo stays the Home link) */
@media (min-width: 1200px) and (max-width: 1279px) { body > .topbar .brand-text { display: none !important; } }
/* Google Диск never on meetxt.ru (and on .com only after the server allows it): the record screen's storage tile too */
html.mx-off-google-drive .mx-store-options > [data-store="google"] { display: none !important; }
html.mx-off-google-drive #import.mx-import .mx-store-options.has-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.mx-off-google-drive #import.mx-import .mx-imp-side .mx-store-options.has-3 { grid-template-columns: 1fr; }

/* web-20261119-r3 (owner 19.11 п.5б): «Кабинет» leaves the menu — the person control next to the language is the one way in (the phone
   bottom bar keeps «Кабинет»). With the place freed the full plan chip is back on wide screens (r2 shortened it). */
body > .topbar #main-nav > .nav-login { display: none !important; }
body > .topbar .mx-head-account:hover { filter: brightness(1.06); }
body > .topbar .mx-head-account.is-signed:hover { background: var(--mx-select-soft, #eaf3fe); }
body > .topbar .mx-head-account:focus-visible, body > .topbar #mb-navlink:focus-visible, body > .topbar .plan-chip:focus-visible { outline: 3px solid var(--primary, #1677e5); outline-offset: 2px; }
/* 1280–1439 px: the short plan chip (as at 1061–1279) — on screens where «Новая запись» shows, the full chip pushed Android onto the bell */
@media (min-width: 1280px) and (max-width: 1439px) {
  body > .topbar .plan-chip .plan-chip-full { display: none !important; }
  body > .topbar .plan-chip .plan-chip-short { display: inline !important; }
}
/* web-20261119-r4 (owner site item 7): before the header control is painted, a remembered «was signed in» shows the profile icon, not «Войти» */
html.mx-was-signed .topbar .mx-head-account:not(.mx-acct-painted) { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--line, #d6deea); background: var(--panel, #fff); color: var(--text, #0d1830); }
html.mx-was-signed .topbar .mx-head-account:not(.mx-acct-painted) i { display: inline; }
html.mx-was-signed .topbar .mx-head-account:not(.mx-acct-painted) .mx-head-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
