.im-page, .im-guide-page {
  --im-ink: #14223c;
  --im-muted: #51607a;
  --im-line: #dce5f1;
  --im-blue: #264cce;
  --im-mint: #e2f5ee;
  color: var(--im-ink);
  background: #fbfcff;
}

.im-page .im-crumb, .im-guide-page .im-crumb { color: #516281; }
.im-crumb li + li::before { color: #7b8baa; }
.im-crumb a { color: #4b6186; }
.im-crumb a:is(:hover, :focus-visible) { color: var(--im-blue); }
.im-crumb a::after { display: none; }
.im-hero {
  padding-block: 24px clamp(40px, 7vw, 92px);
  background: radial-gradient(ellipse at 86% 42%, #d6e8ff, transparent 57%), linear-gradient(115deg, #f8faff, #edf4ff);
  border-bottom: 1px solid var(--im-line);
}
.im-hero .im-crumb { margin-bottom: clamp(26px, 5vw, 54px); }
.im-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.im-product-name { color: var(--im-blue); font-weight: 750; font-size: .93rem; }
.im-hero h1, .im-guide-hero h1 { margin-block: 14px 20px; font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -.058em; line-height: 1.12; }
.im-hero h1 span { color: var(--im-blue); background: none; -webkit-text-fill-color: currentColor; }
.im-intro { max-width: 36em; color: var(--im-muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; }
.im-actions { margin-top: clamp(21px, 3vw, 34px); }
.im-quiet-button { background: #fff; color: #193d9d; border-color: #bccdf4; }
.im-quiet-button:hover { color: #173c9e; background: #f2f6ff; border-color: #99b2ef; }
.im-text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--im-blue); font-weight: 720; }
.im-text-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.im-hero-copy > .im-text-link { margin-top: 23px; }
.im-preview {
  padding: clamp(10px, 1.7vw, 17px);
  border: 1px solid #2f4771;
  border-radius: 23px;
  background: linear-gradient(140deg, #1b2f53, #101e36 73%);
  box-shadow: 0 21px 50px #23376632;
  color: #f4f8ff;
}
.im-preview-top, .im-preview-brand { display: flex; align-items: center; }
.im-preview-top { padding: 3px 3px 14px; justify-content: space-between; gap: 12px; font-size: .83rem; }
.im-preview-brand { gap: 8px; font-weight: 700; }
.im-preview-brand img { width: 26px; height: 26px; border-radius: 7px; }
.im-preview-note { color: #b8c8e2; white-space: nowrap; }
.im-preview-workspace { min-height: 254px; display: grid; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; border-radius: 13px; background: #f8faff; color: var(--im-ink); }
.im-preview-controls { display: grid; align-content: start; gap: 7px; padding: 11px 8px; background: #eaf0fa; border-right: 1px solid #dfe7f3; }
.im-preview-controls[hidden] { display: none; }
.im-preview-controls[hidden] + .im-preview-thread { grid-column: 1 / -1; }
.im-preview-controls button { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; color: #3e5072; background: transparent; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.im-preview-controls button span, .im-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; color: #2147a4; background: #dce8fd; font-size: .72rem; }
.im-preview-controls button:is([aria-pressed="true"], :hover) { background: #fff; color: #2047a7; border-color: #d6e4fd; }
.im-preview-thread { display: flex; min-width: 0; flex-direction: column; }
.im-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 15px 14px; border-bottom: 1px solid #e1e8f4; }
.im-thread-header span { color: #576d8c; font-size: .72rem; white-space: nowrap; }
.im-thread-messages { display: grid; align-content: start; gap: 13px; flex: 1; padding: 14px; font-size: .81rem; }
.im-message { display: flex; align-items: flex-start; min-width: 0; gap: 7px; }
.im-message[hidden] { display: none; }
.im-message div > span { color: #526681; font-size: .72rem; }
.im-message p { margin-top: 3px; padding: 8px 10px; border-radius: 3px 10px 10px; background: #e9effb; line-height: 1.45; }
.im-message-own { justify-content: end; }
.im-message-own p { border-radius: 10px 3px 10px 10px; background: var(--im-mint); }
.im-thread-footer { margin: 0 14px 14px; padding: 9px 10px; border: 1px solid #d9e4f5; border-radius: 8px; background: #fff; color: #4b6186; font-size: .77rem; }
.im-jump-bar { background: #fff; border-bottom: 1px solid var(--im-line); }
.im-jumps { position: static; display: flex; flex-wrap: wrap; background: none; border: 0; padding: 0; gap: 7px clamp(12px, 4vw, 35px); }
.im-jumps a { display: inline-flex; align-items: center; min-height: 48px; color: #3d5279; }
.im-jumps a:is(:hover, :focus-visible) { color: var(--im-blue); }
.im-jumps a::after { inset-block-end: 0; background: var(--im-blue); }
.im-section { padding-block: clamp(45px, 7vw, 86px) 0; }
.im-section-title { margin-bottom: 25px; }
.im-section h2 { font-size: clamp(25px, 3.7vw, 45px); line-height: 1.2; letter-spacing: -.035em; }
.im-section-title p { margin-top: 9px; color: var(--im-muted); line-height: 1.7; }
.im-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.im-capabilities section { display: flex; flex-direction: column; gap: 10px; padding: clamp(17px, 2.5vw, 29px); border: 1px solid var(--im-line); border-top: 3px solid #8da9ed; border-radius: 14px; background: #fff; }
.im-capabilities section:nth-child(2) { border-top-color: #7fbda9; }
.im-capabilities section:nth-child(3) { border-top-color: #9d91df; }
.im-capabilities h3 { font-size: clamp(17px, 1.9vw, 21px); }
.im-capabilities p, .im-deploy-panel p, .im-demo-copy p { color: var(--im-muted); line-height: 1.72; }
.im-capabilities a { margin-top: auto; padding-top: 5px; color: var(--im-blue); font-weight: 720; font-size: .9rem; }
.im-capabilities a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.im-demo-panel, .im-deploy-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(18px, 4vw, 55px); padding: clamp(20px, 4vw, 45px); border-radius: 21px; }
.im-demo-panel { color: #f5f8ff; background: #142541; }
.im-demo-copy p { margin-block: 11px 20px; color: #c7d6ee; }
.im-demo-copy .im-text-link { color: #b5cdff; }
.im-demo-panel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid #49658f; border-radius: 11px; background: #0c172c; }
.im-library { margin-top: clamp(45px, 7vw, 86px); padding-block: clamp(38px, 6vw, 72px); border-block: 1px solid #dce6f4; background: #f1f5fc; }
.im-guide-group + .im-guide-group { margin-top: 32px; }
.im-guide-group > h3 { margin-block: 0 11px; font-size: clamp(18px, 2.2vw, 25px); }
.im-guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.im-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 6px 14px;
  min-height: 104px;
  padding: 17px clamp(14px, 2vw, 22px);
  border: 1px solid #dae4f3;
  border-radius: 13px;
  background: #fff;
}
.im-guide-card:is(:hover, :focus-visible) { border-color: #91aceb; box-shadow: 0 8px 21px #25448012; }
.im-guide-card h4 { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; }
.im-guide-card p { grid-row: 2; color: var(--im-muted); font-size: .88rem; line-height: 1.55; }
.im-guide-card span { grid-column: 2; grid-row: 1 / 3; color: var(--im-blue); }
.im-deploy-panel { background: #e8f2ff; border: 1px solid #d2e3fb; grid-template-columns: minmax(0, 1fr) auto; }
.im-deploy-panel p { margin-top: 12px; max-width: 46em; }
.im-deploy-panel > div + div { display: grid; justify-items: start; gap: 10px; }
.im-faq { padding-bottom: clamp(10px, 2vw, 24px); }
.im-faq details { border-top: 1px solid var(--im-line); padding: 15px 0; }
.im-faq details:last-child { border-bottom: 1px solid var(--im-line); }
.im-faq summary { cursor: pointer; font-weight: 700; }
.im-faq details p { margin-top: 9px; color: var(--im-muted); }
.im-faq details a { color: var(--im-blue); text-decoration: underline; }

.im-guide-hero { padding-block: 24px clamp(32px, 6vw, 66px); background: linear-gradient(115deg, #f8faff, #e8f1ff); border-bottom: 1px solid var(--im-line); }
.im-guide-hero .im-crumb { margin-bottom: clamp(21px, 4vw, 36px); }
.im-guide-hero h1 { max-width: 17em; font-size: clamp(31px, 4.8vw, 62px); }
.im-guide-hero .im-intro { max-width: 42em; }
.im-guide-layout { display: grid; grid-template-columns: minmax(160px, .3fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 65px); padding-top: clamp(26px, 5vw, 55px); }
.im-guide-layout .guide-toc { background: #f0f5fd; }
.im-guide-copy { display: grid; gap: clamp(24px, 4vw, 48px); }
.im-guide-copy h2 { margin-bottom: 12px; font-size: clamp(21px, 2.8vw, 32px); line-height: 1.35; }
.im-guide-copy p { max-width: 48em; color: var(--im-muted); line-height: 1.85; }
.im-guide-copy p a { color: var(--im-blue); text-decoration: underline; text-underline-offset: 3px; }
.im-guide-check { padding: clamp(16px, 2.7vw, 30px); border-radius: 15px; background: #e9f5f0; }
.im-guide-related { margin-bottom: 16px; }
.im-guide-related .im-guide-cards { margin-bottom: 18px; }
@media (max-width: 960px) {
  .im-hero-grid { gap: 28px; }
  .im-preview-controls { padding-inline: 4px; }
  .im-preview-controls button { gap: 4px; padding-inline: 5px; }
  .im-hero h1 { font-size: clamp(35px, 5.4vw, 59px); }
}
@media (max-width: 720px) {
  .im-hero-grid, .im-capabilities, .im-demo-panel, .im-deploy-panel, .im-guide-layout { grid-template-columns: minmax(0, 1fr); }
  .im-preview { max-width: 550px; width: 100%; }
  .im-guide-layout .guide-sidebar { position: static; }
  .im-guide-layout .guide-toc { position: static; }
}
@media (max-width: 500px) {
  .im-guide-cards { grid-template-columns: minmax(0, 1fr); }
  .im-guide-card { min-height: 85px; }
  .im-preview-workspace { grid-template-columns: minmax(0, 1fr); min-height: 255px; }
  .im-preview-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; border-right: 0; border-bottom: 1px solid #dfe7f3; }
  .im-preview-controls button { justify-content: center; }
  .im-preview-controls button span { width: 22px; height: 22px; flex-basis: 22px; }
}
