/* ==========================================================================
   Тема нового дизайну · КАБІНЕТ / АКАУНТ (views/beta-theme: profile, digest, account/*, page, help)
   Лише свої класи з префіксом tb-acc-; базові компоненти й токени — у beta.css.
   ========================================================================== */

/* ---- спільне ---- */
.tb-acc .tb-lib-card + .tb-lib-card { margin-top: 0; }
.tb-acc .tb-lib-main { gap: 16px; }
.tb-acc-card { display: grid; gap: 4px; }
.tb-acc-card .tb-lib-h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tb-acc-h2-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--paper); color: var(--ink-2); }
.tb-acc-h2-ico svg { width: 18px; height: 18px; }
.tb-acc-step { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--go); color: var(--ink); font: 800 14px/1 var(--f-display); }
.tb-acc-card-lead { margin: -6px 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tb-acc-hint { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tb-acc-hint a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-acc-error { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--coral-d); }
.tb-acc-errors { margin-bottom: 16px; }
.tb-acc-errors ul { margin: 6px 0 0; padding-left: 18px; }
.tb-acc-errors p { margin: 0; }
.tb-acc-static { min-height: 48px; display: flex; align-items: center; padding: 11px 14px; border-radius: var(--r); background: var(--paper); font-weight: 700; word-break: break-all; }
.tb-acc-center { text-align: center; }
.tb-acc-center .tb-catalog-head-row, .tb-acc-center.tb-catalog-head { justify-items: center; }
.tb-acc-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--go); background: var(--paper); }
.tb-acc-fb { padding: 10px; min-height: 154px; overflow: hidden; }
.tb-acc .tb-chip svg { width: 14px; height: 14px; }
.tb-acc .tb-btn svg { width: 18px; height: 18px; flex: none; }
.tb-acc .tb-btn-sm svg { width: 16px; height: 16px; }

/* флеш «Зміни успішно збережені» — поверх bootstrap .alert (потрібен для $('#save_msg').alert('close')) */
.tb-acc-flash.alert { position: relative; padding: 12px 44px 12px 16px; margin-bottom: 16px; border-width: 2px; }
.tb-acc-flash-close.close { position: absolute; top: 8px; right: 10px; opacity: .6; font-size: 24px; line-height: 1; color: var(--ink); text-shadow: none; }
.tb-acc-flash-close.close:hover { opacity: 1; }

