* { box-sizing: border-box }
:root { color: #15233a; background: #f5f7fb; font: 16px/1.55 "Pretendard", "Malgun Gothic", system-ui, sans-serif; --brand: #1455be; --ink: #15233a; --muted: #54637b; --border: #dce4f0; --surface: #fff; --red: #b91831; --sidebar-width: 222px; --shell-width: 1410px }
@media (min-width: 701px) { :root:has(.app-shell) { scrollbar-gutter: stable } }
body { margin: 0 }
body.partner { --brand: #08734f }
.portal-loading { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center }
.portal-loading-mark { display: grid; justify-items: center; gap: 20px }
.portal-loading-mark img { display: block; border-radius: 16px }
.portal-loading-mark, .view-loading { color: var(--muted); font-size: .875rem }
.view-loading { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 108px; padding: 16px; text-align: center }
.main > .stack > .view-loading:only-child { min-height: 60dvh }
.loading-spinner { display: block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand) 16%, white); border-top-color: var(--brand) }
@media (prefers-reduced-motion: no-preference) {
    .loading-spinner { animation: loading-spin .8s linear infinite }
}
@keyframes loading-spin { to { transform: rotate(1turn) } }
.loading-overlay { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgb(21 35 58 / .16) }
.loading-overlay > .view-loading { min-width: 164px; min-height: 104px; padding: 15px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px #15233a24 }
.route-loading { pointer-events: none }
.signed-in-route { inset-inline-start: calc(max(0px, (100% - var(--shell-width)) / 2) + var(--sidebar-width)); inset-inline-end: max(0px, (100% - var(--shell-width)) / 2) }
dialog[open] > .loading-overlay { z-index: 1 }
a { color: var(--brand); text-decoration: none }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px }
h1, h2, h3, p { margin: 0 }
.landing { min-height: 100dvh; color: #fff; background: radial-gradient(ellipse at 82% 0%, #2274df 0%, transparent 48%), linear-gradient(160deg, #155abc 0%, #0d418e 48%, #092953 100%) }
.landing-header, .landing-main, .landing-footer { width: min(760px, calc(100% - 40px)); margin-inline: auto }
.landing-header { display: flex; align-items: center; min-height: 80px; border-bottom: 1px solid #ffffff39 }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; white-space: nowrap }
.brand img { border-radius: 9px; display: inline-block }
.landing-header .brand { color: #fff; font-size: 1.1rem }
.landing-intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(80px, 22vw, 168px); align-items: center; gap: clamp(6px, 2vw, 22px); padding-block: clamp(32px, 7vw, 64px) clamp(24px, 4vw, 44px) }
.landing-intro h1 { font-size: clamp(1.85rem, 6.3vw, 3.65rem); letter-spacing: -.055em; line-height: 1.13; word-break: keep-all }
.landing-intro p { margin-top: 14px; color: #ebf3ff; max-width: 31rem; word-break: keep-all }
.landing-intro img { width: 100%; height: auto; align-self: center; filter: drop-shadow(0 12px 18px #07306970) }
.entries { display: grid; grid-auto-rows: 1fr; gap: 12px; margin-bottom: clamp(32px, 6vw, 52px) }
.entry { display: grid; grid-template-columns: 52px minmax(0, 1fr) max-content; align-items: center; gap: 13px 17px; min-width: 0; min-height: 98px; color: var(--ink); border: 1px solid #fff; border-radius: 16px; padding: 16px 20px; background: #fff; box-shadow: 0 6px 18px #06255550 }
.entry:hover { background: #f3f7ff; border-color: #b5d4ff }
.entry h2 { font-size: clamp(1rem, 4vw, 1.3rem); line-height: 1.25; word-break: keep-all }
.entry-icon { display: block; width: 52px; height: 52px; border-radius: 12px; object-fit: cover }
.entry p { margin-top: 4px; color: var(--muted); font-size: .9rem; word-break: keep-all }
.entry-action { color: #1455be; font-size: .875rem; font-weight: 750; text-align: right }
.partner-entry .entry-action { color: #08734f }
.legal-icon { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #387cd7, #234b9b); box-shadow: inset 0 1px #ffffff38 }
.legal-icon::before { content: ''; width: 22px; height: 28px; border-radius: 4px; background: #d9eaff; transform: rotate(-12deg) translate(-3px, -1px) }
.legal-icon i { position: absolute; width: 22px; height: 28px; border-radius: 4px; clip-path: polygon(0 0, 67% 0, 100% 26%, 100% 100%, 0 100%); transform: translate(3px, 2px); background: linear-gradient(#76a5e8,#76a5e8) 5px 11px / 12px 2px no-repeat, linear-gradient(#76a5e8,#76a5e8) 5px 16px / 12px 2px no-repeat, linear-gradient(#76a5e8,#76a5e8) 5px 21px / 8px 2px no-repeat, #fff }
.legal-icon i::before { position: absolute; top: 0; right: 0; width: 7px; height: 7px; border-radius: 0 0 0 2px; background: #a9cbf4; content: '' }
.landing-footer { display: grid; gap: 16px; border-top: 1px solid #ffffff45; padding-block: 23px 30px; color: #e8f1ff; font-size: .875rem }
.landing-company { display: grid; gap: 4px }
.landing-company strong { color: #fff; font-weight: 720 }
.landing-company strong span { white-space: nowrap }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 8px 15px }
.landing-footer a { color: inherit; text-underline-offset: 3px }
.landing-footer a:hover { text-decoration: underline }
.landing a:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
.app-shell { width: min(var(--shell-width), 100%); min-height: 100dvh; margin: auto; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); align-items: start }
.side { display: grid; align-content: start; gap: 9px; padding: 24px 16px; position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--border) }
.side .brand { margin-bottom: 20px }
.side a:not(.brand) { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 700 }
.side a:not(.brand) { display: flex; align-items: center; gap: 9px }
.nav-icon { width: 22px; height: 22px; background: currentColor; mask: var(--icon) center / contain no-repeat; flex: none }
.nav-home { --icon: url('/portal/app-icons/home.svg') }
.nav-quotes { --icon: url('/portal/app-icons/quotes.svg') }
.nav-applications { --icon: url('/portal/app-icons/applications.svg') }
.nav-chat { --icon: url('/portal/app-icons/chat.svg') }
.nav-account { --icon: url('/portal/app-icons/account.svg') }
.side a[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white) }
.main { min-width: 0; padding: 24px clamp(18px, 3vw, 40px) }
.section-top, .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.section-top { margin-bottom: 14px }
.actions { justify-content: flex-start; margin-top: 12px }
.welcome { background: color-mix(in srgb, var(--brand) 9%, white); border-radius: 19px; padding: 26px; margin-bottom: 18px }
.welcome p { color: var(--muted); margin-top: 6px }
.app-home { display: grid; gap: 14px }
.home-name { font-size: 1.65rem }
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 136px; margin: 0; padding: 14px 18px; border: 1px solid var(--border) }
.home-hero h1, .home-hero h2 { font-size: 1.4rem; line-height: 1.3 }
.home-hero p + p { margin-top: 0 }
.home-mascot { width: clamp(64px, 20vw, 96px); height: 106px; flex: none; object-fit: contain }
.partner .home-mascot { width: 62px; height: 68px }
.home-request-actions, .home-shortcuts { display: grid; gap: 10px }
.home-request-actions .button { min-height: 54px; display: grid; place-items: center; text-align: center }
.home-shortcuts > .button, .home-shortcuts > button { min-height: 48px; padding-inline: 16px; text-align: start; color: var(--ink) }
.home-stats { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)) }
.home-stat { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 86px; padding: 6px; font-size: .875rem; line-height: 1.25; text-align: center; background: white; color: var(--ink); border: 1px solid var(--border); border-radius: 14px; font-weight: 750 }
.home-stat strong { color: var(--brand); font-size: 1.32rem }
.home-stat.gated, .home-stat.gated strong, .side a.restricted { color: #687486 }
.home-section { min-width: 0; margin-top: 6px }
.home-section .section-top { min-height: 38px; margin-bottom: 6px }
.home-section h2 { font-size: 1.25rem }
.home-section .section-top .button { border: 0; background: transparent; padding: 6px 0 6px 8px }
.home-review-meta { display: flex; gap: 8px; align-items: center }
.home-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(18rem, 84%); grid-auto-rows: 1fr; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 1px 1px 8px }
.home-strip > .card { display: flex; flex-direction: column; scroll-snap-align: start }
.home-strip > .card > .actions { margin-top: auto; padding-top: 8px }
.home-carousel { position: relative; min-width: 0 }
.home-carousel .home-strip { scrollbar-width: none; overscroll-behavior-x: contain }
.home-carousel .home-strip::-webkit-scrollbar { display: none }
.carousel-controls { display: flex; justify-content: flex-end; gap: 8px }
.carousel-controls[hidden] { display: none }
.carousel-arrow { display: grid; place-items: center; width: 42px; height: 40px; padding: 0; line-height: 1; font-size: 1.35rem }
.filter-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface) }
.filter-tabs a { flex: 1; text-align: center; padding: 12px 8px; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent }
.filter-tabs a[aria-current="page"] { color: var(--brand); border-color: var(--brand) }
.quote-picker-options { margin-top: 14px; max-height: 53dvh; overflow: auto }
.quote-picker-options > button { text-align: start; min-height: 44px }
.home-notices .notice-image { height: 158px; object-fit: cover }
.trade-heading { display: grid; gap: 1px }
.trade-heading > h3 { font-size: 1.2rem; line-height: 1.28 }
.trade-heading .muted { color: #202634 }
.consultation-view, .company-view { width: min(100%, 820px); margin-inline: auto; min-width: 0 }
.consultation-view .section-top { margin-bottom: 0 }
.consultation-card { display: grid; gap: 8px; min-width: 0; color: var(--ink) }
.consultation-card:hover { border-color: var(--brand) }
.consultation-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.consultation-card-head h3 { min-width: 0 }
.consultation-card-head span { font-size: 1.25rem; color: var(--brand); line-height: 1 }
.consultation-card > .trade-card { padding: 10px 12px; background: #f5f7fb; border: 0; border-radius: 10px }
.consultation-card > p:last-of-type { min-height: 1.55em }
.consultation-card > .trade-card { box-shadow: none }
.conversation-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; position: sticky; top: 0; z-index: 2; background: #f5f7fb }
.conversation-header h2 { min-width: 0; font-size: 1.1rem; line-height: 1.3 }
.chat-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: white; border: 1px solid var(--border); font-size: 1.75rem; line-height: 1 }
.conversation-header .chat-profile-link { display: grid; gap: 3px; width: 100%; min-width: 0; padding: 4px 0; border: 0; border-radius: 0; text-align: left; color: var(--ink); background: transparent; font: inherit; font-weight: 800; overflow-wrap: anywhere }
.chat-profile-link small { color: var(--brand); font-weight: 650; font-size: .78rem }
.chat-trade-toggle { white-space: nowrap }
.chat-trades[hidden], .chat-panel[hidden] { display: none }
.chat-profile-dialog { width: min(420px, calc(100% - 28px)); max-height: 85dvh; overflow: auto }
.chat-profile-dialog::backdrop { background: #15233a66 }
.chat-profile-dialog > details + details { margin-top: 12px }
.company-header { display: flex; align-items: center; gap: 12px }
.company-header h2 { font-size: 1.25rem }
.company-fields dd, .company-identity, .company-section .details { overflow-wrap: anywhere }
.company-reviews > .card { min-width: 0 }
.company-photo { display: grid; position: relative; place-items: center; height: clamp(165px, 34vw, 260px); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--brand) 8%, white) }
.company-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.company-photo-icon { width: 58px; height: 58px; background: var(--brand); mask: url('/portal/app-icons/home.svg') center / contain no-repeat; opacity: .6 }
.company-identity { display: grid; gap: 6px }
.company-identity h3 { font-size: clamp(1.32rem, 4vw, 1.65rem) }
.company-section { gap: 8px }
.company-section h2 { font-size: 1.15rem }
.company-fields { margin: 0; display: grid; gap: 10px }
.company-fields div { display: grid; grid-template-columns: minmax(6.75rem, auto) minmax(0, 1fr); gap: 10px }
.company-fields dt { color: var(--muted); font-weight: 700 }
.company-fields dd { margin: 0 }
.offer-heading { display: flex; gap: .45em; align-items: baseline }
.offer-count { color: var(--brand); font-size: .9rem; font-weight: 800 }
.offers-buffer:empty { display: none }
.screen-detail > .section-top:first-child, .active-detail > .section-top:first-child { position: sticky; top: 0; z-index: 2; padding-block: 10px; margin-bottom: 0; background: #f5f7fb }
.stack { display: grid; gap: 14px }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px }
.split { min-width: 0 }
.split.has-detail > .list-side { display: none }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 17px 19px; overflow-wrap: anywhere }
.muted { color: var(--muted) }
.price { color: var(--brand) }
.discount { color: var(--red); font-weight: 800 }
.details { white-space: pre-wrap; overflow-wrap: anywhere }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.notice-image { display: block; width: 100%; max-height: 340px; object-fit: contain; margin-block: 10px; border-radius: 10px }
dialog.card { width: min(95vw, 520px); max-height: calc(100dvh - 30px); color: var(--ink); overflow: auto }
dialog::backdrop { background: #17283c70 }
.stack[hidden] { display: none }
dialog.submission-dialog { padding: 0; border: none; background: #155bc4; color: white }
.submission-scene { min-height: min(540px, 82dvh); padding: 24px 22px 0; display: grid; align-content: center; justify-items: center; gap: 6px }
.submission-bubble { display: grid; justify-items: center; max-width: 95%; padding: 20px; background: #fff; color: var(--ink); border: 2px solid #a4c8ff; border-radius: 19px; font-weight: 780; text-align: center }
.submission-doc { animation: quote-motion 2.2s ease-in-out infinite }
.submission-doc img { display: block; opacity: .78 }
.submission-mascot { justify-self: end; width: min(100%, 290px); height: auto; max-height: 37dvh; object-fit: contain; object-position: bottom right }
@keyframes quote-motion { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (prefers-reduced-motion: reduce) { .submission-doc { animation: none } }
.address-picker { width: 100%; height: min(490px, 62dvh); border: 0 }
.price-block, .offer { display: grid; gap: 2px; margin-top: 10px }
.trade-party { margin-block: 8px 2px; font-size: 1.2rem }
.trade-party:first-child { margin-top: 0 }
.offer { background: #f3f6fb; padding: 12px; border-radius: 10px }
button, .button { font: inherit; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 9px; padding: 9px 15px; cursor: pointer; font-weight: 700; display: inline-block }
button.secondary, .button.secondary { color: var(--brand); background: #fff; border-color: var(--border) }
button:disabled { opacity: .55; cursor: default }
button:not(:disabled):active, .button:active, .consultation-card:active, .chat-back:active, .side a:active { filter: brightness(.93); transform: translateY(1px) }
button[aria-busy="true"] { cursor: progress; opacity: .78 }
button.link { border: 0; background: transparent; color: var(--brand); padding: 5px }
form { display: grid; gap: 14px }
label { display: grid; gap: 4px; font-weight: 650 }
label.check { display: flex; gap: 9px; align-items: baseline }
input:not([type=checkbox]), select, textarea { font: inherit; color: var(--ink); width: 100%; border: 1px solid #c7d3e4; background: #fff; border-radius: 8px; padding: 9px 11px }
textarea { min-height: 90px; resize: vertical }
.signed-out { min-height: 100dvh; padding: 0 clamp(16px, 6vw, 28px); background: #fff }
.signed-out .preview { padding-top: 8px; text-align: center }
.login { width: min(100%, 460px); margin-inline: auto; padding-block: 30px; min-width: 0 }
.login .muted { font-size: .9rem; word-break: keep-all }
.partner-login-brand { border-left: 5px solid var(--brand); padding-left: 12px }
.partner-login-brand h1 { line-height: 1.25; font-size: 1.48rem }
.partner-login-brand .muted { margin-top: 3px }
.signup-view { width: min(100%, 580px); padding-bottom: 40px }
.signup-group { display: grid; gap: 12px; min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 18px }
.signup-group legend { font-weight: 770; padding-inline: 5px }
.signup-group input { min-width: 0 }
.signup-group a { width: fit-content; font-weight: 650; font-size: .9rem }
.signup-group > p[role="status"]:empty { display: none }
.consent-details { padding: 10px 12px; border-radius: 8px; background: #f3f7fc; font-size: .9rem }
.consent-details summary { cursor: pointer; font-weight: 700 }
.consent-details p { margin-top: 8px }
.signup-id { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px }
.signup-id button { padding-inline: 10px }
.signup-view form .actions { margin-top: 0 }
.signup-view > .button, .signup-view form button[type="submit"] { width: 100%; text-align: center; min-height: 48px }
.account-view { max-width: 720px }
.account-home { gap: 12px }
.account-home > .section-top { margin-bottom: 3px }
.account-home > .section-top h2 { font-size: 1.45rem }
.account-identity { min-height: 94px; display: grid; align-content: center; padding: 18px 20px; background: #edf4ff; border-color: #dbe8fb }
.partner .account-identity { background: #edf8f2; border-color: #d8ede3 }
.account-identity h2 { font-size: 1.125rem; margin-bottom: 4px }
.account-identity .muted { font-size: .9rem }
.account-list { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface) }
.account-home .account-list { gap: 8px; overflow: visible; background: transparent; border: 0 }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 10px 15px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); text-align: left; font-size: 1rem }
.account-list .account-row + .account-row { border-top: 1px solid var(--border) }
.account-home .account-list .account-row { border: 1px solid var(--border); border-radius: 12px }
.account-view > .account-row { border: 1px solid var(--border); border-radius: 14px }
.account-row small { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); font-weight: 500 }
.account-row .row-chevron { font-size: 1.4rem; line-height: 1; color: var(--muted) }
.account-row:hover { background: #f5f8fb }
.account-row:focus-visible { outline-offset: -3px }
.account-exit { margin-bottom: 10px }
.account-exit .account-row strong { color: var(--red) }
@media (min-width: 701px) {
  .signed-out { background: #f0f5fc }
  .partner .signed-out { background: #eff7f2 }
  .signed-out .login { width: min(100%, 506px); min-height: auto; margin-block: clamp(22px, 5vh, 60px); padding: 28px 28px 24px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 12px 36px #15233a12 }
  .signed-out .signup-view { width: min(100%, 590px) }
}
.main.signed-out:has(.login-page) { padding: 0; background: #123f80 }
.partner .main.signed-out:has(.login-page) { background: #07543c }
.signed-out:has(.login-page) > .preview:not(:empty) { margin: 0; padding: 5px; background: #123f80; color: #fff }
.partner .signed-out:has(.login-page) > .preview:not(:empty) { background: #07543c }
.login-page { --login-base: #153e7b; --login-highlight: #2c78d3; --login-deep: #0b2854; --login-tint: #eaf3ff; --login-art: #cde2ff; display: flex; flex-direction: column; align-items: center; min-height: 100dvh; padding: 0 clamp(14px, 5vw, 48px); background: radial-gradient(ellipse at 78% 0%, var(--login-highlight), transparent 62%), linear-gradient(160deg, var(--login-base), var(--login-deep)) }
.login-page-partner { --login-base: #09523d; --login-highlight: #258c69; --login-deep: #063828; --login-tint: #e5f5ed; --login-art: #ccecdf }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(100%, 920px); margin-block: clamp(28px, 9vh, 92px) clamp(26px, 6vh, 60px); background: #fff; border: 1px solid #ffffff85; border-radius: 26px; overflow: hidden; box-shadow: 0 25px 60px #06162a4d }
.login-hero { display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: clamp(24px, 4vw, 48px); min-width: 0; background: var(--login-tint) }
.login-brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-size: 1.05rem; font-weight: 800 }
.login-brand img { border-radius: 11px; flex: none }
.login-hero h1 { margin-block: clamp(25px, 4vw, 46px) 10px; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.13; letter-spacing: -.05em; word-break: keep-all; text-wrap: balance }
.login-hero p, .login-credentials p { word-break: keep-all }
.login-art { display: grid; place-items: center; align-self: center; justify-self: center; width: min(100%, 244px); aspect-ratio: 1; background: radial-gradient(circle, var(--login-art) 0%, transparent 71%) }
.login-art img { width: 94%; height: auto; max-height: 244px; object-fit: contain; filter: drop-shadow(0 12px 14px #16335425) }
.login-credentials { min-width: 0; display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px) }
.login-intro h2 { margin-bottom: 7px; font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.25; letter-spacing: -.035em }
.login-intro p { font-size: .9375rem }
.kakao-action { margin-top: 14px }
.kakao-action :is(.button,button) { width: 100%; min-height: 56px; display: grid; place-items: center; background: #fee500; border-color: #f4da00; color: #201d11 }
.auth-error { color: var(--red) }
.login-required { padding: 10px 12px; border-radius: 9px; background: var(--login-tint); color: var(--ink); font-size: .9rem; font-weight: 650 }
.login-panel input { min-height: 48px }
.login-panel .actions { margin-top: 2px }
.login-panel form button, .partner-signup-action .button { display: grid; place-items: center; width: 100%; min-height: 50px; text-align: center }
.login-policy { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--border) }
.login-policy .button { min-height: 40px; padding: 6px 0; display: inline-flex; align-items: center; border: 0; font-size: .875rem }
.login-footer { width: min(100%, 920px); display: grid; gap: 3px; margin-top: auto; padding-block: 20px 25px; border-top: 1px solid #ffffff45; font-size: .875rem; color: #edf5ff }
.login-footer strong { color: #fff }
.login-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px }
.login-footer a:focus-visible { outline-color: #fff }
@media (max-width: 700px) {
  .carousel-controls { display: none }
  .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 470px; margin-block: 26px }
  .login-hero { grid-template: auto / minmax(0, 1fr) clamp(62px, 22vw, 132px); align-items: center; column-gap: 9px; padding: 21px }
  .login-hero h1 { margin-block: 17px 6px; font-size: clamp(1.3rem, 5.8vw, 1.8rem) }
  .login-hero p { font-size: .875rem }
  .login-brand { font-size: .9rem; gap: 7px }
  .login-brand img { width: 34px; height: 34px }
  .login-credentials { padding: 23px 20px }
  .login-footer { max-width: 470px }
}
@media (max-width: 420px) {
  .login-hero { padding: 18px 15px }
  .login-credentials { padding-inline: 16px }
}
.status { position: fixed; z-index: 4; inset: auto 18px 18px auto; max-width: min(440px, calc(100% - 36px)); border-radius: 10px; background: #182942; color: #fff; padding: 12px 16px }
.preview { color: var(--muted); font-size: .9rem; margin-bottom: 10px }
.preview:empty { display: none }
.chat-panel:not([hidden]) { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: clamp(255px, calc(100dvh - 150px), 760px); min-width: 0 }
.chat-panel > .chat-loading { position: absolute; pointer-events: none; border-radius: inherit }
.chat { min-height: 0; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px }
.chat > .view-loading { flex: 1 }
.chat-item { max-width: min(82%, 42rem); padding: 9px 12px; background: #edf1f6; border-radius: 12px; align-self: flex-start; overflow-wrap: anywhere }
.chat-item.mine { background: color-mix(in srgb, var(--brand) 12%, white); align-self: flex-end }
.chat-item.event { align-self: stretch; max-width: none }
.chat-quote, .chat-item.event { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px }
.chat-quote-summary .trade-card { border: 0; box-shadow: none; padding: 0 }
.chat-quote-summary .trade-heading h3 { font-size: 1.15rem; font-weight: 850 }
.chat-trade-status { width: fit-content; color: var(--brand); font-size: .9rem }
.chat-quote .actions, .chat-item.event .actions { margin-top: 0 }
.chat-quote-expand > summary { min-height: 42px; padding: 8px 0; color: var(--brand); font-weight: 750; cursor: pointer }
.chat-quote-expand > .stack { padding-top: 8px; border-top: 1px solid var(--border) }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: 8px; margin-top: 10px }
.composer textarea { min-height: 44px; max-height: 110px }
.composer button { min-height: 44px; white-space: nowrap }
.form-option { gap: 4px }
.pager { min-height: 2px }
@media (max-width: 1030px) { :root { --sidebar-width: 170px } }
@media (max-width: 700px) {
  .signed-in-route { inset: 0 0 70px }
  .entry { grid-template-columns: 44px minmax(0, 1fr) max-content; min-height: 83px; padding-inline: 12px; column-gap: 11px }
  .entry-icon { width: 44px; height: 44px; border-radius: 10px }
  .entry-action { font-size: .78rem }
  .app-shell { display: block; min-height: 100dvh }
  .side { position: fixed; z-index: 3; inset: auto 0 0; height: auto; display: flex; justify-content: space-around; gap: 2px; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border) }
  .side .brand { display: none }
  .side a:not(.brand) { text-align: center; flex: 1; padding: 7px 2px; font-size: .80rem; flex-direction: column; gap: 2px }
  .side a[aria-current="page"] { background: transparent }
  .main { padding: 17px 14px 85px }
  .main.signed-out { padding: 0 clamp(16px, 6vw, 28px) }
  .status { bottom: 72px }
  .keyboard-open .side { display: none }
  .keyboard-open .main { padding-bottom: 12px }
  .keyboard-open .status { bottom: 12px }
  .conversation-header { gap: 7px }
  .conversation-header h2 { font-size: 1rem }
  .chat-panel:not([hidden]) { height: max(240px, calc(100dvh - 164px)); padding: 12px }
  .keyboard-open .conversation-header { display: none }
  .keyboard-open .chat-panel:not([hidden]) { height: max(150px, calc(var(--visual-height, 100dvh) - 30px)) }
  .chat-trade-toggle { padding-inline: 9px }
}
@media (max-width: 390px) {
  .landing-header, .landing-main, .landing-footer { width: calc(100% - 28px) }
  .entry p { font-size: .82rem }
  .entry-action { max-width: 66px; word-break: keep-all }
}

