.m-only { display: none; }
.m-bar, .rail-close, .rail-backdrop, .stage-bar > .m-burger, .stage-bar > .brand { display: none; }
.crumbs-back, .service-more { display: none; }

@media (max-width: 899px) {
  html.rail-lock { overflow: hidden; }
  body { overflow-x: clip; }
  img, svg, video, canvas { max-width: 100%; }

  .shell { --m-x: 20px; --m-y: 20px; }
  body .shell.shell-main { gap: var(--sp-4); }

  .shell-main > .m-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 56px;
    margin: calc(-1 * var(--m-y)) calc(-1 * var(--m-x)) 0;
    padding: var(--sp-2) var(--sp-3);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .shell-main.has-stage-burger > .m-bar { display: none; }
  .m-bar .m-burger, .stage-bar > .m-burger, .rail-close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-m);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .m-bar .m-burger:hover, .m-bar .m-burger:focus-visible, .stage-bar > .m-burger:hover, .stage-bar > .m-burger:focus-visible, .rail-close:hover, .rail-close:focus-visible { background: var(--surface-soft); color: var(--ink); filter: none; }
  .m-bar .m-burger svg, .stage-bar > .m-burger svg, .rail-close svg { width: 22px; height: 22px; }
  .stage-bar > .m-burger { margin-left: calc(-1 * var(--sp-2)); }
  .stage-bar > .brand { margin-right: var(--sp-2); }
  .m-bar .brand, .stage-bar > .brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
    min-height: 44px;
    color: var(--ink);
    font: 500 var(--fs-l) var(--font-brand);
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  body .shell.shell-main .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    order: 0;
    width: min(330px, 88vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) 16px;
    background: var(--panel);
    border: 0;
    border-right: 1px solid var(--line-card);
    overflow: hidden;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0s linear 0.24s, box-shadow 0.24s ease;
  }
  body .shell.shell-main.rail-open .rail {
    transform: none;
    visibility: visible;
    box-shadow: 0 0 60px rgba(25, 26, 36, 0.35);
    transition-delay: 0s;
  }
  .shell-main .rail-head { gap: var(--sp-2); }
  .shell-main .rail-head .rail-close { display: inline-flex; margin-left: auto; }
  .shell-main .rail-head .rail-fold, .shell-main .rail-grip, .shell-main .rail-strip { display: none !important; }
  body .rail-profile { display: block; }
  .rail-profile .profile-panel { width: min(300px, calc(100vw - 32px)); }
  .rail .rail-action, .rail .pm-item, .rail .frequent-item, .rail .rail-summary { min-height: 44px; }
  .rail .chats-row { height: 40px; }
  .rail .chats-title { line-height: 40px; }
  .rail .segment .segment-item { height: 40px; min-height: 40px; }
  .rail-find input { min-height: 44px; font-size: var(--fs-m); }

  .rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(25, 26, 36, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0s linear 0.24s;
  }
  .rail-backdrop.on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .rail .chats-dots { width: 32px; min-height: 32px; }
  .rail .chats-row { padding-right: var(--sp-7); }
  .rail .chats-row .chats-title { min-width: 0; flex: 1 1 auto; width: auto; overflow: hidden; text-overflow: ellipsis; }
  .rail .chats-row .chats-pinned { flex: none; }
  .stage-bar { flex-wrap: nowrap; gap: var(--sp-2); padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .stage-firm { flex: 0 1 auto; }
  .stage-company { flex: 0 1 auto; min-width: 0; padding: 0 var(--sp-3); }
  .stage-company-name { min-width: 0; }
  .stage-title { flex: 1 1 auto; }

  .shell-main .stage { min-height: calc(100vh - 100px); min-height: calc(100dvh - 100px); overflow: visible; overflow: clip; }
  .shell-main .stage-body { overflow: visible; padding: var(--sp-4) var(--sp-4) var(--sp-3); }
  .shell-main .stage-foot { position: sticky; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line-soft); }
  .stage-foot::before { display: none; }
  .chat-form { padding: var(--sp-3) var(--sp-3) var(--sp-2); gap: var(--sp-2); }
  .chat-form textarea, .chat-form .welcome-input { font-size: var(--fs-m); }
  .chat-tool { width: 40px; height: 40px; }
  .think.chat-tool { min-width: 40px; }
  #chat-send { width: 44px; height: 44px; }
  .attach-pop { max-width: calc(100vw - 48px); }
  .think-tip { max-width: calc(100vw - 56px); }
  .stage-foot > .disclaimer { font-size: var(--fs-xs); }

  .stage-bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .stage-firm { position: static; min-width: 0; }
  .firm-pop { left: 12px; right: 12px; width: auto; top: calc(100% - 4px); }
  .stage-company { height: 40px; max-width: 100%; }
  .stage-tool { width: 40px; height: 40px; }

  .service-cols { grid-template-columns: minmax(0, 1fr); }
  .service-col-form { padding: var(--sp-5) var(--sp-4) var(--sp-5); }
  .service-col-result { padding: var(--sp-5) var(--sp-4) var(--sp-5); border-left: 0; border-top: 1px solid var(--line-soft); }
  .service-hero { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
  .service-hero-name h1 { font-size: var(--fs-2xl); overflow-wrap: anywhere; }
  .service-hero-main { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .service-hero-foot { width: 100%; }
  .service-hero-top .crumbs { flex-wrap: nowrap; overflow: hidden; }
  .service-hero-top .crumbs-group { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .service-hero-top .service-tools .tip, .service-hero-top .service-tools .icon-button { width: 40px; height: 40px; }
  .service-bubble { max-width: calc(100vw - 32px); }
  .service-col-form input, .service-col-form select, .service-col-form textarea, .combo-input, .pk-date-input, .pf-input { font-size: var(--fs-m); }
  .service-col-form input.combo-input[type="text"] { font-size: var(--fs-m); }
  .service-col-form .seg-item span { height: 44px; }
  .service-col-form .field-label, .service-col-form .field label { overflow-wrap: anywhere; }
  .service-col-form .actions { flex-wrap: wrap; }
  .service-col-form .doc-pdf { min-height: 48px; }
  .service-col-form .file-pick, .file-pick { min-height: 48px; }
  .dep-block { padding-left: var(--sp-3); }
  .field-row { flex-wrap: wrap; }
  .service-col-form .field-row > .field:nth-child(n), .service-col-form .field-row[data-group="period"] > .field:nth-child(n), .service-col-form .field-row[data-group="range"] > .field:nth-child(n) { flex: 1 1 130px; }
  .pk-date { max-width: calc(100vw - 16px); }
  .pk-marks { width: calc(100vw - 32px); }
  .pk-day, .pk-nav { min-height: 40px; }
  .pk-nav { width: 40px; height: 40px; }
  .pk-day { height: 40px; }
  .pk-row { min-height: 44px; }
  .pk-link { min-height: 40px; }
  .combo-row { min-height: 44px; }

  .service-col-result .result-tools { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; margin-top: var(--sp-3); }
  .service-col-result .result h2 { grid-column: 1 / -1; grid-row: 1; }
  .service-col-result .result-tools button { min-height: 40px; }
  .service-col-result .result-line dd { overflow-wrap: anywhere; text-align: right; }
  .service-col-result .result-line.emphasis dd { font-size: var(--fs-2xl); }
  .result-table { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .result-table table { min-width: 420px; }
  .service-col-result .sheet, .sheet { padding: var(--sp-4) var(--sp-4); overflow-x: auto; }
  .sheet-parties { flex-direction: column; gap: var(--sp-3); }
  .sheet-head { flex-wrap: wrap; }

  .doc-body, .tool-card, .answer-body { min-width: 0; overflow-wrap: anywhere; }
  .doc-body table, .doc-body pre { display: block; max-width: 100%; overflow-x: auto; }
  .doc-hood-scroll, .scroll, .bilingual-row .grid-wrap { overflow-x: auto; max-width: 100%; }
  .tool-run, .tool-form button { min-height: 44px; }
  .tool-fields { grid-template-columns: minmax(0, 1fr); }
  .desk-chip, .starter { min-height: 40px; }
  .doc-action { min-height: 40px; }

  .paper { padding: var(--sp-4) var(--sp-4); }
  .bilingual-head { display: none; }
  .bilingual-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .checked-pair, .supports { grid-template-columns: minmax(0, 1fr); }
  .parties { grid-template-columns: minmax(0, 1fr); }
  .document-head { flex-wrap: wrap; }

  .fieldrow { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .page.company-page-wide, .page { max-width: 100%; }
  .profile-links { flex-direction: column; align-items: stretch; }
  .btn, button.btn.small { min-height: 40px; height: 40px; }
  .pf-chip { height: 40px; }
  .pf-input { height: 46px; }
  .tick { position: relative; }
  .tick::after { content: ""; position: absolute; inset: -10px; }
  .due { gap: var(--sp-3); }
  .due-state { white-space: normal; }
  .score { flex-wrap: wrap; }

  .dialog:not(.gate) {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dialog-close { width: 40px; height: 40px; }
  .dialog-close-form { top: 12px; right: 12px; }
  .dialog-title { font-size: var(--fs-xl); padding-right: var(--sp-7); }
  .dialog-sub { display: block; margin: var(--sp-1) 0 0; }
  .profile-window .dialog-sub, .company-window .dialog-sub { margin-left: 0; }
  .dialog-foot { flex-wrap: wrap; }
  .dialog-foot button, .dialog-foot .button-link { min-height: 44px; }
  .company-window { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .company-window .company-options { max-height: none; }
  .company-window .company-edit-button { width: 44px; min-height: 44px; }
  .company-window .company-back { min-height: 40px; }
  .company-find { flex-wrap: wrap; }
  .company-sort { min-height: 44px; font-size: var(--fs-m); }
  .tab { min-height: 44px; }
  .ref-row { flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
  .ref-value { width: auto; min-width: 120px; }
  .lm-cost { flex-wrap: wrap; }
  .gate { width: calc(100vw - 24px); padding: var(--sp-6) var(--sp-5) var(--sp-5); }
  .gate-button { height: 48px; min-height: 48px; }

  body.body-onboarding .m-bar { display: none; }
  .footer { margin-left: 0; margin-right: 0; }
}

.m-tabs, .m-ai, .lang-now { display: none; }
.m-tab-paint { position: absolute; }
.lang-pop { display: contents; }
@keyframes m-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes m-sheet-out { to { transform: translateY(100%); } }
.hello { display: none; }
html.is-hello body { overflow: hidden; }
html.is-hello body > :not(.hello) { opacity: 0; }
html.is-hello .hello { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding-bottom: 60px; background: #f2f3f7; cursor: pointer; transition: opacity 800ms ease; }
.hello .hello-orb { --orb-s: 190px; opacity: 0; transition: opacity 900ms ease; }
.hello.is-seen .hello-orb { opacity: 1; }
html.is-hello .hello.is-gone { opacity: 0; pointer-events: none; }
.hello-text { height: 40px; margin: 0; color: var(--ink); font-size: 32px; font-weight: 800; line-height: 40px; letter-spacing: -0.02em; white-space: nowrap; }
.hello-caret { display: inline-block; width: 2px; height: 30px; margin-left: 3px; border-radius: 1px; background: #5f5bdc; vertical-align: -4px; opacity: 0; }
.hello.is-seen .hello-caret { opacity: 1; animation: hello-caret 1s steps(1) infinite; }
html.is-hello-in body > :not(.hello):not(dialog) { animation: hello-in 700ms ease both; }
@keyframes hello-caret { 50% { opacity: 0; } }
@keyframes hello-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hello .hello-orb .orb-c, .hello.is-seen .hello-caret { animation: none; }
  html.is-hello .hello, .hello .hello-orb { transition-duration: 10ms; }
  html.is-hello-in body > :not(.hello):not(dialog) { animation-duration: 10ms; }
}
@keyframes m-tab-pop { 0% { transform: scale(0.72); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes m-me-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes m-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-veil-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 899px) {
  body.has-tabs { --tabs-h: calc(68px + max(10px, env(safe-area-inset-bottom))); padding-bottom: var(--tabs-h); }
  .m-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    max-width: 560px;
    height: 64px;
    margin-inline: auto;
    padding: 0 8px;
    border: 0.5px solid rgba(60, 60, 67, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(16, 24, 40, 0.06), 0 16px 36px -16px rgba(16, 24, 40, 0.35);
  }
  html.is-liquid .m-tabs { border-color: transparent; background: rgba(255, 255, 255, 0.77); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(255, 255, 255, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.45), inset 0 -10px 18px -12px rgba(25, 26, 36, 0.12), 0 1px 2px rgba(16, 24, 40, 0.06), 0 18px 40px -20px rgba(16, 24, 40, 0.45); }
  html.is-liquid .m-tabs::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 90% at 20% -10%, rgba(255, 255, 255, 0.55), transparent 55%), radial-gradient(90% 80% at 90% 120%, rgba(255, 255, 255, 0.28), transparent 60%); pointer-events: none; }
  .m-tab { position: relative; display: flex; flex: none; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: #6f7079; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 160ms cubic-bezier(0.32, 0.72, 0, 1), color 200ms ease; }
  .m-tab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-soft); opacity: 0; transform: scale(0.55); transition: opacity 280ms ease, transform 500ms cubic-bezier(0.3, 1.35, 0.45, 1); }
  .m-tab svg { position: relative; flex: none; width: 22px; height: 22px; }
  .m-tab span { position: relative; display: block; max-width: 0; overflow: hidden; padding-left: 0; opacity: 0; white-space: nowrap; transition: max-width 550ms cubic-bezier(0.3, 1.25, 0.45, 1), opacity 300ms ease, padding-left 400ms ease; }
  .m-tab:active { transform: scale(0.92); }
  .m-tab[aria-current="page"] { color: var(--accent-dark); }
  .m-tab[aria-current="page"]::before { opacity: 1; transform: none; }
  .m-tab[aria-current="page"] svg { stroke: url(#m-tab-paint); stroke-width: 2.1; animation: m-tab-pop 500ms cubic-bezier(0.3, 1.7, 0.5, 1); }
  .m-tab[aria-current="page"] span { max-width: 128px; padding-left: 8px; opacity: 1; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .m-tab-dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border: 2px solid #ffffff; border-radius: 50%; background: #e2604f; }
  .m-tab[aria-current="page"] .m-tab-dot { display: none; }
  @media (hover: hover) {
    .m-tab:hover svg { stroke: url(#m-tab-paint); }
    .m-tab:hover span { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
  }
  body.has-tabs .rail .rail-actions > a.rail-action, body.has-tabs .rail .rail-frequent, body.has-tabs .rail .segment, body.has-tabs .rail .rail-foot { display: none; }
  body.has-tabs .stage-bar > .stage-tool[data-open="reference-window"] { display: none; }
  body.has-tabs .stage-bar > .m-burger, body.has-tabs .m-bar .m-burger { display: none; }
  body.has-tabs .m-ai { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--graphite); color: var(--graphite-ink); -webkit-tap-highlight-color: transparent; transition: transform 160ms cubic-bezier(0.32, 0.72, 0, 1); }
  .m-ai:active { transform: scale(0.92); }
  body.has-tabs .m-ai[aria-current="page"] { background: var(--graphite-hover); }
  .m-bar .m-ai { margin-left: 2px; }
  dialog.dialog.m-sheet { inset: auto 0 0; display: none; flex-direction: column; width: 100vw; max-width: 100vw; height: auto; max-height: 88vh; max-height: 88dvh; margin: 0; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--panel); box-shadow: 0 -18px 40px -24px rgba(16, 24, 40, 0.4); animation: m-sheet-in 0.34s cubic-bezier(0.32, 0.72, 0, 1) both; }
  dialog.dialog.m-sheet[open] { display: flex; }
  dialog.dialog.m-sheet.is-leaving { animation: m-sheet-out 0.22s ease-in both; }
  dialog.m-sheet::backdrop { background: rgba(20, 22, 30, 0.38); animation: m-veil-in 0.26s ease both; }
  dialog.dialog.m-sheet.video-window { gap: 16px; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .video-window-grip { display: block; margin: 0 auto -6px; }
  .video-window-title { font-size: 22px; }
  .video-window-sub { font-size: 15px; }
  .video-window-stage { border-radius: 16px; }
  .video-window-play { justify-content: center; width: 64px; padding: 0; border-radius: 50%; }
  .video-window-play span { display: none; }
  .video-window-len { right: 10px; bottom: 10px; padding: 4px 10px; font-size: 13px; }
  .video-window-bar { gap: 6px; padding: 32px 10px 6px; }
  .video-window-controls { gap: 6px; }
  .video-window-time { margin-right: auto; font-size: 13px; }
  .video-window-now { display: none; }
  .video-window-rail { margin: 0; }
  .video-window-rail::before, .video-window-rail::after, .video-window-arrow { display: none; }
  .video-window-parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; overflow: visible; }
  .video-window-parts button { width: 100%; white-space: normal; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 12px; background: #f6f7f9; }
  .video-window-parts b { font-size: 16px; }
  .video-window-at { width: 40px; flex: none; font-size: 14px; }
  dialog.m-sheet.is-leaving::backdrop { animation: m-veil-out 0.22s ease-in both; }
  dialog.dialog.m-sheet.m-menu { inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; padding: env(safe-area-inset-top) 0 0; border-radius: 0; background: #f2f3f7; box-shadow: none; }
  .m-me-bar { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px 0 18px; }
  .m-me-bar .m-sheet-grip { position: absolute; top: 6px; left: 50%; margin: 0; transform: translateX(-50%); }
  .m-me-title { margin: 0; font-size: 17px; font-weight: 800; }
  .m-me-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #e6e8f0; color: #3a3c4e; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 160ms cubic-bezier(0.32, 0.72, 0, 1); }
  .m-me-close:active { transform: scale(0.92); }
  .m-menu .m-rows { display: flex; flex-direction: column; gap: 18px; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
  .m-menu .m-rows > * { flex: none; animation: m-me-in 550ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .m-menu .m-rows > :nth-child(2) { animation-delay: 45ms; }
  .m-menu .m-rows > :nth-child(3) { animation-delay: 90ms; }
  .m-menu .m-rows > :nth-child(4) { animation-delay: 135ms; }
  .m-menu .m-rows > :nth-child(5) { animation-delay: 180ms; }
  .m-menu .m-rows > :nth-child(n + 6) { animation-delay: 225ms; }
  .m-me-head { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .m-me-ring { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: conic-gradient(from 200deg, #c96aa6, #8a5fe4, #4f58d8, #2f7fc0, #c96aa6); }
  .m-me-ring .avatar-spot { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #f2f3f7; }
  .m-me-ring .avatar { width: 56px; height: 56px; }
  .m-me-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .m-me-name { overflow: hidden; font-size: 22px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .m-me-line { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
  dialog.dialog.m-sheet .m-me-units { display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: normal; width: 100%; min-height: 0; padding: 16px; border: 0; border-radius: 22px; background: #ffffff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 200ms cubic-bezier(0.3, 1.5, 0.5, 1); }
  dialog.dialog.m-sheet .m-me-units:active, .m-me-tile:active { transform: scale(0.97); }
  .m-me-units-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .m-me-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
  .m-me-units-left { font-size: 26px; font-weight: 800; line-height: 1.1; }
  .m-me-units-of { font-size: 13px; color: var(--ink-2); }
  .m-me-dial { flex: none; }
  .m-me-dial-fill { transition: stroke-dasharray 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .m-me-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-me-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 0; padding: 14px; white-space: normal; border: 0; border-radius: 20px; background: #ffffff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 200ms cubic-bezier(0.3, 1.5, 0.5, 1); }
  .m-me-tile > svg { color: #34406b; }
  .m-me-tile-dark { background: var(--graphite); color: var(--graphite-ink); }
  .m-me-tile-dark > svg { color: inherit; }
  .m-me-tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-width: 0; }
  .m-me-tile-body b { font-size: 15px; font-weight: 700; line-height: 1.25; }
  .m-me-tile-body span { display: -webkit-box; overflow: hidden; font-size: 12.5px; line-height: 1.3; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .m-me-tile-dark .m-me-tile-body span { color: rgba(255, 255, 255, 0.72); }
  .m-me-system { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 66px; padding: 14px 30px 14px 16px; }
  .m-me-logo { display: block; width: auto; max-width: 100%; height: 34px; object-fit: contain; object-position: left center; }
  .m-me-go { position: absolute; top: 12px; right: 12px; color: #a3a6b5; }
  .m-me-lang { cursor: default; }
  .m-me-seg { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 12px; background: #eef0f6; }
  .m-me-seg button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: #5a5c6e; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease; }
  .m-me-seg button[aria-pressed="true"] { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(25, 26, 36, 0.14); }
  .m-menu .m-group-title { margin: 0 0 8px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
  .m-menu .m-group-box { border-radius: 20px; }
  .m-menu .m-row-icon { width: 34px; height: 34px; border-radius: 11px; background: #eef0f6; color: #34406b; }
  .m-menu .m-group-quiet .m-row-icon { background: #eef0f6; }
  .m-menu .m-row-exit .m-row-title { font-weight: 700; color: #b3261e; }
  .m-menu-exit { flex: none; margin: 0; overflow: hidden; border-radius: 20px; background: #ffffff; }
  .m-sheet-title { flex: none; margin: 4px 2px 8px; font-size: 20px; font-weight: 700; }
  .m-sheet-empty { margin: 4px 2px 12px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
  .m-sheet-empty[hidden], .m-rows[hidden] { display: none; }
  .m-row-icon .group-icon { width: 20px; height: 20px; }
  .m-sheet-grip { flex: none; width: 38px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: rgba(60, 60, 67, 0.22); }
  .m-row[hidden] { display: none; }
  .m-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .m-rows .topbar-form { margin: 0; }
  .m-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 7px 26px 7px 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease; }
  .m-row:active { background: rgba(118, 118, 128, 0.1); }
  .m-row::after { content: ""; position: absolute; top: 50%; right: 8px; width: 8px; height: 8px; border-top: 1.8px solid #a4a5ae; border-right: 1.8px solid #a4a5ae; transform: translateY(-50%) rotate(45deg); }
  .m-row-out::after { content: none; }
  .m-row-icon { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); }
  .m-row-logo { background: #f4f3f6; }
  .m-row-body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 1px; }
  .m-row-title { overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .m-row-sub { overflow: hidden; color: var(--muted); font-size: 13.5px; font-weight: 400; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .m-group-title { margin: 0 0 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
  .m-group-box { overflow: hidden; border-radius: 16px; background: #ffffff; }
  .m-menu .m-group .m-row { min-height: 50px; padding: 6px 30px 6px 12px; border-radius: 0; }
  .m-menu .m-group .m-row:not(:first-child)::before, .m-group-box > :not(:first-child) .m-row::before { content: ""; position: absolute; top: 0; right: 0; left: 56px; height: 1px; background: rgba(60, 60, 67, 0.1); }
  .m-menu .m-group .m-row[hidden] + .m-row::before { content: none; }
  .m-menu .m-row-icon svg { width: 18px; height: 18px; }
  .m-row-go { position: absolute; top: 50%; right: 12px; color: #a4a5ae; transform: translateY(-50%); }
  .m-menu-legal { display: grid; gap: 10px; padding: 4px 12px 6px; }
  .m-menu-warn { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
  .m-menu-logo { display: block; width: 150px; height: auto; }
  .m-menu-copy { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
  body.has-tabs .footer, body.has-tabs .page-column .catalog-end { display: none !important; }
  body.has-tabs .catalog-page .catalog-body { padding-bottom: 16px; }
  .m-menu .m-row-logo { background: #f2f3f7; }
  .m-menu .m-row-title { font-size: 15px; font-weight: 600; white-space: normal; }
  .m-menu .m-row-exit { justify-content: center; min-height: 50px; padding: 6px 12px; border-radius: 0; }
  .service-more-pop .service-more-item[form="service-pin"] { display: none; }
  body .stage-bar .lang-switch, body .m-bar .lang-switch { display: inline-flex; }
  .m-bar .lang-switch { margin-left: auto; }
  .stage-bar .lang-switch button, .m-bar .lang-switch button { min-height: 32px; padding: 0 7px; font-size: 13px; }
  body.has-tabs .shell-main .stage-foot { bottom: var(--tabs-h); padding-bottom: 10px; box-shadow: 0 var(--tabs-h) 0 0 var(--panel); }
  html.rail-lock .m-tabs { visibility: hidden; }
  .stage-tool { width: 44px; height: 44px; }
  .stage-inn { display: none; }
  .stage-company { height: 44px; }
  .rail .chats-row { height: 44px; }
  .rail .chats-title { line-height: 44px; }
  .rail .chats-dots { width: 40px; min-height: 40px; opacity: 1; visibility: visible; }
  .catalog-toc .toc-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4) var(--sp-1); }
  .catalog-toc .toc-list::-webkit-scrollbar { display: none; }
  .catalog-toc .toc-item { flex: none; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; }
  .catalog-toc .toc-label { display: none; }
  .catalog-toc { flex-direction: column; border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: var(--sp-3); }
  .catalog-toc .toc-list { display: flex; flex-direction: row; gap: var(--sp-2); }
  .examples { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--sp-3)); padding: 0 var(--sp-3); width: auto; }
  .examples::-webkit-scrollbar { display: none; }
  .example { flex: none; white-space: nowrap; }
  .service-col-result .result-line.emphasis dd { font-size: var(--fs-total); }
  .soon-row { grid-template-columns: 52px minmax(0, 1fr); }
  .soon-row small { grid-column: 2; }
  .example, .soon-more, .doc-action, .company-activate, .lg-act { min-height: 40px; height: auto; }
  .form-step, .card-group-edit, .firm-pop-row button, .firm-pop-row input { min-height: 40px; }
  .doc-action.doc-copy { min-width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .shell { --m-x: 12px; --m-y: 14px; }
  .catalog-page .cards { gap: var(--sp-2); }
  .catalog-page .cards > .card, .catalog-page .cards > .card-main {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "icon name mark" "icon sum sum";
    align-items: center;
    column-gap: var(--sp-3);
    row-gap: 2px;
    min-height: 0;
    padding: var(--sp-3) var(--sp-4);
    grid-column: auto;
  }
  .catalog-page .card-watermark, .catalog-page .cards > .card-main .card-watermark { position: static; z-index: auto; grid-area: icon; width: 36px; height: 36px; opacity: 0.9; transform: none; }
  .catalog-page .card-watermark svg { stroke-width: 1.5; }
  .catalog-page .card-top { display: contents; }
  .catalog-page .card-owner { display: none; }
  .catalog-page .card-mark { grid-area: mark; align-self: start; font-size: 10px; }
  .catalog-page .cards .card .card-new { padding: 4px 9px; font-size: 11px; }
  .catalog-page .card-name, .catalog-page .cards > .card-main .card-name { grid-area: name; font-size: var(--fs-m); line-height: 1.25; text-wrap: pretty; }
  .catalog-page .card-summary, .catalog-page .cards > .card-main .card-summary { grid-area: sum; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: none; font-size: var(--fs-xs); line-height: 1.4; }
  .catalog-page .card-foot { position: absolute; inset: 0; z-index: 1; display: block; margin: 0; padding: 0; border: 0; opacity: 1; }
  .catalog-page .card-kind { display: none; }
  .catalog-page .card-go { font-size: 0; gap: 0; }
  .catalog-page .card-go svg { display: none; }
  .catalog-page .cards-later { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--sp-3); min-height: 0; padding: var(--sp-3) var(--sp-4); }
  .catalog-page .cards-later-count { width: 40px; font-size: 22px; text-align: center; }
  .stage-bar { flex-wrap: wrap; row-gap: var(--sp-1); }
  .stage-bar > .spacer, .stage-when { display: none; }
  .stage-title { flex: 1 1 calc(100% - 60px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: var(--fs-s); line-height: 1.3; }
  .stage-firm { flex: 1 1 140px; }
  .chat-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
  .chat-form textarea, .chat-form .welcome-input { grid-column: 1; min-width: 0; }
  .chat-form .chat-controls { grid-column: 2; flex-wrap: nowrap; }
  .chat-form textarea::placeholder, .chat-form .welcome-input::placeholder { white-space: normal; }
  .chat-form textarea.is-long-hint:placeholder-shown { min-height: calc(2.8em + 2 * var(--sp-1)); line-height: 1.4; }
}

@media (max-width: 899px) {
  .frequent-drop { width: 40px; height: 40px; opacity: 1; }
}

@media (max-width: 480px) {
  .stage-inn, .stage-when, .stage-asof { display: none; }
  .stage-firm { min-width: 0; flex: 1 1 auto; }
  .service-hero-top .crumbs > span:nth-of-type(n+2) { display: none; }
  .service-col-result .result-line { flex-wrap: wrap; row-gap: 2px; }
  .service-col-result .result-line::after { display: none; }
  .service-col-result .result-line dt { flex: 1 1 100%; }
  .service-col-result .result-line dd, .service-col-result .result-steps .result-line dd { flex: 0 1 auto; margin-left: auto; white-space: normal; text-align: right; }
  .result-steps .result-line dd { white-space: normal; }
  .service-col-result .result-line.emphasis dt { flex: 1 1 100%; }
  .service-col-result .result-line.emphasis dd { margin-left: 0; font-size: var(--fs-xl); }
  .tool-row { flex-wrap: wrap; }
  .tool-row dd { white-space: normal; }
  .dialog-foot { align-items: stretch; }
  .dialog-foot .spacer { display: none; }
  .dialog-foot .hint { flex: 1 1 100%; }
  .dialog-foot button, .dialog-foot .button-link { flex: 1 1 100%; }
  .firm-pop-item { height: 44px; }
  .month-nav a { min-height: 44px; }
}

@media (max-width: 640px) {
  .service-hero { padding-top: var(--sp-2); }
  .service-hero-top { position: relative; gap: var(--sp-2); min-height: 48px; }
  .service-hero-top .crumbs { gap: 0; }
  .service-hero-top .crumbs > :not(.crumbs-group) { display: none; }
  .service-hero-top .crumbs .crumbs-group { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -8px; padding: 0 var(--sp-1) 0 0; border: 0; font-size: var(--fs-l); font-weight: 600; letter-spacing: -0.01em; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .service-hero.tone-9 .service-hero-top .crumbs .crumbs-group { color: #241c0d; }
  .service-hero-top .crumbs-back { display: block; flex: none; }
  .service-hero-top .crumbs .crumbs-group:active { opacity: 0.5; }
  .service-hero-top .service-tools { position: static; flex: none; gap: var(--sp-1); }
  .service-hero-top .service-tools > .icon-button[data-open], .service-hero-top .service-tools > .service-tip, .service-hero-top .service-tools > .service-video { display: none; }
  .service-hero-top .stage-firm-glass { position: static; flex: none; }
  .service-hero-top .stage-firm-glass > summary.stage-company { justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .service-hero-top .stage-firm-glass .stage-company-name, .service-hero-top .stage-firm-glass .stage-company-more { display: none; }
  .service-hero-top .stage-firm-glass .firm-pop { left: 0; right: 0; top: calc(100% + 6px); width: auto; }
  .service-more { display: block; }
  .service-hero-top .service-tools .service-more > summary { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: inherit; list-style: none; cursor: pointer; }
  .service-more > summary::-webkit-details-marker { display: none; }
  .service-hero-top .service-tools .service-more[open] > summary { background: rgba(255, 255, 255, 0.3); }
  .service-more-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: flex; flex-direction: column; min-width: 240px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 18px 40px -12px rgba(16, 24, 40, 0.35); color: var(--ink); transform-origin: top right; animation: service-more-in 180ms cubic-bezier(0.32, 0.72, 0, 1) both; }
  .service-more-pop .service-more-item { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-3); width: 100%; min-height: 44px; margin: 0; padding: 0 var(--sp-3); border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--fs-m); font-weight: 500; text-align: left; cursor: pointer; }
  .service-more-pop .service-more-item + .service-more-item::before { content: ""; position: absolute; top: 0; left: 42px; right: var(--sp-3); height: 0.5px; background: rgba(60, 60, 67, 0.22); }
  .service-more-pop .service-more-item svg { flex: none; color: var(--muted); }
  .service-more-pop .service-more-item .service-video-dot { position: relative; top: auto; right: auto; flex: none; width: 8px; height: 8px; margin-left: auto; box-shadow: none; }
  .service-more-pop .service-more-item:hover, .service-more-pop .service-more-item:active { background: rgba(118, 118, 128, 0.12); color: var(--ink); }
  .service-hero-top .service-bubble { right: 0; left: 0; width: auto; }
  .service-hero-top .service-bubble::before { right: 18px; }
  .service-hero-top .service-bubble[popover] { width: calc(100vw - 32px); }
}
@keyframes service-more-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .service-more-pop { animation: none; } }

@media (max-width: 899px) {
  .m-only { display: inline; }
  .m-hide { display: none; }
  html, body { background: var(--panel); }
  .shell { --m-x: 0px; --m-y: 0px; }
  body .shell.shell-main { padding: 0; gap: 0; background: var(--panel); }
  body .shell.shell-main .stage, body .shell.shell-main section.page { border: 0; border-radius: 0; box-shadow: none; }
  body .shell.shell-main section.page { padding-inline: 16px; }
  body .shell.shell-main section.page.catalog-page { padding-inline: 0; }
  .shell-main > .m-bar { padding-top: max(8px, env(safe-area-inset-top)); background: rgba(255, 255, 255, 0.86); border-bottom: 0; }
  body .shell.shell-main section.service-page { padding-top: 0; }
  body .shell.shell-main section.page .service-hero { margin-inline: -16px; border-radius: 0 0 26px 26px; overflow: hidden; }
  .stage-bar { flex-wrap: nowrap; padding: 10px 16px; }
  body .shell.shell-main section.page:not(.catalog-page) > .stage-bar { margin-inline: -16px; }
  body .shell.shell-main section.page.catalog-page > .stage-bar { margin-inline: 0; }
  .stage-bar > .m-burger { margin-left: -8px; }
  .stage-firm { flex: 1 1 auto; min-width: 0; }
  .stage-id2 { flex: none; margin: 0; }
  .stage-bar .stage-tool { flex: none; }
  body .catalog-page .catalog-bar, body .catalog .catalog-bar { padding-inline: 16px; }
  .catalog-bar .catalog-chips { width: 100%; }
  .catalog-bar .catalog-chips .chip { flex: 1 1 0; justify-content: center; }
  .catalog-bar .catalog-find { flex: 1 1 100%; width: 100%; max-width: none; min-width: 0; }
  .cal-toolbar { flex-wrap: wrap; gap: var(--sp-2); }
  .cal-toolbar .cal-chips { flex: 1 1 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cal-toolbar .cal-chips::-webkit-scrollbar { display: none; }
  .cal-toolbar .cal-views .cal-filter { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 640px) {
  .shell { --m-x: 0px; --m-y: 0px; }
  .stage-bar { flex-wrap: nowrap; }
  .offer-card { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--sp-2); }
  .offer-card * { white-space: normal; }
  .offer-card > * { min-width: 0; }
  .offer-card .offer-take { grid-column: 1 / -1; width: 100%; justify-content: center; white-space: nowrap; }
  .stage-bar > .stage-tool[data-open="reference-window"] { display: none; }
  #desk .tiles, #hero .soon-wrap, .stage-bar > .stage-tool[data-open="help-window"] { display: none; }
  .stage-foot > .chat-form { align-items: end; padding: 8px 10px 8px 14px; }
  .stage-foot > .chat-form:has(textarea:placeholder-shown) { align-items: center; }
  .stage-foot > .chat-form textarea { min-height: 44px; padding: 10px 2px; line-height: 22px; }
  .stage-foot > .chat-form .chat-controls { flex-wrap: nowrap; align-items: center; min-height: 44px; }
  .stage-foot > .chat-form .chat-controls .chat-tool { align-self: center; margin: 0; }
  .shell:not(.shell-working) .stage-foot { gap: 10px; border-top: 0; background: transparent; box-shadow: none; }
  .shell:not(.shell-working) .stage-foot > .examples { order: 2; }
  .shell:not(.shell-working) .stage-foot > :is(.chat-form, .disclaimer) { transform: translateY(calc(var(--rise, 34dvh) * -1)); }
  .shell:not(.shell-working) #hero { transform: translateY(calc(var(--hero-up, 40px) * -1)); }
  .composer-ready .stage-foot > :is(.chat-form, .disclaimer) { transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1); }
  .stage-demo { flex-direction: column; justify-content: center; gap: 0; padding: 0 10px; line-height: 1.15; }
  .stage-demo svg, .stage-demo-label, .stage-demo-more { display: none; }
  .stage-demo-words { display: block; }
  .stage-demo-short { display: block; font-size: 10px; font-weight: 500; opacity: 0.75; }
  .stage-demo-time { min-width: 0; }
  .stage-demo.is-over .stage-demo-time { display: block; }
  .service-tools .stage-demo { display: none; }
  .m-bar .stage-demo { margin-left: auto; }
  .m-bar.has-demo .brand { flex: none; gap: 0; font-size: 0; }
  body .stage-bar .stage-firm { flex: none; min-width: 0; margin-left: auto; }
  body .stage-bar .stage-firm > summary.stage-company { justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; }
  .stage-bar .stage-firm .stage-company-name, .stage-bar .stage-firm .stage-company-more { display: none; }
  body .stage-bar .lang-switch, body .m-bar .lang-switch { position: relative; flex: none; padding: 0; border: 0; background: none; }
  .stage-bar .lang-now, .m-bar .lang-now { display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 160ms cubic-bezier(0.32, 0.72, 0, 1); }
  .stage-bar .lang-now:active, .m-bar .lang-now:active { transform: scale(0.92); }
  .stage-bar .lang-pop, .m-bar .lang-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; display: flex; flex-direction: column; gap: 2px; min-width: 84px; padding: 5px; border-radius: 16px; background: #ffffff; box-shadow: 0 0 0 0.5px rgba(60, 60, 67, 0.12), 0 18px 36px -16px rgba(16, 24, 40, 0.4); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.96); transform-origin: top right; transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.16s; }
  .lang-switch.is-open .lang-pop { opacity: 1; visibility: visible; transform: none; }
  .stage-bar .lang-pop button, .m-bar .lang-pop button { min-height: 40px; padding: 0 12px; border-radius: 11px; font-size: 15px; box-shadow: none; }
  .stage-bar .lang-pop button[aria-pressed="true"], .m-bar .lang-pop button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); }
}

@media (max-width: 350px) {
  .stage-bar > .brand { gap: 0; font-size: 0; }
}
@media (max-width: 899px) {
  .new-plate { left: 12px; right: 12px; bottom: calc(var(--tabs-h, 0px) + 12px); width: auto; max-width: none; gap: 12px; padding: 14px; border-radius: 22px; box-shadow: 0 14px 40px rgba(16, 18, 32, 0.25); }
  .new-plate-top { gap: 12px; }
  .new-plate-shot { width: 96px; height: 54px; border-radius: 10px; }
  .new-plate-play { width: 26px; height: 26px; box-shadow: none; }
  .new-plate-play svg { width: 11px; height: 11px; }
  .new-plate-names { gap: 2px; }
  .new-plate-title { font-size: 16px; }
  .new-plate-text { display: none; }
  .new-plate-video { flex: 1; padding: 0; }
  .new-plate-video-long { display: none; }
  .new-plate-video-short { display: inline; }
}