/* ---- Особиста сторінка (/profile/<id>) ---- */
.tb-acc-prof-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px; }
.tb-acc-prof-head .tb-page-h1 { margin: 2px 0 10px; }
.tb-acc-prof-meta { gap: 8px 18px; font-size: 14px; }
.tb-acc-prof-meta > span { align-items: flex-start; }
.tb-acc-prof-meta svg { flex: none; margin-top: 2px; }
.tb-acc-prof-meta a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-acc-prof-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tb-acc-prof-listhead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.tb-acc-prof-listhead .tb-section-h2 { margin: 0; }
.tb-acc-prof-listhead .tb-catalog-count { margin: 0; }
.tb-acc-prof-item { grid-template-columns: 56px minmax(0, 1fr) 28px; align-items: center; }
.tb-acc-prof-item:hover .tb-acc-prof-go { color: var(--orange-d); transform: translateX(3px); }
.tb-acc-prof-body { display: grid; gap: 6px; min-width: 0; }
.tb-acc-prof-body .tb-lib-title { font-size: 16px; }
.tb-acc-prof-go { display: grid; place-items: center; color: var(--ink-3); transition: transform .12s, color .12s; }
.tb-acc-prof-go svg { width: 22px; height: 22px; }
.tb-acc-filetype { display: grid; justify-items: center; align-content: center; gap: 3px; width: 56px; height: 56px; border-radius: 14px; background: var(--paper); color: var(--ink-2); }
.tb-acc-filetype svg { width: 22px; height: 22px; }
.tb-acc-filetype b { font: 800 9.5px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-acc-filetype.is-test { background: var(--sky); color: #fff; }
.tb-acc-filetype.is-docx, .tb-acc-filetype.is-doc { background: rgba(41, 121, 255, .12); color: var(--sky-d); }
.tb-acc-filetype.is-pptx, .tb-acc-filetype.is-ppt { background: rgba(244, 134, 23, .14); color: var(--orange-d); }
.tb-acc-filetype.is-pdf { background: rgba(255, 87, 34, .12); color: var(--coral-d); }
.tb-acc-filetype.is-zip, .tb-acc-filetype.is-rar { background: rgba(92, 107, 192, .14); color: var(--grape-d); }
.tb-acc-filetype.is-xlsx, .tb-acc-filetype.is-xls { background: rgba(67, 160, 71, .14); color: var(--mint-d); }
.tb-acc-prof-aside .show-time-item { display: block; margin-bottom: 14px; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); }
.tb-acc-prof-aside .show-time-item img { display: block; }

/* ---- Персональна добірка (/digest) ---- */
.tb-acc-dg-beta { margin-left: 4px; font: 800 12px/1 var(--f-display); color: var(--coral); vertical-align: super; letter-spacing: .04em; }
.tb-acc-dg-filterhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tb-acc-dg-filterhead .tb-label { margin: 0; }
.tb-acc-dg-chips label.tb-chip-btn { position: relative; cursor: pointer; margin: 0; font-weight: 600; }
.tb-acc-dg-chips label.tb-chip-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tb-acc-dg-chips label.tb-chip-btn::before { content: ''; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 2px solid var(--line-2); background: #fff; }
.tb-acc-dg-chips label.tb-chip-btn.is-on::before { border-color: var(--go); background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263238' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tb-acc-dg-chips label.tb-chip-btn:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.tb-acc .tb-filters .tb-hint { margin: 2px 0 0; }
.tb-acc-dg-groups { display: grid; gap: 16px; }
.tb-acc-dg-card { position: relative; overflow: hidden; }
.tb-acc-dg-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--g, var(--go)); }
.tb-acc-dg-card .tb-lib-h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tb-acc-dg-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--g, var(--go)); color: #fff; }
.tb-acc-dg-ico svg { width: 18px; height: 18px; }
.tb-acc-dg-lead { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tb-acc-dg-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tb-acc-dg-list li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.4; }
.tb-acc-dg-list li:first-child { border-top: 0; }
.tb-acc-dg-list li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--g, var(--go)); }
.tb-acc-dg-list li a { color: var(--ink); font-weight: 700; }
.tb-acc-dg-list li a:hover { color: var(--orange-d); text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }
.tb-acc-dg-meta { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tb-acc-dg-personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.tb-acc-dg-persona { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); color: var(--ink); transition: transform .12s, box-shadow .12s; }
.tb-acc-dg-persona:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-2); color: var(--ink); }
.tb-acc-dg-persona-img { display: block; aspect-ratio: 1 / 1; background: var(--paper); }
.tb-acc-dg-persona-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-acc-dg-persona-name { display: grid; place-items: center; min-height: 56px; padding: 8px 10px; text-align: center; font: 700 14px/1.25 var(--f-display); }
.tb-acc-dg-feedback { margin-top: 20px; }
.tb-acc-dg-feedback .tb-note { margin-bottom: 12px; }
.tb-acc-dg-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 4px 0 12px; }
.tb-acc-dg-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tb-acc-dg-rate label { margin: 0; padding: 2px; cursor: pointer; color: var(--line-2); line-height: 0; transition: color .1s, transform .1s; }
.tb-acc-dg-rate label svg { width: 34px; height: 34px; }
.tb-acc-dg-rate input:checked ~ label, .tb-acc-dg-rate label:hover, .tb-acc-dg-rate label:hover ~ label { color: var(--go); }
.tb-acc-dg-rate label:hover { transform: scale(1.1); }
.tb-acc-dg-rate input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }

