/* =========================================================
   PAINMED v8 — страница «AI-Болит»
   Дополнения к painmed-v8.css
   ========================================================= */

/* компактные промежутки между разделами (футер не трогаем) */
.block{ padding-block:60px; }
@media (max-width:720px){
  .block{ padding-block:48px; }
}

/* ---------- чередование фонов соседних разделов + пунктирные разделители ---------- */
.ticker{ border-top:1px dashed var(--line-2); }   /* нижний пунктир уже есть */
.tint{ border-bottom:none; }                       /* один разделитель на границу */

#who{ background:var(--card); }
#personas{ background:var(--mint); border-top:1px dashed var(--line-2); }
#scope{ background:var(--paper-2); border-top:1px dashed var(--line-2); }
#disclaimer{ background:var(--mint-2); border-top:1px dashed var(--line-2); }
.final-cta{ background:var(--card); border-top:1px dashed var(--line-2); }
.site{ border-top:1px dashed var(--accent-d); }

/* активный пункт меню */
.nav a.active{ color:var(--ink); }
.nav a.active::after{ right:0; }

/* компактная шапка (как на внутренних страницах) */
.topbar-inner{ height:54px; }
.logo img{ height:29px; }
.btn-top{ padding:9px 18px; }

/* ---------- HERO ---------- */
.page-hero .lede{ max-width:560px; }

/* Фон шапки: бабочка из двух профилей, hero-ai-butterfly.webp
   (1672×941, 30 КБ). Файл подключается только при is_page('ai-consultant')
   (functions.php:230), поэтому привязка к .page-hero здесь безопасна.

   Иллюстрация отрисована почти в тон --paper (#F7F8F5), поэтому слой идёт
   без разбела и без градиента: opacity:1, ::after нет. Слой растянут во
   всю ширину окна: left/right выводят его за пределы .wrap, на html и body
   стоит overflow-x:clip.
   Замер поверх слоя в габаритах заголовка (1440 CSS-px): медиана 14.8:1
   при норме AA 4.5:1, пикселей ниже порога нет. */
.page-hero .hero-bg{
  left:calc(50% - 50vw); right:calc(50% - 50vw);
  transform:none;
  background:url('../img/hero-ai-butterfly.webp') center center / cover no-repeat;
  opacity:1;
}
@media (max-width:1080px){
  /* В одну колонку hero вытягивается втрое, cover показал бы узкую полосу
     кадра — на телефоне бабочка идёт целиком по ширине у верхней кромки. */
  .page-hero .hero-bg{
    background-size:100% auto;
    background-position:center top;
  }
}
.hero-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.hero-badges .chip{ background:var(--card); border:1px solid var(--line-2); color:var(--ink-soft); }
.hero-badges .chip::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.hero-note{
  display:inline-flex; align-items:baseline; gap:10px;
  margin-top:26px; padding:12px 16px;
  background:var(--card); border:1px dashed var(--line-2); border-radius:var(--r-sm);
  font-size:13.5px; color:var(--muted); line-height:1.5; max-width:520px;
}
.hero-note .plus{ color:var(--accent); font-weight:800; }
.hero-note a{ color:var(--accent-d); border-bottom:1px solid rgba(14,143,126,0.35); }
.hero-note a:hover{ border-color:var(--accent-d); }

