/* Only the pinned general blog app receives this attribute and stylesheet. */
[data-hx-blog-app] {
  --hx-surface: #11172a; --hx-surface-raised: #171e34;
  --hx-border: #29334d; --hx-text: #f2f5fc; --hx-muted: #aab6ce;
  --hx-accent: #88e6ce;
  min-width: 0; min-height: 0 !important; height: 100%;
  background: #090d1b; color: var(--hx-text); color-scheme: dark;
}
[data-hx-blog-app] > main { min-height: 0; min-width: 0; }
[data-hx-blog-app] :is(button,a,input,textarea,select):focus-visible {
  outline: 3px solid #a99bff; outline-offset: 3px;
}
[data-hx-blog-app] button:disabled { cursor: not-allowed; }
[data-hx-blog-nav] {
  min-height: 58px; background: #0f1525eb; border-color: #25304a;
  box-shadow: 0 1px 0 #0003; flex-shrink: 0;
}
[data-hx-blog-nav] > div { max-width: 1440px; padding-inline: 24px; }
[data-hx-blog-nav] > div > div { min-height: 58px; gap: 16px; }
[data-hx-blog-nav] > div > div > div:first-child { gap: 10px; flex-shrink: 0; }
[data-hx-blog-nav] > div > div > div:first-child > div { width: 34px; height: 34px; border-radius: 12px; font-size: 20px; }
[data-hx-blog-nav] > div > div > div:first-child > span { font-size: 16px; }
[data-hx-blog-nav] > div > div > div:last-child { gap: 8px; padding-block: 4px; scrollbar-width: thin; scrollbar-color: #535080 #11182b; }
[data-hx-blog-nav] button { min-height: 38px; padding: 8px 11px; font-size: 12px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }

.hx-blog-home { width: 100%; max-width: 1360px; margin: 0 auto; padding: 40px 28px 36px; }
.hx-blog-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hx-blog-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #bdb1ff; font-size: 12px; font-weight: 750; letter-spacing: .07em; }
.hx-blog-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a89afa; box-shadow: 0 0 12px #a89afa55; }
.hx-blog-home h1 { margin: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.4; font-weight: 800; letter-spacing: -.055em; word-break: keep-all; }
.hx-blog-intro { margin: 12px 0 0; color: var(--hx-muted); font-size: 14px; line-height: 1.85; word-break: keep-all; }
.hx-blog-help { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--hx-border); border-radius: 12px; background: #171e31; color: #dce2f3; font-size: 13px; white-space: nowrap; }
.hx-blog-help:hover { background: #202945; border-color: #68749d; }
.hx-blog-roadmap { display: flex; list-style: none; padding: 0; margin: 28px 0; border: 1px solid #27314b; border-radius: 14px; background: #101628; }
.hx-blog-roadmap li { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; padding: 13px 16px; color: #c4cee2; font-size: 12px; line-height: 1.5; }
.hx-blog-roadmap li + li { border-left: 1px solid #27314b; }
.hx-blog-roadmap-number { color: #9f92ea; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hx-blog-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hx-blog-start-card { --hx-card-accent: #88e6ce; --hx-card-rgb: 136,230,206; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid #2b354e; border-radius: 20px; background: linear-gradient(150deg, #182136 0%, #111729 72%); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hx-blog-accent-violet { --hx-card-accent: #c3b4ff; --hx-card-rgb: 195,180,255; }
.hx-blog-accent-blue { --hx-card-accent: #9acbff; --hx-card-rgb: 154,203,255; }
.hx-blog-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hx-blog-card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(var(--hx-card-rgb), .2); border-radius: 15px; color: var(--hx-card-accent); background: rgba(var(--hx-card-rgb), .07); }
.hx-blog-card-icon svg { width: 25px; height: 25px; }
.hx-blog-card-number { color: #6c7b98; font-size: 12px; font-variant-numeric: tabular-nums; }
.hx-blog-card-badge { margin: 0 0 9px; color: var(--hx-card-accent); font-size: 11px; line-height: 1.6; font-weight: 700; }
.hx-blog-start-card h2 { margin: 0; color: #f4f6ff; font-size: clamp(19px, 1.35vw, 23px); line-height: 1.5; font-weight: 750; letter-spacing: -.04em; word-break: keep-all; }
.hx-blog-card-description { flex: 1; margin: 14px 0 22px; color: #b1bed4; font-size: 14px; line-height: 1.9; word-break: keep-all; }
.hx-blog-card-flow { margin: 0 0 20px; padding-top: 17px; border-top: 1px solid #2a344b; color: #94a2bd; font-size: 11px; line-height: 1.7; word-break: keep-all; }
.hx-blog-start-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 12px 15px; border: 1px solid rgba(var(--hx-card-rgb), .36); border-radius: 11px; background: rgba(var(--hx-card-rgb), .11); color: var(--hx-card-accent); font-size: 13px; font-weight: 800; text-align: left; transition: background .2s ease, box-shadow .2s ease; }
.hx-blog-start-button:hover { background: rgba(var(--hx-card-rgb), .2); box-shadow: 0 0 22px rgba(var(--hx-card-rgb), .09); }
.hx-blog-accent-mint .hx-blog-start-button { background: #8be4cf; border-color: #8be4cf; color: #09231f; }
.hx-blog-accent-mint .hx-blog-start-button:hover { background: #acf3e2; border-color: #acf3e2; }
.hx-blog-workspace-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 4px 0; margin-top: 8px; }
.hx-blog-workspace-notes > div { padding: 4px 0; }
.hx-blog-workspace-notes h2 { margin: 0 0 7px; color: #c6d0e5; font-size: 12px; font-weight: 700; }
.hx-blog-workspace-notes p { margin: 0; color: #8f9db8; font-size: 11px; line-height: 1.85; word-break: keep-all; }

[data-hx-blog-studio] { min-height: 0; min-width: 0; background: #0b1020; }
[data-hx-blog-step-header] { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 18px; padding: 14px 24px 12px !important; border-color: #2a344d; background: #11182b; }
[data-hx-blog-step-actions] { grid-column: 2; grid-row: 1; position: static !important; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
[data-hx-blog-step-actions] button { min-height: 36px; padding: 7px 13px; font-size: 12px; border-color: #35415d; background: #1c2740; color: #d4ddef; }
[data-hx-blog-step-actions] button:disabled { color: #6b7d9d; border-color: #27314a; background: #151e32; box-shadow: none; opacity: .7; }
[data-hx-blog-steps] { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; max-width: 1060px; gap: 6px; margin: 0 auto !important; overflow-x: auto !important; padding: 3px 0 9px !important; scrollbar-width: thin; scrollbar-color: #535080 #151c30; }
[data-hx-blog-step] { min-width: 76px; flex-shrink: 0; }
[data-hx-blog-step] > div:first-child { width: 34px; height: 34px; font-size: 17px; }
[data-hx-blog-step] > div:last-child:not(:first-child) { top: 17px; }
[data-hx-blog-step] > span { margin-top: 6px; font-size: 11px !important; line-height: 1.5; }
[data-hx-blog-step][aria-current="step"] { color: #cfc3ff; }
[data-hx-blog-content] { min-height: 0; min-width: 0; padding: 24px !important; scrollbar-gutter: stable; overscroll-behavior-y: contain; }
[data-hx-blog-content-inner] { min-width: 0; min-height: 0 !important; max-width: 1160px; }
[data-hx-blog-content-inner] > h2 { font-size: clamp(23px, 2vw, 30px); line-height: 1.5; letter-spacing: -.04em; }
[data-hx-blog-content] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select) { min-height: 44px; max-width: 100%; }
[data-hx-blog-content] textarea { max-width: 100%; line-height: 1.8; }
[data-hx-blog-app] :is(input,textarea,select) { scroll-margin-top: 24px; }
[data-hx-blog-app] [class*="fixed"][class*="inset-0"] > div { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .hx-blog-start-card:hover { transform: translateY(-4px); border-color: rgba(var(--hx-card-rgb), .58); box-shadow: 0 15px 40px #0003, 0 0 24px rgba(var(--hx-card-rgb), .05); }
}
@media (max-width:1100px) {
  .hx-blog-home { padding: 28px 22px; }
  .hx-blog-start-grid { gap: 13px; }
  .hx-blog-start-card { padding: 21px; }
  [data-hx-blog-nav] > div { padding-inline: 20px; }
  [data-hx-blog-nav] > div > div { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  [data-hx-blog-nav] > div > div > div:last-child { flex: 1 1 auto; }
}
@media (max-width:820px) {
  .hx-blog-start-grid { grid-template-columns: 1fr; }
  .hx-blog-start-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px; }
  .hx-blog-card-top { grid-column: 1; grid-row: 1 / 4; align-items: flex-start; margin: 0; }
  .hx-blog-card-number { display: none; }
  .hx-blog-card-icon { width: 44px; height: 44px; border-radius: 13px; }
  .hx-blog-card-badge,.hx-blog-start-card h2,.hx-blog-card-description { grid-column: 2; }
  .hx-blog-card-badge { margin: 0 0 4px; }
  .hx-blog-start-card h2 { font-size: 21px; }
  .hx-blog-card-description { margin: 10px 0 16px; }
  .hx-blog-card-flow,.hx-blog-start-button { grid-column: 1 / -1; }
  .hx-blog-card-flow { margin-bottom: 14px; padding-top: 13px; }
  .hx-blog-start-button { min-height: 46px; }
}
@media (max-width:540px) {
  .hx-blog-home { padding: 24px 16px 28px; }
  .hx-blog-welcome { align-items: flex-start; gap: 12px; }
  .hx-blog-welcome h1 { font-size: 26px; }
  .hx-blog-intro { font-size: 13px; }
  .hx-blog-help { font-size: 0; width: 36px; min-width: 36px; min-height: 36px; padding: 8px; }
  .hx-blog-help > span { font-size: 17px; }
  .hx-blog-roadmap { margin: 22px 0; }
  .hx-blog-roadmap li { flex-direction: column; gap: 4px; padding: 10px 6px; font-size: 11px; }
  .hx-blog-start-card { padding: 20px; }
  .hx-blog-workspace-notes { grid-template-columns: 1fr; gap: 15px; padding-top: 16px; }
  [data-hx-blog-nav] > div { padding-inline: 16px; }
  [data-hx-blog-nav] > div > div { padding-block: 8px; }
  [data-hx-blog-nav] > div > div > div:first-child > span { display: inline !important; font-size: 15px; }
  [data-hx-blog-nav] > div > div > div:last-child { width: 100%; }
  [data-hx-blog-nav] > div > div > div:last-child > div.hidden { display: flex !important; flex-shrink: 0; order: -1; gap: 4px; }
  [data-hx-blog-nav] button > span:nth-child(2).hidden { display: inline !important; }
  [data-hx-blog-nav] button { min-height: 40px; }
  [data-hx-blog-step-header] { grid-template-columns: 1fr; row-gap: 5px; padding: 10px 14px 8px !important; }
  [data-hx-blog-step-actions] { grid-column: 1; grid-row: 1; }
  [data-hx-blog-steps] { grid-column: 1; grid-row: 2; justify-content: flex-start !important; }
  [data-hx-blog-step] { min-width: 78px; }
  [data-hx-blog-content] { padding: 20px 14px !important; scrollbar-gutter: auto; }
}
@media (prefers-reduced-motion:reduce) {
  [data-hx-blog-app] *,[data-hx-blog-app] *::before,[data-hx-blog-app] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hx-blog-start-card:hover { transform: none; }
}

/* Product detail import keeps the native writer, description and photos. */
.hx-product-panel { min-width: 0; padding: 18px; border: 1px solid #39516a; border-radius: 16px; background: linear-gradient(140deg,#142336,#111a2c); color: #e9effa; }
.hx-product-panel-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hx-product-panel-heading h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.5; color: #d5f5ea; }
.hx-product-panel-heading p { margin: 0; color: #aabbd2; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.hx-product-read-badge { padding: 4px 8px; border: 1px solid #39705d; border-radius: 7px; color: #a0ddc6; background: #19372d80; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.hx-product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-product-panel button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 13px; border: 1px solid #41516e; border-radius: 10px; font-size: 12px; font-weight: 750; line-height: 1.5; transition: background .18s,border-color .18s,box-shadow .18s; }
.hx-product-panel button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.hx-product-panel .hx-product-fetch,.hx-product-panel .hx-product-apply { background: #8ce2c9; border-color: #8ce2c9; color: #102a24; }
.hx-product-panel .hx-product-fetch:hover:not(:disabled),.hx-product-panel .hx-product-apply:hover:not(:disabled) { background: #b0f1df; border-color: #b0f1df; box-shadow: 0 0 18px #8ce2c918; }
.hx-product-panel .hx-product-secondary { background: #1c2a43; border-color: #415475; color: #d9e5f7; }
.hx-product-panel .hx-product-secondary:hover:not(:disabled) { background: #263955; border-color: #758caf; }
.hx-product-hint { margin: 10px 0; color: #a5b5cf; font-size: 11px; line-height: 1.9; word-break: keep-all; }
.hx-product-error,.hx-product-warning { margin: 12px 0; padding: 12px 14px; border: 1px solid #806544; border-radius: 10px; background: #4b382236; color: #f2d7aa; font-size: 12px; line-height: 1.85; word-break: keep-all; }
.hx-product-error { background: #57263150; border-color: #985262; color: #ffd7dc; }
.hx-product-error p { margin: 0; }
.hx-product-error p + p { margin-top: 6px; }
.hx-product-warning button { margin-top: 9px; background: #332e2a; color: #f4dfbf; border-color: #806544; }
.hx-product-notice { margin: 12px 0; padding: 11px 13px; border: 1px solid #397565; border-radius: 10px; background: #173d3350; color: #b4edda; font-size: 12px; line-height: 1.85; }
.hx-product-result { min-width: 0; margin-top: 17px; padding-top: 17px; border-top: 1px solid #324861; }
.hx-product-result-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hx-product-result-heading strong { max-width: 100%; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.hx-product-result-heading > span { padding: 3px 7px; border-radius: 6px; background: #2b3853; color: #b9cce7; font-size: 10px; }
.hx-product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 5px; }
.hx-product-facts > div { min-width: 0; padding: 10px; border-radius: 9px; background: #0b13247a; }
.hx-product-facts dt { margin-bottom: 4px; color: #94a7c6; font-size: 10px; }
.hx-product-facts dd { margin: 0; color: #e3eaf7; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.hx-product-source-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 9px 0; }
.hx-product-source-links a,.hx-product-image-item a { color: #a3d9ed; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; line-height: 1.9; }
.hx-product-warning-list { padding: 10px 12px 10px 26px; margin: 12px 0; border-radius: 9px; background: #55402430; color: #dec7a5; font-size: 11px; line-height: 1.9; list-style: disc; }
.hx-product-confirm { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; padding: 11px; border-radius: 9px; border: 1px solid #756141; background: #4f3b2530; color: #ead8b5; font-size: 12px; line-height: 1.8; cursor: pointer; }
.hx-product-panel input[type=checkbox] { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; accent-color: #8ce2c9; }
.hx-product-edit-label { display: block; margin: 15px 0 7px; color: #d9e7fa; font-size: 12px; font-weight: 750; }
.hx-product-panel textarea { display: block; width: 100%; min-height: 160px; max-height: 350px; padding: 12px; border: 1px solid #425676; border-radius: 10px; background: #0e1628; color: #e4ecf8; font-size: 12px; line-height: 1.85; resize: vertical; }
.hx-product-panel .hx-product-apply { width: 100%; margin-top: 2px; }
.hx-product-images { margin-top: 17px; border-top: 1px solid #324861; padding-top: 12px; }
.hx-product-images summary { min-height: 34px; color: #bfd8f1; font-size: 12px; line-height: 1.9; font-weight: 700; cursor: pointer; }
.hx-product-image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.hx-product-image-item { min-width: 0; padding: 9px; border: 1px solid #344863; border-radius: 10px; background: #101c30; }
.hx-product-image-item label { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #cbdaf0; font-size: 11px; cursor: pointer; }
.hx-product-image-item img { width: 100%; height: 110px; object-fit: contain; padding: 6px; border-radius: 7px; background: #0b1425; }
.hx-product-image-item a { display: inline-block; margin-top: 7px; }
@media(max-width:540px) {
  .hx-product-panel { padding: 15px; }
  .hx-product-facts { grid-template-columns: 1fr; gap: 7px; }
  .hx-product-panel-heading { gap: 8px; }
  .hx-product-actions > button { width: 100%; }
  .hx-product-panel textarea { font-size: 13px; }
}

/* Local extension results keep product content on the user's device. */
.hx-product-extension { padding: 15px; border: 1px solid #3c6d68; border-radius: 12px; background: #102e2b61; }
.hx-product-extension-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.hx-product-extension-top strong { color: #b7f0df; font-size: 13px; line-height: 1.8; }
.hx-product-extension-top span { color: #9db7c9; font-size: 10px; line-height: 1.8; }
.hx-product-extension p,.hx-product-extension li { color: #c0d0e0; font-size: 12px; line-height: 1.9; word-break: keep-all; }
.hx-product-extension p { margin: 9px 0; }
.hx-product-extension ol { margin: 10px 0 14px; padding-left: 20px; list-style: decimal; }
.hx-product-extension li + li { margin-top: 6px; }
.hx-product-extension code { padding: 2px 4px; border-radius: 4px; background: #081c24; color: #d7e7fa; overflow-wrap: anywhere; }
.hx-product-extension-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hx-product-extension-actions a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid #4c7d7b; border-radius: 9px; background: #183b42; color: #c8eeec; font-size: 12px; font-weight: 750; text-decoration: none; transition: background .18s,border-color .18s,box-shadow .18s; }
.hx-product-extension-actions a:hover { border-color: #92d9cb; background: #224e51; box-shadow: 0 0 16px #8ce2c918; }
.hx-product-extension-actions .hx-product-extension-download { background: #8ce2c9; color: #102a24; border-color: #8ce2c9; }
.hx-product-extension-actions .hx-product-extension-download:hover { background: #b0f1df; border-color: #b0f1df; }
.hx-product-file-label { display: flex; flex: 1 1 240px; flex-direction: column; gap: 7px; min-width: 0; padding: 10px 12px; border: 1px dashed #5c9289; border-radius: 10px; color: #bce3d9; font-size: 12px; font-weight: 700; }
.hx-product-file-label input { display: block; width: 100%; min-width: 0; font-size: 11px; font-weight: 400; color: #bacbdf; }
.hx-product-file-label input::file-selector-button { margin-right: 9px; padding: 6px 9px; border: 1px solid #517a82; border-radius: 7px; background: #16313e; color: #d5e9f7; cursor: pointer; }
.hx-product-file-label input:disabled { opacity: .5; cursor: not-allowed; }
.hx-product-server-fallback { margin: 14px 0 8px; border: 1px solid #364b65; border-radius: 10px; padding: 10px 12px; background: #111d304d; }
.hx-product-server-fallback summary { cursor: pointer; color: #a9bbd3; font-size: 11px; line-height: 1.9; }
.hx-product-server-fallback .hx-product-actions { margin-top: 10px; }
.hx-product-local-source { margin: 0 0 12px; color: #a9e6d1; font-size: 11px; line-height: 1.9; }
.hx-product-extension-actions a:focus-visible,.hx-product-file-label:focus-within,.hx-product-server-fallback summary:focus-visible { outline: 2px solid #9be8d2; outline-offset: 3px; }
@media(max-width:540px) {
 .hx-product-extension { padding: 12px; }
 .hx-product-extension-actions { align-items: stretch; }
 .hx-product-extension-actions > a,.hx-product-file-label { width: 100%; flex-basis: 100%; }
}