/* ---- Мої документи ПК (/documents) ---- */
.tb-acc-doc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tb-acc-doc-table { gap: 10px; } /* крок списку — 10px, як у DESIGN.md (було 6px: картки свідоцтв злипались) */
.tb-acc-doc-table .doc-year { margin-top: 14px; }
.tb-acc-doc-table .doc-year:first-child { margin-top: 0; }
.doc-year-count { font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.tb-acc-docrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: border-color .12s, box-shadow .12s; }
.tb-acc-docrow:hover { border-color: var(--line-2); box-shadow: 0 4px 0 var(--line); }
.tb-acc-docrow[hidden], .tb-acc-doc-table .doc-year[hidden] { display: none; }
.tb-acc-docrow .tb-doc-name { gap: 5px; }
.tb-acc-docrow .tb-doc-name > b { font-weight: 700; }
.tb-acc-docrow .tb-doc-name small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tb-acc-docrow .tb-doc-name small b { color: var(--ink-2); }
.tb-acc-doc-action { display: grid; justify-items: end; gap: 4px; text-align: right; }
.tb-acc-doc-action .tb-btn { white-space: nowrap; }
.doc-downloaded { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tb-acc .doc-th-sort .doc-sort-arrow { font-weight: 900; }
.tb-acc .doc-filters-reset[hidden] { display: none; }
.tb-acc .doc-nothing[hidden] { display: none; }

/* ---- Налаштування (/preferences) ---- */
.tb-acc-form { display: grid; gap: 16px; }
.tb-acc-form .tb-field { margin-bottom: 14px; }
.tb-acc-form .tb-field:last-child { margin-bottom: 0; }
.tb-acc-form .tb-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tb-acc-form .tb-input, .tb-acc-form .tb-select, .tb-acc-form .tb-textarea { font-weight: 600; }
/* DepDrop/Select дописують form-control — вирівнюємо під tb-select */
.tb-acc-form select.form-control, .tb-acc-form input.form-control { height: auto; min-height: 48px; padding: 11px 14px; border: 2px solid var(--line-2); border-radius: var(--r); background-color: var(--card); color: var(--ink); font: 600 16px/1.3 var(--f-body); box-shadow: none; }
.tb-acc-form select.form-control:focus, .tb-acc-form input.form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 121, 255, .18); }
.tb-acc-form .has-error .tb-input, .tb-acc-form .has-error .tb-select, .tb-acc-form .has-error .tb-textarea, .tb-acc-form .has-error .form-control { border-color: var(--coral); }
.tb-acc-form .has-error .tb-label { color: var(--coral-d); }
.tb-acc-form .help-block { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--coral-d); }
.tb-acc-form .help-block:empty { display: none; }
.tb-acc-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tb-acc-avatar-upload { display: flex; align-items: center; gap: 18px; }
.tb-acc-avatar-pick { position: relative; display: block; width: 96px; height: 96px; flex: none; margin: 0; cursor: pointer; border-radius: 50%; }
.tb-acc-avatar-pick .tb-acc-avatar { display: block; }
.tb-acc-avatar-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border-radius: 50%; }
.tb-acc-avatar-badge { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; border: 2px solid #fff; pointer-events: none; }
.tb-acc-avatar-badge svg { width: 16px; height: 16px; }
.tb-acc-avatar-pick:hover .tb-acc-avatar-badge { background: var(--orange-d); }
.tb-acc-avatar-rules { display: grid; gap: 4px; justify-items: start; font-size: 14px; color: var(--ink-2); }
.tb-acc-avatar-rules strong { font: 800 16px/1.2 var(--f-display); color: var(--ink); }
.tb-acc-avatar-rules .tb-btn { margin-top: 6px; color: var(--coral-d); }
.tb-acc-check { margin-bottom: 10px; }
.tb-acc-check .checkbox { margin: 0; padding: 0; }
.tb-acc-check .checkbox label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); cursor: pointer; min-height: 0; }
.tb-acc-check .checkbox label:hover { border-color: var(--line-2); }
.tb-acc-check .checkbox input[type="checkbox"] { position: static; margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--go); }
.tb-acc-submit { position: sticky; bottom: 0; z-index: 2; margin: 0 -4px; padding: 10px 4px 12px; background: linear-gradient(to top, var(--paper) 70%, transparent); }
.tb-acc-submit .tb-btn { min-width: 240px; }
.tb-acc-form #change_password_block { margin-bottom: 4px; }
.tb-acc-form #change_password_block.hide { display: none; }
.tb-acc-form #change_password_lnk.hide { display: none; }