/* ---------- учётная карточка цифрового коллеги ---------- */
.idcard{ align-self:start; }
.idcard .ticket-top{ padding:24px 26px 12px; }
.idcard-ava{ display:flex; align-items:center; gap:18px; margin-bottom:18px; position:relative; }
.ava-glyph{
  position:relative; flex:none; width:74px; height:74px; border-radius:var(--r-pill);
  background:var(--accent); color:#fff;
  font-family:var(--mono); font-weight:600; font-size:23px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 28px rgba(14,143,126,0.3);
}
.ava-glyph::after{
  content:''; position:absolute; inset:-7px;
  border:1.5px dashed rgba(14,143,126,0.45); border-radius:inherit;
}
.idcard-name{ font-family:var(--display); font-weight:700; font-size:24px; letter-spacing:-0.02em; }
.idcard-role{
  font-family:var(--mono); font-size:11px; letter-spacing:0.08em;
  color:var(--muted); margin-top:4px;
}
.idcard-status{
  display:inline-flex; align-items:center; gap:7px; margin-top:8px;
  font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:0.14em;
  color:var(--accent-d);
}
.idcard-status .dot{
  width:7px; height:7px; border-radius:50%; background:var(--accent);
  animation:pulse-dot 1.8s ease-in-out infinite;
}
.idcard .ticket-stub .cap{ margin-bottom:10px; }
.idcard .watch{ margin-bottom:9px; }
.idcard .stub-note{
  text-align:center; font-size:11px; font-weight:600; letter-spacing:0.08em;
  color:var(--faint);
}

/* ---------- КТО Я ---------- */
.who-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:72px; align-items:center; }
.who-text p{ font-size:16.5px; line-height:1.75; color:var(--ink-soft); margin-bottom:18px; max-width:620px; }
.who-text p b{ color:var(--ink); }
.anchor-card{
  position:relative; rotate:-0.6deg;
  background:var(--card);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:26px 26px;
  border:1px solid var(--line-2); box-shadow:var(--shadow-lg);
  padding:44px 42px 38px 64px;
}
.anchor-card::before{
  content:''; position:absolute; top:0; bottom:0; left:42px;
  width:1.5px; background:var(--wine); opacity:0.4;
}
.anchor-card .quote-mark{
  position:absolute; left:12px; top:36px;
  font-family:var(--serif); font-size:44px; line-height:0.6;
  color:var(--wine); opacity:0.9;
}
.anchor-card blockquote{
  font-family:var(--hand); font-size:36px; line-height:1.32;
  color:var(--ink); border:none;
}
.anchor-card .sig{
  margin-top:18px; padding-top:14px; border-top:1px dashed var(--line);
  font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--muted);
}

/* ---------- КОМУ ПОЛЕЗЕН ---------- */
.personas-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.personas-grid .format-card p{ font-size:14px; }
.personas-grid .format-card .foot{ font-size:10.5px; }

