@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Light.ttf") format("truetype"); font-style: normal; font-weight: 300; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-ExtraLight.ttf") format("truetype"); font-style: normal; font-weight: 200; font-display: swap; }

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Thin.ttf") format("truetype"); font-style: normal; font-weight: 100; font-display: swap; }

* { box-sizing: border-box; }

body { margin: 0; color: var(--ink); font-family: "IBM Plex Sans Arabic",Tahoma,Arial,sans-serif; line-height: 1.8; }

button,input,textarea,select { font: inherit; }

button,a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; color: inherit; }

a { color: var(--teal); }

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

button { border: 0; }

h1,h2,h3,p { margin-top: 0; }

h1 { font-size: 1.6875rem; line-height: 1.7; margin-bottom: 5px; }

h2 { font-size: 1.4375rem; margin-bottom: 12px; }

h3 { font-size: 1.125rem; margin-bottom: 7px; }

p { margin-bottom: 16px; }

.muted { color: var(--muted); font-size: 0.875rem; }

.app-shell { max-width: 1120px; margin: auto; background: var(--bg); min-height: 100dvh; position: relative; padding-bottom: 100px; }

.header { background: white; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; min-height: 94px; }

.brand { background: none; text-align: right; line-height: 1.3; }

.brand strong { font-size: 1.6875rem; color: var(--navy); }

.brand small { display: block; color: var(--muted); font-size: 0.6875rem; }

.chip { background: var(--pale); padding: 7px 18px; border-radius: 14px; font-size: 0.8125rem; font-weight: bold; color: var(--teal); }

.header .chip { color: var(--navy); }

.container { padding: 26px 30px; max-width: 1000px; margin: auto; }

.hero { position: relative; color: white; border-radius: 28px; padding: 27px 28px; margin-bottom: 24px; overflow: hidden; }

.hero:after { content: "✧"; position: absolute; left: 25px; top: 32px; border-radius: 50%; font-size: 2.1875rem; line-height: 56px; width: 56px; text-align: center; }

.hero .eyebrow { font-size: 0.8125rem; font-weight: bold; margin-bottom: 25px; }

.hero h1 { font-size: 2rem; max-width: 650px; padding-left: 60px; margin-bottom: 24px; }

.hero p:last-child { margin: 0; color: #d8eff7; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 22px; text-align: right; }

.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 172px; transition: transform .18s,border-color .18s; }

.action-card:hover,.question:hover { border-color: var(--teal); transform: translateY(-2px); }