/* ---- Запросити колегу (/account/referral) ---- */
.tb-acc-ref-linkrow { display: flex; gap: 8px; align-items: stretch; }
.tb-acc-ref-linkrow .tb-input { flex: 1 1 auto; min-width: 0; }
.tb-acc-ref-linkrow .tb-btn { flex: none; }
.tb-acc-ref-link { font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.tb-acc-ref-share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-acc-ref-share .tb-btn { width: 100%; }
.tb-acc-ref-alert.alert { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border-width: 2px; font-size: 14px; font-weight: 600; }
.tb-acc-ref-alert.alert-success { background: #e8f5e9; border-color: var(--mint); color: var(--mint-d); }
.tb-acc-ref-alert.alert-warning { background: #fff8e1; border-color: var(--go); color: var(--ink); }
.tb-acc-ref-alert.hide { display: none; }
.tb-acc .send-invite.disabled { opacity: .6; pointer-events: none; }
.tb-acc-ref-table td:first-child, .tb-acc-ref-table th:first-child { width: 56px; color: var(--ink-3); }

/* ---- Служба підтримки (/page/contact-us) та статичні сторінки ---- */
.tb-acc-support { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.tb-acc-support-ways { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tb-acc-support-or { align-self: center; font: 800 14px/1 var(--f-display); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.tb-acc-support-way { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 26px 20px; text-align: center; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.tb-acc-support-way:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-2); color: var(--ink); }
.tb-acc-support-way img { width: 70px; height: 70px; }
.tb-acc-support-way b { font: 800 18px/1.2 var(--f-display); word-break: break-all; }
.tb-acc-support-way .tb-btn { pointer-events: none; }
.tb-acc-support-ico { display: grid; place-items: center; width: 70px; height: 70px; flex: none; border-radius: 50%; background: var(--paper); color: var(--orange); }
.tb-acc-support-ico svg { width: 34px; height: 34px; }
.tb-acc-support-hours { display: flex; align-items: center; gap: 18px; padding: 20px 22px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tb-acc-support-hours b { font: 800 20px/1.3 var(--f-display); color: var(--ink); }
.tb-acc-support-hours .tb-acc-support-ico { width: 56px; height: 56px; color: var(--ink-2); }
.tb-acc-support-hours .tb-acc-support-ico svg { width: 28px; height: 28px; }
.tb-acc-support .tb-section-h2 { margin: 10px 0 0; font-size: 19px; color: var(--ink-2); }
.tb-acc-support-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-acc-support-video { color: var(--ink); }
.tb-acc-support-video .tb-tcard-img { aspect-ratio: 16 / 9; }
.tb-acc-support-video-cap { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font: 700 14px/1 var(--f-body); }
.tb-acc-support-video-cap svg { width: 18px; height: 18px; color: var(--coral); }
.tb-acc-page-content { font-size: 16px; line-height: 1.6; }
.tb-acc-page-content p { margin: 0 0 14px; }
.tb-acc-page-content ul, .tb-acc-page-content ol { padding-left: 22px; margin: 0 0 14px; }
.tb-acc-page-content h2, .tb-acc-page-content h3 { margin: 22px 0 10px; font: 800 20px/1.25 var(--f-display); }
.tb-acc-page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.tb-acc-page-content a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--go); text-underline-offset: 3px; }

/* ---- FAQ (/help) ---- */
.tb-acc-help-menu { padding: 10px; }
.tb-acc-help-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tb-acc-help-menu li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.tb-acc-help-menu li a:hover { background: var(--paper); }
.tb-acc-help-menu li.is-on a { background: #fff8e1; font-weight: 800; }
.tb-acc-help-list { display: grid; gap: 10px; }
.tb-acc-help-item { padding: 0; }
.tb-acc-help-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font: 700 16px/1.3 var(--f-display); }
.tb-acc-help-item summary::-webkit-details-marker { display: none; }
.tb-acc-help-item summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .15s; }
.tb-acc-help-item[open] summary svg { transform: rotate(180deg); }
.tb-acc-help-answer { padding: 0 18px 16px; line-height: 1.55; color: var(--ink-2); }
.tb-acc-help-answer p:last-child { margin-bottom: 0; }

/* ---- Активація ---- */
.tb-acc-activate { display: grid; gap: 14px; justify-items: start; }

/* ---- мобільна версія ---- */
@media (max-width: 991px) {
    .tb-acc-dg-personas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tb-acc .tb-catalog-head-row { flex-direction: column; align-items: flex-start; }
    .tb-acc .tb-btn:not(.tb-btn-sm) { width: 100%; }
    .tb-acc-prof-head { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 18px 14px; }
    .tb-acc-prof-meta { justify-content: center; }
    .tb-acc-prof-actions { justify-content: center; width: 100%; }
    .tb-acc-prof-actions .tb-btn { flex: 1 1 auto; }
    .tb-acc-prof-item { grid-template-columns: 48px minmax(0, 1fr); }
    .tb-acc-prof-item .tb-acc-prof-go { display: none; }
    .tb-acc-filetype { width: 48px; height: 48px; }
    .tb-acc-prof-listhead { flex-direction: column; align-items: flex-start; }
    .tb-acc-dg-personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-acc-dg-filterhead { flex-wrap: wrap; }
    .tb-acc-dg-rate label svg { width: 40px; height: 40px; }
    .tb-acc-doc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-acc-docrow { grid-template-columns: 1fr; gap: 8px; }
    .tb-acc-doc-action { justify-items: stretch; text-align: left; }
    .tb-acc-doc-action .tb-btn { width: 100%; }
    .tb-acc .doc-th-sort { width: 100%; }
    .tb-acc-row-3 { grid-template-columns: 1fr; gap: 0; }
    .tb-acc-form .tb-field-row { grid-template-columns: 1fr; gap: 0; }
    /* у стовпчик останнє поле ряду (з margin-bottom: 0) прилипало до наступного поля — той самий крок 14px */
    .tb-acc-form .tb-field-row:not(:last-child) > .tb-field:last-child { margin-bottom: 14px; }
    .tb-acc-avatar-upload { flex-direction: column; text-align: center; }
    .tb-acc-avatar-rules { justify-items: center; }
    .tb-acc-submit .tb-btn { width: 100%; }
    .tb-acc-ref-linkrow { flex-direction: column; }
    .tb-acc-ref-share { grid-template-columns: 1fr; }
    .tb-acc-support-ways { grid-template-columns: 1fr; }
    .tb-acc-support-or { justify-self: center; }
    .tb-acc-support-hours { flex-direction: column; text-align: center; }
    .tb-acc-support-videos { grid-template-columns: 1fr; }
    .tb-acc-page-content { font-size: 15px; }
}
/* класичні правила .avatar-upload/.settings-page .remove-avatar (absolute, червоне коло) не діють у темі */
.tb-acc-avatar-rules .remove-avatar, .tb-embedded .avatar-upload .remove-avatar, .tb-embedded .settings-page .remove-avatar { position: static !important; display: inline-flex !important; width: auto !important; height: auto !important; margin: 8px 0 0 !important; padding: 7px 12px !important; border-radius: 10px !important; background: transparent !important; color: var(--ink) !important; font: 800 13px/1.1 var(--f-body) !important; opacity: 1 !important; transform: none !important; text-indent: 0 !important; }
.tb-acc-avatar-rules { display: grid; gap: 4px; }
.tb-acc-submit { background: var(--paper); border-top: 2px solid var(--line); margin: 0 -18px -18px; padding: 12px 18px; border-radius: 0 0 18px 18px; }
/* панель «Зберегти» прямо у формі (не в картці з полями 18px) — без від’ємних полів, інакше ширша за екран телефона */
.tb-acc-form > .tb-acc-submit { margin: 0; border-radius: 18px; border: 2px solid var(--line); }
/* «Запросити колегу»: кнопки соцмереж — звичайні другорядні (.tb-btn-line), кольорова лише іконка бренду; класичні рамки бренду прибрано */
.tb-acc-card .tb-btn.sth-btn-facebook, .tb-acc-card .tb-btn.sth-btn-google-plus { --c: var(--card); --c-d: var(--line-2); --t: var(--ink); border: 2px solid var(--line-2) !important; background: #fff !important; color: var(--ink) !important; }
.tb-acc-card .tb-btn.sth-btn-facebook svg { color: #1877f2; }
.tb-acc-card .tb-btn.sth-btn-google-plus svg { color: #ea4335; }