/* ---------- ВОЗМОЖНОСТИ И ГРАНИЦЫ ---------- */
.scope-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:stretch; }
.scope-col{
  background:var(--card);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:26px 26px;
  border:1px solid var(--line-2); box-shadow:var(--shadow);
  padding:30px 32px 24px;
  display:flex; flex-direction:column;
  transition:transform .25s, box-shadow .25s, border-color .25s;
}
.scope-col:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.scope-col.can:hover{ border-color:rgba(14,143,126,0.4); }
.scope-col.cant:hover{ border-color:rgba(109,18,28,0.4); }
.scope-head{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.scope-head .cat-ico{ background:var(--card); transition:background .25s, color .25s, border-color .25s; }
.scope-col.cant .cat-ico{ color:var(--wine); }
.scope-col.can:hover .cat-ico{ background:var(--accent); border-color:var(--accent); color:#fff; }
.scope-col.cant:hover .cat-ico{ background:var(--wine); border-color:var(--wine); color:#fff; }
.scope-head h3{ font-family:var(--display); font-weight:700; font-size:23px; letter-spacing:-0.02em; }
.scope-head .sub{
  font-size:10.5px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--muted); margin-top:3px;
}
.scope-list{ list-style:none; }
.scope-list li{
  position:relative; padding:13px 0 13px 30px;
  border-top:1px dashed var(--line);
  font-size:15px; line-height:1.6; color:var(--ink-soft);
}
.scope-list li b{ color:var(--ink); }
.scope-list li::before{
  position:absolute; left:0; top:11px;
  font-weight:800; font-size:18px;
}
.scope-col.can .scope-list li::before{ content:'+'; color:var(--accent); }
.scope-col.cant .scope-list li::before{ content:'−'; color:var(--wine); }
.scope-note{
  margin-top:26px; text-align:center;
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.03em; color:var(--muted);
}
.scope-note b{ color:var(--accent-d); font-weight:600; }

/* ---------- ДЕМО-ЧАТ ---------- */
.demo-wrap{ max-width:760px; margin-inline:auto; }
.pm-ai-privacy-warning{
  display:flex; align-items:flex-start; gap:10px; padding:11px 12px;
  background:rgba(109,18,28,.045); border:1px solid rgba(109,18,28,.22);
  border-radius:var(--r-sm);
}
.pm-ai-privacy-warning[hidden]{ display:none !important; }
.pm-ai-privacy-mark{
  flex:none; margin-top:1px; padding:3px 7px; border-radius:var(--r-pill);
  background:var(--wine); color:#fff; font-family:var(--mono);
  font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
}
.pm-ai-privacy-warning p{ font-size:11.5px; line-height:1.45; color:var(--ink-soft); }
.pm-ai-privacy-warning strong{ color:var(--ink); }
.demo-prompt{
  display:flex; align-items:center; gap:10px;
  border-top:1px dashed var(--line-2); padding-top:16px; margin-top:6px;
}
.demo-prompt .gt{ font-family:var(--mono); color:var(--accent); font-weight:600; }
.demo-prompt input{
  flex:1; border:none; outline:none; background:transparent;
  font-family:var(--mono); font-size:13px; color:var(--ink);
}
.demo-prompt input::placeholder{ color:var(--faint); }
.demo-send{
  flex:none; width:38px; height:38px; border:none; border-radius:var(--r-pill);
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s, transform .15s;
}
.demo-send:hover{ background:var(--accent-d); transform:translateX(2px); }
.demo-note{
  margin-top:16px; text-align:center;
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.06em; color:var(--faint);
}

.ai-terms-entry{ margin-top:14px; font-size:13px; line-height:1.5; }
.ai-terms-entry a,
.important-terms a{
  color:var(--accent-d); font-weight:700; text-decoration:underline;
  text-decoration-color:rgba(10,110,96,.35); text-underline-offset:3px;
}
.ai-terms-entry a:hover,
.important-terms a:hover{ color:var(--wine); text-decoration-color:currentColor; }
.important-terms{ margin-top:24px; text-align:right; font-size:14px; line-height:1.5; }

/* ---------- ВАЖНО ---------- */
.important{
  position:relative;
  background:var(--card); border:1.5px dashed var(--wine); border-radius:var(--r);
  padding:38px 42px 34px;
  transition:transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.important:hover{
  transform:translateY(-3px);
  border-style:solid; border-color:var(--wine);
  background:var(--wine-soft);
  box-shadow:0 24px 60px rgba(109,18,28,0.18);
}
.important-head{ display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.important-head .chip{ background:var(--wine); color:#FBF5F0; transition:transform .25s; }
.important:hover .important-head .chip{ transform:scale(1.06); }
.important-head h3{
  font-family:var(--display); font-weight:700; font-size:26px; letter-spacing:-0.02em;
}
.important-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 48px; }
.imp-item{
  display:grid; grid-template-columns:34px 1fr; gap:16px; align-items:baseline;
  padding:16px 0; border-top:1px dashed var(--line);
}
.imp-item .n{
  font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:0.08em;
  color:var(--wine);
}
.imp-item b{ display:block; font-size:15.5px; font-weight:700; margin-bottom:4px; }
.imp-item p{ font-size:14px; line-height:1.6; color:var(--muted); }

/* ---------- ВОПРОС ЭКСПЕРТУ ---------- */
.expert-grid{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:start; }
.expert-left .shead{ margin-bottom:24px; }
.expert-left > p{ font-size:16.5px; line-height:1.75; color:var(--ink-soft); margin-bottom:18px; max-width:540px; }
.expert-host{
  display:flex; align-items:center; gap:14px;
  margin-top:28px; padding:16px 20px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow); max-width:460px;
}
.expert-host .ava{
  width:52px; height:52px; border-radius:var(--r-sm); overflow:hidden; flex:none;
  background:var(--mint);
}
.expert-host .ava img{ width:100%; height:100%; object-fit:cover; }
.expert-host .who{ font-size:15px; font-weight:700; }
.expert-host .aff{ font-size:12px; color:var(--muted); margin-top:2px; }
.expert-host .chip{ margin-left:auto; }
.expert-form{
  background:var(--card);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:26px 26px;
  border:1px solid var(--line-2); box-shadow:var(--shadow-lg);
  padding:32px 34px 28px;
  display:flex; flex-direction:column; gap:18px;
}
.expert-form label{
  display:flex; flex-direction:column; gap:8px;
  font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--faint);
}
.expert-form input, .expert-form textarea{
  border:1px solid var(--line-2); border-radius:var(--r-sm);
  background:var(--paper-2); padding:13px 15px;
  font-family:var(--sans); font-size:14.5px; color:var(--ink);
  outline:none; transition:border-color .2s, background .2s;
  resize:vertical;
}
.expert-form input:focus, .expert-form textarea:focus{ border-color:var(--accent); background:var(--card); }
.expert-form .btn-primary{ width:100%; margin-top:4px; }
.expert-form .form-note{
  text-align:center; font-size:11.5px; color:var(--faint); line-height:1.5;
}
.form-done{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  text-align:center; padding:36px 10px;
}
.form-done .cat-ico{ color:var(--accent-d); }
.form-done b{ font-family:var(--display); font-size:20px; letter-spacing:-0.01em; }
.form-done p{ font-size:14px; color:var(--muted); max-width:340px; line-height:1.6; }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.final-cta{ text-align:center; padding-block:52px; }
.final-cta .skicker{ margin-bottom:22px; }
.final-cta h2{
  font-family:var(--display); font-weight:700;
  font-size:clamp(34px,3.8vw,54px); line-height:1.1; letter-spacing:-0.025em;
  margin:0 auto 18px; max-width:760px; text-wrap:balance;
}
.final-cta h2 em{ font-style:normal; color:var(--accent-d); }
.final-cta .lede{
  font-size:17px; line-height:1.7; color:var(--muted);
  max-width:560px; margin:0 auto 36px;
}
.final-cta .actions{ display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; }

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  .who-grid{ grid-template-columns:1fr; gap:48px; }
  .anchor-card{ max-width:520px; }
  .personas-grid{ grid-template-columns:1fr 1fr; }
  .scope-grid{ grid-template-columns:1fr; }
  .important-grid{ grid-template-columns:1fr; }
  .expert-grid{ grid-template-columns:1fr; gap:48px; }
}
@media (max-width:720px){
  .personas-grid{ grid-template-columns:1fr; }
  .important{ padding:28px 24px 24px; }
  .imp-item{ grid-template-columns:28px 1fr; gap:12px; }
  .expert-form{ padding:26px 22px 22px; }
  .anchor-card{ padding:36px 28px 30px 56px; }
  .anchor-card blockquote{ font-size:30px; }
  .final-cta{ padding-block:36px; }
  .final-cta .actions{ flex-direction:column; }
}

/* =========================================================
   МОДАЛКА «ЗАДАТЬ ВОПРОС» (дисклеймер + чат-бот)
   ========================================================= */
.ask-overlay{
  position:fixed; inset:0; z-index:2000;
  display:flex; align-items:flex-start; justify-content:center;
  padding:6vh 20px 40px;
  background:rgba(16,26,22,0.52);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  opacity:0; visibility:hidden;
  transition:opacity .22s ease, visibility .22s;
  overflow-y:auto;
}
.ask-overlay.open{ opacity:1; visibility:visible; }
.ask-card{
  position:relative; width:100%; max-width:600px;
  background:var(--card); border:1px solid var(--line);
  box-shadow:var(--shadow-lg); border-radius:var(--r);
  padding:26px 28px 22px;
  transform:translateY(-14px); transition:transform .24s ease;
}
.ask-overlay.open .ask-card{ transform:none; }

.ask-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; padding-right:34px; }
.ask-mark{
  flex:none; width:40px; height:40px; border-radius:var(--r-pill);
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:600; font-size:15px;
  box-shadow:0 8px 20px rgba(14,143,126,0.28);
}
.ask-title{ font-family:var(--display); font-weight:800; font-size:21px; letter-spacing:-0.02em; line-height:1.1; }
.ask-sub{ font-size:12.5px; color:var(--muted); margin-top:4px; line-height:1.45; }

