/* Стиль сайта Кротенко Дизайн: светлая бумага, Google Sans + IBM Plex Mono, оранжевый акцент */
:root {
  --paper: #efefed; --paper-2: #e6e6e3; --card: #f8f8f6; --white: #fff;
  --ink: #141414; --ink-2: #4a4a48; --mute: #6b6b67;
  --line: rgba(20,20,20,.12); --line-2: rgba(20,20,20,.22);
  --accent: #ff5b1f; --dark: #151515; --error: #d93025;
  --f: "Google Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --side: 272px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--f); overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .8125rem; line-height: 1.55; color: var(--ink-2); }
.cap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.sq::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.error { color: var(--error); font-size: .875rem; min-height: 1.4em; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.03em; }
.logo svg { width: 22px; height: 22px; fill: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 0 6px 0 20px;
  border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font: 500 .9375rem/1 var(--f);
  background: var(--dark); color: #fff; transition: color .35s, transform .2s, opacity .3s;
  position: relative; isolation: isolate; overflow: hidden;
}
/* как на сайте: при наведении кнопка заливается оранжевым слева направо (инверсия) */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.btn i { width: 40px; height: 40px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; transition: background-color .35s; }
.btn i svg { width: 15px; height: 15px; }
.btn i svg path { transition: stroke .35s; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--ink); }
.btn:hover i { background: var(--dark); }
.btn:hover i svg path { stroke: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled::before { transform: scaleX(0); }
.btn.ghost { background: var(--paper-2); color: var(--ink); padding: 0 20px; justify-content: center; }
.btn.ghost::before { background: var(--dark); }
.btn.ghost:hover { color: #fff; }
.btn.danger { background: var(--error); padding: 0 20px; justify-content: center; }
.btn.danger::before { background: var(--dark); }
.btn.danger:hover { color: #fff; }
.link { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--mute); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.code-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.link:disabled { cursor: default; text-decoration: none; color: var(--mute); opacity: .8; }
.link:disabled:hover { color: var(--mute); }
input, textarea { font: inherit; color: inherit; }

/* ===== Вход ===== */
.login { height: 100%; display: grid; place-items: center; padding: 16px; overflow: auto;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.login-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.login-card .logo { margin-bottom: 18px; }
.login-card h1 { font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -.05em; }
.login-card form { display: grid; gap: 10px; margin-top: 6px; }
.login-card input { width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); padding: 0 16px; outline: none; transition: border-color .3s; }
.login-card input:focus { border-color: var(--ink); }

/* ===== Каркас ===== */
.app { display: grid; grid-template-columns: var(--side) 1fr; height: 100%; }
.side { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 12px; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.new-chat {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  background: var(--dark); color: #fff; border: 0; font-weight: 500; font-size: .9375rem; transition: color .35s, transform .2s;
  position: relative; isolation: isolate; overflow: hidden;
}
.new-chat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.new-chat:hover::before { transform: scaleX(1); }
.new-chat:hover { color: var(--ink); }
.new-chat svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2; fill: none; transition: stroke .35s; }
.new-chat:hover svg { stroke: var(--ink); }
.new-chat:active { transform: scale(.98); }
.side-cap { padding: 20px 10px 8px; }
.chats { flex: 1; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.chat-item { position: relative; display: flex; align-items: center; border-radius: 10px; transition: background-color .45s; }
.chat-item:hover { background: var(--paper-2); transition-duration: .2s; }
.chat-item.on { background: var(--paper-2); }
.chat-item > .open { display: block; text-decoration: none; font-family: inherit; flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 12px; font-size: .9063rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.chat-item.on > .open { color: var(--ink); font-weight: 500; }
.chat-item .tools { display: none; gap: 2px; padding-right: 4px; }
.chat-item:hover .tools, .chat-item.on .tools { display: flex; }
.chat-item input { flex: 1; min-width: 0; margin: 4px; height: 34px; border-radius: 8px; border: 1px solid var(--ink); padding: 0 8px; font-size: .875rem; outline: none; background: var(--white); }
.mini { width: 28px; height: 28px; border-radius: 7px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--mute); }
.mini:hover { background: var(--card); color: var(--ink); }
.mini svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.chats-empty { padding: 6px 12px; color: var(--mute); font-size: .875rem; }

.side-bottom { border-top: 1px solid var(--line); padding: 12px 6px 0; display: grid; gap: 10px; }
.quota { display: grid; gap: 8px; }
.quota-row { display: flex; align-items: baseline; justify-content: space-between; }
.quota-num { font-weight: 500; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1; }
.quota-num small { font-size: .5em; color: var(--mute); letter-spacing: 0; margin-left: 4px; }
.quota-bar { display: grid; grid-auto-flow: column; gap: 4px; }
.quota-bar i { height: 4px; border-radius: 2px; background: var(--line-2); }
.quota-bar i.on { background: var(--accent); }
.quota .mono { font-size: .75rem; color: var(--mute); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--ink-2); min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.7; fill: none; stroke-linecap: round; }
.only-mobile { display: none; }
.scrim { display: none; }

/* ===== Центр ===== */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.main-top { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 16px; }
.chat-title { flex: 1; min-width: 0; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--ink-2); }
.feed { flex: 1; overflow-y: auto; padding: 8px 16px 24px; scroll-behavior: smooth; }
.feed-in { max-width: 780px; margin: 0 auto; display: grid; gap: 28px; }

.app.empty .feed { display: none; }
.app.empty .main { justify-content: center; }
.app.empty .main-top { position: absolute; top: 0; left: 0; right: 0; }
.hero { display: none; text-align: center; padding: 0 16px 22px; }
.app.empty .hero { display: grid; gap: 12px; justify-items: center; margin-top: -6vh; }
.hero h1 { font-weight: 500; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -.05em; }
.hero .mono { max-width: 46ch; }

/* сообщения */
.msg-user { justify-self: end; max-width: min(78%, 560px); display: grid; gap: 8px; justify-items: end; }
.bubble { background: var(--white); color: var(--ink); border: 1px solid var(--line); padding: 12px 16px; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { font-family: var(--mono); font-size: .6875rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); cursor: zoom-in; }

.msg-ai { display: grid; gap: 10px; justify-items: start; }
.shot { position: relative; border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.shot.wait { display: grid; place-items: center; }
.shot.wait::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.shot.wait span { position: relative; font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; text-align: center; }
.shot.wait span::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: .8125rem; color: var(--ink); text-decoration: none; transition: background-color .45s, border-color .45s; }
.act:hover { background: var(--white); border-color: var(--ink); transition-duration: .2s; }
.act svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.ai-error { color: var(--error); font-size: .875rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===== Поле ввода ===== */
.dock { padding: 0 16px 14px; }
.composer, .suggest, .hint { max-width: 780px; margin-left: auto; margin-right: auto; }
.composer {
  position: relative; background: var(--white); border: 1px solid var(--line-2); border-radius: 24px; padding: 10px 10px 10px;
  box-shadow: 0 8px 30px rgba(20,20,20,.06); transition: border-color .3s;
}
.composer:focus-within { border-color: var(--ink); }
.composer textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: none; padding: 8px 10px 6px; max-height: 220px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--mute); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 6px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, transform .2s, border-color .3s; flex: none; }
.round:hover { background: var(--paper); }
.round:active { transform: scale(.94); }
.round svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.round.ghost { border-color: transparent; }
.round.send { background: var(--accent); border-color: var(--accent); }
.round.send svg { stroke: #fff; stroke-width: 2.2; }
.round.send.stop { background: var(--dark); border-color: var(--dark); }
.round.send.stop svg { fill: #fff; stroke: none; }
.round.send.stop:hover { background: var(--accent); border-color: var(--accent); }
.round.send:disabled { background: var(--paper-2); border-color: var(--paper-2); cursor: default; transform: none; }
.round.send:disabled svg { stroke: var(--mute); }
.round.rec { background: var(--accent); border-color: var(--accent); animation: pulse 1.4s ease-out infinite; }
.round.rec svg { stroke: #fff; }
.round.busy svg { animation: spin 1s linear infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,91,31,.45); } 100% { box-shadow: 0 0 0 12px rgba(255,91,31,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.rec-time { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
/* панель записи голоса: заменяет поле ввода, пока идёт запись */
.recbar { display: flex; align-items: center; gap: 10px; padding: 4px 0 0; }
.composer.recording textarea, .composer.recording .bar { display: none; }
.wave-box { position: relative; flex: 1; min-width: 0; height: 48px; border-radius: 14px; background: var(--paper); overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.wave-box::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1s steps(2) infinite; }
.wave-box canvas { flex: 1; min-width: 0; height: 32px; display: block; }
.rec-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--paper); font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }
.rec-status::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.recbar.busy .round { opacity: .4; pointer-events: none; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; font-size: .875rem; font-weight: 500; transition: background-color .3s; }
.pill-btn:hover, .pill-btn.on { background: var(--paper); }
.ratio-ico { display: grid; place-items: center; width: 18px; height: 18px; }
.ratio-ico i { display: block; border: 1.6px solid var(--ink); border-radius: 3px; }

/* вложения */
.attach { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 4px 4px; }
.attach:empty { display: none; }
.chip-img { position: relative; height: 64px; display: flex; align-items: center; gap: 10px; padding: 4px 30px 4px 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.chip-img img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; display: block; }
.chip-img.solo { padding-right: 4px; }
.chip-img b { font-weight: 500; font-size: .8125rem; line-height: 1.25; max-width: 140px; }
.chip-img b small { display: block; font-family: var(--mono); font-weight: 400; font-size: .6875rem; color: var(--mute); }
.chip-img .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: var(--dark); color: #fff; display: grid; place-items: center; }
.chip-img .x svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 2.4; fill: none; }

/* выбор формата */
.ratio-pop {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20; display: flex; gap: 14px; padding: 14px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 16px 40px rgba(20,20,20,.12);
}
.ratio-grid { display: grid; grid-template-columns: repeat(6, 78px); grid-auto-rows: 78px; gap: 6px; }
.ratio-tile { border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 10px; transition: background-color .3s; }
.ratio-tile:hover { background: var(--paper); }
.ratio-tile i { display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 7px; font-family: var(--mono); font-style: normal; font-size: .625rem; color: var(--ink-2); transition: border-color .3s; }
.ratio-tile.on i { border-color: var(--accent); color: var(--ink); background: rgba(255,91,31,.08); }
.ratio-tile.auto i { border-style: dashed; }
.ratio-preview { width: 150px; display: grid; place-items: center; background: var(--paper); border-radius: 12px; }
.ratio-frame { position: relative; border: 2px solid var(--ink); border-radius: 8px; background: var(--dark); transition: width .35s, height .35s; }
.ratio-frame i { position: absolute; background: rgba(255,255,255,.22); }
.ratio-frame i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.ratio-frame i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.ratio-frame i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.ratio-frame i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }

.suggest { display: none; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.app.empty .suggest { display: flex; }
.sugg { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: .8125rem; cursor: pointer; color: var(--ink-2); transition: background-color .45s, color .45s; }
.sugg:hover { background: var(--white); color: var(--ink); transition-duration: .2s; }
.hint { text-align: center; font-size: .6875rem; color: var(--mute); margin-top: 8px; min-height: 1em; }

/* модалки и прочее */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,20,20,.35); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--card); border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; display: grid; gap: 20px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-card.wide { max-width: 560px; }
.modal-card.wide .modal-actions .btn { flex: 1; justify-content: center; text-align: center; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font: 400 26px/1 var(--f); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--paper-2); color: var(--ink); }
#modalText { padding-right: 28px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions .btn { min-height: 44px; }
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,.88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.drop { position: fixed; inset: 0; z-index: 70; background: rgba(239,239,237,.9); display: grid; place-items: center; pointer-events: none; }
.drop div { border: 2px dashed var(--accent); border-radius: 20px; padding: 40px 50px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .875rem; max-width: calc(100% - 32px); }

