:root {
  color-scheme: light;
  --ink: #171716;
  --muted: #5e5a52;
  --paper: #f5f3ed;
  --white: #fff;
  --accent: #9a5b00;
  --accent-bright: #ffbd00;
  --accent-orange: #ff8a00;
  --dark-panel: #201f1d;
  --line: #ded9cf;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding: 105px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[hidden] { display: none !important; }

.topbar { min-height: 34px; color: #d1d9d4; background: #101918; font-size: 10px; }
.topbar-inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-inner > span { color: #9ba9a2; font-size: 9px; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(21,21,20,.98); border-bottom: 1px solid #393733; backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; }
.brand-mark { width: 41px; color: var(--ink); }
.brand-name { display: grid; font: 800 16px/.98 var(--display); letter-spacing: .015em; }
.brand-name span { margin-top: 4px; font-size: 10px; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { color: #66716b; font-size: 11px; font-weight: 700; transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-account { padding: 12px 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; transition: background .2s; }
.header-account:hover { background: #2a3c39; }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-toggle span { width: 17px; height: 1px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { position: relative; display: flex; min-height: min(660px, calc(100svh - 112px)); align-items: center; overflow: hidden; color: white; background: #1d3330; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: #263d36; animation: none; }
.hero-shade { background: linear-gradient(90deg, rgba(13,29,27,.86), rgba(13,29,27,.58) 54%, rgba(13,29,27,.12)), linear-gradient(0deg, rgba(13,29,27,.32), transparent 35%); }
.hero-content { position: relative; z-index: 1; padding: 75px 0 105px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #73807a; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 21px; height: 1px; background: var(--accent); }
.hero-eyebrow { margin: 0 0 24px; color: #d0d8d3; }
.hero h1 { margin: 0; font: 600 clamp(44px, 6.2vw, 78px)/1.07 var(--display); letter-spacing: -.055em; }
.hero h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 520px; margin: 22px 0 29px; color: #d2dbd6; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 23px; padding: 0 17px; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #d94c36; }
.button span { font-size: 15px; }
.hero-chat-link { padding: 10px 0; color: #fff; border: 0; background: transparent; cursor: pointer; font-size: 11px; }
.hero-chat-link span { margin-left: 9px; color: var(--accent); }
.hero-coordinate { position: absolute; right: max(32px, calc((100vw - 1180px)/2)); bottom: 35px; z-index: 1; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .08em; }
.hero-coordinate i { width: 24px; height: 1px; background: var(--accent); }
.scroll-cue { position: absolute; bottom: 30px; left: max(32px, calc((100vw - 1180px)/2)); z-index: 1; display: flex; align-items: center; gap: 10px; color: #e3e9e5; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 25px; background: var(--accent); }
.shop { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 38px; }
.section-heading .eyebrow { margin: 0 0 17px; }
.section-heading h2, .account-content h2 { margin: 0; font: 600 clamp(37px, 4.4vw, 53px)/1.08 var(--display); letter-spacing: -.05em; }
.section-side-copy { max-width: 350px; margin: 0 0 5px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.shop-layout { display: grid; grid-template-columns: 1fr 315px; align-items: start; gap: 22px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #dfe4dd; border-left: 1px solid #dfe4dd; }
.service-card { position: relative; min-height: 236px; padding: 20px 21px 24px; border-right: 1px solid #dfe4dd; border-bottom: 1px solid #dfe4dd; background: rgba(255,255,255,.37); transition: background .2s, box-shadow .2s; }
.service-card:hover { background: white; }
.service-card.is-selected { z-index: 1; background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; }
.service-category { color: #828c86; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-number { color: #a2aaa4; font-size: 9px; }
.service-icon { display: grid; width: 40px; height: 40px; place-items: center; margin: 20px 0 11px; color: var(--accent); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.service-card h3 { margin: 0; font: 700 16px/1.4 var(--display); letter-spacing: -.025em; }
.service-card p { min-height: 36px; margin: 8px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.service-add { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--ink); border: 0; background: none; cursor: pointer; font-size: 9px; font-weight: 700; }
.service-add span { color: var(--accent); font-size: 15px; }
.service-card.is-selected .service-add { color: var(--accent); }
.service-card.is-selected .service-add span { transform: rotate(45deg); }
.loading-state, .empty-state { grid-column: 1 / -1; padding: 30px; color: var(--muted); font-size: 11px; text-align: center; }

.quote-cart { position: sticky; top: 98px; padding: 22px 20px 17px; background: #fff; box-shadow: 0 10px 35px rgba(26,39,35,.06); }
.cart-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.cart-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--accent); border: 1px solid #f5d1ca; font-size: 20px; }
.cart-heading .eyebrow { margin: 0 0 3px; font-size: 8px; }
.cart-heading h3 { margin: 0; font: 700 16px var(--display); }
.cart-count { display: grid; width: 23px; height: 23px; place-items: center; margin-left: auto; color: white; border-radius: 50%; background: var(--ink); font-size: 9px; }
.cart-items { display: grid; gap: 10px; max-height: 150px; overflow-y: auto; padding: 14px 0; }
.cart-empty { margin: 0; color: #87918c; font-size: 10px; line-height: 1.7; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.cart-item strong { font-size: 10px; font-weight: 600; }
.cart-remove { padding: 3px 5px; color: #87918c; border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.cart-remove:hover { color: var(--accent); }
.quote-cart form { padding-top: 12px; border-top: 1px solid var(--line); }
.quote-cart label, .form-field label { display: block; margin: 0 0 5px; font-size: 9px; font-weight: 700; }
.quote-cart label span { color: #8a948e; font-weight: 400; }
.quote-cart input, .quote-cart textarea { width: 100%; margin-bottom: 12px; padding: 9px 0; color: var(--ink); border: 0; border-bottom: 1px solid #dfe4de; border-radius: 0; outline: none; background: transparent; font-size: 10px; }
.quote-cart textarea { resize: vertical; }
.quote-cart input:focus, .quote-cart textarea:focus, .form-field input:focus { border-color: var(--accent); }
.quote-cart input::placeholder, .quote-cart textarea::placeholder { color: #a3aaa6; }
.order-submit { width: 100%; justify-content: space-between; margin-top: 3px; }
.cart-footnote { margin: 10px 0 0; color: #87918b; font-size: 8px; line-height: 1.6; }

.how-it-works { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps-grid article { position: relative; min-height: 205px; padding: 24px 28px 15px 0; }
.steps-grid article + article { padding-left: 27px; border-left: 1px solid var(--line); }
.steps-grid article > span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.steps-grid h3 { margin: 28px 0 7px; font: 700 15px var(--display); }
.steps-grid p { max-width: 270px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.bottom-cta { color: #fff; background: #172624; }
.bottom-cta-inner { display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 30px; }
.eyebrow-light { color: #a9b6af; }
.bottom-cta .eyebrow { margin: 0 0 12px; }
.bottom-cta h2 { margin: 0; font: 600 clamp(22px, 3vw, 34px) var(--display); letter-spacing: -.04em; }
.button-light { color: var(--ink); background: #fff; }
.button-light:hover { background: #f0f3ef; }

.account-view[hidden] { display: none; }
.account-header { color: #fff; background: #172624; }
.account-header-inner { display: flex; min-height: 225px; align-items: center; justify-content: space-between; gap: 35px; padding-top: 25px; padding-bottom: 25px; }
.back-link { margin: 0 0 18px; padding: 0; color: #bfcbc4; border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.back-link:hover { color: #fff; }
.account-header .eyebrow { margin: 0 0 10px; color: #b3c1b9; }
.account-header h1 { margin: 0; font: 600 clamp(32px, 4vw, 47px)/1.1 var(--display); letter-spacing: -.05em; }
.account-header-inner > div:first-child > p:last-child { margin: 10px 0 0; color: #bac6c0; font-size: 11px; }
.account-user { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.17); }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: white; border-radius: 50%; background: var(--accent); font: 700 11px var(--display); }
.account-user > div { display: grid; gap: 3px; }
.account-user strong { font-size: 10px; }
.account-user small { color: #adbab2; font-size: 9px; }
.logout-button { margin-left: 16px; padding: 6px 0 6px 12px; color: #c7d0cb; border: 0; border-left: 1px solid rgba(255,255,255,.18); background: transparent; cursor: pointer; font-size: 9px; }
.logout-button:hover { color: #fff; }
.account-content { padding-top: 49px; padding-bottom: 90px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dashboard-heading .eyebrow { margin: 0 0 7px; }
.dashboard-heading h2 { font-size: 27px; }
.connection-status { display: flex; align-items: center; gap: 7px; color: #78827d; font-size: 9px; }
.connection-status i, .online-label i, .online-dot { width: 7px; height: 7px; border-radius: 50%; background: #e1a243; }
.connection-status.is-connected i, .online-label i, .online-dot { background: #45af75; }
.orders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.order-card { padding: 18px; border: 1px solid var(--line); background: #fff; }
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card-top strong { font: 700 12px var(--display); }
.order-status { padding: 5px 8px; color: #73541c; background: #fff4d8; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.order-status.status-in_progress { color: #245e7b; background: #e6f4fb; }
.order-status.status-completed { color: #276446; background: #e4f5eb; }
.order-status.status-cancelled { color: #7c3c3b; background: #fae9e8; }
.order-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; padding: 0; list-style: none; }
.order-card li { padding: 5px 7px; color: #59655e; background: #f3f5f1; font-size: 8px; }
.order-card p { margin: 5px 0; color: var(--muted); font-size: 9px; }
.order-card time { display: block; margin-top: 11px; color: #8a948e; font-size: 8px; }
.seller-order-customer { display: grid; gap: 3px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.seller-order-customer strong { font-size: 9px; }
.seller-order-customer span { color: var(--muted); font-size: 8px; }
.order-status-select { margin-top: 12px; padding: 7px 8px; border: 1px solid var(--line); background: white; font-size: 9px; }
.chat-section { margin-top: 63px; }
.chat-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.chat-section-heading .eyebrow { margin: 0 0 8px; }
.chat-section-heading h2 { font-size: 28px; }
.chat-section-heading > p { max-width: 280px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.chat-layout { display: grid; min-height: 465px; grid-template-columns: 255px 1fr; border: 1px solid var(--line); background: #fff; }
.chat-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.chat-sidebar-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 16px; border-bottom: 1px solid var(--line); font-size: 10px; }
.conversation-list { flex: 1; overflow-y: auto; }
.conversation-option { display: flex; width: 100%; align-items: center; gap: 9px; padding: 13px 14px; border: 0; border-bottom: 1px solid #eef0ed; background: white; cursor: pointer; text-align: left; }
.conversation-option:hover, .conversation-option.is-active { background: #f6f7f3; }
.conversation-option .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 9px; }
.conversation-option-text { display: grid; min-width: 0; flex: 1; gap: 4px; }
.conversation-option-text strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-option-text small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.chat-sidebar-empty { padding: 16px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.chat-help { display: flex; align-items: flex-start; gap: 8px; padding: 14px 13px; color: #7c8781; border-top: 1px solid var(--line); font-size: 8px; line-height: 1.6; }
.chat-help span { display: grid; width: 14px; height: 14px; flex: 0 0 14px; place-items: center; color: #74817a; border: 1px solid #aeb8b1; border-radius: 50%; }
.chat-panel { display: flex; min-width: 0; flex-direction: column; }
.chat-panel-header { display: flex; min-height: 65px; align-items: center; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--line); }
.seller-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 9px; }
.chat-panel-header > div { display: grid; gap: 4px; }
.chat-panel-header strong { font-size: 10px; }
.chat-panel-header small { color: var(--muted); font-size: 8px; }
.online-label { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #708078; font-size: 8px; }
.online-label i { width: 6px; height: 6px; }
.online-label.is-offline i, .online-dot.is-offline { background: #d5a453; }
.chat-messages { display: flex; min-height: 300px; flex: 1; flex-direction: column; gap: 11px; overflow-y: auto; padding: 18px; background: #fafbf9; }
.chat-empty { display: grid; min-height: 260px; place-items: center; color: #89938d; font-size: 10px; text-align: center; }
.message-row { display: flex; max-width: 82%; flex-direction: column; align-self: flex-start; gap: 4px; }
.message-row.is-mine { align-self: flex-end; }
.message-author { color: #748078; font-size: 8px; }
.message-bubble { padding: 10px 12px; color: #33413b; background: #edf0eb; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.is-mine .message-bubble { color: #fff; background: #263c37; }
.message-time { align-self: flex-end; color: #929b95; font-size: 7px; }
.chat-composer { display: flex; align-items: end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-composer textarea { min-height: 39px; max-height: 100px; flex: 1; padding: 11px 10px; border: 1px solid #e5e9e3; outline: none; resize: none; font-size: 10px; }
.chat-composer textarea:focus { border-color: var(--accent); }
.chat-composer button { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; color: white; border: 0; background: var(--accent); cursor: pointer; font-size: 18px; }
.chat-composer button:disabled { cursor: not-allowed; opacity: .45; }
.chat-security-note { margin: -5px 14px 11px; color: #8b958f; font-size: 8px; }

.site-footer { color: #d2dbd5; background: #101918; }
.footer-main { display: flex; min-height: 120px; align-items: center; justify-content: space-between; gap: 24px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: #fff; }
.footer-main > p { margin: 0; color: #a5b0aa; font: 500 10px/1.7 var(--display); }
.footer-main > a:last-child { font-size: 9px; }
.footer-main > a:last-child span { margin-left: 7px; color: var(--accent); }
.footer-bottom { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #89958e; font-size: 8px; }

.auth-dialog { width: min(440px, calc(100% - 32px)); max-width: 440px; padding: 31px; border: 0; box-shadow: 0 25px 100px rgba(0,0,0,.25); }
.auth-dialog::backdrop { background: rgba(13,25,22,.65); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 31px; height: 31px; color: #66716b; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 18px; }
.auth-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 29px; }
.auth-brand .brand-mark { width: 34px; }
.auth-brand .brand-name { font-size: 13px; }
.auth-brand .brand-name span { font-size: 8px; }
.auth-dialog > .eyebrow { margin: 0 0 8px; }
.auth-dialog h2 { margin: 0; font: 700 23px var(--display); letter-spacing: -.04em; }
.auth-intro { margin: 8px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 10px 5px; color: #808a84; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.auth-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.form-field { margin-bottom: 14px; }
.form-field input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #dfe4de; outline: none; font-size: 11px; }
.form-error { margin: 0 0 12px; color: #b13632; font-size: 9px; line-height: 1.6; }
.auth-submit { width: 100%; justify-content: space-between; margin-top: 4px; }
.auth-privacy { margin: 14px 0 0; color: #8a948e; font-size: 8px; line-height: 1.6; }
.notice { position: fixed; z-index: 50; right: 24px; bottom: 22px; max-width: min(390px, calc(100% - 48px)); padding: 14px 17px; color: #fff; background: #172624; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 10px; line-height: 1.6; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.notice.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .main-nav { gap: 18px; }
  .shop-layout { grid-template-columns: 1fr 285px; }
  .service-card { padding-right: 15px; padding-left: 15px; }
  .chat-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .container { width: min(100% - 40px, 560px); }
  .section-pad { padding: 75px 0; }
  .topbar { font-size: 8px; }
  .topbar-inner { gap: 9px; }
  .topbar-inner > span { display: none; }
  .topbar-inner a:last-child { margin-left: auto; }
  .header-inner { min-height: 70px; gap: 12px; }
  .brand-mark { width: 36px; }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 9px; }
  .header-account { padding: 11px 12px; font-size: 9px; }
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 16px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(20,35,32,.08); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 13px 2px; border-bottom: 1px solid #eef0ec; font-size: 10px; }
  .hero { min-height: min(670px, calc(100svh - 103px)); }
  .hero-image { background-position: 40% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(12,28,27,.83),rgba(12,28,27,.33)),linear-gradient(0deg,rgba(12,28,27,.42),transparent 55%); }
  .hero-content { padding: 60px 0 88px; }
  .hero h1 { font-size: clamp(42px, 10vw, 64px); }
  .hero-copy { max-width: 340px; font-size: 12px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-coordinate { right: 20px; bottom: 22px; font-size: 8px; }
  .scroll-cue { bottom: 21px; left: 20px; font-size: 7px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 27px; }
  .section-heading h2 { font-size: clamp(36px, 8.8vw, 47px); }
  .section-side-copy { max-width: 430px; margin: 0; }
  .shop-layout { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: 226px; padding: 17px 14px 20px; }
  .service-icon { width: 35px; height: 35px; margin: 17px 0 10px; }
  .service-card h3 { font-size: 14px; }
  .service-card p { min-height: 48px; font-size: 9px; }
  .quote-cart { position: static; padding: 19px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: auto; padding: 19px 0 22px; }
  .steps-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps-grid h3 { margin: 12px 0 5px; }
  .bottom-cta-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 19px; padding-top: 35px; padding-bottom: 35px; }
  .account-header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
  .account-user { width: 100%; padding: 9px 10px; }
  .logout-button { margin-left: auto; }
  .account-content { padding-top: 34px; padding-bottom: 60px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .orders-grid { grid-template-columns: 1fr; }
  .chat-section { margin-top: 43px; }
  .chat-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .chat-section-heading h2 { font-size: 24px; }
  .chat-layout { min-height: 570px; grid-template-columns: 1fr; }
  .chat-sidebar { max-height: 138px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-sidebar-title { padding: 12px 13px; }
  .conversation-list { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .conversation-option { min-width: 180px; border-right: 1px solid #eef0ed; border-bottom: 0; }
  .chat-sidebar-empty { padding: 11px 13px; }
  .chat-help { display: none; }
  .chat-panel-header { min-height: 57px; padding: 9px 12px; }
  .chat-messages { min-height: 300px; padding: 13px; }
  .notice { right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .footer-main { min-height: 140px; flex-wrap: wrap; gap: 13px; padding-top: 22px; padding-bottom: 22px; }
  .footer-main > p { order: 3; width: 100%; }
  .footer-bottom { min-height: 48px; font-size: 7px; }
  .auth-dialog { padding: 25px 21px; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .topbar { font-size: 7px; }
  .service-card { min-height: 240px; padding-right: 11px; padding-left: 11px; }
  .service-card h3 { font-size: 13px; }
  .service-card p { font-size: 8px; }
  .chat-panel-header .online-label { display: none; }
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { min-height: 44px; }
img { height: auto; }
.container { width: min(1200px, calc(100% - 48px)); }
.section-pad { padding: clamp(64px, 8vw, 104px) 0; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 3px; }

.topbar { min-height: 38px; color: #e7e3da; background: #151514; font-size: 12px; }
.topbar-inner { min-height: 38px; }
.topbar-inner > span { color: #c9c4ba; font-size: 12px; }
.topbar a { min-height: 38px; display: inline-flex; align-items: center; }
.site-header { color: #f5f2eb; background: rgba(21,21,20,.98); border-bottom-color: #393733; }
.header-inner { min-height: 76px; }
.brand-mark { width: 42px; color: var(--accent-bright); filter: none; }
.brand-name { font-size: 16px; }
.brand-name span { font-size: 10px; }
.main-nav { gap: clamp(16px, 2.4vw, 32px); }
.main-nav a { position: relative; color: #e1ddd4; font-size: 14px; }
.main-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: linear-gradient(90deg, var(--accent-bright), var(--accent-orange)); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover { color: var(--accent-bright); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-account { min-height: 44px; padding: 10px 18px; color: #171716; border: 1px solid var(--accent-bright); border-radius: 4px; background: linear-gradient(115deg, #ffbd00, #ff9c00); box-shadow: 0 5px 18px rgba(255,156,0,.17); font-size: 14px; }
.header-account:hover { background: linear-gradient(115deg, #ffd04a, #ffad33); }
.menu-toggle { width: 44px; height: 44px; color: #f5f2eb; border-color: #5a554b; border-radius: 4px; background: #201f1d; }
.menu-toggle span { background: currentColor; }

.hero { min-height: min(660px, calc(100svh - 114px)); isolation: isolate; background: radial-gradient(ellipse at 84% 50%, #29251b 0, #1b1a18 30%, #151514 66%); }
.hero-image {
  inset: 0 0 0 auto;
  display: grid;
  width: 49%;
  place-items: center;
  background-image:
    radial-gradient(ellipse at 54% 49%, rgba(255,189,0,.12), transparent 47%),
    radial-gradient(ellipse at 54% 49%, rgba(255,138,0,.06), transparent 70%);
  background-size: auto, auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%);
  animation: none;
}
.survey-illustration { width: min(100%, 520px); overflow: visible; filter: drop-shadow(0 18px 45px rgba(255,156,0,.13)); }
.survey-ring { stroke: rgba(255,244,210,.76); stroke-width: 3; stroke-dasharray: 1110 135; stroke-dashoffset: 42; }
.survey-tick { stroke: #ffbd00; stroke-width: 5; stroke-linecap: square; }
.survey-contours { stroke: rgba(255,238,192,.48); stroke-width: 2.2; stroke-linecap: round; }
.survey-tripod { stroke: #ffbd00; stroke-width: 8; stroke-linejoin: round; }
.survey-tripod path:nth-of-type(4) { fill: #ffbd00; }
.survey-tripod path:nth-of-type(5) { fill: #ffbd00; }
.survey-tripod path:nth-of-type(6) { fill: #201f1d; stroke-width: 5; }
.survey-tripod circle { fill: #201f1d; stroke-width: 6; }
.survey-tripod path:nth-of-type(7) { stroke: #171716; stroke-width: 3; }
.survey-center { fill: #ff8a00; }
.hero-shade { background: linear-gradient(90deg, #151514 0%, rgba(21,21,20,.98) 35%, rgba(21,21,20,.62) 68%, rgba(21,21,20,.12) 100%); }
.hero-content { width: min(1200px, calc(100% - 48px)); padding-block: 78px 98px; }
.hero-eyebrow { color: var(--accent-bright); }
.hero .hero-eyebrow { color: var(--accent-bright); }
.hero-eyebrow > span, .scroll-cue span { background: var(--accent-bright); }
.hero h1 { max-width: 690px; font-size: clamp(44px, 5.4vw, 68px); }
.hero h1 em { color: var(--accent-bright); }
.hero h1 em, h2 em { font-style: normal; }
.hero-copy { max-width: 520px; font-size: 18px; line-height: 1.65; }
.hero-actions { gap: 22px; }
.button { min-height: 48px; gap: 14px; padding: 0 20px; border-radius: 6px; font-size: 14px; letter-spacing: 0; text-transform: none; clip-path: none; }
.button-primary { color: #171716; background: linear-gradient(115deg, #ffbd00, #ff9900); box-shadow: 0 7px 20px rgba(255,156,0,.19); }
.button-primary:hover:not(:disabled) { background: linear-gradient(115deg, #ffd04a, #ffad33); box-shadow: 0 9px 25px rgba(255,156,0,.27); }
.hero-chat-link { min-height: 44px; font-size: 14px; }
.hero-coordinate { display: none; }
.scroll-cue { font-size: 11px; }
.hero::after { display: none; }

.trust-strip { position: relative; color: #f4f0e7; background: var(--dark-panel); border-bottom: 1px solid #393733; }
.trust-strip::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: repeating-linear-gradient(115deg, var(--accent-bright) 0 17px, transparent 17px 28px); content: ""; }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid > div { padding: 27px 22px 25px; border-left-color: #393733; }
.trust-grid strong { color: var(--accent-bright); font-size: 20px; }
.trust-grid span { color: #c9c4ba; font-size: 14px; }

.shop { background: var(--paper); }
.section-heading { gap: 36px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.eyebrow { color: #52615a; font-size: 12px; letter-spacing: .12em; }
.section-heading h2, .account-content h2 { font-size: clamp(34px, 4.3vw, 52px); }
.section-heading h2 em { color: var(--accent); }
.section-side-copy { max-width: 400px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.shop-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.service-grid { gap: 16px; border: 0; }
.service-card { min-height: 0; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 7px 20px rgba(36,30,17,.035); transition: border-color .2s, transform .2s, box-shadow .2s; }
.service-card:hover { border-color: #d5a42c; background: #fff; box-shadow: 0 14px 28px rgba(36,30,17,.09); transform: translateY(-3px); }
.service-card.is-selected { border-color: var(--accent-orange); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--accent-orange), 0 8px 20px rgba(36,30,17,.06); }
.service-category, .service-number { color: #52615a; font-size: 12px; }
.service-icon { width: 46px; height: 46px; margin: 18px 0 12px; color: var(--accent); }
.service-card h3 { font-size: 19px; }
.service-card p { min-height: 0; margin: 9px 0 15px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-add { min-height: 44px; gap: 8px; padding: 8px 0; font-size: 14px; }
.service-add span { color: var(--accent); font-size: 18px; }
.loading-state, .empty-state { padding: 28px; color: var(--muted); font-size: 15px; }
.quote-cart { top: 96px; padding: 24px; border: 1px solid #e5d5ae; border-radius: 10px; background: #fffdf8; box-shadow: 0 12px 30px rgba(36,30,17,.09); }
.cart-heading { gap: 12px; }
.cart-icon { border-color: #d8a99f; border-radius: 6px; }
.cart-heading .eyebrow { font-size: 11px; }
.cart-heading h3 { font-size: 19px; }
.cart-count { width: 28px; height: 28px; color: #fff; background: var(--ink); font-size: 12px; }
.cart-items { max-height: 190px; }
.cart-empty, .cart-item, .cart-item strong { font-size: 14px; }
.quote-cart label { margin-bottom: 6px; font-size: 14px; }
.quote-cart input, .quote-cart textarea { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #aeb9b2; border-radius: 5px; background: #fff; font-size: 15px; }
.quote-cart input:focus, .quote-cart textarea:focus, .form-field input:focus { outline: 2px solid var(--accent-orange); outline-offset: 1px; }
.quote-cart input::placeholder, .quote-cart textarea::placeholder { color: #65716b; }
.cart-footnote { color: var(--muted); font-size: 12px; }

.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { border: 1px solid var(--line); border-radius: 8px; background: #eef2ef; cursor: zoom-in; }
.gallery-item[aria-disabled="true"] { cursor: default; }
.gallery-item img { object-fit: cover; }
.gallery-item.is-image-missing { background-color: #edf1ee; background-image: repeating-radial-gradient(ellipse at 70% 40%, transparent 0 18px, rgba(67,95,81,.12) 19px, transparent 20px 42px); }
.gallery-item.is-image-missing img { display: none; }
.gallery-item span { color: #fff; background: var(--ink); font: 700 11px var(--body); letter-spacing: .04em; }
.gallery-item figcaption { padding: 28px 14px 12px; font-size: 14px; line-height: 1.4; }
.gallery-filters { gap: 8px; margin-bottom: 20px; }
.gallery-chip { min-height: 42px; padding: 8px 15px; color: #33443d; border: 1px solid #aab5ae; border-radius: 999px; background: #fff; font: 600 14px var(--body); }
.gallery-chip:hover, .gallery-chip[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.lightbox { grid-template-rows: 1fr auto; padding: 64px 80px 32px; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 78vh; object-fit: contain; }
.lightbox p { font-size: 15px; }
.lightbox-close, .lightbox-nav { min-width: 46px; min-height: 46px; }
.lightbox-close:hover, .lightbox-nav:hover { color: #fff; background: var(--accent); }

.reviews { background: var(--paper); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.review-card { padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.review-card p { color: #263730; font-size: 16px; line-height: 1.6; }
.review-card small, .review-message, .review-hint { color: var(--muted); font-size: 14px; }
.review-stars { color: #8c4b00; }
.review-form { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #aeb9b2; border-radius: 5px; font: inherit; }
.star { min-width: 44px; min-height: 44px; color: #52615a; }
.star.on { color: #8c4b00; }

.how-it-works { background: #f4f6f3; }
.steps-grid article { min-height: 195px; }
.steps-grid article > span { font-size: 14px; }
.steps-grid h3 { margin-top: 22px; font-size: 18px; }
.steps-grid p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.bottom-cta { background: var(--ink); }
.bottom-cta-inner { min-height: 190px; }
.bottom-cta h2 { font-size: clamp(25px, 3vw, 36px); }
.button-light { color: var(--ink); border-radius: 6px; }

.account-header { background: #151514; }
.account-header .eyebrow { color: var(--accent-bright); }
.account-header-inner > div:first-child > p:last-child { font-size: 15px; }
.back-link { min-height: 44px; color: #e0e8e3; font-size: 14px; }
.account-user { gap: 12px; padding: 12px; border-radius: 8px; }
.account-user strong { font-size: 14px; }
.account-user small, .logout-button, .connection-status { font-size: 13px; }
.edit-profile-button, .logout-button { min-height: 44px; font-size: 13px; }
.account-content { padding-top: 42px; }
.panel-bar { gap: 12px; }
.panel-tab { min-height: 44px; font-size: 14px; }
.orders-grid { gap: 16px; }
.order-card { padding: 20px; border-radius: 8px; background: #fff; }
.order-card-top strong { font-size: 15px; }
.order-status { font-size: 11px; }
.order-card li, .order-card p { font-size: 13px; }
.order-card time, .seller-order-customer span { font-size: 12px; }
.chat-section-heading h2 { font-size: 30px; }
.chat-section-heading > p { color: var(--muted); font-size: 14px; }
.chat-layout { border-radius: 8px; }
.chat-sidebar, .conversation-option { background: #fff; }
.chat-sidebar-title { font-size: 14px; }
.conversation-option { min-height: 64px; }
.chat-messages { background: #f4f6f3; }
.chat-help, .chat-security-note, .message-author, .chat-empty, .message-time { color: var(--muted); }
.chat-composer textarea { min-height: 44px; font-size: 15px; }
.chat-composer button { min-width: 44px; min-height: 44px; }
.admin-form, .admin-row { border-radius: 8px; background: #fff; }
.admin-form label { font-size: 14px; }
.admin-form input, .password-form input { color: var(--ink); border-color: #aeb9b2; border-radius: 5px; background: #fff; }
.mini-button { min-height: 42px; font-size: 13px; }

.site-footer { background: #151514; color: #e7e3da; }
.footer-main { gap: 28px; }
.footer-main > p { color: #c9c4ba; font-size: 14px; }
.footer-main > a:last-child { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.footer-bottom { min-height: 54px; color: #c9c4ba; font-size: 12px; }
.privacy-settings { min-height: 44px; }

.auth-dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.auth-dialog::backdrop { background: rgba(14,27,24,.7); backdrop-filter: blur(2px); }
.auth-dialog h2 { font-size: 25px; }
.auth-intro, .form-error, .auth-privacy { color: var(--muted); font-size: 14px; }
.auth-tabs { margin-bottom: 20px; }
.auth-tab { min-height: 44px; color: #52615a; font-size: 14px; }
.auth-tab.is-active { color: var(--accent); }
.form-field label { font-size: 14px; }
.form-field input, .profile-dialog input, .profile-dialog textarea { min-height: 44px; color: var(--ink); border: 1px solid #aeb9b2; border-radius: 5px; background: #fff; font-size: 16px; }
.form-error { color: #8f261f; }
.form-success { color: #1a5c3a; }
.link-button { min-height: 44px; }
.dialog-close { min-width: 40px; min-height: 40px; border-radius: 5px; }
.notice { color: #fff; background: var(--ink); font-size: 14px; }

.privacy-consent {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(760px, calc(100% - 40px));
  padding: 22px;
  color: #fff;
  border: 1px solid #665322;
  border-radius: 10px;
  background: #201f1d;
  box-shadow: 0 12px 38px rgba(0,0,0,.28);
}
.privacy-consent h2 { margin: 0 0 7px; font: 700 17px/1.3 var(--display); }
.privacy-consent p { margin: 0; color: #e0e8e3; font-size: 14px; line-height: 1.5; }
.privacy-consent .privacy-consent-status { margin-top: 7px; color: #ffd980; }
.privacy-consent-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.privacy-consent-actions .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.privacy-consent-actions .button-secondary { color: #fff; border: 1px solid #ced8d2; background: transparent; }
.privacy-consent-close { min-height: 44px; padding: 8px; color: #fff; border: 0; border-radius: 4px; background: none; font: inherit; cursor: pointer; }

@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .trust-grid > div { padding-inline: 16px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .container, .hero-content { width: calc(100% - 40px); }
  .section-pad { padding: 68px 0; }
  .topbar { min-height: 34px; }
  .topbar-inner { min-height: 34px; }
  .topbar-inner > span { display: none; }
  .topbar a { min-height: 34px; margin-left: auto; }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 9px; }
  .header-account { padding: 8px 12px; font-size: 12px; }
  .menu-toggle { flex: 0 0 44px; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: #201f1d;
    box-shadow: 0 12px 24px rgba(20,35,32,.12);
  }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; color: #f4f0e7; border-bottom: 1px solid #393733; font-size: 15px; }
  .hero { min-height: min(640px, calc(100svh - 102px)); }
  .hero-image { top: auto; right: -20%; bottom: -7%; width: 82%; height: 75%; opacity: .2; mask-image: none; -webkit-mask-image: none; }
  .survey-illustration { width: min(100%, 430px); }
  .hero-shade { background: linear-gradient(90deg, rgba(21,21,20,.94), rgba(21,21,20,.72)); }
  .hero-content { padding: 66px 0 92px; }
  .hero h1 { font-size: clamp(40px, 10vw, 62px); }
  .hero-copy { max-width: 470px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .scroll-cue { left: 20px; bottom: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 26px; }
  .section-heading h2 { font-size: clamp(34px, 8.5vw, 46px); }
  .section-side-copy { max-width: 100%; margin: 0; font-size: 15px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid > div { padding: 18px 12px; border-top: 1px solid var(--line); border-left: 0; }
  .trust-grid > div:first-child { padding-left: 0; }
  .trust-grid > div:nth-child(-n+2) { border-top: 0; }
  .trust-grid strong { font-size: 17px; }
  .trust-grid span { font-size: 13px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 22px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 15px; }
  .quote-cart { position: static; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid article { min-height: 0; padding: 20px 0; }
  .steps-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .steps-grid h3 { margin: 12px 0 5px; }
  .bottom-cta-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; padding-block: 32px; }
  .account-header-inner { align-items: flex-start; flex-direction: column; gap: 18px; padding-block: 24px; }
  .account-user { width: 100%; flex-wrap: wrap; }
  .account-user > div { min-width: 0; flex: 1; }
  .edit-profile-button { margin-left: 0; }
  .logout-button { margin-left: auto; }
  .account-content { padding-top: 32px; padding-bottom: 60px; }
  .panel-bar { align-items: flex-start; }
  .panel-tabs { width: 100%; }
  .orders-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-section { margin-top: 42px; }
  .chat-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .chat-section-heading h2 { font-size: 26px; }
  .chat-layout { min-height: 570px; grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { max-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-list { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .conversation-option { min-width: 180px; border-right: 1px solid var(--line); border-bottom: 0; }
  .chat-help { display: none; }
  .chat-panel-header { min-height: 62px; padding: 10px 12px; }
  .chat-messages { min-height: 300px; padding: 13px; }
  .footer-main { min-height: 140px; flex-wrap: wrap; gap: 12px; padding-block: 22px; }
  .footer-main > p { order: 3; width: 100%; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; padding-block: 10px; }
  .auth-dialog { padding: 25px 21px; }
  .privacy-consent { right: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr); gap: 12px; width: calc(100% - 24px); padding: 16px; }
  .privacy-consent-actions { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .container, .hero-content { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .header-account { padding-inline: 9px; }
  .topbar { font-size: 11px; }
  .service-card { min-height: 0; padding: 18px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 8px; }
  .gallery-item figcaption { font-size: 12px; overflow-wrap: anywhere; }
  .lightbox { padding: 60px 12px 22px; }
  .lightbox img { max-width: calc(100vw - 48px); max-height: 74vh; }
  .privacy-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-consent-actions .button { width: 100%; padding-inline: 8px; }
  .privacy-consent-close { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body[data-page="home"] .shop,
body[data-page="home"] .gallery { display: none; }

.dedicated-page { min-height: 65vh; padding-top: 72px; padding-bottom: 100px; }
.page-intro { max-width: 720px; margin-bottom: 48px; }
.page-intro .eyebrow { color: var(--accent-bright); }
.page-intro h1, .auth-page-card h1 { margin: 12px 0 18px; font: 600 clamp(42px, 6vw, 68px)/1.04 var(--display); letter-spacing: -.05em; }
.page-intro h1 em, .auth-page-card h1 em { color: transparent; background: linear-gradient(100deg, #ffc61a, #ff6a00); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.page-intro > p:last-child, .auth-page-intro { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.quote-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.quote-page-layout .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-page-layout .quote-cart { position: sticky; top: 102px; }
.quote-cart-page h2 { margin: 0; color: var(--ink); font: 700 20px/1.3 var(--display); }
.quote-page-layout .service-card { min-height: 280px; }
.quote-page-layout .service-card h3 { min-height: 56px; }
.cart-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.cart-item button { flex: 0 0 auto; width: 30px; height: 30px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.cart-item button:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.page-notice { margin: 0 0 24px; padding: 14px 18px; color: #ecf7e8; border: 1px solid rgba(130,190,110,.4); border-radius: 8px; background: #1e3020; font-size: 14px; line-height: 1.6; }
.page-notice.is-error { color: #ffe5dd; border-color: rgba(255,120,80,.5); background: #3a211d; }
.page-notice:focus { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.auth-page { display: grid; place-items: start center; }
.auth-page-card { width: min(100%, 540px); padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: rgba(34,33,31,.94); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.auth-page-card > .eyebrow { color: var(--accent-bright); }
.auth-page-card h1 { font-size: clamp(36px, 5vw, 50px); }
.auth-page-intro { margin-bottom: 28px; font-size: 14px; }
.auth-page-card form .form-field { display: grid; gap: 8px; margin: 18px 0; }
.auth-page-card label { color: #e5e1d7; font-size: 13px; font-weight: 600; }
.auth-page-card input { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: #151514; }
.auth-page-card input:focus, .quote-cart-page input:focus, .quote-cart-page textarea:focus { outline: 2px solid var(--accent-bright); outline-offset: 1px; }
.auth-page-card .auth-submit { width: 100%; margin-top: 9px; }
.auth-forgot { margin-top: 16px; }
.auth-switch, .auth-privacy { color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-switch a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.auth-privacy { margin: 27px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.auth-page-card .link-button { color: var(--accent-bright); }

.gallery-page .page-intro { margin-bottom: 36px; }
.gallery-page .gallery-filters { margin-bottom: 24px; }
.gallery-page .gallery-cta { display: flex; justify-content: center; margin: 50px 0 0; }
.gallery-page .gallery-item { cursor: zoom-in; }
.gallery-page .gallery-item[aria-disabled="true"] { cursor: default; }
.brand-footer .brand-logo { width: 46px; height: 46px; }
.footer-main { gap: 24px; }
.header-account { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; text-align: center; }

@media (max-width: 850px) {
  .quote-page-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-page-layout .quote-cart { position: static; }
}
@media (max-width: 650px) {
  .dedicated-page { padding-top: 45px; padding-bottom: 70px; }
  .page-intro { margin-bottom: 32px; }
  .page-intro > p:last-child { font-size: 14px; }
  .quote-page-layout .service-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-page-layout .service-card { min-height: 0; }
  .quote-page-layout .service-card h3 { min-height: 0; }
  .auth-page-card { padding: 24px 20px; }
}

:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #a39f95;
  --paper: #141414;
  --white: #1a1a1a;
  --accent: #ffb400;
  --accent-2: #ff6a00;
  --line: rgba(255,255,255,.13);
  --dark-panel: #1d1c1a;
  --display: "Space Grotesk", "Manrope", sans-serif;
}

body {
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(135deg, rgba(255,255,255,.024) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.024) 50%, rgba(255,255,255,.024) 75%, transparent 75%);
  background-size: 6px 6px;
  background-attachment: fixed;
}
.container { width: min(1180px, calc(100% - 64px)); }
.topbar, .site-footer { color: #bdb8ac; background: #0c0c0c; }
.topbar-inner > span, .topbar a { color: #bdb8ac; }
.site-header { background: rgba(20,20,20,.92); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; }
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(255,180,0,.55);
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 0 0 3px rgba(255,180,0,.1), 0 6px 20px rgba(255,180,0,.2);
}
.main-nav a { color: #c9c4b8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a:hover { color: var(--accent); }
.header-account { padding-inline: 20px; border-radius: 8px; }

.hero { min-height: min(720px, calc(100svh - 112px)); background: #141414; }
.hero-image {
  inset: auto;
  top: 50%;
  right: max(1%, calc((100vw - 1300px)/2));
  display: block;
  width: min(560px, 42vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background-image: url("images/hero.png"), radial-gradient(circle, #3a2c0a, transparent 70%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
}
.hero-shade {
  background: linear-gradient(90deg, rgba(20,20,20,.9) 0%, rgba(20,20,20,.35) 45%, transparent 65%), radial-gradient(50% 70% at 78% 50%, rgba(255,180,0,.12), transparent 70%), linear-gradient(0deg, #141414, transparent 18%);
}
.hero-content { width: min(1180px, calc(100% - 64px)); padding: 75px 0 105px; }
.hero-eyebrow, .section-heading .eyebrow, .account-header .eyebrow { color: var(--accent); }
.hero h1 { max-width: 52%; font-size: clamp(38px, 4.4vw, 66px); letter-spacing: -.045em; }
.hero h1 em, h2 em {
  background: linear-gradient(100deg, #ffc61a, #ff6a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { max-width: 560px; color: #cfcabe; font-size: 18px; }
.button-primary {
  min-height: 52px;
  padding-inline: 30px;
  color: #1a1300;
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  background: linear-gradient(120deg, #ffc61a, #ff8a00);
  box-shadow: 0 6px 22px rgba(255,180,0,.22);
}
.button-primary:hover:not(:disabled), .header-account:hover { background: linear-gradient(120deg, #ffd44d, #ff9d2e); }
.hero-chat-link span { color: var(--accent); background: transparent; }
.hero-eyebrow > span, .scroll-cue span { color: var(--accent); background: var(--accent); }
.scroll-cue { color: #d4cfc5; }
.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, #141414 18px 36px);
  content: "";
  opacity: .9;
}
.trust-strip { position: relative; z-index: 2; background: #1d1c1a; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; }
.trust-grid > div { display: grid; align-content: center; gap: 4px; padding: 26px 24px 26px 0; border-color: var(--line); }
.trust-grid strong { color: var(--accent); }
.trust-grid span { color: var(--muted); }

.shop, .gallery, .reviews, .how-it-works { color: var(--ink); background: transparent; }
.section-heading h2, .account-content h2 { font-family: var(--display); }
.section-heading h2 em { color: transparent; }
.section-side-copy { color: var(--muted); }
.shop-layout { grid-template-columns: minmax(0, 1fr) 315px; gap: 22px; }
.service-grid { gap: 16px; }
.service-card, .quote-cart, .review-card, .review-form, .order-card,
.admin-form, .admin-row, .chat-sidebar, .conversation-option {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(34,33,31,.9);
}
.service-card { min-height: 316px; padding: 26px 26px 28px; box-shadow: none; }
.service-card:hover { border-color: rgba(255,180,0,.48); background: rgba(38,36,32,.96); box-shadow: 0 10px 28px rgba(0,0,0,.2); transform: translateY(-2px); }
.service-card.is-selected { border-color: rgba(255,180,0,.8); background: rgba(44,39,27,.96); box-shadow: inset 0 0 0 1px rgba(255,180,0,.4); }
.service-category, .service-number { color: #8b867a; }
.service-icon { width: 52px; height: 52px; padding: 11px; color: var(--accent); border: 1px solid rgba(255,180,0,.35); border-radius: 12px; background: rgba(255,180,0,.12); }
.service-card h3 { color: var(--ink); font: 700 20px/1.4 var(--display); }
.service-card p, .section-side-copy, .review-card p, .steps-grid p { color: var(--muted); }
.service-add { min-height: 48px; padding: 10px 16px; color: var(--ink); border: 1px solid rgba(255,180,0,.55); border-radius: 8px; background: transparent; font-size: 13px; font-weight: 700; }
.service-add:hover, .gallery-chip[aria-pressed="true"], .gallery-chip:hover { color: #1a1300; border-color: var(--accent); background: var(--accent); }
.quote-cart { top: 98px; padding: 26px 24px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.quote-cart .eyebrow { color: var(--accent); }
.cart-icon { color: var(--accent); border-color: rgba(255,180,0,.45); border-radius: 0; }
.cart-count { color: #1a1300; background: var(--accent); }
.cart-heading { border-color: var(--line); }
.cart-items { border-color: var(--line); }
.cart-empty, .cart-footnote, .service-category, .service-number { color: #8b867a; }
.quote-cart label, .form-field label { color: var(--ink); }
.quote-cart label span { color: #8b867a; }
.quote-cart input, .quote-cart textarea, .form-field input, .profile-dialog input,
.profile-dialog textarea, .review-form textarea, .admin-form input, .password-form input {
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.quote-cart input::placeholder, .quote-cart textarea::placeholder,
.form-field input::placeholder { color: #77736b; }
.gallery-item { border-color: var(--line); border-radius: 12px; background-color: #22211f; }
.gallery-item.is-image-missing { background-color: #22211f; }
.gallery-chip { color: #d8d2c7; border-color: rgba(255,255,255,.2); border-radius: 7px; background: #22211f; }
.review-card { border-left: 3px solid var(--accent); }
.review-stars, .star.on { color: var(--accent); }
.steps-grid article + article { border-color: var(--line); }
.bottom-cta, .account-header { color: var(--ink); background: #1d1c1a; }
.bottom-cta h2 { color: var(--ink); }
.button-light { color: #1a1300; background: linear-gradient(120deg, #ffc61a, #ff8a00); }
.chat-messages, .chat-layout { border-color: var(--line); background: #1a1917; }
.chat-help, .chat-security-note, .message-author, .chat-empty, .message-time { color: var(--muted); }
.auth-dialog, .profile-dialog { color: var(--ink); border-color: var(--line); background: #22211f; }
.auth-dialog h2, .auth-dialog .form-field, .profile-dialog h2 { color: var(--ink); }
.auth-intro, .auth-privacy, .form-error { color: var(--muted); }
.privacy-consent { border-color: rgba(255,180,0,.38); background: #22211f; }
.privacy-consent .privacy-consent-status { color: #ffd980; }
.notice { color: #1a1300; background: var(--accent); }
.site-footer { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero h1 { max-width: none; font-size: clamp(38px, 9vw, 60px); }
}
@media (max-width: 760px) {
  .container, .hero-content { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; }
  .brand-logo { width: 44px; height: 44px; border-radius: 11px; }
  .main-nav { border-color: var(--line); background: #1a1917; }
  .main-nav a { color: #c9c4b8; border-color: var(--line); }
  .hero { min-height: min(670px, calc(100svh - 103px)); }
  .hero-image { top: 50%; right: 50%; bottom: auto; width: min(520px, 100vw); height: auto; transform: translate(50%, -50%); opacity: .4; }
  .hero-shade { background: linear-gradient(180deg, rgba(20,20,20,.55), rgba(20,20,20,.75)); }
  .hero-content { padding: 60px 0 88px; }
  .hero h1 { font-size: clamp(38px, 10vw, 60px); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
  .trust-grid > div { padding: 18px 12px; }
}
@media (max-width: 390px) {
  .topbar { font-size: 11px; }
  .hero h1 { font-size: clamp(36px, 10vw, 42px); }
}

/* === Refinamento visual do painel e dos controlos === */
button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: #c9c4ba;
  border: 1px solid #3c3933;
  border-radius: 8px 8px 0 0;
  background: #22211f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.panel-tab:hover {
  color: #fff;
  border-color: rgba(255, 189, 0, .55);
  background: #2b2925;
}

.panel-tab.is-active {
  color: #17130a;
  border-color: #ffb800;
  background: linear-gradient(120deg, #ffc61a, #ff9500);
  box-shadow: 0 4px 14px rgba(255, 156, 0, .12);
}

.panel-tab:focus-visible,
.button:focus-visible,
.edit-profile-button:focus-visible,
.logout-button:focus-visible,
.link-button:focus-visible {
  outline: 2px solid #ffc61a;
  outline-offset: 3px;
}

.button,
.button-light,
.button-secondary,
.edit-profile-button,
.mini-button,
.link-button {
  transition: color .18s ease, background .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.button-secondary,
.edit-profile-button,
.mini-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: #f2eee5;
  border: 1px solid #514b40;
  border-radius: 7px;
  background: #292724;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.button-secondary:hover:not(:disabled),
.edit-profile-button:hover:not(:disabled),
.mini-button:hover:not(:disabled) {
  color: #ffc61a;
  border-color: #b88413;
  background: #332f26;
}

.button:disabled,
.button-secondary:disabled,
.edit-profile-button:disabled,
.mini-button:disabled {
  color: #8f897e;
  border-color: #393631;
  background: #292724;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .65;
}

.button-light {
  color: #17130a;
  border: 1px solid #ffb800;
  border-radius: 7px;
  background: linear-gradient(120deg, #ffc61a, #ff9500);
}

.button-light:hover:not(:disabled) {
  background: linear-gradient(120deg, #ffd84f, #ffad33);
}

.logout-button {
  min-height: 42px;
  padding: 8px 0 8px 14px;
  color: #d4cec3;
  font-size: 13px;
}

.logout-button:hover {
  color: #ffc61a;
}

.account-user {
  border-color: #454139;
  background: rgba(34, 33, 31, .65);
}

@media (max-width: 760px) {
  .panel-tabs {
    gap: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
  }

  .panel-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .account-user {
    width: 100%;
    flex-wrap: wrap;
  }

  .edit-profile-button {
    margin-left: auto;
  }
}

/* === Cartões do resumo do painel === */
#overview-panel .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

#overview-panel .stat-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #39362f;
  border-radius: 12px;
  background: linear-gradient(145deg, #242321, #1b1b1a);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

#overview-panel .stat-card strong {
  display: block;
  color: #ffc21a;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 750;
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

#overview-panel .stat-card span {
  display: block;
  color: #c5c0b5;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#overview-panel .stat-card.tone-warn {
  border-top: 3px solid #e6a23c;
}

#overview-panel .stat-card.tone-ok {
  border-top: 3px solid #45af75;
}

#overview-panel .stat-card.tone-danger {
  border-top: 3px solid #d65b55;
}

#overview-panel .overview-extra {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid #39362f;
  border-radius: 12px;
  background: #1d1d1b;
}

#overview-panel .overview-extra h3 {
  margin: 0 0 16px;
  color: #f5f0e6;
  font-size: 17px;
}

#overview-panel .check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#overview-panel .check-list li {
  padding: 12px 14px;
  border: 1px solid #39362f;
  border-radius: 8px;
  background: #252421;
  color: #ded8cc;
  font-size: 13px;
  line-height: 1.5;
}

#overview-panel .check-list li.is-ok {
  border-left: 3px solid #45af75;
}

#overview-panel .check-list li.is-bad {
  border-left: 3px solid #e6a23c;
}

@media (max-width: 1000px) {
  #overview-panel .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #overview-panel .stat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #overview-panel .stat-card {
    min-height: 88px;
    padding: 16px;
    gap: 8px;
  }

  #overview-panel .overview-extra {
    padding: 16px;
  }
}

/* Cadastro Norte — refinamento visual da versão de teste */
:root {
  color-scheme: dark;
  --cn-bg: #171715;
  --cn-panel: #22211f;
  --cn-panel-hover: #2b2925;
  --cn-border: #454039;
  --cn-text: #f5f1e8;
  --cn-muted: #b9b1a3;
  --cn-gold: #ffb900;
}

button,
input,
select,
textarea {
  font: inherit;
  border-radius: 8px;
}

input,
select,
textarea {
  color-scheme: dark;
  color: var(--cn-text);
  background-color: var(--cn-panel) !important;
  border: 1px solid var(--cn-border) !important;
  padding: 10px 12px;
  max-width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--cn-muted);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--cn-gold);
  outline-offset: 2px;
}

select option {
  color: var(--cn-text);
  background: var(--cn-panel);
}

button {
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease;
}

button:hover {
  border-color: var(--cn-gold);
}

img {
  max-width: 100%;
}

#overview-panel .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#overview-panel .stat-grid > * {
  min-width: 0;
  border: 1px solid var(--cn-border);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(145deg, #26241f, #1d1c1a);
}

#overview-panel .stat-grid > *:hover {
  background: var(--cn-panel-hover);
}

#overview-panel .stat-grid > *:first-child {
  border-top: 2px solid var(--cn-gold);
}

#overview-panel {
  color: var(--cn-text);
}

@media (max-width: 1000px) {
  #overview-panel .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #overview-panel .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #overview-panel .stat-grid > * {
    padding: 14px;
  }
}

/* === Cadastro Norte: galeria refinada (ambiente de teste) === */
.gallery-page .gallery-grid,
#galeria .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
  align-items: stretch;
}

.gallery-page .gallery-item,
#galeria .gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #22211f;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: border-color .2s ease, transform .2s ease,
              box-shadow .2s ease;
}

.gallery-page .gallery-item:hover,
#galeria .gallery-item:hover {
  border-color: rgba(255,185,0,.65);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  transform: translateY(-3px);
}

.gallery-page .gallery-item img,
#galeria .gallery-item img {
  display: block;
  width: 100%;
  height: 230px;
  flex: 0 0 230px;
  object-fit: cover;
  object-position: center;
  background: #292722;
}

.gallery-page .gallery-item figcaption,
#galeria .gallery-item figcaption {
  position: static;
  display: block;
  min-height: 72px;
  padding: 15px 16px;
  overflow-wrap: anywhere;
  color: #f5f1e8;
  background: #22211f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.gallery-page .gallery-item span,
#galeria .gallery-item span {
  color: #ffca45;
  background: #292722;
}

.gallery-page .gallery-filters,
#galeria .gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gallery-page .gallery-chip,
#galeria .gallery-chip {
  color: #e8e1d4;
  border: 1px solid #454039;
  border-radius: 999px;
  background: #242320;
}

.gallery-page .gallery-chip:hover,
.gallery-page .gallery-chip.active,
#galeria .gallery-chip:hover,
#galeria .gallery-chip.active {
  color: #1a160c;
  border-color: #ffb900;
  background: #ffb900;
}

@media (max-width: 900px) {
  .gallery-page .gallery-grid,
  #galeria .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-page .gallery-item img,
  #galeria .gallery-item img {
    height: 200px;
    flex-basis: 200px;
  }
}

@media (max-width: 540px) {
  .gallery-page .gallery-grid,
  #galeria .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-page .gallery-item img,
  #galeria .gallery-item img {
    height: 220px;
    flex-basis: 220px;
  }
}

/* Menus e campos: evitar fundos brancos inesperados */
select,
select option {
  color: #f5f1e8;
  background-color: #242320;
}

input,
select,
textarea {
  border-color: #454039;
  border-radius: 9px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #ffb900;
  outline-offset: 2px;
}

/* === Painel do vendedor: melhorias visuais — TESTE === */

/* Cartões de pedidos */
.orders-grid {
  gap: 16px;
}

.order-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #22211f;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transition: border-color .2s ease, transform .2s ease;
}

.order-card:hover {
  border-color: rgba(255,185,0,.5);
  transform: translateY(-2px);
}

.order-card-top {
  flex-wrap: wrap;
  align-items: flex-start;
}

.order-card-top strong {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.order-card p {
  color: #c5bfb3;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.order-card ul {
  gap: 8px;
}

.order-card li {
  padding: 7px 10px;
  border: 1px solid #454039;
  border-radius: 7px;
  color: #e8e1d4;
  background: #292722;
  font-size: 12px;
  line-height: 1.5;
}

.order-card time {
  color: #a8a195;
  font-size: 12px;
  line-height: 1.6;
}

.seller-order-customer {
  gap: 6px;
  padding-top: 14px;
  border-color: var(--line);
}

.seller-order-customer strong {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.seller-order-customer span {
  color: #b8b1a5;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Conversas */
.chat-layout {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a1917;
}

.chat-sidebar,
.conversation-option {
  color: var(--ink);
  background: #22211f;
}

.chat-sidebar-title {
  padding: 18px;
  border-color: var(--line);
  color: var(--ink);
  font-size: 14px;
}

.conversation-option {
  gap: 12px;
  min-height: 68px;
  padding: 13px;
  border-color: var(--line);
  text-align: left;
  transition: background .2s ease;
}

.conversation-option:hover,
.conversation-option.is-active {
  background: #343027;
}

.conversation-option-text strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.conversation-option-text small {
  color: #b8b1a5;
  font-size: 12px;
  line-height: 1.5;
}

.chat-sidebar-empty {
  color: #b8b1a5;
  font-size: 13px;
  line-height: 1.7;
}

.chat-messages {
  color: var(--ink);
  background: #1a1917;
}

.chat-help,
.chat-security-note,
.message-author,
.chat-empty,
.message-time {
  color: #b8b1a5;
}

/* Formulários e acessibilidade */
input,
select,
textarea {
  max-width: 100%;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffb900;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .order-card {
    padding: 17px;
  }

  .chat-layout {
    border-radius: 10px;
  }

  .conversation-option {
    min-width: 200px;
  }
}


/* === Chat melhorado — apenas ambiente de teste === */

.chat-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #22211f;
}

.chat-panel-header strong {
  color: #f5f1e8;
  font-size: 14px;
}

.chat-panel-header small {
  color: #b8b1a5;
  font-size: 12px;
}

.chat-messages {
  display: flex;
  min-height: 340px;
  gap: 18px;
  padding: 24px;
  background: #191816;
}

.message-row {
  width: fit-content;
  max-width: min(78%, 560px);
  gap: 6px;
}

.message-row.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.message-author {
  color: #c8c0b3;
  font-size: 12px;
  line-height: 1.5;
}

.message-bubble {
  padding: 12px 16px;
  border: 1px solid #454039;
  border-radius: 4px 16px 16px 16px;
  color: #f5f1e8;
  background: #302e29;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-row.is-mine .message-bubble {
  border-color: #725719;
  border-radius: 16px 4px 16px 16px;
  color: #fff8e8;
  background: #51401d;
}

.message-time {
  padding: 0 3px;
  color: #aaa294;
  font-size: 11px;
}

.chat-composer {
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #22211f;
}

.chat-composer textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #454039;
  border-radius: 10px;
  color: #f5f1e8;
  background: #191816;
  font-size: 14px;
  line-height: 1.5;
}

.chat-composer textarea::placeholder {
  color: #aaa294;
}

.chat-composer button {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 10px;
}

.chat-security-note {
  padding-top: 4px;
  color: #aaa294;
  font-size: 11px;
}

@media (max-width: 760px) {
  .chat-messages {
    min-height: 340px;
    padding: 16px;
    gap: 15px;
  }

  .message-row {
    max-width: 92%;
  }

  .message-bubble {
    padding: 11px 13px;
    font-size: 14px;
  }

  .chat-composer {
    padding: 12px;
  }
}


/* Ajuste final da área de conversas — TESTE */
.chat-layout {
  min-height: 520px;
}

.chat-messages {
  min-height: 360px;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px;
}

.message-row {
  max-width: min(75%, 600px);
}

.message-row.is-mine {
  margin-left: auto;
}

.message-bubble {
  min-width: 44px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.chat-panel-header {
  min-height: 76px;
}

@media (max-width: 760px) {
  .chat-layout {
    min-height: 500px;
  }

  .chat-messages {
    min-height: 340px;
    padding: 16px;
  }

  .message-row {
    max-width: 92%;
  }
}


/* === Alinhamento final das mensagens — TESTE === */

.chat-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.chat-layout > * {
  min-width: 0;
}

.chat-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.chat-messages {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 360px;
  align-items: stretch;
}

.message-row {
  align-self: flex-start;
  width: fit-content;
  max-width: min(78%, 600px);
}

.message-row.is-mine {
  align-self: flex-end;
}

.message-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-row.is-mine .message-head {
  flex-direction: row-reverse;
}

.message-row .avatar-small {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  font-size: 10px;
}

.message-author {
  font-size: 12px;
}

.message-bubble {
  width: fit-content;
  max-width: 100%;
  min-width: 48px;
  margin-top: 2px;
  font-size: 14px;
}

.message-time {
  font-size: 11px;
}

.chat-composer {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-row {
    max-width: 92%;
  }
}


/* === Cadastro Norte: layout seller + buyer | TESTE === */

:root {
  --account-surface: #22211f;
  --account-surface-raised: #292722;
  --account-border: #454039;
  --account-text: #f5f1e8;
  --account-muted: #b8b1a5;
}

/* Cabeçalho da área reservada */
.account-header {
  background: #1d1c1a;
  border-bottom: 1px solid var(--account-border);
}

.account-header-inner {
  min-height: 190px;
  gap: 28px;
  padding-block: 30px;
}

.account-header h1 {
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.account-header-inner > div:first-child > p:last-child {
  max-width: 650px;
  color: var(--account-muted);
  line-height: 1.7;
}

/* Navegação entre secções */
.account-tabs,
.account-nav,
[data-account-tabs] {
  gap: 8px;
}

.account-tabs button,
.account-tabs a,
.account-nav button,
.account-nav a {
  border-radius: 9px 9px 0 0;
  transition: background .2s ease, border-color .2s ease;
}

/* Superfícies e cartões */
#account-view .panel,
#account-view .stat-card,
#account-view .overview-extra,
#account-view .order-card,
#account-view .admin-form,
#account-view .admin-row,
#account-view .review-card,
#account-view .review-form,
#account-view .service-card {
  color: var(--account-text);
  border-color: var(--account-border);
}

#account-view .order-card,
#account-view .admin-form,
#account-view .admin-row,
#account-view .review-card,
#account-view .review-form {
  border-radius: 12px;
  background: var(--account-surface);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

#account-view .orders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#account-view .order-card {
  min-width: 0;
  padding: 20px;
}

#account-view .order-card-top {
  flex-wrap: wrap;
  gap: 10px;
}

#account-view .order-card-top strong {
  color: var(--account-text);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#account-view .order-card p,
#account-view .order-card time,
#account-view .seller-order-customer span {
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#account-view .order-card li {
  border: 1px solid var(--account-border);
  border-radius: 7px;
  color: #e8e1d4;
  background: var(--account-surface-raised);
  font-size: 12px;
  line-height: 1.5;
}

#account-view .seller-order-customer strong {
  color: var(--account-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* Formulários e campos */
#account-view input,
#account-view select,
#account-view textarea {
  max-width: 100%;
  border-color: var(--account-border);
  border-radius: 9px;
}

#account-view input:focus-visible,
#account-view select:focus-visible,
#account-view textarea:focus-visible,
#account-view button:focus-visible {
  outline: 2px solid #ffb900;
  outline-offset: 2px;
}

/* Chat */
#account-view .chat-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: #1a1917;
}

#account-view .chat-sidebar {
  min-width: 0;
  background: #22211f;
  border-color: var(--account-border);
}

#account-view .conversation-option {
  min-width: 0;
  border-color: var(--account-border);
  background: #22211f;
}

#account-view .conversation-option:hover,
#account-view .conversation-option.is-active {
  background: #343027;
}

#account-view .chat-panel-header,
#account-view .chat-composer {
  background: var(--account-surface);
  border-color: var(--account-border);
}

#account-view .chat-messages {
  min-width: 0;
  background: #191816;
}

#account-view .chat-composer textarea {
  min-width: 0;
  color: var(--account-text);
  background: #191816;
  border-color: var(--account-border);
}

/* Diálogo de perfil */
#profile-dialog {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--account-border);
  border-radius: 16px;
  color: var(--account-text);
  background: var(--account-surface);
}

#profile-dialog input,
#profile-dialog textarea {
  color: var(--account-text);
  background: #191816;
}

/* Adaptação a tablets e telemóveis */
@media (max-width: 900px) {
  #account-view .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-header-inner {
    min-height: 0;
    gap: 20px;
    padding-block: 25px;
  }

  #account-view .orders-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #account-view .order-card {
    padding: 17px;
  }

  #account-view .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #account-view *,
  .account-header * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* === Acabamento seller + buyer | ambiente de teste === */

/* Conteúdo e separadores */
.account-content {
  padding-top: 28px;
  padding-bottom: 56px;
}

.panel-bar {
  margin-bottom: 24px;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.panel-tabs button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #454039;
  border-radius: 9px 9px 0 0;
  color: #ded8cc;
  background: #22211f;
  font-size: 13px;
}

.panel-tabs button[aria-selected="true"],
.panel-tabs button.active {
  color: #19150c;
  border-color: #ffb900;
  background: #ffb900;
}

/* Títulos de secção */
.dashboard-heading {
  margin-bottom: 22px;
}

.dashboard-heading h2 {
  color: #f5f1e8;
  line-height: 1.2;
}

.dashboard-heading .eyebrow {
  margin-bottom: 8px;
}

/* Resumo */
#overview-panel .stat-grid {
  gap: 16px;
  margin-bottom: 24px;
}

#overview-panel .stat-card {
  min-height: 120px;
  padding: 22px;
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease;
}

#overview-panel .stat-card:hover {
  transform: translateY(-2px);
  border-color: #66562e;
}

#overview-panel .overview-extra {
  margin-top: 10px;
  padding: 24px;
  border-radius: 14px;
}

/* Avisos do sistema: manter o texto e os estados originais */
#overview-panel .check-list li {
  padding: 14px 16px;
  border-radius: 9px;
  line-height: 1.65;
}

/* Pedidos */
#account-view .orders-grid {
  align-items: stretch;
  gap: 18px;
}

#account-view .order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
}

#account-view .order-card-top {
  align-items: flex-start;
}

#account-view .seller-order-customer {
  margin-top: auto;
  padding-top: 16px;
}

/* Listas de clientes, serviços e administração */
#account-view .admin-list {
  display: grid;
  gap: 12px;
}

#account-view .admin-row,
#account-view .admin-form {
  padding: 20px;
  border-radius: 12px;
}

#account-view .admin-form {
  gap: 18px;
}

#account-view .admin-form label {
  line-height: 1.6;
}

/* Perfil e ações */
.account-user {
  border: 1px solid #454039;
  border-radius: 12px;
  background: #22211f;
}

.edit-profile-button,
.logout-button {
  min-height: 40px;
  border-radius: 8px;
}

/* Acessibilidade e adaptação */
#account-view button,
#account-view input,
#account-view select,
#account-view textarea {
  font-family: inherit;
}

@media (max-width: 760px) {
  .account-content {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .panel-bar {
    margin-bottom: 18px;
  }

  .panel-tabs {
    gap: 6px;
  }

  .panel-tabs button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  #overview-panel .stat-grid {
    gap: 12px;
  }

  #overview-panel .stat-card {
    min-height: 96px;
    padding: 17px;
  }

  #overview-panel .overview-extra {
    padding: 17px;
  }

  #account-view .order-card,
  #account-view .admin-row,
  #account-view .admin-form {
    padding: 16px;
  }
}


/* === Acabamento do resumo seller e buyer — TESTE === */

/* Cartões de indicadores */
#overview-panel .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

#overview-panel .stat-card {
  position: relative;
  min-height: 116px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #454039;
  border-radius: 14px;
  background: linear-gradient(145deg, #272520, #1d1c1a);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  transition: transform .18s ease, border-color .18s ease;
}

#overview-panel .stat-card:hover {
  transform: translateY(-2px);
  border-color: #75602d;
}

#overview-panel .stat-card strong {
  color: #ffbf18;
  font-size: clamp(27px, 2.4vw, 35px);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

#overview-panel .stat-card span {
  color: #d0c9bc;
  font-size: 13px;
  line-height: 1.55;
}

/* Estados dos indicadores */
#overview-panel .stat-card.tone-warn {
  border-top: 3px solid #e6a23c;
}

#overview-panel .stat-card.tone-ok {
  border-top: 3px solid #45af75;
}

#overview-panel .stat-card.tone-danger {
  border-top: 3px solid #d65b55;
}

/* Área de apoio do buyer e estado do seller */
#overview-panel .overview-extra {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid #454039;
  border-radius: 14px;
  background: #201f1c;
}

#overview-panel .overview-extra h3 {
  margin-bottom: 17px;
  color: #f5f1e8;
  font-size: 18px;
  line-height: 1.4;
}

#overview-panel .overview-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#overview-panel .overview-cta p {
  flex: 1 1 100%;
  margin: 0 0 4px;
  color: #e2dbcf;
  font-size: 15px;
  line-height: 1.75;
}

#overview-panel .overview-cta .button {
  min-height: 44px;
  padding: 12px 19px;
  border-radius: 9px;
}

/* Avisos: manter integralmente o conteúdo e os estados */
#overview-panel .check-list {
  gap: 11px;
}

#overview-panel .check-list li {
  padding: 14px 16px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.65;
}

/* Navegação do painel */
.panel-bar {
  gap: 16px;
}

.panel-tabs {
  gap: 7px;
}

.panel-tabs button,
.panel-tabs a {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 9px 9px 0 0;
}

/* Cabeçalho e perfil */
.account-user {
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #454039;
  border-radius: 12px;
  background: #22211f;
}

.account-user small {
  overflow-wrap: anywhere;
}

/* Layout responsivo */
@media (max-width: 1000px) {
  #overview-panel .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #overview-panel .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #overview-panel .stat-card {
    min-height: 100px;
    padding: 15px;
  }

  #overview-panel .stat-card strong {
    font-size: 27px;
  }

  #overview-panel .stat-card span {
    font-size: 12px;
  }

  #overview-panel .overview-extra {
    padding: 17px;
  }

  #overview-panel .overview-cta {
    align-items: stretch;
  }

  #overview-panel .overview-cta .button {
    justify-content: center;
  }

  .account-user {
    align-items: center;
  }
}


/* === Layout dos pedidos buyer + seller — TESTE === */

#account-view .orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

#account-view .order-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid #454039;
  border-radius: 14px;
  color: #f5f1e8;
  background: linear-gradient(145deg, #272520, #1d1c1a);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

#account-view .order-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #454039;
}

#account-view .order-card-top strong {
  color: #f5f1e8;
  font-size: 16px;
  line-height: 1.4;
}

#account-view .order-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
}

#account-view .order-card li {
  padding: 7px 10px;
  border: 1px solid #454039;
  border-radius: 8px;
  color: #e8e1d4;
  background: #292722;
  font-size: 12px;
  line-height: 1.5;
}

#account-view .order-card p {
  margin: 0;
  color: #d0c9bc;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#account-view .order-card time {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #454039;
  color: #b8b1a5;
  font-size: 12px;
  line-height: 1.5;
}

#account-view .seller-order-customer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #454039;
}

@media (max-width: 760px) {
  #account-view .orders-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  #account-view .order-card {
    padding: 17px;
  }
}


/* Ajustar a largura dos pedidos conforme a quantidade */
#account-view .orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

/* Um único pedido: usar toda a largura disponível */
#account-view .orders-grid > .order-card:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

/* Cartões consistentes em ecrãs pequenos */
@media (max-width: 760px) {
  #account-view .orders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #account-view .orders-grid > .order-card:only-child {
    grid-column: auto;
  }
}


/* === Conversa do buyer: refinamento visual — TESTE === */

#account-view .chat-layout {
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 500px;
  border-radius: 14px;
}

#account-view .chat-sidebar-title {
  padding: 16px;
  font-size: 13px;
}

#account-view .conversation-option {
  gap: 10px;
  padding: 13px 12px;
}

#account-view .conversation-option-text strong {
  font-size: 13px;
  line-height: 1.5;
}

#account-view .conversation-option-text small {
  font-size: 12px;
  line-height: 1.5;
}

#account-view .chat-panel-header {
  min-height: 70px;
  padding: 14px 18px;
}

#account-view .chat-messages {
  gap: 22px;
  padding: 22px;
}

#account-view .message-row {
  max-width: min(78%, 560px);
}

#account-view .message-bubble {
  padding: 12px 15px;
  border-radius: 12px;
  line-height: 1.6;
}

#account-view .message-time {
  margin-top: 3px;
  font-size: 11px;
}

#account-view .chat-composer {
  gap: 10px;
  padding: 14px;
}

#account-view .chat-composer textarea {
  min-height: 46px;
  border-radius: 10px;
}

@media (max-width: 760px) {
  #account-view .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #account-view .chat-sidebar {
    max-height: 145px;
  }

  #account-view .chat-messages {
    min-height: 300px;
    padding: 15px;
  }

  #account-view .message-row {
    max-width: 92%;
  }
}


/* Correcao visual controlada - outubro 2026 */
.container {
  width: min(1320px, calc(100% - 64px));
}

.topbar,
.topbar-inner > span {
  font-size: 12px;
}

.main-nav {
  gap: clamp(14px, 2vw, 30px);
}

.main-nav a {
  font-size: 13px;
}

.header-account {
  font-size: 13px;
  min-height: 44px;
}

.eyebrow,
.service-category,
.service-number {
  font-size: 11px;
}

.button,
.service-add {
  font-size: 14px;
}

.service-card p,
.section-side-copy,
.cart-empty,
.cart-item,
.quote-cart label,
.quote-cart input,
.quote-cart textarea,
.cart-footnote {
  font-size: 14px;
  line-height: 1.6;
}

.quote-page-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px;
}

.quote-page-layout .service-grid {
  gap: 16px;
}

.quote-page-layout .service-card {
  min-height: 300px;
  padding: 26px;
}

.quote-page-layout .service-card h3 {
  font-size: 20px;
  min-height: 0;
}

.quote-cart-page {
  padding: 28px;
}

@media (max-width: 850px) {
  .container {
    width: calc(100% - 36px);
  }

  .quote-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-page-layout .quote-cart {
    position: static;
  }
}

@media (max-width: 650px) {
  .quote-page-layout .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-page-layout .service-card {
    min-height: 0;
    padding: 20px;
  }

  .quote-cart-page {
    padding: 20px;
  }

  .main-nav a {
    font-size: 12px;
  }
}

/* CORRECAO DO ALINHAMENTO DO PERFIL DO VENDEDOR */
#profile-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px;
}

#profile-form > label,
#password-form > label {
  display: block !important;
  width: 100%;
  margin: 0 0 16px;
  color: var(--account-text);
  font-size: 14px;
  line-height: 1.5;
}

#profile-form > label input,
#profile-form > label textarea,
#password-form > label input {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 12px;
  color: var(--account-text);
  border: 1px solid var(--account-border);
  border-radius: 7px;
  background: #191816;
  font-size: 15px;
}

#profile-form > label textarea {
  min-height: 100px;
  resize: vertical;
}

#profile-form > button[type="submit"],
#password-form .password-actions {
  margin-top: 10px;
}

#password-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--account-border);
}

#profile-dialog .avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 22px;
}

@media (max-width: 560px) {
  #profile-dialog {
    padding: 22px 18px;
  }

  #profile-dialog .password-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* CORRECAO FORCADA DO FORMULARIO DO PERFIL */
#profile-dialog #profile-form > label,
#profile-dialog #password-form > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  float: none !important;
  clear: both !important;
  line-height: 1.5 !important;
}

#profile-dialog #profile-form > label input,
#profile-dialog #profile-form > label textarea,
#profile-dialog #password-form > label input {
  display: block !important;
  position: static !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

#profile-dialog #profile-form > label textarea {
  min-height: 110px !important;
}

#profile-dialog #profile-form,
#profile-dialog #password-form {
  display: block !important;
  width: 100% !important;
}

#profile-dialog .password-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