.ask-disclaimer{
  display:flex; align-items:flex-start; gap:9px;
  background:var(--mint-2); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:9px 12px; margin-bottom:12px;
}
.ask-disclaimer .chip{ flex:none; background:var(--accent-d); color:#fff; margin-top:1px; padding:3px 8px; font-size:9px; }
.ask-disclaimer p{ font-size:12px; line-height:1.45; color:var(--ink-soft); }
.ask-disclaimer p b{ color:var(--ink); }

.ask-console{ box-shadow:none; }
.ask-console .console-body{ max-height:min(46vh,420px); overflow-y:auto; }

.ask-foot{
  margin-top:16px; text-align:center;
  font-size:12px; color:var(--muted); line-height:1.5;
}
.ask-reg{
  display:inline; margin-left:4px;
  background:none; border:none; padding:0;
  font-family:var(--sans); font-size:12px; font-weight:700;
  color:var(--accent-d); cursor:pointer;
}
.ask-reg:hover{ text-decoration:underline; }

@media (max-width:520px){
  .ask-overlay{ padding:10px; overflow:hidden; }
  .ask-card{
    height:calc(100vh - 20px); height:calc(100dvh - 20px);
    max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px);
    display:flex; flex-direction:column; overflow:hidden; padding:18px 16px 14px;
  }
  .ask-head{ gap:12px; }
  .ask-title{ font-size:20px; }
  .ask-head, .ask-disclaimer, .pm-ai-bar{ flex:none; }
  .ask-console{ display:flex; flex:1 1 auto; flex-direction:column; min-height:0; }
  .ask-console .console-head{ flex:none; }
  .ask-console .console-body{ flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; }
}