/* ===== Планшет и телефон ===== */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .only-mobile { display: grid; }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 40px rgba(20,20,20,.15); }
  .app.side-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 39; background: rgba(20,20,20,.3); }
  .app.side-open .scrim { display: block; }
  .chat-item .tools { display: flex; }
}
/* сенсорные экраны: кнопки сразу в «активных» цветах, как на сайте */
@media (hover: none) {
  .btn::before { transform: scaleX(1); }
  .btn { color: var(--ink); }
  .btn i { background: var(--dark); }
  .btn i svg path { stroke: #fff; }
  .btn.ghost, .btn.danger { color: #fff; }
}
@media (max-width: 600px) {
  html { font-size: 112%; }
  .main-top { padding: 6px 8px; }
  .feed { padding: 4px 12px 16px; }
  .dock { padding: 0 10px max(10px, env(safe-area-inset-bottom)); }
  .msg-user { max-width: 88%; }
  .ratio-pop { flex-direction: column; left: -4px; right: -4px; }
  .ratio-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 72px; gap: 4px; }
  .ratio-preview { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .app.empty .suggest { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 10px -10px 0; padding: 0 10px; scrollbar-width: none; }
  .suggest::-webkit-scrollbar { display: none; }
  .sugg { white-space: nowrap; flex: none; }
  .app.empty .hero { margin-top: 0; }
  .app.empty .main { justify-content: flex-end; }
  .app.empty .hero { margin-bottom: auto; margin-top: auto; }
}
@media (max-width: 340px) {
  .ratio-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 66px; }
  .pill-btn { padding: 0 10px; }
}

.stats-link { display: block; font-size: 13px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--line, #d6d6d2); margin-bottom: 10px; }
.stats-link:hover { border-color: currentColor; }
.stats-link[hidden] { display: none; }

.quota-help { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: #2f6bff; color: #fff; font: 500 13px/1.2 var(--f); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(47,107,255,.25); }
.quota-help:hover { background: #1f57e6; color: #fff; }
.quota-help::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.22); font-weight: 600; flex: none; }
.guide { display: grid; gap: 10px; text-align: left; }
.guide-title { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.guide ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.guide b { font-weight: 600; }
.guide-note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
/* кнопки в окнах — без «шторки» при наведении (на широкой кнопке она давала полосы), просто смена цвета */
.modal-actions .btn::before { display: none; }
.modal-actions .btn { transition: background-color .2s, color .2s; }
.modal-actions .btn:not(.ghost):not(.danger):hover { background: var(--accent); color: var(--ink); }
.modal-actions .btn.ghost:hover, .modal-actions .btn.danger:hover { background: var(--dark); color: #fff; }