.icon-box { width: 48px; height: 48px; background: var(--pale); border-radius: 16px; display: grid; place-items: center; color: var(--teal); margin-bottom: 4px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.action-card h2 { margin: 0; }

.action-card .muted { margin: 0; }

.search-wrap { margin: 28px 0 20px; padding: 10px; background: var(--pale); border-radius: 25px; }

.search-form { display: flex; gap: 10px; border: 1px solid var(--teal); border-radius: 19px; background: white; padding: 10px; align-items: center; }

.search-form input { border: 0; width: 100%; min-width: 0; background: transparent; padding: 5px 10px; color: var(--ink); outline: none; }

.search-form button { border-radius: 13px; background: #193f5c; color: white; width: 45px; height: 45px; flex-shrink: 0; }

.platforms { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }

.platform { border: 0; background: transparent; text-align: center; padding: 0; }

.platform span { display: grid; place-items: center; height: 85px; background: white; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 6px; }

.platform img { max-width: 75%; max-height: 56px; object-fit: contain; }

.platform small { color: var(--muted); font-size: 0.6875rem; }

.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(1120px,100%); display: flex; justify-content: space-around; background: #fffffffa; backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 5; padding: 13px 6px max(15px,env(safe-area-inset-bottom)); }

.nav button { display: flex; align-items: center; flex-direction: column; gap: 4px; background: transparent; color: #9ca9b8; font-size: 0.75rem; width: 25%; padding: 0; }

.nav button.active { font-weight: bold; }

.nav .icon { width: 25px; height: 25px; }

.section-head { background: var(--navy); color: white; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; }

.section-head button { background: transparent; color: white; }

.question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px; text-align: right; transition: .18s; }

.question .chip { font-size: 0.75rem; padding: 3px 18px; display: inline-block; margin-bottom: 9px; }

.question strong { display: block; font-size: 1rem; }

.arrow { font-size: 1.5625rem; color: var(--teal); }

.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.detail .card { border: 0; margin-bottom: 18px; }

.detail .formal { background: #e5f5f5; }

.detail h2 { margin-top: 20px; }

.step { display: flex; gap: 18px; align-items: center; }

.step h3 { color: #099d9a; font-size: 0.875rem; }

.step p { margin: 0; }

.step .number { background: var(--pale); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }

.primary,.secondary { display: block; width: 100%; padding: 12px 18px; border-radius: 11px; text-align: center; text-decoration: none; margin: 10px 0; background: var(--navy); color: white; font-weight: bold; }

.secondary { background: var(--pale); color: #168f94; }

.detail-actions { max-width: 480px; margin: 25px auto; }

.profile-banner { display: flex; gap: 20px; background: white; align-items: center; padding: 25px; margin-bottom: 20px; }

.avatar { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #dff4fb; color: #37adca; }

.profile-banner h2 { margin: 0; }

.menu button,.menu a { width: 100%; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #f0f3f7; background: white; text-decoration: none; color: var(--navy); padding: 18px; text-align: right; }

.menu .arrow { margin-right: auto; color: #a1adba; }

.menu .danger { color: #b97c80; }

.list-search { background: white; border: 1px solid var(--line); border-radius: 12px; width: 100%; padding: 12px 15px; margin: 15px 0; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

.screen-title { text-align: center; margin: 15px 0 27px; }

.radio-option { display: flex; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; justify-content: space-between; cursor: pointer; }

.radio-option:has(input:checked) { border-color: var(--navy); }

input[type=radio] { accent-color: var(--navy); }

.splash { min-height: 100dvh; max-width: 540px; margin: auto; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 0 0,#dff5fb 0,white 35%,white 65%,#daedf1 100%); padding: 50px 24px 25px; text-align: center; }

.splash:before { content: ""; position: absolute; border: 1px solid #90d2dd; width: 450px; height: 450px; border-radius: 50%; top: -310px; right: -110px; }

.splash-brand { margin-top: 13vh; }

.splash-brand img { width: min(330px,94%); mix-blend-mode: multiply; }

.splash-brand .divider { color: var(--teal); margin: 15px auto; }

.splash-brand h1 { font-size: 1.5625rem; color: #657480; font-weight: 400; }

.skyline { width: calc(100% + 48px); margin-right: -24px; margin-bottom: -20px; mix-blend-mode: multiply; }

.splash .primary { position: relative; margin-top: 15px; font-size: 1.1875rem; }

.onboarding { max-width: 540px; margin: auto; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; padding: 22px 28px; text-align: center; }

.onboard-top { display: flex; justify-content: space-between; }

.link-btn { background: none; color: var(--muted); }

.onboard-body { margin: auto 0; }

.illustration { width: 155px; height: 155px; border-radius: 40px; background: var(--pale); display: grid; place-items: center; margin: 0 auto 25px; color: #70b5c8; transform: rotate(-5deg); }

.illustration .icon { width: 80px; height: 80px; }

.dots { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }

.dots i { width: 6px; height: 6px; background: #cfdce3; border-radius: 50%; }

.dots i.current { background: var(--navy); }

.onboard-footer { display: flex; gap: 18px; align-items: center; }

.onboard-footer .primary { flex: 1; }

.chat { display: flex; flex-direction: column; min-height: 65dvh; }

.bubble { background: white; padding: 17px 20px; border-radius: 20px 20px 3px 20px; max-width: 85%; margin: 8px 0; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }

.bubble.user { background: var(--navy); color: white; align-self: flex-end; border-radius: 20px 20px 20px 3px; }

.bubble a { display: inline-block; margin-top: 10px; }

.chat-form { position: sticky; bottom: 95px; display: flex; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin-top: auto; }

.chat-form input { width: 100%; min-width: 0; border: 0; padding: 5px; background: none; }

.chat-form button { background: var(--teal); color: white; border-radius: 10px; padding: 5px 16px; }

#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--navy); color: white; border-radius: 12px; padding: 12px 22px; z-index: 20; display: none; width: max-content; max-width: 90%; text-align: center; }

dialog { border: 0; border-radius: 22px; padding: 30px; max-width: 560px; width: 90%; color: var(--ink); }

dialog::backdrop { background: #102c4466; }

.close { background: none; font-size: 1.75rem; float: left; }

.notice { font-size: 0.6875rem; color: var(--muted); text-align: center; margin-top: 24px; }

.success { text-align: center; padding: 60px 0; }

.success .illustration { color: var(--navy); }

textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; min-height: 130px; }

.filters { display: flex; gap: 8px; overflow: auto; padding: 10px 0; }

.filters button { white-space: nowrap; }

.filters .selected { background: var(--navy); color: white; }

@media (min-width:800px) {
.home-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 25px; }

.home-layout .hero { margin: 0; }

.home-layout .grid { gap: 14px; }

.hero h1 { font-size: 2.25rem; }

.action-card { min-height: 240px; }

.app-shell { box-shadow: 0 0 70px #193f550c; }

.detail { max-width: 800px; }

.platforms { gap: 20px; }

.platform span { height: 100px; }

.profile-layout { max-width: 700px; margin: auto; }

.container { padding-top: 32px; }
}

@media (max-width:480px) {
.container { padding: 22px; }

.header { padding: 20px 23px; }

.hero { padding: 22px; }

.hero h1 { font-size: 1.5625rem; padding-left: 30px; }

.hero:after { left: 18px; top: 40px; width: 40px; line-height: 40px; font-size: 1.6875rem; }

.hero .eyebrow { font-size: 0.6875rem; }

.action-card { padding: 18px; min-height: 160px; }

.action-card h2 { font-size: 1.3125rem; }

.action-card .muted { font-size: 0.6875rem; }

.platforms { gap: 8px; }

.platform span { height: 66px; border-radius: 17px; }

.platform img { max-height: 43px; }

.questions { grid-template-columns: 1fr; }

.nav button { font-size: 0.625rem; }

.section-head { padding: 20px 22px; }

h1 { font-size: 1.5rem; }

.card { padding: 19px; }

.question strong { font-size: 0.9375rem; }

.profile-banner { padding: 20px; }

.profile-banner .muted { font-size: 0.75rem; }
}

html { scroll-behavior: smooth; }

img { display: block; max-width: 100%; height: auto; }

button:disabled { opacity: .4; cursor: default; }

.brand { padding: 0; }

.brand-logo { width: 148px; height: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-actions button { display: flex; align-items: center; gap: 7px; }

.header-actions .icon { width: 19px; height: 19px; }

.welcome-line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-weight: bold; }

.welcome-line .muted { font-weight: normal; }

.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 5px 2px; font-size: 0.75rem; color: var(--muted); }

.suggestions button { background: white; color: var(--navy); padding: 6px 12px; border: 1px solid var(--line); border-radius: 30px; }

.suggestions button:hover { border-color: var(--teal); }

.featured-health { display: flex; align-items: center; gap: 25px; padding: 28px; margin: 25px 0 30px; background: linear-gradient(120deg,#e2f4f6,#edf8f3); border: 1px solid #d3edeb; border-radius: 25px; }

.health-copy { flex: 1; min-width: 0; }

.health-copy h2 { margin-top: 14px; }

.health-copy .primary { width: fit-content; font-size: 0.875rem; }

.health-copy p { margin-bottom: 10px; }

.health-art { flex: 0 0 130px; display: flex; flex-direction: column; align-items: center; color: #269bac; }

.health-art .icon { width: 65px; height: 65px; background: white; padding: 13px; border-radius: 21px; box-shadow: 0 10px 25px #148b9c10; }

.health-art span { font-size: 1.625rem; font-weight: bold; margin-top: 6px; }

.health-art small { color: var(--muted); font-size: 0.6875rem; }

.walkthrough { padding: 25px; background: white; border: 1px solid #bde6e0; border-radius: 23px; margin: 20px 0; scroll-margin-top: 130px; }

.guide-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }

.walkthrough>p { font-size: 1.25rem; min-height: 65px; }

.walkthrough progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 20px; overflow: hidden; background: var(--pale); }

progress::-webkit-progress-bar { background: var(--pale); }

progress::-webkit-progress-value { background: var(--teal); }

progress::-moz-progress-bar { background: var(--teal); }

.guide-controls { display: flex; gap: 12px; margin: 14px 0; }

.guide-controls>* { flex: 1; font-size: 0.8125rem; }

.source-card { background: #e9f5f5; border-radius: 18px; padding: 20px; margin-top: 24px; }

.source-card p { font-size: 0.8125rem; margin: 8px 0; }

.source-card small { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 10px; }

.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: white; }

.login-story { background: linear-gradient(150deg,#edf8fb,#fff 60%,#d8eff5); position: relative; overflow: hidden; padding: 45px clamp(30px,5vw,80px) 0; display: flex; flex-direction: column; }

.login-story .brand { align-self: flex-start; }

.login-story .brand-logo { width: 200px; mix-blend-mode: multiply; }

.login-intro { margin: 50px 0 20px; position: relative; z-index: 1; }

.login-intro h1 { font-size: clamp(2.25rem,4vw,3.875rem); line-height: 1.5; margin: 20px 0 15px; color: var(--navy); }

.login-intro>p { font-size: 1.0625rem; color: #6c8797; max-width: 430px; }

.login-benefits { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.75rem; }

.login-benefits>span { display: flex; gap: 5px; align-items: center; }

.login-benefits .icon { color: var(--teal); width: 19px; height: 19px; }

.login-skyline { width: calc(100% + 160px); max-width: none; margin-top: auto; position: relative; right: -80px; mix-blend-mode: multiply; }

.login-panel { padding: 35px clamp(24px,5vw,80px); display: flex; flex-direction: column; }

.back-login { align-self: flex-start; font-size: 0.8125rem; padding: 0; }

.login-form-wrap { width: 100%; max-width: 400px; margin: auto; padding: 50px 0; }

.login-logo { width: 180px; margin-bottom: 35px; }

.login-form-wrap>h2 { font-size: 1.875rem; margin-top: 15px; margin-bottom: 5px; }

.login-form-wrap label { display: block; margin: 30px 0 8px; font-weight: bold; font-size: 0.875rem; }

.login-form-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 14px; color: var(--ink); min-height: 52px; }

.login-form-wrap form>.muted { font-size: 0.6875rem; display: block; margin: 7px 0 20px; }

.login-form-wrap .primary,.login-form-wrap .secondary { min-height: 50px; font-size: 0.875rem; }

.login-form-wrap .primary:hover { background: #255b72; }

.or-line { border-top: 1px solid var(--line); margin: 26px 0; position: relative; text-align: center; height: 0; }

.or-line span { position: relative; top: -16px; background: white; padding: 0 12px; color: var(--muted); font-size: 0.8125rem; }

.login-note { color: var(--muted); font-size: 0.6875rem; text-align: center; line-height: 1.9; margin-top: 17px; }

.login-form-wrap>.link-btn { width: 100%; color: #258a95; font-size: 0.8125rem; }

.login-footer { text-align: center; font-size: 0.6875rem; color: var(--muted); }

@media (min-width:1000px) {
.app-shell { max-width: 1440px; padding-bottom: 45px; }

.header { padding: 20px 44px; padding-left: 660px; min-height: 106px; border-bottom: 1px solid var(--line); }

.brand-logo { width: 165px; }

.nav { position: absolute; top: 0; left: 32px; bottom: auto; transform: none; width: 540px; background: transparent; border: 0; padding: 30px 0; backdrop-filter: none; height: 105px; align-items: center; }

.nav button { font-size: 0.6875rem; }

.nav button .icon { width: 21px; height: 21px; }

.container { max-width: 1200px; padding: 36px 44px; }

.home-layout { grid-template-columns: 1.15fr 1fr; }

.search-wrap { margin: 30px 0; }

.hero { min-height: 280px; }

.hero h1 { font-size: 2.375rem; }

.action-card { min-height: 280px; justify-content: center; }

.action-card .icon-box { width: 60px; height: 60px; }

.action-card h2 { font-size: 1.5625rem; }

.platforms { grid-template-columns: repeat(5,minmax(0,1fr)); }

.platform span { height: 110px; }

.platform img { max-height: 65px; }

.detail { max-width: 900px; }

.section-head { padding: 24px 44px; min-height: 106px; padding-left: 620px; }

.featured-health { padding: 30px 40px; }

.health-art { flex-basis: 200px; }

.chat-form { bottom: 20px; }

.login-layout { max-width: 1800px; margin: auto; }

.profile-layout { max-width: 800px; }

.walkthrough { scroll-margin-top: 25px; }
}

@media (min-width:1500px) {
body { padding: 24px; }

.app-shell { min-height: calc(100dvh - 48px); border-radius: 24px; overflow: hidden; }

.login-layout { min-height: calc(100dvh - 48px); border-radius: 24px; overflow: hidden; }

.splash,.onboarding { min-height: calc(100dvh - 48px); border-radius: 25px; }

.login-story { padding-top: 65px; }

.container { padding-top: 40px; }
}

@media (min-width:600px) and (max-width:999px) {
.container { max-width: 800px; padding: 30px; }

.hero h1 { font-size: 2.1875rem; }

.action-card { min-height: 170px; }

.platform span { height: 100px; }

.nav { padding-bottom: 20px; }

.login-story { padding: 35px 25px 0; }

.login-intro h1 { font-size: 2.25rem; }

.login-intro>p { font-size: 0.875rem; }

.login-benefits { flex-direction: column; gap: 14px; }

.login-panel { padding: 30px 25px; }

.login-logo { width: 150px; }
}

@media (max-width:599px) {
.header { min-height: 85px; padding: 16px 20px; }

.brand-logo { width: 124px; }

.header-actions { gap: 10px; }

.header-actions .link-btn { font-size: 0.6875rem; }

.header-actions .chip { padding: 7px 10px; font-size: 0.6875rem; }

.header-actions .icon { width: 16px; height: 16px; }

.welcome-line { flex-direction: column; gap: 0; margin-bottom: 16px; font-size: 0.9375rem; }

.welcome-line .muted { font-size: 0.75rem; }

.featured-health { padding: 20px; gap: 12px; }

.health-copy h2 { font-size: 1.25rem; }

.health-copy .muted { font-size: 0.75rem; }

.health-copy .primary { width: 100%; font-size: 0.75rem; }

.health-art { flex-basis: 65px; }

.health-art .icon { width: 52px; height: 52px; }

.health-art span { font-size: 1.25rem; }

.health-art small { font-size: 0.5625rem; }

.featured-health .chip { font-size: 0.625rem; padding: 5px 10px; }

.walkthrough { padding: 20px; }

.walkthrough>p { font-size: 1.0625rem; }

.guide-label .chip { font-size: 0.6875rem; padding: 6px 12px; }

.guide-controls { gap: 8px; }

.guide-controls>* { padding: 10px; font-size: 0.6875rem; }

.login-layout { display: block; min-height: 100dvh; background: var(--bg); }

.login-story { display: none; }

.login-panel { min-height: 100dvh; padding: 22px 26px; background: radial-gradient(ellipse at top right,#e4f6fa,white 55%); }

.login-form-wrap { padding: 35px 0; }

.login-logo { width: 210px; margin: 0 auto 40px; mix-blend-mode: multiply; }

.login-form-wrap>h2 { font-size: 1.75rem; }

.login-form-wrap>.chip { font-size: 0.75rem; }

.login-footer { padding-top: 20px; }

.suggestions { font-size: 0.6875rem; gap: 6px; }

.suggestions>span { width: 100%; }

.suggestions button { padding: 5px 9px; }
}

@media (prefers-reduced-motion:reduce) {
html { scroll-behavior: auto; }

* { transition: none !important; animation: none !important; }
}

@media (min-width:1000px) {
.header { padding: 20px 44px 100px; min-height: 180px; align-items: flex-start; }

.nav { top: 105px; left: 44px; width: calc(100% - 88px); height: 58px; padding: 8px 0; justify-content: flex-start; gap: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }

.nav button { width: auto; flex-direction: row; gap: 8px; padding: 6px 0; font-size: 0.8125rem; }

.section-head { min-height: 180px; padding: 20px 44px 100px; align-items: flex-start; }

.section-head+.container { padding-top: 32px; }

.walkthrough { scroll-margin-top: 30px; }
}

.clean-shell { background: #fff; }

.compact-header { position: relative; min-height: 95px; display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid #f1f2f5; background: white; }

.compact-header .brand { position: absolute; left: 50%; transform: translateX(-50%); }

.compact-header .brand-logo { width: 90px; }

.back-icon { background: none; font-size: 1.75rem; color: var(--navy); padding: 0 4px; }

.round-profile { color: white; border-radius: 50%; display: grid; place-items: center; width: 36px; height: 36px; }

.round-profile .icon { width: 20px; height: 20px; }

.clean-shell .profile-banner { padding: 24px 15px 30px; border-bottom: 1px solid #f1f2f5; margin: 0; }

.clean-shell .profile-banner h2 { font-size: 1.375rem; }

.clean-shell .profile-banner .avatar { background: #e3f4fc; color: #2ba8d3; }

.clean-shell .profile-layout .menu { margin-top: 14px; }

.clean-shell .menu button { padding: 20px 10px; font-size: 0.9375rem; }

.clean-shell .menu .icon { width: 21px; height: 21px; }

.clean-shell .menu .arrow { order: 3; }

.clean-shell .menu .danger { color: #d66065; }

.saved-layout { max-width: 900px; }

.saved-layout h1 { font-size: 1.5625rem; margin: 5px 0 20px; }

.type-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }

.type-tabs button { padding: 6px 24px; border-radius: 30px; background: #f1f4f8; color: #8792a3; font-size: 0.8125rem; }

.type-tabs button.selected { color: white; }

.saved-grid { display: grid; gap: 14px; }

.saved-item { display: flex; background: white; border: 1px solid #e1e3e9; border-radius: 20px; box-shadow: 0 3px 10px #102f4605; align-items: center; min-height: 102px; padding: 20px 24px; gap: 15px; }

.saved-open { flex: 1; min-width: 0; text-align: right; background: none; padding: 0; }

.saved-open strong { display: block; font-size: 1.0625rem; }

.saved-open span { display: block; color: #458c91; font-size: 0.8125rem; margin-top: 2px; }

.bookmark-remove { background: none; color: #102f46; padding: 5px; }

.bookmark-remove .icon { width: 19px; height: 22px; }

.flow-layout { max-width: 950px; padding-bottom: 35px; }

.flow-layout h1 { font-size: 1.6875rem; }

.flow-layout .card { border: 0; box-shadow: 0 3px 14px #17354e04; }

.flow-layout .icon-box { background: #e9f7f5; }

.flow-layout .primary { background: #062b40; }

.flow-layout .secondary { background: #edecff; color: #123147; }

.analysis-card { border: 1px solid #e3e5ed; border-radius: 22px; background: white; padding: 25px; }

.analysis-title { display: flex; gap: 14px; align-items: center; }

.analysis-title h2 { font-size: 1.25rem; margin: 0; }

.analysis-title .muted { font-size: 0.75rem; margin: 0; }

.analysis-title>.chip { margin-right: auto; }

.request-preview { padding: 16px; border-radius: 12px; background: #f8f8fd; margin-top: 20px; }

.analysis-timeline { list-style: none; padding: 0; margin: 28px 0; }

.analysis-timeline li { display: flex; align-items: center; gap: 14px; position: relative; padding: 16px 0; }

.timeline-mark { border-radius: 50%; border: 2px solid #dce3eb; color: #9ca9b9; width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }

.analysis-timeline li.done .timeline-mark { background: #26aaa4; color: white; border-color: #26aaa4; }

.analysis-timeline li.current { color: #1e9997; }

.analysis-timeline li.current .timeline-mark { border-color: #1e9997; color: #1e9997; }

.analysis-timeline small { margin-right: auto; color: #a3abb7; white-space: nowrap; }

.analysis-timeline strong { font-size: 0.9375rem; }

.result-success { display: flex; align-items: center; gap: 18px; border: 1px solid #d4e9e6; background: white; border-radius: 16px; padding: 15px 22px; margin-bottom: 20px; }

.result-success>.icon { background: #e5f8f0; padding: 8px; border-radius: 50%; width: 43px; height: 43px; color: #52bca3; }

.result-success h3 { margin: 0; font-size: 1.1875rem; }

.result-success p { font-size: 0.6875rem; color: var(--muted); margin: 0; }

.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.result-meta .card { display: flex; gap: 12px; align-items: center; }

.result-meta .card .chip { margin-right: auto; font-size: 0.625rem; padding: 3px 10px; }

.result-meta h3 { margin: 0; }

.formal-result { margin-top: 20px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.row-between h3 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1rem; }

.row-between .chip { font-size: 0.6875rem; padding: 4px 12px; flex-shrink: 0; }

.formal-result>p:first-of-type { padding: 18px; background: #f8f9fc; border: 1px solid #efeff5; border-radius: 13px; margin: 18px 0 0; font-size: 0.875rem; }

.formal-result>.muted { font-size: 0.6875rem; margin: 8px 0 0; }

.guidance-heading { margin: 25px 0 15px; }

.guidance-options { display: grid; gap: 12px; }

.guidance-options>button { display: flex; align-items: center; gap: 12px; width: 100%; background: white; border: 1px solid #e1e3ed; border-radius: 14px; padding: 14px 18px; box-shadow: 0 2px 8px #12314705; }

.guidance-options .icon-box { margin: 0; width: 39px; height: 39px; border-radius: 12px; }

.guidance-options .arrow { margin-right: auto; }

.guidance-options>button:hover { border-color: var(--teal); }

.media-intro { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }

.media-intro h2 { font-size: 1.4375rem; margin: 0; }

.media-intro p { font-size: 0.875rem; margin: 10px 0 0; }

.media-intro .chip { font-size: 0.625rem; padding: 4px 10px; }

.flow-actions { margin-top: 40px; }

.flow-actions .primary,.flow-actions .secondary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; }

.visual-card { padding: 22px; min-height: 400px; }

.illustrated-step { margin: 20px auto; background: #f5f4ff; border-radius: 18px; padding: 25px; text-align: center; max-width: 480px; min-height: 280px; }

.illustrated-header { display: flex; justify-content: space-between; border-bottom: 1px solid #dce2ec; padding-bottom: 10px; }

.step-badge { background: #d9f6ef; color: #0d8f81; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; margin: 20px auto; font-weight: bold; font-size: 1.3125rem; }

.illustrated-step h2 { font-size: 1.25rem; }

.mock-line { height: 7px; background: #dae8ec; width: 75%; border-radius: 10px; margin: 10px auto; }

.mock-line.short { width: 50%; margin-bottom: 20px; }

.visual-controls { display: flex; align-items: center; justify-content: space-between; max-width: 480px; margin: 20px auto; font-size: 0.8125rem; }

.circle-control { border-radius: 50%; background: white; border: 1px solid var(--line); width: 38px; height: 38px; box-shadow: 0 3px 10px #17354e15; }

.visual-enlarge { display: block; padding: 0; margin: 20px auto; }

.visual-enlarge img { margin: auto; }

.enlarged-guide { width: 100%; max-height: 75dvh; object-fit: contain; }

.file-label { display: block; text-align: center; color: #218c8c; background: #eaf8f5; border: 1px dashed #b7ded7; border-radius: 12px; padding: 12px; font-size: 0.8125rem; cursor: pointer; margin-top: 15px; }

.file-label input { display: block; width: 100%; font-size: 0.6875rem; margin-top: 8px; }

.video-stage { background: #0b2c44; border-radius: 20px; overflow: hidden; color: white; }

.video-stage video { display: block; width: 100%; max-height: 500px; }

.video-placeholder { text-align: center; padding: 45px 25px; min-height: 260px; }

.video-placeholder>.icon { width: 45px; height: 45px; color: #52c6bb; }

.video-placeholder p { font-size: 0.8125rem; color: #b9d6dd; }

.video-placeholder .file-label { max-width: 400px; margin: 20px auto 0; }

.quick-guide { margin-top: 23px; }

.quick-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }

.quick-steps>span { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #f3f1ff; border-radius: 14px; padding: 16px 10px; font-size: 0.75rem; }

.quick-steps .icon { color: #287d79; }

.rating-card { max-width: 650px; margin: auto; border: 1px solid #eeeef5; border-radius: 22px; padding: 30px; }

.rating-hero { text-align: center; }

.rating-symbol { display: grid; place-items: center; width: 75px; height: 75px; border-radius: 50%; margin: 0 auto 20px; color: #08304a; }

.rating-symbol .icon { width: 39px; height: 39px; }

.rating-hero p { font-size: 0.9375rem; color: #65717b; }

.rating-card fieldset { border: 0; margin: 20px 0; padding: 0; min-width: 0; }

.stars-field { border-radius: 20px; padding: 20px !important; text-align: center; }

.stars { display: flex; direction: ltr; gap: clamp(10px,3vw,25px); justify-content: center; }

.stars button { background: none; padding: 0; color: #c2c8d3; font-size: clamp(1.875rem,6vw,2.6875rem); }

.rating-face { display: block; margin-top: 7px; color: #83919e; font-size: 0.875rem; }

.tags-field legend { font-weight: bold; margin-bottom: 12px; font-size: 0.875rem; }

.rating-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.rating-tags button { background: #f0eeff; border: 1px solid transparent; border-radius: 30px; padding: 8px 15px; font-size: 0.75rem; }

.rating-card>label { font-size: 0.875rem; font-weight: bold; }

.notes-box { margin: 8px 0 24px; border-radius: 16px; border: 1px solid #e9e6f7; padding: 12px; }

.notes-box textarea { background: transparent; border: 0; resize: vertical; min-height: 110px; font-size: 0.875rem; }

.notes-box small { color: #858fa1; font-size: 0.75rem; display: block; direction: ltr; text-align: left; }

.rating-card .primary { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px; }

.rating-card .notice { font-size: 0.625rem; }

.unavailable { text-align: center; }

.unavailable>.icon-box { margin: 0 auto 20px; width: 65px; height: 65px; }

.unavailable h1 { font-size: 1.5625rem; }

.unavailable>p { line-height: 2; }

.unavailable blockquote { background: #f6f7fb; border-radius: 15px; padding: 16px; margin: 15px 0; overflow-wrap: anywhere; }

.helpfulness { margin-top: 24px; background: #f0f1f6; border-radius: 18px; padding: 20px; }

.request-box { border-radius: 22px; padding: 22px; background: white; border: 1px solid var(--line); margin-bottom: 24px; }

.request-box .muted { font-size: 0.75rem; }

.request-box h2 { font-size: 1.375rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.history-row { background: white; border-bottom: 1px solid #f0f1f5; width: 100%; text-align: right; display: flex; gap: 14px; padding: 22px 0; align-items: center; }

.history-row>.icon-box { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; margin: 0; }

.history-row strong { font-weight: normal; font-size: 0.9375rem; display: block; }

.history-row small { font-size: 0.6875rem; color: #9ba2ae; display: block; }

.history-row time { margin-right: auto; color: #a7adb7; font-size: 0.625rem; flex-shrink: 0; }

@media (min-width:1000px) {
.compact-header { min-height: 180px; padding: 20px 44px 100px; }

.compact-header .brand-logo { width: 115px; }

.compact-header .brand { top: 22px; }

.saved-grid { grid-template-columns: 1fr 1fr; }

.flow-layout { padding-top: 30px; }

.guidance-options { grid-template-columns: repeat(3,1fr); }

.guidance-options>button { flex-wrap: wrap; justify-content: center; text-align: center; }

.guidance-options .arrow { display: none; }

.guidance-options strong { width: 100%; }

.flow-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.flow-actions .official-link { grid-column: 1/-1; }

.rating-card { padding: 35px 42px; }

.flow-layout:has(.rating-card) { max-width: 1000px; }
}

@media (max-width:599px) {
.compact-header { min-height: 80px; padding: 18px 22px; }

.compact-header .brand-logo { width: 83px; }

.round-profile { width: 32px; height: 32px; }

.flow-layout { padding: 22px 18px 30px; }

.result-meta { grid-template-columns: 1fr; gap: 12px; }

.result-meta .card { padding: 18px; margin: 0; }

.analysis-card { padding: 20px; }

.analysis-title { gap: 9px; }

.analysis-title h2 { font-size: 1.0625rem; }

.analysis-title>.chip { font-size: 0.625rem; padding: 3px 8px; }

.analysis-title .icon-box { display: none; }

.analysis-timeline { margin: 20px 0; }

.analysis-timeline strong { font-size: 0.8125rem; }

.analysis-timeline small { font-size: 0.625rem; }

.rating-card { padding: 25px 20px; }

.rating-hero h1 { font-size: 1.5rem; }

.rating-hero p { font-size: 0.8125rem; }

.saved-layout h1 { font-size: 1.375rem; }

.type-tabs { gap: 8px; }

.type-tabs button { padding: 5px 19px; font-size: 0.75rem; }

.saved-item { padding: 18px 20px; min-height: 90px; }

.saved-open strong { font-size: 0.9375rem; }

.media-intro { padding: 18px; }

.media-intro h2 { font-size: 1.3125rem; }

.media-intro p { font-size: 0.75rem; }

.quick-steps { gap: 7px; }

.quick-steps>span { font-size: 0.625rem; }

.clean-shell .nav { background: white; }

.profile-layout { padding-left: 22px; padding-right: 22px; }

.clean-shell .profile-banner { padding-bottom: 25px; }

.request-box { padding: 18px; }

.request-box h2 { font-size: 1.25rem; }

.guidance-options>button { font-size: 0.875rem; }

.row-between h3 { font-size: 0.8125rem; }
}

.profile-layout:has(#language-form) { min-height: 70dvh; }

#language-form { display: flex; flex-direction: column; min-height: 55dvh; }

#language-form>.primary { margin-top: auto; }

#language-form .radio-option { flex-shrink: 0; }

#language-form .radio-option:last-of-type { margin-bottom: 35px; }

.history-row>span:not(.icon-box) { min-width: 0; overflow-wrap: anywhere; }

.saved-open strong,.result-meta h3 { overflow-wrap: anywhere; }

.flow-layout .icon-box { flex-shrink: 0; }

.stars button:focus-visible { border-radius: 8px; }

.stars button:hover { color: #147b72; }

.rating-tags button:hover { border-color: #8fcbbb; }

:root { --navy: #173f5f; --ink: #172b4d; --teal: #1fa6a0; --muted: #7a8da4; --pale: #e7f6f2; --bg: #f7f9fc; --line: #dce6ee; --white: #ffffff; --accent: #52c7a5; }

body { background: #eef3f7; }

.hero { background: #173f5f; }

.hero .eyebrow { color: #52c7a5; }

.hero:after { background: #1fa6a033; color: #52c7a5; }

.primary,.flow-layout .primary { background: #173f5f; }

.nav button.active { color: #1fa6a0; }

.flow-layout .secondary,.rating-tags button { background: #e7f6f2; color: #173f5f; }

.stars-field { background: #edf7f6; }

.stars button.lit { color: #1fa6a0; }

.notes-box { background: #f7f9fc; border-color: #dce6ee; }

.rating-symbol { background: #e7f6f2; }

.rating-card { background: linear-gradient(135deg,white 85%,#e7f6f2); }

.quick-steps>span,.illustrated-step { background: #edf7f6; }

.flow-actions .official-link { background: linear-gradient(90deg,#173f5f,#1fa6a0); }

.type-tabs button.selected { background: #173f5f; }

.bookmark-remove .icon { fill: #173f5f; }

.round-profile { background: #173f5f; }

.source-card,.formal-result>p:first-of-type { background: #f7f9fc; }

.rating-tags button.selected { background: #d9f3eb; border-color: #52c7a5; color: #173f5f; }

[dir="ltr"] .brand,[dir="ltr"] .card,[dir="ltr"] .question,[dir="ltr"] .saved-open,[dir="ltr"] .history-row,[dir="ltr"] .menu button,[dir="ltr"] .menu a { text-align: left; }

[dir="ltr"] .menu .arrow,[dir="ltr"] .guidance-options .arrow,[dir="ltr"] .analysis-title>.chip,[dir="ltr"] .analysis-timeline small,[dir="ltr"] .result-meta .card .chip,[dir="ltr"] .history-row time { margin-right: 0; margin-left: auto; }

[dir="ltr"] .hero h1 { padding-left: 0; padding-right: 60px; }

[dir="ltr"] .hero:after { left: auto; right: 25px; }

[dir="ltr"] .skyline { margin-right: 0; margin-left: -24px; }

[dir="ltr"] .close { float: right; }

[dir="ltr"] .search-form button,[dir="ltr"] .chat-form button { transform: scaleX(-1); }

[dir="ltr"] .nav button { font-family: Arial,sans-serif; }

[dir="ltr"] .bubble { border-radius: 20px 20px 20px 3px; }

[dir="ltr"] .bubble.user { border-radius: 20px 20px 3px 20px; }

[dir="ltr"] .splash-brand img { margin-left: auto; margin-right: auto; }

@media (max-width:599px) {
[dir="ltr"] .nav button { font-size: 0.625rem; }

[dir="ltr"] .hero h1 { padding-right: 35px; font-size: 1.5625rem; }

[dir="ltr"] .hero:after { right: 18px; }

[dir="ltr"] .type-tabs button { padding: 6px 14px; }

[dir="ltr"] .result-meta .card .chip { max-width: 90px; line-height: 1.5; text-align: center; }

[dir="ltr"] .analysis-timeline strong { font-size: 0.75rem; }

[dir="ltr"] .guide-controls>* { font-size: 0.6875rem; }
}

@media (min-width: 1000px) {
.guidance-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.image-caption { text-align: center; color: var(--muted); margin-top: 14px; }

.guide-tabs { display: flex; gap: 10px; margin: 18px 0 24px; padding: 5px; border-radius: 15px; background: #eaf2f5; }

.guide-tabs button { display: flex; gap: 8px; align-items: center; justify-content: center; flex: 1; background: transparent; padding: 11px 16px; border-radius: 11px; color: #718394; font-weight: bold; }

.guide-tabs button.selected { background: #173f5f; color: white; box-shadow: 0 3px 8px #173f551a; }

.guide-tabs .icon { width: 19px; height: 19px; }

.visual-enlarge { width: 100%; border-radius: 14px; background: #f5f7fa; overflow: hidden; }

.visual-enlarge img { width: 100%; height: auto; max-height: 65dvh; object-fit: contain; }

.thumbnail-strip { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 15px 3px; border-top: 1px solid var(--line); scrollbar-color: #1fa6a0 #edf3f5; }

.gallery-thumb { flex: 0 0 95px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #f7f9fc; border: 2px solid transparent; border-radius: 13px; padding: 6px; scroll-snap-align: center; color: var(--muted); font-size: 0.6875rem; }

.gallery-thumb img { width: 76px; height: 105px; object-fit: contain; border-radius: 7px; background: white; }

.gallery-thumb.is-active { border-color: #1fa6a0; background: #e8f7f3; color: #173f5f; }

.image-provenance { display: block; text-align: center; color: var(--muted); font-size: 0.6875rem; }

.image-coverage { font-size: 0.75rem; color: #718394; background: #f7f9fc; border-radius: 12px; padding: 12px; margin: 12px 0; }

@media (max-width:599px) {
.gallery-thumb { flex-basis: 78px; }

.gallery-thumb img { width: 60px; height: 85px; }

.thumbnail-strip { gap: 8px; }

.visual-card { padding: 16px; }

.visual-enlarge img { max-height: 60dvh; }

.guide-tabs button { padding: 10px; font-size: 0.8125rem; }
}

.entry-screen { min-height: 100dvh; display: grid; place-items: center; padding: 0; background: linear-gradient(135deg,#edf8fb,#f7f9fc); }

.entry-poster { position: relative; width: min(100%,600px); margin: auto; }

.entry-art { display: block; width: 100%; height: auto; border-radius: 0 0 35px 35px; }

.entry-actions { position: absolute; bottom: 3.8%; inset-inline: 7%; }

.entry-start { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0; min-height: 56px; border-radius: 18px; font-size: 1.25rem; box-shadow: 0 5px 16px #173f5530; }

.entry-start:hover { background: #215875; }

.step-image-card { margin: 0 0 25px; padding: 24px; border: 1px solid var(--line) !important; }

.step-text { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; scroll-margin-top: 25px; }

.step-text .number { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #e7f6f2; color: #1fa6a0; font-weight: bold; }

.step-text h3 { margin: 0 0 6px; color: #1b9592; font-size: 0.9375rem; }

.step-text p { margin: 0; font-size: 1.0625rem; }

.step-illustrations { display: grid; gap: 22px; }

.step-illustrations figure { margin: 0; }

.step-image-button { display: block; width: 100%; padding: 0; background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; }

.step-image-button img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

.step-illustrations figcaption { text-align: center; font-size: 0.6875rem; color: var(--muted); margin-top: 8px; }

.no-step-image { margin: 10px 0 0; padding: 12px 15px; border-radius: 10px; background: #f7f9fc; color: #83909f; font-size: 0.75rem; }

.unified-guide .all-guide-steps { margin-top: 25px; }

.guidance-options { grid-template-columns: 1fr !important; }

@media (min-width:1000px) {
.entry-poster { width: min(600px,calc(100dvh * .61)); }

.entry-start { font-size: 1.125rem; min-height: 50px; }

.unified-guide { max-width: 960px; }

.step-image-card { padding: 28px; }

.step-illustrations { max-width: 740px; margin: auto; }
}

@media (max-width:599px) {
.entry-screen { align-items: center; }

.entry-start { font-size: 1.125rem; min-height: 52px; }

.step-image-card { padding: 16px; margin-bottom: 20px; }

.step-text { gap: 10px; }

.step-text p { font-size: 0.9375rem; }

.step-text .number { flex-basis: 30px; width: 30px; height: 30px; }

.step-text h3 { font-size: 0.8125rem; }
}

.optional-account { padding: 22px; margin: 22px 0; border-radius: 16px; background: #e7f6f2; }

.optional-account p { font-size: 0.875rem; }

.auth-status { margin: 16px 0; color: #8c4850; font-size: 0.8125rem; min-height: 1.8em; }

.auth-switch { display: block; width: 100%; margin: 18px 0; color: #218b8a; font-size: 0.8125rem; }

#auth-email { text-align: left; }

.home-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }

.home-layout .hero { margin: 0; min-height: 0; }

.category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }

.category-grid .action-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 170px; padding: 22px; }

.category-grid .icon-box { margin: 0 0 8px; }

.category-grid .action-card h2 { font-size: 1.4375rem; }

.category-grid .action-card .muted { font-size: 0.8125rem; }

.service-kind-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }

.service-kind-tabs button { background: #edf3f7; color: var(--muted); border-radius: 25px; padding: 8px 18px; font-size: 0.8125rem; }

.service-kind-tabs button.selected { background: var(--navy); color: white; }

@media (min-width:1000px) {
.home-layout { grid-template-columns: minmax(0,1fr); }

.category-grid .action-card { min-height: 180px; }

.hero h1 { font-size: 2.25rem; }
}

@media (max-width:599px) {
.category-grid { gap: 12px; }

.category-grid .action-card { padding: 18px; min-height: 155px; }

.category-grid .action-card h2 { font-size: 1.3125rem; }

.category-grid .action-card .muted { font-size: 0.6875rem; }

.service-kind-tabs button { font-size: 0.75rem; padding: 7px 13px; }
}

.conversation-page { max-width: 960px; margin-inline: auto; padding: 24px 16px; }

.conversation-page .chat { background: #f6f9fb; border: 1px solid #dce6eb; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px #173f5f0b; }

.assistant-heading { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: white; border-bottom: 1px solid #e3ecef; }

.assistant-heading>.assistant-avatar { width: 60px; height: 60px; flex-basis: 60px; }

.assistant-heading h2 { font-size: 1.3125rem; margin: 0 0 4px; color: #173f5f; }

.assistant-heading p { font-size: 0.8125rem; color: #58717d; margin: 0; display: flex; align-items: center; gap: 7px; }

.assistant-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #288b88; flex-shrink: 0; }

.assistant-badge { margin-inline-start: auto; background: #edf7f5; color: #246e6a; border-radius: 30px; padding: 6px 12px; font-size: 0.75rem; white-space: nowrap; }

.chat-disclosure { text-align: center; font-size: 0.75rem; color: #687c88; padding: 12px 14px; margin: 0; }

.chat-thread { height: clamp(300px,48dvh,560px); overflow-y: auto; overscroll-behavior: contain; padding: 10px 24px 24px; display: flex; flex-direction: column; gap: 20px; }

.chat-message { display: flex; align-items: flex-start; gap: 10px; max-width: 88%; flex-shrink: 0; align-self: flex-start; }

.chat-message.from-user { align-self: flex-end; flex-direction: row-reverse; }

.message-content { min-width: 0; }

.message-author { display: block; color: #627985; font-size: 0.75rem; margin: 0 4px 6px; }

.from-user .message-author { text-align: end; }

.chat-message .bubble { margin: 0; max-width: none; line-height: 1.85; font-size: 0.9375rem; border: 1px solid #e1e9ee; box-shadow: 0 3px 10px #173f5f04; white-space: pre-wrap; }

.chat-message .bubble.user { border-color: #173f5f; background: #173f5f; color: white; }

.chat-message .bubble a { color: #176f6d; font-weight: 600; background: #edf7f5; padding: 7px 12px; border-radius: 10px; text-decoration: none; }

.user-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #e5edf4; color: #173f5f; }

.conversation-page .chat-form { border-radius: 16px; align-items: center; box-shadow: 0 4px 16px #173f5f08; }

.conversation-page .chat-form input { padding: 8px; flex: 1; }

.conversation-page .chat-form button { place-items: center; flex-shrink: 0; background: #288b88; }

.conversation-page .chat-form button:disabled { opacity: .45; cursor: wait; }

.chat-footer-note { text-align: center; font-size: 0.6875rem; color: #687c88; margin: 10px 16px 16px; }

.typing-dots { display: flex; gap: 5px; background: white; padding: 18px 20px; border-radius: 16px; border: 1px solid #e1e9ee; }

.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #288b88; animation: mustadill-typing 1s infinite; }

.typing-dots i:nth-child(2) { animation-delay: .15s; }

.typing-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes mustadill-typing{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}

@media (prefers-reduced-motion:reduce) {
.typing-dots i { animation: none; }
}

@media (max-width:600px) {
.conversation-page { padding: 14px 10px; }

.assistant-heading { padding: 16px 14px; gap: 10px; }

.assistant-badge { display: none; }

.assistant-heading p { font-size: 0.6875rem; }

.chat-thread { padding: 10px 12px 20px; height: 48dvh; }

.chat-message { max-width: 96%; gap: 7px; }

.chat-message .bubble { padding: 12px 14px; font-size: 0.875rem; }

.conversation-page .chat-form { margin-inline: 12px; }

.assistant-avatar { width: 36px; height: 36px; flex-basis: 36px; }
}

.conversation-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 24px 0; }

.conversation-toolbar h1 { font-size: 1rem; line-height: 1.6; margin: 0; color: #173f5f; overflow-wrap: anywhere; min-width: 0; }

.conversation-toolbar button { white-space: nowrap; flex-shrink: 0; font-size: 0.8125rem; }

#chat-history .history-row strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }

#chat-history .history-row small { line-height: 1.7; }

@media (max-width:600px) {
.conversation-toolbar { padding: 12px 14px 0; align-items: flex-start; }

.conversation-toolbar h1 { font-size: 0.875rem; }

.conversation-toolbar button { font-size: 0.6875rem; }
}

.app-shell:has(.conversation-page) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

.app-shell:has(.conversation-page) > .section-head { flex: 0 0 auto; }

.conversation-page { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; flex-direction: column; }

.conversation-page .chat { flex: 1 1 auto; min-height: 0; width: 100%; }

.conversation-page .assistant-heading,
.conversation-page .conversation-toolbar,
.conversation-page .chat-disclosure,
.conversation-page .chat-footer-note { flex: 0 0 auto; }

.conversation-page .chat-thread { flex: 1 1 auto; height: auto; min-height: 0; }

.chat-composer { flex: 0 0 auto; padding: 10px 16px 0; background: #f6f9fb; }

.chat-composer > label { display: block; color: #173f5f; font-size: 0.8125rem; font-weight: bold; margin: 0 4px 6px; }

.conversation-page .chat-form { position: relative; bottom: auto; margin: 0; width: 100%; min-height: 58px; flex-shrink: 0; z-index: 1; }

.conversation-page .chat-form input { display: block; min-width: 0; min-height: 40px; font-size: 1rem; color: #172b4d; background: white; }

.conversation-page .chat-form button { width: auto; min-width: 78px; height: 42px; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 9px 12px; font-size: 0.8125rem; }

.conversation-page .chat-form button .icon { width: 19px; height: 19px; }

[dir="ltr"] .conversation-page .chat-form button { transform: none; }

@media (min-width: 1000px) {
.app-shell:has(.conversation-page) { padding-bottom: 0; }
}

@media (min-width: 1500px) {
.app-shell:has(.conversation-page) { height: calc(100dvh - 48px); min-height: 0; }
}

@media (max-width: 600px) {
.conversation-page { padding: 10px; }

.chat-composer { padding: 8px 12px 0; }

.conversation-page .chat-form { margin: 0; padding: 7px; }

.conversation-page .assistant-heading { padding: 12px 14px; }

.conversation-page .chat-footer-note { margin: 7px 12px 10px; font-size: 0.625rem; }
}

@media (max-height: 760px) {
.conversation-page .chat-disclosure { display: none; }
}

@media (max-width: 999px) and (max-height: 560px) {
.app-shell:has(.conversation-page) > .section-head { min-height: 0; padding: 8px 18px; }

.conversation-page .assistant-heading,
  .conversation-page .chat-footer-note { display: none; }

.conversation-page .conversation-toolbar { padding: 8px 12px; }
}

.home-chat-entry { padding: 22px; border: 1px solid #cce5e2; border-radius: 22px; background: #edf8f5; }

.home-chat-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }

.home-chat-heading .assistant-avatar { width: 42px; height: 42px; flex-basis: 42px; }

.home-chat-heading h2 { margin: 0 0 3px; font-size: 1.25rem; color: #173f5f; }

.home-chat-heading p { margin: 0; font-size: 0.8125rem; color: #6b818c; }

.home-chat-form { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #c9dedf; border-radius: 15px; background: white; }

.home-chat-form input { flex: 1; min-width: 0; border: 0; padding: 10px; font-size: 1rem; background: white; color: #172b4d; }

.home-chat-form button { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 11px 18px; min-height: 44px; flex-shrink: 0; color: white; background: #173f5f; font-weight: bold; font-size: 0.875rem; }

.home-chat-form .icon { width: 20px; height: 20px; }

@media (max-width:599px) {
.home-chat-entry { padding: 16px; }

.home-chat-heading h2 { font-size: 1.125rem; }

.home-chat-heading p { font-size: 0.75rem; }

.home-chat-form { gap: 5px; }

.home-chat-form input { padding: 8px 5px; }

.home-chat-form button { padding: 10px; font-size: 0.75rem; gap: 5px; }
}

.home-chat-simple { padding: 10px; border: 1px solid #1fa6a0; border-radius: 18px; background: white; box-shadow: 0 0 0 9px #e8f7f3; margin: 9px; }

.home-chat-simple input { padding: 10px 14px; }

.home-chat-simple button { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 13px; font-size: 1.5625rem; }

@media (max-width:599px) {
.home-chat-simple { padding: 8px; margin: 8px; box-shadow: 0 0 0 7px #e8f7f3; }

.home-chat-simple input { padding: 8px; }

.home-chat-simple button { width: 43px; height: 43px; min-height: 43px; }
}

.home-chat-block { min-width: 0; }

.home-chat-block > h2 { display: flex; align-items: center; gap: 9px; margin: 0 9px 14px; font-size: 1.125rem; color: var(--ink); }

.home-chat-block > h2 .icon { width: 22px; height: 22px; color: var(--teal); }

.assistant-live-status .live-lamp { width: 9px; height: 9px; background: #168a56; box-shadow: 0 0 0 4px #168a5619; animation: assistant-live-pulse 1.8s ease-in-out infinite; }

.assistant-live-status.is-typing .live-lamp { background: #c98512; box-shadow: 0 0 0 4px #c9851220; animation-duration: .8s; }

@keyframes assistant-live-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.6; transform:scale(.85); } }

@media (prefers-reduced-motion:reduce) {
.assistant-live-status .live-lamp { animation: none; }
}

.appearance-settings { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }

.appearance-settings > h2 { margin: 0 0 20px; font-size: 1.25rem; }

.font-size-settings { border: 0; padding: 0; margin: 0; min-width: 0; }

.font-size-settings legend { font-weight: bold; font-size: 1rem; margin-bottom: 12px; }

.font-size-options { display: flex; gap: 8px; flex-wrap: wrap; }

.font-size-options button { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); font-size: .875rem; white-space: nowrap; }

.font-size-options button.selected { background: #173f5f; border-color: #173f5f; color: white; }

.font-size-preview { padding: 14px; background: var(--bg); border-radius: 12px; margin: 14px 0 22px; font-size: 1rem; }

.theme-setting { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); }

.theme-setting h3 { margin: 0; font-size: 1rem; }

.theme-setting p { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); }

.theme-switch { width: 54px; height: 30px; flex: 0 0 54px; border-radius: 30px; background: #b2bdc7; padding: 3px; direction: ltr; border: 0; }

.theme-switch > span { display: block; width: 24px; height: 24px; background: white; border-radius: 50%; box-shadow: 0 2px 4px #102b4420; transition: transform .2s; }

.theme-switch.is-on { background: #1fa6a0; }

.theme-switch.is-on > span { transform: translateX(24px); }

.appearance-settings > small { display: block; margin-top: 18px; color: var(--muted); font-size: .75rem; }

html[data-theme="dark"] { --ink: #e2ebf5; --muted: #adbdce; --bg: #101c28; --pale: #193b40; --line: #34485a; --white: #192936; background: #0c1520; }

[data-theme="dark"] body { background: #0c1520; color: var(--ink); }

[data-theme="dark"] .app-shell,
[data-theme="dark"] .clean-shell { background: #101c28; color: var(--ink); }

[data-theme="dark"] .header,
[data-theme="dark"] .compact-header,
[data-theme="dark"] .nav,
[data-theme="dark"] .clean-shell .nav,
[data-theme="dark"] .card,
[data-theme="dark"] .question,
[data-theme="dark"] .saved-item,
[data-theme="dark"] .menu button,
[data-theme="dark"] .menu a,
[data-theme="dark"] .profile-banner,
[data-theme="dark"] .appearance-settings,
[data-theme="dark"] .radio-option,
[data-theme="dark"] .history-row,
[data-theme="dark"] .analysis-card,
[data-theme="dark"] .result-success,
[data-theme="dark"] .guidance-options > button,
[data-theme="dark"] .walkthrough,
[data-theme="dark"] .request-box { background: #192936; border-color: var(--line); color: var(--ink); }

[data-theme="dark"] .menu button,
[data-theme="dark"] .menu a,
[data-theme="dark"] .header,
[data-theme="dark"] .compact-header { border-color: var(--line); }

[data-theme="dark"] .menu .danger { color: #f598a1; }

[data-theme="dark"] .brand-logo,
[data-theme="dark"] .login-logo { background: white; border-radius: 9px; padding: 5px; }

[data-theme="dark"] .hero { background: #153c57; }

[data-theme="dark"] .hero h1,
[data-theme="dark"] .primary,
[data-theme="dark"] .section-head { color: #fff; }

[data-theme="dark"] .section-head { background: #153c57; }

[data-theme="dark"] .primary { background: #205979; }

[data-theme="dark"] .secondary,
[data-theme="dark"] .flow-layout .secondary,
[data-theme="dark"] .optional-account,
[data-theme="dark"] .chip,
[data-theme="dark"] .search-wrap,
[data-theme="dark"] .font-size-preview,
[data-theme="dark"] .font-size-options button,
[data-theme="dark"] .rating-tags button,
[data-theme="dark"] .filters button,
[data-theme="dark"] .type-tabs button,
[data-theme="dark"] .service-kind-tabs button { background: #203847; color: #c6e9e4; border-color: var(--line); }

[data-theme="dark"] .font-size-options button.selected,
[data-theme="dark"] .service-kind-tabs button.selected,
[data-theme="dark"] .type-tabs button.selected,
[data-theme="dark"] .filters button.selected { background: #1d776f; color: white; border-color: #3fb6a8; }

[data-theme="dark"] .featured-health { background: linear-gradient(120deg,#17333f,#173d3a); border-color: #31534f; }

[data-theme="dark"] .health-art,
[data-theme="dark"] .step-text h3,
[data-theme="dark"] a,
[data-theme="dark"] .saved-open span,
[data-theme="dark"] .source-card a { color: #6dd5c8; }

[data-theme="dark"] .source-card,
[data-theme="dark"] .formal,
[data-theme="dark"] .detail .formal,
[data-theme="dark"] .formal-result > p:first-of-type,
[data-theme="dark"] .notes-box,
[data-theme="dark"] .stars-field,
[data-theme="dark"] .quick-steps > span,
[data-theme="dark"] .request-preview,
[data-theme="dark"] .unavailable blockquote,
[data-theme="dark"] .helpfulness { background: #1a303c; border-color: var(--line); color: var(--ink); }

[data-theme="dark"] .search-form,
[data-theme="dark"] .list-search,
[data-theme="dark"] .home-chat-form,
[data-theme="dark"] .conversation-page .chat-form,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #132330; border-color: #3b5a6c; color: var(--ink); }

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #a2b4c4; opacity: 1; }

[data-theme="dark"] .home-chat-simple { box-shadow: 0 0 0 9px #193b40; border-color: #4eb7a8; }

[data-theme="dark"] .home-chat-form input,
[data-theme="dark"] .conversation-page .chat-form input { background: transparent; color: var(--ink); }

[data-theme="dark"] .conversation-page .chat,
[data-theme="dark"] .chat-composer { background: #11212d; border-color: var(--line); }

[data-theme="dark"] .assistant-heading { background: #192936; border-color: var(--line); }

[data-theme="dark"] .assistant-heading h2,
[data-theme="dark"] .conversation-toolbar h1,
[data-theme="dark"] .chat-composer > label,
[data-theme="dark"] .row-between h3,
[data-theme="dark"] .profile-banner h2,
[data-theme="dark"] .login-form-wrap > h2,
[data-theme="dark"] .login-intro h1 { color: var(--ink); }

[data-theme="dark"] .assistant-heading p,
[data-theme="dark"] .chat-disclosure,
[data-theme="dark"] .chat-footer-note,
[data-theme="dark"] .message-author,
[data-theme="dark"] .history-row small { color: #adbdce; }

[data-theme="dark"] .assistant-badge,
[data-theme="dark"] .icon-box,
[data-theme="dark"] .user-avatar { background: #203f48; color: #8ae0d4; }

[data-theme="dark"] .chat-message .bubble,
[data-theme="dark"] .bubble,
[data-theme="dark"] .typing-dots { background: #203442; border-color: #3b5060; color: var(--ink); }

[data-theme="dark"] .chat-message .bubble.user,
[data-theme="dark"] .bubble.user { background: #205979; color: white; }

[data-theme="dark"] .chat-message .bubble a { background: #1c4b4a; color: #9be7da; }

[data-theme="dark"] .rating-card { background: #192936; border-color: var(--line); }

[data-theme="dark"] .rating-hero p,
[data-theme="dark"] .login-note { color: var(--muted); }

[data-theme="dark"] .rating-tags button.selected { background: #21564c; border-color: #50b59f; }

[data-theme="dark"] .bookmark-remove .icon { fill: #a2c8e5; stroke: #a2c8e5; }

[data-theme="dark"] .login-layout,
[data-theme="dark"] .login-panel { background: #101c28; color: var(--ink); }

[data-theme="dark"] .login-story { background: linear-gradient(150deg,#132d3b,#152432); }

[data-theme="dark"] .login-intro > p { color: #adbdce; }

[data-theme="dark"] .or-line span { background: #101c28; }

[data-theme="dark"] .entry-screen { background: #0c1520; }

[data-theme="dark"] dialog { background: #192936; color: var(--ink); }

[data-theme="dark"] .close { color: var(--ink); }

[data-theme="dark"] .step-image-button,
[data-theme="dark"] .illustrated-step { background: #1b2c39; border-color: var(--line); }

[data-theme="dark"] .platform span { border-color: var(--line); }

@media (prefers-reduced-motion:reduce) {
.theme-switch > span { transition: none; }
}

.home-chat-block > h2 .assistant-avatar { flex: 0 0 44px; }

.assistant-avatar { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; border-radius: 0; background: transparent; }

.home-chat-block > h2 .assistant-avatar { width: 60px; height: 60px; flex-basis: 60px; border-radius: 0; }

.assistant-heading > .assistant-avatar { width: 72px; height: 72px; flex-basis: 72px; }

@media (max-width:600px) {
.chat-message .assistant-avatar { width: 40px; height: 40px; flex-basis: 40px; }

.home-chat-block > h2 .assistant-avatar { width: 52px; height: 52px; flex-basis: 52px; }

.assistant-heading > .assistant-avatar { width: 60px; height: 60px; flex-basis: 60px; }
}

.missing-service { max-width: 750px; margin: auto; }

.missing-message,
.missing-interest,
.missing-feedback { padding: 24px; border-radius: 20px; margin-bottom: 20px; }

.missing-message { background: var(--bg); border: 1px solid var(--line); }

.missing-message h1 { font-size: 1.4rem; }

.missing-message p { line-height: 2; }

.missing-message blockquote { margin: 16px 0 0; padding: 12px; border-inline-start: 3px solid var(--teal); overflow-wrap: anywhere; }

.missing-badge { display: inline-block; background: var(--pale); color: var(--ink); padding: 7px 14px; border-radius: 25px; margin: 10px 0; font-size: 0.8rem; }

.missing-interest { display: flex; align-items: center; gap: 20px; background: var(--pale); }

.missing-interest > div { flex: 1; }

.missing-interest h2,
.missing-feedback h2 { font-size: 1.1rem; }

.missing-interest p { margin: 0; }

.missing-interest button { width: auto; margin: 0; }

.missing-actions { margin: 25px 0; }

.missing-feedback { background: var(--pale); }

.missing-feedback > div { display: flex; gap: 12px; }

.missing-feedback button { flex: 1; padding: 14px; border-radius: 12px; background: var(--white); color: var(--ink); }

@media (max-width: 600px) {
.missing-interest { flex-direction: column; align-items: stretch; }

.missing-interest button { width: 100%; }
}

.missing-feedback button[aria-pressed="true"] { outline: 2px solid var(--teal); background: var(--pale); }

.catalog-status { padding: 20px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--pale); color: var(--ink); text-align: center; }

.catalog-status .secondary { max-width: 220px; margin: 12px auto 0; }

.catalog-error { border-color: #bc7d7d; }

.platform span > .icon { width: 34px; height: 34px; color: var(--teal); }

.home-carousel { margin-block: 24px; }

.home-slide[hidden] { display: none !important; }

.home-carousel .featured-health { margin-bottom: 10px; }

.suggestion-logo { width: 110px; height: 90px; object-fit: contain; }

.home-motion-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-block: 10px; }

.home-motion-controls button { padding: 5px 10px; font-size: 12px; border: 1px solid var(--line, #dce6ee); border-radius: 12px; background: var(--bg, #f7f9fc); color: var(--ink, #172b4d); cursor: pointer; font-family: inherit; }

.home-motion-controls button:focus-visible { outline: 3px solid var(--teal, #1fa6a0); outline-offset: 3px; }

.platform-marquee { grid-column: 1 / -1; min-width: 0; width: 100%; }

.platform-window { overflow: hidden; padding-block: 8px; }

.platform-track { display: flex; }

.platform-group { flex-shrink: 0; padding-right: 16px; direction: rtl; }

html[dir="ltr"] .platform-group { direction: ltr; }

.platform-group .platform { flex: 0 0 clamp(145px, 16vw, 220px); }

.platform-marquee:hover .platform-track,
.platform-marquee:focus-within .platform-track,
.platform-marquee.motion-paused .platform-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
.platform-track { animation: none; width: 100%; }

.platform-group { flex-wrap: wrap; justify-content: center; width: 100%; padding: 0; }

.platform-group[aria-hidden="true"] { display: none; }
}

.platform-marquee { display: flex; flex-direction: column; }

.platform-marquee > .home-motion-controls { order: 2; margin-top: 8px; }

.platform-marquee > .home-motion-controls button { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

.platform-window { order: 1; width: 100%; }

.platform-track { width: 200%; animation: mustadill-platform-flow 32s linear infinite; }

.platform-group { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: 0 0 50%; width: 50%; box-sizing: border-box; gap: 12px; padding: 0 6px; }

.platform-group .platform { width: 100%; min-width: 0; box-sizing: border-box; }

.platform-group .platform small { white-space: normal; overflow-wrap: anywhere; }

@keyframes mustadill-platform-flow {
  0%, 9.375% {
    transform: translateX(0);
  }

  90.625%, 100% {
    transform: translateX(-50%);
  }
}

html[dir="rtl"] .home-carousel .home-motion-controls { flex-direction: row; direction: rtl; }

html[dir="ltr"] .home-carousel .home-motion-controls { flex-direction: row; direction: ltr; }

@media (max-width: 600px) {
.platform-group { gap: 4px; padding-inline: 2px; }

.platform-group .platform { padding: 8px 3px; }

.platform-group .platform img { max-width: 100%; width: 38px; height: 38px; object-fit: contain; }

.platform-group .platform small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
.platform-track { width: 100%; animation: none; }

.platform-group { flex-basis: 100%; width: 100%; }

.platform-group[aria-hidden="true"] { display: none; }
}

.platform-window { direction: ltr; }

.platform-track { direction: ltr; }

.platform-marquee:hover .platform-track,
.platform-marquee:focus-within .platform-track { animation-play-state: running; }

.platform-marquee.motion-paused .platform-track { animation-play-state: paused; }

.compact-absher-guide .step-image-button img { width: 100%; height: min(450px, 60dvh); max-height: none; object-fit: contain; }

body, body * { font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; font-weight: 500 !important; }
