/* Source palette and card styling are preserved. These rules strengthen the grids. */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
section[id] { scroll-margin-top: 5.5rem; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; border: 2px solid #2563eb; border-radius: .75rem; }
.skip-link:focus { top: 1rem; }
main .grid > *, .resolution-options > *, .product-heading > * { min-width: 0; }
.product-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.product-heading h3 { overflow-wrap: anywhere; }
.resolution-options button { text-align: left; }
.resolution-options p { overflow-wrap: anywhere; }
#problem .truncate { white-space: normal; overflow: visible; }
.demo-overlay { z-index: 70; overflow-y: auto; }
.demo-dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.demo-dialog input, .demo-dialog select { min-height: 44px; font-size: 14px; }
.demo-dialog label { font-size: 13px; }
.demo-dialog button { min-height: 44px; }
/* Give long Icelandic labels room and preserve the reading order when cards reflow. */
#workflow .workflow-grid { max-width: 1200px; gap: 24px; }
#workflow .workflow-grid > div { padding: 28px; }
#workflow .workflow-grid > div > :first-child { max-width: none; }
#workflow .workflow-grid > div > :first-child > .flex { margin-bottom: 20px; }
#workflow .text-2xs { font-size: 14px; line-height: 1.6; }
#workflow .text-3xs { font-size: 13px; line-height: 1.5; font-family: inherit; }
#workflow .workflow-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-top: 20px; margin-top: 28px; font-size: 13px; line-height: 1.5; }
#workflow .workflow-footer > :last-child { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 1200px) {
  #workflow > div > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  #workflow > div > .grid > * { grid-column: auto; }
  #workflow > div > .grid > :last-child { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
  #workflow > div > .grid > :last-child > :last-child { width: 100%; display: grid; grid-template-columns: 1fr; gap: .5rem; }
  #workflow > div > .grid > :last-child > :first-child { width: 100%; }
}
@media (max-width: 639px) {
  .product-heading { grid-template-columns: auto minmax(0, 1fr); }
  .product-heading > :last-child { grid-column: 2; justify-self: start; margin-top: .5rem; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #workflow > div > .grid > :last-child { flex-direction: column; align-items: stretch; }
  #workflow > div > .grid > :last-child > :last-child { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #main-navbar .hidden.md\:flex { display: none; }
  #main-navbar .md\:hidden { display: flex; }
}
@media (max-width: 639px) {
  #workflow .workflow-grid { gap: 20px; }
  #workflow .workflow-grid > div { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }
.navbar-scrolled { background: rgb(255 255 255 / 95%); backdrop-filter: blur(12px); border-bottom: 1px solid #e2e8f0; }
.nav-active { color: #020617; background: #f1f5f9; }
[aria-current="true"] { background: white; color: #020617; box-shadow: 0 1px 2px #02061710; }
[aria-current="false"] { background: transparent !important; box-shadow: none !important; color: #64748b; }
.mobile-navigation { padding: .75rem 1rem 1.5rem; background: white; box-shadow: 0 6px 10px #02061710; }
.mobile-navigation button { display: block; width: 100%; min-height: 44px; text-align: left; padding: .75rem; border-radius: .5rem; font-size: 14px; }
.mobile-navigation .primary-button { text-align: center; }
.resolution-option[aria-pressed="true"] { background: white; border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb19; }
.resolution-option[aria-pressed="false"] .resolution-indicator { background: transparent; border-color: #cbd5e1; }
.resolution-option[aria-pressed="false"] .resolution-indicator svg { visibility: hidden; }
.resolution-option[aria-pressed="true"] .resolution-indicator { background: #2563eb; border-color: #2563eb; color: white; }
.resolution-status { color: #475569; font-size: 12px; margin-top: .5rem; }
.bento-grid > div, .bento-grid > div > .flex-1, .bento-grid > div > .rounded-3xl { border-radius: 16px; }
.claim-product-heading > :first-child { min-width: 0; }
.claim-product-heading h3, .claim-product-heading p { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .claim-product-heading { flex-direction: column; }
  .claim-product-heading > :last-child { margin-left: 56px; }
}
.dialog-open { overflow: hidden; }
.site-dialog { position: fixed; inset: 0; margin: auto; width: calc(100% - 2rem); max-width: 512px; max-height: calc(100dvh - 2rem); overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; color: #0f172a; background: white; box-shadow: 0 25px 50px #02061740; }
.site-dialog::backdrop { background: #020617b3; backdrop-filter: blur(4px); }
.site-dialog h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 10px 0; padding-right: 16px; }
.dialog-close { position: absolute; right: 14px; top: 14px; color: #64748b; width: 44px; height: 44px; font-size: 25px; border-radius: 8px; cursor: pointer; }
.dialog-close:hover { background: #f1f5f9; }
.dialog-badge { display: inline-flex; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.dialog-description { font-size: 14px; line-height: 1.5; color: #475569; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.form-grid > * { min-width: 0; display: grid; grid-template-rows: 1fr auto; }
.form-grid label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-grid input, .form-grid select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 13px; background: white; }
.primary-button { background: #020617; color: white; font-size: 13px; font-weight: 600; padding: 12px 20px; min-height: 44px; border-radius: 12px; width: 100%; cursor: pointer; }
.primary-button:hover { background: #1e293b; }
form .primary-button { margin-top: 24px; }
.form-note { text-align: center; font-size: 12px; color: #64748b; line-height: 1.5; margin-top: 16px; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } .site-dialog { padding: 24px; } }


body:has(dialog[open]) { overflow: hidden; }
@media (min-width: 1024px) { .mobile-navigation { display: none; } }
.app-loading { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: #fff; }
.loading-brand { display: flex; align-items: center; gap: 10px; }
.loading-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #020617; color: #fff; }
.loading-wordmark { color: #020617; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -.8px; }
.loading-wordmark span { color: #2563eb; }
.loading-track { width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: #f1f5f9; }
.loading-track::after { content: ""; display: block; width: var(--blazor-load-percentage, 0%); height: 100%; border-radius: inherit; background: #2563eb; transition: width .2s ease; }
@media (prefers-reduced-motion: reduce) { .loading-track::after { transition: none; } }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; padding: 16px; background: #fff7ed; z-index: 100; }
.not-found { max-width: 640px; margin: 100px auto; padding: 24px; }

h1:focus { outline: none; }