/* =========================================================
   ЖИВОЙ ЧАТ: лента, ожидание ответа, лимиты
   Разметка сообщений — как в макете (.msg / .msg.bot),
   добавлены только состояния, которых у статичного прототипа не было.
   ========================================================= */
.pm-ai-log{ display:flex; flex-direction:column; gap:14px; }
.pm-ai-log:empty{ display:none; }

/* Многоабзацный ответ модели. */
.msg .text > * + *{ margin-top:9px; }
.msg .text h2,
.msg .text h3,
.msg .text h4{
  font-family:var(--sans); font-weight:750; line-height:1.32; color:var(--ink);
}
.msg .text h2{ font-size:17px; }
.msg .text h3{ font-size:15.5px; }
.msg .text h4{ font-size:14.5px; }
.msg .text ul,
.msg .text ol{ padding-left:22px; display:grid; gap:5px; }
.msg .text li{ padding-left:2px; }
.msg .text strong{ color:var(--ink); font-weight:750; }
.msg .text em{ font-style:italic; }
.msg .text a{ color:var(--accent-d); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.msg .text a:hover{ color:var(--wine); }
.msg .text code{
  padding:1px 4px; border-radius:2px; background:var(--mint-2);
  font-family:var(--mono); font-size:.92em; overflow-wrap:anywhere;
}

.pm-ai-session-gate{ border-top:1px dashed var(--line-2); padding-top:14px; margin-top:6px; }
.pm-ai-session-title{
  margin-bottom:9px; font-family:var(--display); font-size:15px;
  line-height:1.35; font-weight:800; color:var(--ink);
}
.pm-ai-consent{ padding:10px 12px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-sm); }
.pm-ai-consent label{ display:flex; align-items:flex-start; gap:9px; cursor:pointer; }
.pm-ai-consent input{ flex:none; width:17px; height:17px; margin-top:2px; accent-color:var(--accent); }
.pm-ai-consent span{ font-size:11.5px; line-height:1.45; color:var(--ink-soft); }
.pm-ai-consent a{ color:var(--accent-d); text-decoration:underline; text-underline-offset:2px; }
.pm-ai-consent-error{ margin-top:7px; color:var(--wine); font-size:11.5px; line-height:1.4; }
.pm-ai-consent:has(input:focus-visible){ outline:2px solid var(--accent); outline-offset:2px; }
.pm-ai-session-gate[hidden],
.demo-prompt[hidden]{ display:none !important; }

