/* Native Telegram Back replaces the extra in-app back/close controls. */
.telegram-native-back .function-screen > .sheet-head > [data-close-dialog],
.telegram-native-back .model-popover-head > [data-close-dialog] { display:none; }
.telegram-native-back .function-screen > .sheet-head {
  flex-direction:row;
  min-height:55px;
  margin-bottom:15px;
}
.telegram-native-back .notion-screen > .sheet-head { display:none; }
.telegram-native-back .model-popover-head { padding-right:4px; }

/* A clear paid-first catalog, followed by every Free model together. */
.model-group-free { margin-top:12px;padding-top:12px;border-top:1px solid var(--line); }
.model-group-free h3 { color:var(--accent); }

/* Notion detail: a full destination screen rather than a form popover. */
.notion-screen { background:#f3f4f1 !important; }
.notion-screen > [hidden],.notion-screen [hidden] { display:none !important; }
.notion-screen .notion-detail { padding-top:20px; }
.notion-detail-hero { text-align:center; }
.notion-detail-icon {
  display:grid;place-items:center;width:84px;height:84px;margin:8px auto 15px;
  border-radius:25px;background:#fff;box-shadow:0 8px 28px #12251618;
}
.notion-detail-icon img { width:55px;height:55px;object-fit:contain; }
.notion-detail-hero h2 { margin:0;color:#17231a;font-size:27px;font-weight:650;letter-spacing:-.04em; }
.notion-detail-hero p { max-width:360px;margin:7px auto 22px;color:#7d847e;font-size:15px;line-height:1.38; }
.notion-example-list { display:grid;gap:9px; }
.notion-example-list p {
  margin:0;padding:13px 17px;border-radius:22px;background:#fff;
  box-shadow:0 5px 22px #1225160d;color:#1e2d22;font-size:16px;line-height:1.35;
}
.notion-about { margin-top:22px; }
.notion-about h3 { margin:0 4px 11px;color:#6e7670;font-size:16px;font-weight:550; }
.notion-about p {
  margin:0;padding:16px 18px;border-radius:22px;background:#fff;
  color:#263229;font-size:15px;line-height:1.48;
}
.notion-screen .notion-status { margin-top:16px;background:#e8f4e9;color:#31513b;border-radius:18px; }
.notion-detail-footer {
  position:sticky;bottom:0;z-index:4;display:flex;flex-direction:column;
  padding:16px 0 max(9px,env(safe-area-inset-bottom,0px));
  background:linear-gradient(transparent,#f3f4f1 22%);
}
.notion-detail-footer .primary-button { width:100%;min-height:52px;border-radius:999px; }
.notion-setup { padding-top:22px; }
.notion-setup h3 { margin:0 0 8px;font-size:25px;letter-spacing:-.035em; }
.notion-setup > p { margin:0;color:var(--muted);line-height:1.45;font-size:14px; }
.notion-setup .notion-help { display:block;margin:18px auto 4px; }
:root[data-theme=dark] .notion-screen { background:#171d19 !important; }
:root[data-theme=dark] .notion-detail-icon,
:root[data-theme=dark] .notion-example-list p,
:root[data-theme=dark] .notion-about p { background:#27332b;color:#ecf6ef; }
:root[data-theme=dark] .notion-detail-hero h2 { color:#f0f7f0; }
:root[data-theme=dark] .notion-detail-footer { background:linear-gradient(transparent,#171d19 22%); }
:root[data-theme=dark] .notion-screen .notion-status { background:#233b2b;color:#ccead0; }