/* Ожидание ответа — три пульсирующие точки в плашке бота. */
.pm-ai-wait{ display:flex; align-items:center; gap:6px; min-height:20px; }
.pm-ai-wait span{
  width:6px; height:6px; border-radius:var(--r-pill);
  background:var(--accent); opacity:.35;
  animation:pmAiBlink 1.1s infinite ease-in-out;
}
.pm-ai-wait span:nth-child(2){ animation-delay:.18s; }
.pm-ai-wait span:nth-child(3){ animation-delay:.36s; }
@keyframes pmAiBlink{
  0%, 80%, 100%{ opacity:.28; transform:translateY(0); }
  40%{ opacity:1; transform:translateY(-2px); }
}
@media (prefers-reduced-motion: reduce){
  .pm-ai-wait span{ animation:none; opacity:.6; }
}

/* Ошибка и упёршийся лимит — в винной гамме дисклеймера, не в зелёной. */
.msg.pm-ai-err .who{ color:var(--wine); }
.msg.pm-ai-err .text{
  background:rgba(109,18,28,0.05);
  border-color:rgba(109,18,28,0.28);
  color:var(--ink-soft);
}

/* Заблокированный ввод: пока ждём ответ или когда лимит исчерпан. */
.demo-prompt input:disabled{ color:var(--faint); cursor:not-allowed; }
.demo-send:disabled{ background:var(--line-2); cursor:not-allowed; transform:none; }
.demo-send:disabled:hover{ background:var(--line-2); transform:none; }

/* Подвал модалки: остаток вопросов и кнопка нового диалога. */
.pm-ai-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:22px; margin-top:12px;
}
.pm-ai-left{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.05em;
  color:var(--muted);
}
.pm-ai-new-action{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.pm-ai-new-action[hidden]{ display:none !important; }
.pm-ai-new-note{ font-size:10.5px; line-height:1.35; color:var(--muted); }
.pm-ai-new{
  flex:none; border:1px solid var(--accent); background:var(--card);
  border-radius:var(--r-pill); padding:7px 16px;
  font-family:var(--sans); font-size:12.5px; font-weight:700;
  color:var(--accent-d); cursor:pointer;
  transition:background .2s, color .2s;
}
.pm-ai-new:hover{ background:var(--accent); color:#fff; }
.pm-ai-new:disabled{ opacity:.5; cursor:progress; }

@media (max-width:520px){
  .important-terms{ text-align:left; }
  .pm-ai-bar{ flex-direction:column; align-items:stretch; gap:8px; }
  .pm-ai-left{ text-align:center; }
  .pm-ai-new-action{ align-items:stretch; text-align:center; }
}
