:root {
  --ink: #111a27;
  --ink-2: #273343;
  --slate: #46525e;
  --slate-deep: #39444f;
  --paper: #f5f3ee;
  --warm-gray: #ebe8e1;
  --white: #fff;
  --muted: #66717e;
  --line: #d9d9d4;
  --line-dark: #697581;
  --red: #d63f45;
  --red-dark: #b62e35;
  --mint: #b9e8d3;
  --blue: #c9dff4;
  --sand: #e6dbc2;
  --success: #168460;
  --warning: #b87513;
  --radius: 3px;
  --shadow: 0 24px 70px rgba(17, 26, 39, .13);
  --shell: min(1180px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); }
.app-view .site-header,
.app-view .site-footer { display: none; }
.dashboard-active { background: var(--warm-gray); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 12px 16px; background: var(--white); }
.skip-link:focus { top: 20px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.93); border-bottom: 1px solid rgba(17,26,39,.1); backdrop-filter: blur(16px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-shell > *, .hero-grid > *, .form-pair > * { min-width: 0; }
.brand { appearance: none; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 12px; padding: 0; text-align: left; }
.brand-logo { display: block; width: 46px; height: 46px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; background: var(--red); color: var(--white); font-weight: 800; font-size: 14px; letter-spacing: -.04em; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; letter-spacing: -.03em; }
.brand-copy small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.brand.compact .brand-logo, .brand.compact .brand-mark { width: 38px; height: 38px; }
.brand.compact .brand-copy strong { font-size: 15px; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.desktop-nav button, .site-footer button { border: 0; padding: 0; background: transparent; font-size: 13px; }
.desktop-nav button:hover, .site-footer button:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-picker select { min-width: 62px; height: 42px; border: 1px solid var(--line); background: transparent; padding: 0 10px; font-size: 12px; font-weight: 700; }

.button { border: 1px solid transparent; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; font-weight: 700; transition: .2s ease; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-dark { color: white; background: var(--slate); border-color: var(--slate); }
.button-ghost { background: transparent; border-color: var(--line); }
.button-light { background: white; color: var(--ink); }
.button-large { min-height: 54px; padding-inline: 23px; }
.button-full { width: 100%; justify-content: space-between; }
.text-link { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 8px 0; display: inline-flex; gap: 20px; font-size: 13px; font-weight: 700; }

.view { display: none; }
.view.active { display: block; }
.hero { position: relative; min-height: 696px; padding: 92px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(17,26,39,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,26,39,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to right, #000, transparent 78%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .8fr); gap: 86px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 800; color: var(--muted); }
.eyebrow > span:first-child { width: 30px; height: 2px; background: var(--red); }
.hero h1 { margin: 22px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(54px, 6vw, 82px); line-height: .95; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--red); font-weight: 400; }
.hero-lede { max-width: 650px; font-size: 18px; line-height: 1.65; color: #46515e; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.hero-proof b { color: var(--success); margin-right: 5px; }
.hero-watermark { position: absolute; right: -45px; bottom: -95px; font-size: 340px; line-height: 1; font-weight: 900; letter-spacing: -.12em; color: rgba(17,26,39,.025); pointer-events: none; }

.quote-preview { background: white; padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.quote-preview-top { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.micro-label { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 800; color: var(--red); letter-spacing: .16em; text-transform: uppercase; }
.quote-preview h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.live-pill { align-self: start; white-space: nowrap; background: #eef7f2; color: var(--success); padding: 7px 9px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.live-pill i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: var(--success); }
.preview-form { display: grid; gap: 16px; padding: 22px 0; }
.preview-form label, .login-card label { display: grid; gap: 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.preview-form select, .preview-form input, .login-card input { width: 100%; height: 47px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); background: #fbfbf8; font-size: 13px; text-transform: none; letter-spacing: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 9px; align-items: end; }
.form-pair.equal { grid-template-columns: 1fr 1fr; }
.swap-button { height: 47px; border: 0; background: var(--paper); }
.preview-total { border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 19px 0; }
.preview-total div { display: grid; gap: 5px; font-size: 11px; font-weight: 700; }
.preview-total small { font-weight: 400; color: var(--muted); }
.preview-total strong { font-size: 25px; letter-spacing: -.04em; }

.service-strip { background: var(--warm-gray); color: var(--ink); min-height: 72px; display: grid; align-items: center; border-top: 1px solid #d3cec5; border-bottom: 1px solid #d3cec5; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.strip-inner > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.strip-inner > div { display: flex; align-items: center; gap: 26px; color: var(--ink-2); font-family: Georgia, serif; font-size: 16px; }
.strip-inner i { width: 3px; height: 3px; border-radius: 50%; background: var(--red); }

.section { padding: 116px 0; }
.section-heading { margin-bottom: 52px; }
.split-heading { display: grid; grid-template-columns: .45fr 1fr; }
.split-heading > div:first-child, .dark-heading > div:first-child { display: flex; align-items: flex-start; gap: 14px; }
.section-index { color: var(--red); font-size: 10px; font-weight: 800; }
.kicker { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.split-heading h2, .dark-heading h2, .authority-copy h2, .faq-grid h2, .cta-section h2 { font-family: Georgia, serif; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; margin: 0 0 20px; }
.split-heading p { max-width: 600px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.service-grid.two-services { grid-template-columns: repeat(2, 1fr); }
.service-card { position: relative; min-height: 490px; display: flex; flex-direction: column; padding: 30px; background: rgba(255,255,255,.45); border-right: 1px solid var(--line); transition: .25s ease; }
.service-card:last-child { border-right: 0; }
.service-card:hover { background: white; transform: translateY(-4px); box-shadow: 0 14px 40px rgba(17,26,39,.08); z-index: 2; }
.service-card.featured { background: white; }
.card-number { position: absolute; top: 24px; right: 24px; color: #a9afb5; font-size: 10px; font-weight: 800; }
.service-icon { width: 62px; height: 62px; display: grid; place-items: center; background: var(--paper); margin: 48px 0 34px; }
.service-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.service-card h3 { font-family: Georgia, serif; font-size: 26px; margin: 0 0 14px; font-weight: 500; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.service-card ul { list-style: none; padding: 0; margin: 16px 0 30px; display: grid; gap: 10px; color: #485360; font-size: 12px; }
.service-card li::before { content: "—"; margin-right: 8px; color: var(--red); }
.service-card button { margin-top: auto; display: flex; justify-content: space-between; padding: 15px 0 4px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.pricing-section { padding-top: 94px; background: var(--warm-gray); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-plan { min-height: 420px; padding: 30px; background: var(--white); border: 1px solid #d9dee2; display: flex; flex-direction: column; }
.price-plan.featured { border-top: 4px solid var(--red); padding-top: 27px; }
.price-plan-head { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.price-plan-head b { color: var(--ink); }
.price-plan > strong { margin: 42px 0 18px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); font-weight: 500; letter-spacing: -.045em; }
.price-plan > strong small { font-family: Inter, sans-serif; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.price-plan .price-tax-note { display: block; margin: -10px 0 18px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.price-plan > p { max-width: 570px; margin: 0 0 34px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.price-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.price-meta > span { display: grid; gap: 6px; }
.price-meta b { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-meta small { color: var(--ink-2); line-height: 1.45; }
.original-fee { position: relative; }
.price-label-with-info { display: flex; align-items: center; gap: 7px; }
.info-tip { width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #aab3bb; border-radius: 50%; background: #f5f7f8; color: var(--ink-2); font: 700 11px/1 Georgia, serif; text-transform: none; cursor: help; }
.info-tip:hover, .info-tip:focus-visible { border-color: var(--red); color: var(--red); outline: 0; }
.info-tooltip { position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 8; width: min(330px, 78vw); display: block; padding: 14px 16px; border: 1px solid #7a8691; background: var(--slate-deep); color: var(--white); box-shadow: 0 12px 30px rgba(17,26,39,.18); font-size: 11px; font-weight: 400; line-height: 1.55; text-transform: none; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; pointer-events: none; }
.original-fee:hover .info-tooltip, .original-fee:focus-within .info-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.delivery-overview { margin-top: 18px; padding: 34px; border: 1px solid #d9dee2; background: #f7f8f8; color: var(--ink); }
.delivery-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.delivery-heading h3 { margin: 8px 0 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.delivery-heading p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.delivery-grid article { min-height: 250px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.delivery-grid article:last-child { border-right: 0; }
.delivery-grid article > span { color: var(--muted); font-size: 9px; }
.delivery-grid h4 { min-height: 44px; margin: 25px 0 10px; font-size: 15px; }
.delivery-grid p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.delivery-grid b { margin-top: auto; color: #11715e; font-size: 15px; }
.delivery-grid small { margin-top: 6px; color: var(--muted); }
.public-contact-panel { margin-top: 22px; padding: 26px; border: 1px solid #d9dee2; background: var(--white); }
.public-contact-panel h3 { margin: 8px 0 18px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.public-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.public-contact-grid article { display: grid; gap: 8px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.public-contact-grid strong { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.public-contact-grid span { font-weight: 700; overflow-wrap: anywhere; }
.public-contact-grid small { color: var(--muted); line-height: 1.45; }
.original-warning { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 18px; border: 1px solid rgba(214,63,69,.35); background: rgba(214,63,69,.08); color: var(--ink); }
.original-warning > span { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font-weight: 800; }
.original-warning strong { font-size: 12px; }
.original-warning p { margin: 5px 0 0; color: inherit; opacity: .72; font-size: 11px; line-height: 1.55; }

.legal-heading { margin-bottom: 42px; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; }
.legal-table { width: 100%; min-width: 850px; border-collapse: collapse; table-layout: fixed; }
.legal-table th { padding: 15px 18px; background: var(--slate); color: white; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.legal-table th:first-child { width: 22%; }
.legal-table th:last-child { width: 28%; }
.legal-table td { vertical-align: top; padding: 24px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.legal-table td:last-child { border-right: 0; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td strong { color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.legal-table td > p { margin: 0 0 12px; }
.legal-table td > p:last-child { margin-bottom: 0; }
.legal-table a { color: var(--red-dark); text-underline-offset: 3px; }
.legal-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; }

.section-dark { background: var(--warm-gray); color: var(--ink); }
.dark-heading { display: grid; grid-template-columns: .45fr 1fr; }
.dark-heading .kicker { color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #c5cdd3; border-left: 1px solid #c5cdd3; }
.process-grid article { min-height: 330px; padding: 25px; border-right: 1px solid #c5cdd3; border-bottom: 1px solid #c5cdd3; transition: background .2s ease; }
.process-grid article:hover { background: rgba(255,255,255,.5); }
.process-grid article > span { color: #77838e; font-size: 10px; }
.process-symbol { height: 112px; display: flex; align-items: center; color: var(--red); font-family: Georgia, serif; font-size: 35px; }
.process-grid h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; margin: 0 0 12px; }
.process-grid p { color: #596673; font-size: 13px; line-height: 1.65; }

.authority-section { background: white; }
.authority-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 100px; align-items: center; }
.authority-visual { min-height: 500px; display: grid; place-items: center; background: var(--paper); overflow: hidden; }
.document-stack { width: 260px; height: 335px; position: relative; }
.document-stack > div { position: absolute; inset: 0; border: 1px solid #b9b7b1; background: white; box-shadow: 0 20px 50px rgba(17,26,39,.12); }
.document-stack > div:nth-child(2) { transform: rotate(-7deg) translate(-30px, 20px); background: #e8e3d9; box-shadow: none; z-index: 0; }
.document-stack > div:nth-child(3) { transform: rotate(6deg) translate(22px, 12px); background: #d9e5e3; box-shadow: none; z-index: 0; }
.document-stack > div:first-child { z-index: 2; padding: 32px; }
.document-stack span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--red); color: white; font-weight: 800; }
.document-stack i { display: block; height: 5px; margin-top: 34px; background: #d9d9d4; }
.document-stack i + i { margin-top: 16px; width: 78%; }
.document-stack i:last-child { width: 57%; }
.authority-copy > .kicker { display: block; margin-bottom: 22px; }
.authority-copy > p { max-width: 570px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.authority-points { margin-top: 34px; border-top: 1px solid var(--line); }
.authority-points > div { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.authority-points b { color: var(--red); font-size: 10px; }
.authority-points span { display: grid; gap: 4px; }
.authority-points strong { font-size: 13px; }
.authority-points small { color: var(--muted); }

.faq-section { background: var(--warm-gray); }
.faq-grid { display: grid; grid-template-columns: .65fr 1fr; gap: 95px; }
.faq-grid > div:first-child .kicker { margin-left: 12px; }
.faq-grid h2 { margin-top: 30px; }
.faq-grid > div:first-child p { color: var(--muted); }
.accordion { border-top: 1px solid #c6c4bd; }
.accordion details { border-bottom: 1px solid #c6c4bd; }
.accordion summary { cursor: pointer; list-style: none; min-height: 72px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { font-style: normal; color: var(--red); }
.accordion details[open] summary i { transform: rotate(45deg); }
.accordion details p { margin: -4px 40px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.cta-section { background: var(--red); color: white; padding: 76px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-section .kicker { color: rgba(255,255,255,.75); }
.cta-section h2 { max-width: 740px; margin: 14px 0 0; font-size: clamp(35px, 4vw, 52px); }

.site-footer { background: var(--warm-gray); color: var(--ink); padding: 68px 0 24px; border-top: 1px solid #d3cec5; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, .65fr); gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid p { color: var(--muted); max-width: 280px; line-height: 1.6; font-size: 13px; }
.footer-grid strong { margin-bottom: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid button { color: var(--ink-2); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand span { background: var(--red); padding: 10px; font-weight: 800; }
.footer-brand strong { font-size: 20px; margin: 0; text-transform: none; letter-spacing: -.03em; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid #bcc7ce; color: var(--muted); font-size: 10px; }
.footer-bottom button { color: var(--ink-2); }

.modal { border: 0; padding: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
.modal::backdrop { background: rgba(8,14,22,.72); backdrop-filter: blur(5px); }
.quote-modal { width: min(1030px, calc(100% - 24px)); }
.modal-frame { background: var(--paper); max-height: calc(100vh - 28px); overflow: auto; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.modal-header { min-height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--paper); }
.step-indicator { display: flex; align-items: center; gap: 8px; }
.step-indicator span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.step-indicator span.active, .step-indicator span.done { background: var(--slate); color: white; border-color: var(--slate); }
.step-indicator i { width: 36px; height: 1px; background: var(--line); }
.close-button { border: 0; background: transparent; width: 36px; height: 36px; font-size: 24px; }
.quote-step { display: none; padding: 40px 50px 30px; min-height: 530px; }
.quote-step.active { display: block; }
.step-heading { display: flex; gap: 20px; margin-bottom: 30px; }
.step-heading > span { color: var(--red); font-size: 10px; font-weight: 800; padding-top: 8px; }
.step-heading h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; font-size: 36px; margin: 0 0 7px; }
.step-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.form-grid > .field { align-content: start; min-width: 0; }
.password-field { grid-template-rows: auto 48px minmax(14px, auto); }
.field > span, .check-field + span { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field > small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: white; padding: 0 13px; color: var(--ink); outline: none; }
.field input, .field select { height: 48px; }
.field textarea { padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(17,26,39,.08); }
.field.wide, .check-field.wide, .wide { grid-column: 1 / -1; }
.upload-field input { position: absolute; opacity: 0; pointer-events: none; }
.upload-field > div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px dashed #aaa; background: rgba(255,255,255,.55); cursor: pointer; }
.upload-field > div b { color: var(--red); font-size: 22px; }
.upload-field > div strong { font-size: 12px; }
.upload-field > div small { color: var(--muted); }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); }
.check-field > input { flex: 0 0 auto; margin-top: 2px; }
.consent-field label { line-height: 1.55; cursor: pointer; }
.consent-field a { color: var(--red-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent-field a:hover { color: var(--ink); }
.legal-document-action { display: grid; justify-items: start; gap: 8px; margin-top: 22px; }
.legal-document-action small { color: var(--muted); font-size: 10px; }
.form-info { display: grid; gap: 5px; padding: 16px 18px; background: #eef2f4; border-left: 3px solid var(--ink); }
.form-info strong { font-size: 11px; }
.form-info span { color: var(--muted); font-size: 11px; }
.file-analysis { min-height: 72px; display: flex; align-items: center; gap: 15px; padding: 14px 16px; background: #eef2f4; border: 1px solid #dce2e6; }
.analysis-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--slate); color: white; font-weight: 800; }
.file-analysis > div { display: grid; gap: 4px; }
.file-analysis strong { font-size: 12px; }
.file-analysis small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.inline-action { display: grid; grid-template-columns: 1fr auto; }
.inline-action input { min-width: 0; }
.inline-action button { border: 0; background: var(--slate); color: white; padding: 0 14px; font-size: 10px; font-weight: 800; }
.email-verification { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 15px; background: #eef2f4; }
.email-verification .field { min-width: 0; }
.email-verification .button { height: 48px; min-height: 48px; align-self: end; white-space: nowrap; }
.email-verification small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.email-verification small[data-status="pending"] { color: #465563; font-weight: 700; }
.email-verification small[data-status="error"] { color: #a12d35; font-weight: 800; }
.email-verification small[data-status="success"] { color: var(--success); font-weight: 800; }
.verified-email { padding: 12px 14px; background: #e4f4ec; color: var(--success); font-size: 11px; font-weight: 800; }
.field:has([required]) > span:first-child::after, .court-question:has([required]) > legend::after { content: " *"; color: var(--red); }
.form-validation-summary { margin: 18px 30px 0; padding: 16px 18px; border: 1px solid rgba(214,63,69,.42); border-left: 4px solid var(--red); background: #fff3f1; color: #76272c; }
.form-validation-summary strong { display: block; margin-bottom: 8px; font-size: 12px; }
.form-validation-summary ul { margin: 0; padding-left: 20px; font-size: 11px; line-height: 1.65; }
.validation-error input, .validation-error select, .validation-error textarea, .validation-error.court-question, .validation-error.upload-field > div { border-color: var(--red) !important; box-shadow: 0 0 0 2px rgba(214,63,69,.1); }
.court-question { margin: 0; padding: 17px; border: 1px solid var(--line); }
.court-question legend { max-width: 95%; padding: 0 8px; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.45; }
.court-question > label { display: inline-flex; align-items: center; gap: 7px; margin: 10px 20px 0 0; font-size: 12px; }
.court-question > small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.court-block { margin-top: 13px; padding: 12px; background: #f9e4e5; color: #982b31; font-size: 11px; line-height: 1.5; }
.address-review { margin: 20px 0; padding: 18px; background: var(--paper); border-left: 3px solid var(--red); font-weight: 700; line-height: 1.55; }
.address-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 350px; gap: 35px; }
.compact-grid { align-content: start; }
.quote-summary { background: white; border-top: 3px solid var(--red); padding: 24px; box-shadow: 0 12px 34px rgba(17,26,39,.08); }
.summary-head { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-head span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.summary-lines { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 15px; }
.summary-line span { display: grid; gap: 3px; color: var(--muted); }
.summary-line span small, .payment-summary-line span small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.summary-total { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 18px; }
.summary-total span { font-size: 11px; font-weight: 700; }
.summary-total strong { font-size: 24px; }
.summary-scope { margin: 14px 0 0; padding: 10px 12px; background: #f3f5f6; color: var(--ink-2); font-size: 10px; line-height: 1.5; }
.summary-note { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.modal-footer { position: sticky; bottom: 0; z-index: 5; min-height: 76px; display: flex; align-items: center; gap: 10px; padding: 0 30px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-spacer { flex: 1; }

.compact-modal { width: min(500px, calc(100% - 24px)); }
.legal-payment-modal { width: min(760px, calc(100% - 24px)); }
.payment-panel, .editor-panel { position: relative; background: white; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.legal-payment-modal .payment-panel { max-height: calc(100vh - 28px); overflow-y: auto; }
.payment-panel > .close-button, .editor-panel > .close-button { position: absolute; top: 12px; right: 12px; }
.portal-badge { display: inline-flex; background: #eef2f5; color: var(--muted); padding: 7px 9px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.payment-panel h2, .editor-panel h2 { font-family: Georgia, serif; font-size: 33px; font-weight: 500; margin: 20px 0 10px; }
.payment-panel > p, .editor-panel > p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.payment-order-summary { margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); background: #f7f8f8; }
.payment-order-summary h3 { margin: 0 0 10px; font: 600 17px/1.2 Georgia, serif; }
.payment-summary-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.payment-summary-lines { display: grid; gap: 6px; }
.payment-summary-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; font-size: 12px; }
.payment-summary-line span { display: grid; gap: 2px; overflow-wrap: anywhere; }
.payment-summary-line strong { white-space: nowrap; }
.payment-summary-groups { display: grid; gap: 9px; margin-top: 12px; }
.payment-summary-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.payment-summary-group strong { white-space: nowrap; }
.payment-breakdown { margin-top: 12px; border-top: 1px solid var(--line); }
.payment-breakdown summary { padding-top: 12px; color: var(--red-dark); cursor: pointer; font-size: 11px; font-weight: 800; }
.payment-breakdown .payment-summary-lines { margin-top: 10px; }
.payment-amount { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0; padding: 15px 0; border-block: 1px solid var(--line); }
.payment-amount span { font-size: 11px; color: var(--muted); }
.payment-amount strong { font-size: 24px; }
.payment-methods { display: grid; gap: 10px; margin-bottom: 18px; }
.payment-methods label { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 14px; cursor: pointer; }
.payment-methods label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.payment-methods span { display: grid; gap: 3px; }
.payment-methods b { font-size: 13px; }
.payment-methods small { color: var(--muted); }
.payment-brand { display: inline-flex !important; align-items: center; justify-content: center; min-width: 58px; justify-self: end; }
.card-brand svg { width: 40px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.twint-brand { color: #0b0d10; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.twint-brand::before { content: ""; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: conic-gradient(#e84988, #f49a32, #52b99c, #4a8ee8, #e84988); }
.paypal-brand { color: #0070ba; font-size: 15px; font-weight: 700; letter-spacing: -.04em; }
.paypal-brand b { color: #003087; font-size: inherit; }
.payment-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.payment-actions .button-primary { width: 100%; }
.payment-acceptances { display: grid; gap: 14px; margin: 0 0 20px; }
.payment-acceptances .check-field { padding: 13px 14px; border: 1px solid var(--line); background: white; }
.payment-acceptances input { width: 17px; height: 17px; accent-color: var(--red-dark); }
.acceptance-error { margin: 0; padding: 10px 12px; background: #f9e4e5; color: #982b31; font-size: 11px; font-weight: 800; }
.payment-action-status { margin: 0 0 14px !important; padding: 12px 14px; border: 1px solid #e4b8bb; background: #fff1f2; color: #8f252b !important; font-size: 12px !important; font-weight: 700; }
.payment-action-status.pending { border-color: #c7d4dc; background: #eef3f5; color: var(--slate) !important; }
.secure-note { display: block; text-align: center; margin-top: 12px; color: var(--muted); }
.editor-panel .form-grid { margin: 24px 0; }

.portal-view { min-height: 760px; background: var(--warm-gray); }
.login-shell { min-height: 760px; display: grid; align-content: center; justify-items: center; padding-block: 70px; }
.back-link { justify-self: start; margin-bottom: 25px; border: 0; background: transparent; color: var(--slate); }
.login-card { width: min(490px, 100%); background: var(--white); padding: 50px; border-top: 4px solid var(--red); box-shadow: 0 24px 70px rgba(17,26,39,.14); }
.login-card h1 { font-family: Georgia, serif; font-size: 44px; font-weight: 500; letter-spacing: -.045em; margin: 20px 0; }
.login-card > p { color: var(--muted); line-height: 1.65; font-size: 14px; }
.login-card label { margin: 28px 0 14px; }
.login-form { display: grid; gap: 13px; margin-top: 26px; }
.login-form label { display: grid; gap: 7px; margin: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.login-form input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: white; padding: 0 12px; font: inherit; }
.login-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }

.password-recovery-status { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.password-recovery-status[data-status="success"] { color: var(--success); font-weight: 700; }
.password-recovery-status[data-status="error"] { color: #982b31; font-weight: 700; }
.configuration-notice { padding: 12px 14px; border-left: 3px solid var(--warning); background: #fff4e8; color: #6f4421 !important; }

.dashboard-view { min-height: 100vh; background: var(--warm-gray); }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.dashboard-sidebar { position: sticky; top: 0; height: 100vh; background: var(--warm-gray); color: var(--ink); padding: 26px 18px; display: flex; flex-direction: column; border-right: 1px solid #d3cec5; }
.dashboard-sidebar .brand { color: var(--ink); margin: 0 10px 40px; }
.dashboard-sidebar .brand-copy small { color: var(--muted); }
.dashboard-menu { display: grid; gap: 20px; }
.dashboard-menu-group { display: grid; gap: 4px; }
.dashboard-menu-label { padding: 0 14px 4px; color: #8b8b84; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-menu button { border: 0; background: transparent; color: var(--slate); text-align: left; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.dashboard-menu button.active, .dashboard-menu button:hover { background: var(--white); color: var(--red-dark); box-shadow: inset 3px 0 0 var(--red); }
.dashboard-menu i { width: 17px; font-style: normal; }
.dashboard-sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.dashboard-main { min-width: 0; }
.dashboard-topbar { min-height: 76px; padding: 0 32px; border-bottom: 1px solid #dce0e3; background: white; display: flex; justify-content: space-between; align-items: center; }
.dashboard-topbar h1 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; margin: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.user-chip b { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; }
.dashboard-content { padding: 30px 32px 60px; }
.dashboard-content.translation-studio-content { padding: 20px 18px 60px; }
.dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dashboard-intro h2 { font-family: Georgia, serif; font-weight: 500; font-size: 36px; letter-spacing: -.035em; margin: 0 0 7px; }
.dashboard-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.metric-card { background: white; border: 1px solid #dce0e3; padding: 20px; }
.metric-card span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.metric-card strong { display: block; margin-top: 12px; font-size: 27px; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 4px; color: var(--muted); }
.panel { background: white; border: 1px solid #dce0e3; }
.panel + .panel { margin-top: 18px; }
.panel-head { min-height: 62px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e3e6e8; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-body { padding: 20px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.central-case-table { min-width: 1120px; }
.communication-table { min-width: 900px; }
.case-table-wrap { width: 100%; overflow-x: auto; }
.central-case-table { min-width: 980px; }
.case-filter-panel { margin-bottom: 16px; background: white; border: 1px solid #dce0e3; }
.case-filter-panel > summary { cursor: pointer; padding: 14px 16px; font-weight: 800; }
.case-filters { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; padding: 14px; border-top: 1px solid #dce0e3; }
.case-filters label { display: grid; gap: 6px; }
.case-filters label > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-filters select, .case-filters input { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line); background: white; padding: 0 10px; font: inherit; }
.admin-queue { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 2.28fr); gap: 18px; align-items: stretch; margin-bottom: 18px; padding: 18px; border: 1px solid #dce0e3; background: #f8f7f4; }
.admin-queue-intro { display: grid; align-content: center; gap: 5px; padding-right: 12px; }
.admin-queue-intro .kicker { margin: 0; color: var(--red-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-queue-intro h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.admin-queue-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-queue-filters { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; }
.admin-queue-filter { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid #d7d3cb; background: white; color: var(--slate); text-align: left; }
.admin-queue-filter span { font-size: 11px; line-height: 1.25; }
.admin-queue-filter strong { color: var(--ink); font-size: 18px; line-height: 1; }
.admin-queue-filter:hover, .admin-queue-filter.active { border-color: var(--red); background: #fff5f2; color: var(--red-dark); box-shadow: inset 3px 0 0 var(--red); }
.admin-queue-filter.active strong { color: var(--red-dark); }
.admin-notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; padding: 13px 15px; border-left: 3px solid #d99d3e; background: #fff8e9; color: #634b23; font-size: 12px; line-height: 1.45; }
.admin-notice strong { white-space: nowrap; }
.multi-filter { position: relative; border: 1px solid var(--line); background: white; min-height: 40px; }
.multi-filter > summary { cursor: pointer; padding: 12px 10px; list-style-position: inside; }
.multi-filter > div { position: absolute; z-index: 8; top: calc(100% + 2px); left: -1px; min-width: max(100%, 230px); max-height: 260px; overflow: auto; padding: 8px; background: white; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15, 24, 34, .14); }
.multi-filter label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; padding: 7px; }
.multi-filter input { width: auto; min-height: 0; }
.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.legal-deadline { color: #a64035; font-weight: 700; }
.document-list { display: grid; gap: 9px; }
.document-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.document-row:last-child { border-bottom: 0; }
.document-row > span { width: 42px; height: 42px; display: grid; place-items: center; background: #eef1f3; color: var(--slate); font-size: 10px; font-weight: 800; }
.document-row > div { display: grid; gap: 3px; min-width: 0; }
.document-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-row small { color: var(--muted); }
.document-entry { border-bottom: 1px solid var(--line); }
.document-entry .document-row { border-bottom: 0; }
.document-verification { display: flex; gap: 12px; align-items: center; margin: -4px 14px 14px 58px; padding: 10px 12px; background: var(--surface-soft); border: 1px solid var(--line); }
.document-verification img { width: 54px; height: 54px; background: #fff; padding: 4px; }
.document-verification span { min-width: 0; display: grid; gap: 2px; }
.document-verification small { overflow-wrap: anywhere; color: var(--muted); }
.verified-delivery-note { border-left-color: var(--green); }
.business-fields { padding: 0; }
.business-toggle { align-items: center; }
.document-upload-form { display: grid; grid-template-columns: 145px 145px minmax(130px, .8fr) minmax(160px, 1fr) auto; gap: 10px; margin-top: 18px; align-items: stretch; }
.document-upload-form input[type="file"] { width: 100%; min-width: 0; overflow: hidden; }
.quote-edit-form { display: grid; gap: 10px; }
.quote-edit-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.quote-edit-form input, .document-upload-form input, .document-upload-form select { min-height: 40px; border: 1px solid var(--line); background: white; padding: 0 10px; font: inherit; }
.message-form input[type="file"] { display: none; }
.status.inbox { background: #edf1f4; color: #41505e; }
.status.internal-action { background: #ffebe5; color: #8a382d; }
.status.waiting-externally { background: #fff4da; color: #795a17; }
.status.finished { background: #ddf4ea; color: #205f49; }
.status.cancelled { background: #ececec; color: #555; }
.order-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 800; text-align: left; padding: 13px 12px; border-bottom: 1px solid #e1e4e7; }
.order-table td { padding: 15px 12px; border-bottom: 1px solid #eef0f1; }
.order-table tr:last-child td { border-bottom: 0; }
.order-table tbody tr { cursor: pointer; }
.order-table tbody tr:hover { background: #fafafa; }
.status { display: inline-flex; padding: 6px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; background: #edf0f2; color: var(--muted); }
.status.in-progress, .status.quote-ready { background: #e4eef8; color: #315f86; }
.status.completed { background: #e5f5ed; color: #18704f; }
.status.client-review { background: #fff1d9; color: #8b611d; }
.status.awaiting-payment { background: #f9e4e5; color: #a63137; }
.status.needs-triage { background: #fff0e7; color: #8a382d; }
.status.checkout-pending { background: #eef1f3; color: #566573; }
.missing-action { color: #9b342e; font-weight: 700; }
.order-detail-grid { display: grid; grid-template-columns: 1.1fr .8fr; gap: 18px; }
.admin-case-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: 18px; align-items: start; }
.case-summary-line { display: block; margin-top: 8px; color: var(--slate); }
.client-name-link { padding: 0; font: inherit; }
.pending-order-banner, .pending-workflow, .admin-preview-banner, .profile-difference { padding: 14px 16px; border-left: 3px solid #d99d3e; background: #fff7e7; color: #634b23; }
.translation-studio-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #b9c9d4;
  border-left: 4px solid var(--slate);
  background: #f1f6f9;
}
.translation-studio-launch > div { display: grid; gap: 3px; }
.translation-studio-launch span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.translation-studio-launch-actions {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px !important;
}
.translation-studio-page { width: 100%; min-width: 0; }
.translation-studio-page .ai-workspace { width: 100%; }
.translation-studio-intro { align-items: center; margin-bottom: 16px; }
.translation-studio-case-picker .order-table { min-width: 760px; }
.translation-studio-case-picker td:last-child,
.translation-studio-case-picker th:last-child { text-align: right; }
.pending-order-banner { display: flex; gap: 12px; margin-bottom: 18px; }
.pending-workflow p { margin: 5px 0 0; line-height: 1.5; }
.admin-preview-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; border-left-color: var(--red); background: #fff0ed; }
.admin-preview-banner .text-link { margin-left: auto; }
.operational-form { display: grid; gap: 14px; }
.conditional-control, .technical-evidence { border: 1px solid var(--line); background: var(--surface-soft); }
.conditional-control summary, .technical-evidence summary { cursor: pointer; padding: 13px 15px; font-weight: 800; font-size: 11px; }
.conditional-control .form-grid, .technical-evidence .detail-list { padding: 0 15px 15px; }
.account-choice, .signed-in-request { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.account-choice > div, .signed-in-request > div { display: flex; flex-direction: column; }
.account-choice small, .signed-in-request span { color: var(--muted); margin-top: 4px; }
.signed-in-request .button { flex: 0 0 auto; }
.profile-discrepancy { padding: 15px; border: 1px solid #d8b267; background: #fff9ec; }
.profile-discrepancy p { color: var(--muted); line-height: 1.5; }
.profile-discrepancy label { display: inline-flex; align-items: center; gap: 7px; margin: 5px 18px 0 0; }
.document-group + .document-group { margin-top: 20px; }
.document-group h4 { margin: 0; padding: 9px 12px; background: var(--surface-soft); color: var(--slate); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.document-visibility { display: inline-flex; width: max-content; margin-top: 3px; padding: 3px 6px; font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.document-visibility.visible { background: #e5f5ed; color: #18704f; }
.document-visibility.internal { background: #eceff1; color: #58636b; }
.visibility-choice { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); background: white; font-size: 11px; }
.profile-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-comparison h4 { margin: 0 0 14px; }
.profile-comparison > div > div { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.profile-comparison span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.profile-comparison strong { font-size: 12px; overflow-wrap: anywhere; }
.profile-difference { margin-bottom: 16px; }
.admin-client-drawer { position: fixed; z-index: 120; top: 0; right: 0; width: min(680px, 94vw); height: 100vh; margin: 0; overflow-y: auto; border-block: 0; border-right: 0; box-shadow: -18px 0 50px rgba(22, 31, 39, .18); }
.admin-client-drawer .panel-head { position: sticky; z-index: 2; top: 0; background: white; }
.admin-client-drawer .close-button { position: static; width: 34px; height: 34px; }
.internal-note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(150px, 220px) auto; gap: 10px; margin-bottom: 18px; align-items: stretch; }
.internal-note-form textarea { resize: vertical; border: 1px solid var(--line); padding: 10px; font: inherit; }
.note-attach { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); }
.note-attach input { display: none; }
.note-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.attachment-chip { max-width: 100%; border: 1px solid var(--line); background: #f4f2ee; padding: 6px 8px; text-align: left; overflow-wrap: anywhere; }
.communication-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.communication-table .message-preview { max-width: 520px; white-space: normal; overflow-wrap: anywhere; }
.communication-alert { color: #a33a2f !important; font-weight: 700; }
.panel, .detail-item, .document-entry, .message, .activity-entry { min-width: 0; overflow-wrap: anywhere; }
.activity-list { display: grid; }
.activity-entry { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.activity-entry i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #aeb7bd; }
.activity-entry.note i { background: var(--red); }
.activity-entry p { margin: 4px 0; color: var(--slate); }
.activity-entry small { color: var(--muted); }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { display: grid; gap: 5px; }
.detail-item span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.detail-item strong { font-size: 12px; overflow-wrap: anywhere; }
.timeline { display: flex; margin: 24px 0 10px; }
.timeline-step { flex: 1; position: relative; padding-top: 22px; font-size: 9px; color: var(--muted); }
.timeline-step::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #c9ced3; z-index: 2; }
.timeline-step::after { content: ""; position: absolute; left: 7px; right: -4px; top: 10px; height: 1px; background: #d6dade; }
.timeline-step.done::before, .timeline-step.current::before { background: var(--red); }
.timeline-step.done::after { background: var(--red); }
.timeline-step:last-child::after { display: none; }
.timeline-step.current { color: var(--ink); font-weight: 700; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.action-row .button { min-height: 38px; padding-inline: 13px; font-size: 11px; }
.message-list { display: grid; gap: 12px; }
.message { max-width: 85%; padding: 12px 14px; background: #edf0f2; font-size: 12px; line-height: 1.55; }
.message.mine { justify-self: end; background: #e7eef5; }
.message.system { border-left: 3px solid var(--red); background: #f6f2ef; }
.message small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.message-attachment { max-width: 88%; padding: 11px; display: flex; gap: 11px; align-items: flex-start; border: 1px solid #dce1e5; background: white; }
.message-attachment.mine { justify-self: end; border-color: #bfcfdd; background: #f3f7fa; }
.message-attachment > span { flex: 0 0 36px; height: 42px; display: grid; place-items: center; background: var(--red); color: white; font-size: 8px; font-weight: 800; }
.message-attachment > div { display: grid; gap: 4px; }
.message-attachment strong { font-size: 11px; overflow-wrap: anywhere; }
.message-attachment small { color: var(--muted); font-size: 9px; }
.message-attachment p { margin: 4px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.45; }
.message-form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 15px; }
.message-form input { flex: 1; min-width: 0; height: 40px; border: 1px solid #dce0e3; padding: 0 11px; }
.message-form textarea { flex: 1 1 360px; min-width: 180px; min-height: 42px; resize: vertical; border: 1px solid #dce0e3; padding: 10px 11px; font: inherit; }
.attach-button { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dce0e3; background: white; cursor: pointer; font-size: 20px; }
.attach-button:hover { border-color: var(--ink); }
.attach-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.selected-file-names { min-width: 0; max-width: 260px; display: flex; align-items: center; color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.file-picker { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); background: white; cursor: pointer; font-weight: 700; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.portal-language select { min-height: 36px; border: 1px solid var(--line); background: white; padding: 0 28px 0 9px; font: inherit; }
.settings-stack, .settings-list, .office-window-choices { display: grid; gap: 12px; }
.settings-card { padding: 16px; border: 1px solid var(--line); background: var(--surface-soft); }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.settings-card-head h4 { margin: 0 0 4px; }
.settings-card-head small, .settings-help, .settings-list-row small, .office-window-choice small { display: block; color: var(--muted); line-height: 1.45; }
.settings-list { margin-top: 14px; }
.settings-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); background: white; }
.office-window-form { display: grid; grid-template-columns: repeat(3, minmax(100px, .55fr)) minmax(210px, 1.2fr); align-items: end; }
.office-window-form label { display: grid; gap: 5px; min-width: 0; }
.office-window-form label > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.office-window-form input, .office-window-form select { width: 100%; min-height: 40px; border: 1px solid var(--line); background: white; padding: 0 9px; font: inherit; }
.office-purpose, .office-location, .office-notes { grid-column: span 2; }
.office-window-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.office-window-choice:first-child { border-top: 0; }
.office-window-choice > div { display: grid; gap: 4px; }
.selected-office-window { display: grid; gap: 5px; margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--red); background: var(--surface-soft); }
.selected-office-window span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.message-help { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rate-card { background: white; border: 1px solid #dce0e3; padding: 17px; }
.rate-card .rate-top { display: flex; justify-content: space-between; gap: 10px; }
.rate-card h3 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.rate-card strong { display: block; font-size: 22px; margin: 16px 0 6px; }
.rate-card p { color: var(--muted); font-size: 11px; margin: 0 0 14px; }
.empty-state { padding: 50px 25px; text-align: center; color: var(--muted); }
.invoice-preview { padding: 30px; background: white; border: 1px solid #dce0e3; }
.invoice-preview-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.invoice-preview h3 { margin: 0; font-size: 23px; }
.invoice-preview table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 11px; }
.invoice-preview td, .invoice-preview th { padding: 10px; text-align: left; border-bottom: 1px solid #e5e7e9; }
.invoice-preview .invoice-total { text-align: right; font-size: 21px; font-weight: 800; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 380px; padding: 14px 16px; background: var(--slate-deep); color: white; box-shadow: 0 12px 35px rgba(0,0,0,.18); font-size: 12px; animation: toast-in .2s ease; }
.toast.success { border-left: 4px solid var(--mint); }
.toast.warning { border-left: 4px solid #ffc667; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.reveal { animation: reveal .65s both ease-out; }
.delay-1 { animation-delay: .12s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { max-width: 760px; }
  .quote-preview { max-width: 620px; }
  .service-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .public-contact-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .delivery-grid article:nth-child(2) { border-right: 0; }
  .delivery-grid article { border-bottom: 1px solid var(--line); }
  .delivery-grid article:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .service-card { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .authority-grid, .faq-grid { grid-template-columns: 1fr; gap: 55px; }
  .authority-visual { min-height: 400px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .checkout-grid { grid-template-columns: 1fr; }
  .dashboard-shell { grid-template-columns: 78px 1fr; }
  .dashboard-sidebar { padding-inline: 9px; }
  .dashboard-sidebar .brand-copy, .dashboard-menu span, .dashboard-sidebar-bottom { display: none; }
  .dashboard-sidebar .brand { margin-inline: auto; }
  .dashboard-menu button { justify-content: center; }
  .dashboard-menu-group { display: grid; }
  .admin-queue { grid-template-columns: 1fr; }
  .admin-queue-intro { padding-right: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .admin-case-layout, .profile-comparison { grid-template-columns: 1fr; }
  .rate-grid { grid-template-columns: 1fr 1fr; }
  .office-window-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .site-header .brand-copy small { display: none; }
  .nav-shell {
    min-height: 66px;
    gap: 9px;
    flex-wrap: wrap;
    padding-block: 9px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-logo, .brand-mark { width: 37px; height: 37px; }
  .brand-copy { min-width: 0; }
  .brand-copy strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .nav-actions {
    flex: 0 0 100%;
    width: 100%;
    gap: 7px;
    justify-content: stretch;
  }
  .language-picker { flex: 0 0 auto; }
  .language-picker select { min-width: 54px; height: 40px; }
  .nav-actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding-inline: 10px;
    white-space: nowrap;
  }
  .hero { min-height: 0; padding: 58px 0 46px; }
  .hero h1 { max-width: 100%; font-size: clamp(42px, 12vw, 49px); overflow-wrap: break-word; }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-proof { display: grid; gap: 10px; }
  .quote-preview { padding: 22px; }
  .quote-preview-top { display: grid; }
  .live-pill { justify-self: start; }
  .strip-inner { padding-block: 19px; align-items: flex-start; }
  .strip-inner > div { display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
  .strip-inner i { display: none; }
  .section { padding: 78px 0; }
  .split-heading, .dark-heading { grid-template-columns: 1fr; gap: 34px; }
  .split-heading h2, .dark-heading h2, .authority-copy h2, .faq-grid h2 { font-size: 39px; }
  .process-grid { grid-template-columns: 1fr; }
  .service-grid.two-services, .delivery-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: 0; padding: 24px 20px; }
  .price-plan > strong { margin-top: 28px; }
  .price-meta { grid-template-columns: 1fr; }
  .delivery-overview { padding: 26px 18px; }
  .delivery-heading { grid-template-columns: 1fr; gap: 18px; }
  .delivery-grid article, .delivery-grid article:nth-child(n+3) { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .delivery-grid article:last-child { border-bottom: 0; }
  .process-grid article { min-height: 245px; }
  .process-symbol { height: 75px; }
  .authority-grid { gap: 40px; }
  .authority-visual { min-height: 360px; }
  .document-stack { transform: scale(.8); }
  .cta-inner { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .quote-modal { width: calc(100% - 10px); }
  .modal-header { padding-inline: 14px; }
  .modal-header .brand-copy { display: none; }
  .step-indicator i { width: 20px; }
  .quote-step { padding: 27px 18px 22px; min-height: 0; }
  .step-heading h2 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide, .check-field.wide, .wide { grid-column: auto; }
  .inline-action, .email-verification, .address-actions { grid-template-columns: 1fr; }
  .email-verification .button { width: 100%; }
  .email-verification small { grid-column: 1; }
  .inline-action button { min-height: 42px; }
  .modal-footer { padding-inline: 15px; }
  .form-validation-summary { margin-inline: 15px; }
  .payment-panel, .editor-panel { padding: 28px 20px; }
  .payment-actions { grid-template-columns: 1fr; }
  .login-card { padding: 35px 22px; }
  .login-card h1 { font-size: 37px; }
  .login-help { align-items: flex-start; flex-direction: column; }
  .dashboard-shell { display: block; }
  .dashboard-sidebar { position: static; height: auto; padding: 12px 14px; flex-direction: row; align-items: center; }
  .dashboard-sidebar .brand { margin: 0 16px 0 0; }
  .dashboard-menu { display: flex; overflow-x: auto; }
  .dashboard-menu-group { display: flex; }
  .dashboard-menu button { white-space: nowrap; padding: 10px; }
  .dashboard-menu i { display: none; }
  .dashboard-topbar { padding: 0 18px; }
  .dashboard-content { padding: 22px 14px 45px; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; }
  .admin-queue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-notice { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .order-table { min-width: 680px; }
  .panel.table-panel { overflow-x: auto; }
  .case-filters { grid-template-columns: 1fr; }
  .document-upload-form { grid-template-columns: 1fr; }
  .internal-note-form { grid-template-columns: 1fr; }
  .document-upload-form .selected-file-names, .internal-note-form .selected-file-names, .message-form .selected-file-names { max-width: none; min-height: 28px; }
  .settings-card-head, .settings-list-row, .office-window-choice { align-items: stretch; flex-direction: column; }
  .office-window-form { display: grid; grid-template-columns: 1fr; }
  .office-purpose, .office-location, .office-notes { grid-column: auto; }
  .topbar-actions { gap: 7px; }
  .user-chip > span { display: none; }
  .note-attach { justify-content: center; }
  .multi-filter > div { position: static; min-width: 0; box-shadow: none; border-width: 1px 0 0; }
  .quote-edit-line { grid-template-columns: 1fr; }
  .rate-grid { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .timeline { overflow-x: auto; }
  .timeline-step { min-width: 90px; }
}

@media (max-width: 420px) {
  .nav-shell { gap: 7px; }
  .brand-copy strong { font-size: 14px; }
  .nav-actions { gap: 5px; }
  .nav-actions .button { padding-inline: 7px; font-size: 11px; }
  .language-picker select { min-width: 50px; padding-inline: 7px; }
}

@media (max-width: 360px) {
  .nav-actions .button { padding-inline: 5px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.profile-discrepancy .profile-restore-button { margin-top: 12px; width: 100%; justify-content: center; }
.profile-discrepancy .profile-email-note { display: block; margin-top: 10px; color: var(--muted); line-height: 1.45; }
.order-email-help { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }


/* v20260721-38: verified account-email separation and secure document download UX */
.account-email-change { margin-top: 14px; padding: 14px; border: 1px solid #c89a42; background: #fffdf7; }
.account-email-change strong { display: block; margin-bottom: 5px; }
.account-email-change p { margin: 0 0 12px; }
.account-email-change .button { width: 100%; justify-content: center; }

.topbar-sign-out { min-height: 36px; padding: 8px 12px; white-space: nowrap; }
@media (max-width: 680px) {
  .topbar-sign-out { min-width: 42px; padding-inline: 9px; font-size: 0; }
  .topbar-sign-out::before { content: "↪"; font-size: 18px; line-height: 1; }
  .signed-in-request { align-items: stretch; flex-direction: column; }
  .signed-in-request .button { width: 100%; }
}


/* Verified reviews */
.hero-review-proof[hidden],
.reviews-preview-section[hidden] { display: none !important; }
.hero-review-proof { margin-top: 18px; }
.hero-review-link {
  display: inline-flex; align-items: center; gap: 12px; max-width: 520px;
  border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer;
}
.hero-review-link > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.hero-review-link strong { font-size: .95rem; }
.hero-review-link small { color: var(--muted); line-height: 1.4; }
.hero-review-link i { font-style: normal; margin-left: 4px; }
.review-stars { display: inline-flex; color: #b11f2e; letter-spacing: 2px; font-size: 1.1rem; white-space: nowrap; }
.review-stars.compact { font-size: .92rem; letter-spacing: 1px; }
.reviews-preview-section { padding-top: 72px; padding-bottom: 72px; }
.reviews-preview-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px;
}
.reviews-preview-heading h2 { margin: 8px 0 0; }
.public-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.public-review-card {
  border: 1px solid var(--line); background: var(--surface); padding: 24px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.public-review-card.compact { padding: 22px; }
.public-review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.public-review-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; }
.public-review-card footer { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.public-review-card footer strong { font-size: .9rem; }
.public-review-card footer small { color: var(--muted); line-height: 1.4; }
.external-review-link { display: inline-flex; margin-top: 22px; font-weight: 700; text-decoration: none; color: var(--ink); }
.reviews-view { min-height: 100vh; padding: 54px 0 90px; background: var(--paper); }
.reviews-page-shell { max-width: 1160px; }
.reviews-page-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 42px; align-items: end; margin: 34px 0 42px;
}
.reviews-page-intro h1 { margin: 8px 0 12px; }
.reviews-page-intro p { color: var(--muted); max-width: 650px; }
.reviews-score { min-width: 220px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.reviews-score > strong { font-family: var(--serif); font-size: 2.5rem; }
.reviews-score small, .reviews-score span { color: var(--muted); }
.reviews-page-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.reviews-distribution { border: 1px solid var(--line); background: var(--surface); padding: 20px; position: sticky; top: 22px; }
.reviews-distribution > div { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; font-size: .84rem; margin: 9px 0; }
.reviews-distribution i { height: 6px; background: #e7e3dd; overflow: hidden; }
.reviews-distribution b { display: block; height: 100%; background: #b11f2e; }
.reviews-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.reviews-filters label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 700; }
.reviews-filters select { min-height: 42px; border: 1px solid var(--line); background: var(--surface); padding: 8px 10px; }
.client-review-panel { margin-top: 18px; }
.client-review-form { display: flex; flex-direction: column; gap: 16px; }
.client-review-form fieldset { border: 0; padding: 0; margin: 0; }
.client-review-form legend { font-weight: 700; margin-bottom: 8px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; }
.rating-input label { cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input span[aria-hidden] {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); background: var(--surface); color: #aaa; font-size: 1.25rem;
}
.rating-input input:checked + span,
.rating-input label:has(input:checked) ~ label span[aria-hidden] { color: #b11f2e; border-color: #b11f2e; }
.review-public-fields { margin: 0; }
.review-consent { align-items: flex-start; }
.submitted-review-summary { border-left: 3px solid #b11f2e; padding: 12px 16px; margin-bottom: 18px; }
.submitted-review-summary blockquote { margin: 10px 0; }
.review-thank-you { font-weight: 700; margin-top: 14px; }
.google-review-invitation { margin-top: 16px; padding: 16px; background: var(--paper); border: 1px solid var(--line); }
.google-review-invitation p { margin: 0 0 4px; font-weight: 700; }
.google-review-invitation small { display: block; color: var(--muted); margin-bottom: 12px; }
.review-admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.review-admin-metrics > div { border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.review-admin-metrics strong { font-family: var(--serif); font-size: 1.7rem; }
.review-admin-metrics span { color: var(--muted); font-size: .82rem; }
.admin-review-list { display: grid; gap: 18px; margin-top: 18px; }
.admin-review-card { margin: 0; }
.review-admin-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: 24px; }
.review-original { display: flex; flex-direction: column; gap: 9px; }
.review-original h4, .review-original p { margin: 0; }
.review-original small { color: var(--muted); }
.review-admin-fields { margin: 0; }
.panel-footer { border-top: 1px solid var(--line); padding: 16px 22px; }

@media (max-width: 820px) {
  .public-review-grid, .reviews-page-intro, .reviews-page-layout, .review-admin-grid { grid-template-columns: 1fr; }
  .reviews-score { align-items: flex-start; }
  .reviews-distribution { position: static; }
  .reviews-filters { grid-template-columns: 1fr; }
  .review-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .reviews-preview-heading { align-items: flex-start; flex-direction: column; }
  .rating-input span[aria-hidden] { width: 34px; height: 34px; }
  .review-admin-metrics { grid-template-columns: 1fr 1fr; }
}


/* AI document workflow */
.ai-workspace .panel-head > div { display: flex; flex-direction: column; gap: 3px; }
.ai-workspace .panel-head > div span { color: var(--muted); font-size: .82rem; }
.ai-start-form { display: grid; gap: 18px; }
.ai-error { border-left: 4px solid #a41e2b; background: #fff4f4; padding: 14px 16px; margin-bottom: 18px; }
.ai-error p, .ai-approved p, .ai-visual-gate p { margin: 5px 0 0; color: var(--muted); }
.ai-stage-line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 18px; }
.ai-stage-line span { min-height: 38px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-align: center; }
.ai-stage-line span.done { background: #edf5ef; border-color: #a8cbb0; color: #245b31; }
.ai-stage-line span.active { background: #fff4e6; border-color: #e3bd7c; color: #704600; font-weight: 700; }
.ai-workflow-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ai-workflow-metrics > div { border: 1px solid var(--line); padding: 13px; display: flex; flex-direction: column; gap: 3px; }
.ai-workflow-metrics strong { font-family: var(--serif); font-size: 1.45rem; }
.ai-workflow-metrics span { color: var(--muted); font-size: .75rem; }
.ai-visual-gate, .ai-approved { border: 1px solid var(--line); background: var(--paper); padding: 15px 16px; margin-bottom: 18px; }
.ai-visual-gate { border-left: 4px solid #b26a00; }
.ai-approved { border-left: 4px solid #337142; }
.translation-editor-form, .translation-readonly-list { display: grid; gap: 14px; }
.translation-segment { border: 1px solid var(--line); background: var(--surface); }
.translation-segment.requires-review { border-left: 4px solid #b26a00; }
.translation-segment > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.translation-segment > header > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.translation-segment > header span { color: var(--muted); font-size: .75rem; }
.segment-flags { display: flex; gap: 7px; align-items: center; }
.segment-flags > span:first-child { text-transform: uppercase; font-size: .65rem; font-weight: 800; letter-spacing: .05em; }
.confidence-low { color: #a41e2b !important; }
.confidence-medium { color: #7a5200 !important; }
.confidence-high { color: #337142 !important; }
.translation-editor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.translation-editor-columns label { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.translation-editor-columns label + label { border-left: 1px solid var(--line); }
.translation-editor-columns label > span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.translation-editor-columns textarea { width: 100%; min-height: 92px; resize: vertical; border: 1px solid var(--line); padding: 11px; font: inherit; line-height: 1.5; background: #fff; }
.translation-editor-columns textarea[readonly] { background: #f7f5f1; }
.translation-editor-columns small { color: var(--muted); line-height: 1.4; }
.translation-issues { display: grid; gap: 8px; padding: 0 14px 14px; }
.translation-issue { border-left: 4px solid #9a9a9a; background: #f7f5f1; padding: 11px 13px; }
.translation-issue.severity-critical { border-color: #a41e2b; background: #fff4f4; }
.translation-issue.severity-review { border-color: #b26a00; background: #fff9ed; }
.translation-issue.severity-suggestion { border-color: #4f708d; background: #f2f7fb; }
.translation-issue.resolved { opacity: .68; }
.translation-issue-head { display: flex; gap: 10px; align-items: center; }
.translation-issue-head span { font-weight: 800; }
.translation-issue-head small { color: var(--muted); flex: 1; }
.translation-issue-head strong { text-transform: uppercase; font-size: .67rem; }
.translation-issue-location { margin-top: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.translation-issue p { margin: 7px 0; line-height: 1.45; }
.issue-proposal { border-top: 1px solid rgba(0,0,0,.08); padding-top: 8px; }
.issue-proposal span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.compact-actions { margin-top: 8px; }
.compact-actions .button { min-height: 34px; padding: 7px 10px; }
.translation-editor-toolbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); background: rgba(255,255,255,.96); padding: 12px; box-shadow: 0 -8px 24px rgba(0,0,0,.05); }
.danger-link { color: #9b1b28; margin-left: auto; }
.translation-document-issues { margin-bottom: 16px; }
.translation-document-issues h4 { margin: 0 0 9px; }
.translation-text-preview, .ai-run-log { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
.translation-text-preview summary, .ai-run-log summary { cursor: pointer; font-weight: 700; }
.translation-text-preview pre { white-space: pre-wrap; font: inherit; line-height: 1.55; background: #f7f5f1; padding: 16px; max-height: 520px; overflow: auto; }
@media (max-width: 900px) {
  .ai-stage-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .translation-editor-columns { grid-template-columns: 1fr; }
  .translation-editor-columns label + label { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ai-workflow-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .translation-segment > header { align-items: flex-start; flex-direction: column; }
  .translation-editor-toolbar .button { width: 100%; }
  .danger-link { margin-left: 0; }
}

/* Hardened AI production workflow */
.ai-safety-banner { border-left: 3px solid var(--accent); padding: 12px 14px; background: var(--paper); margin-bottom: 18px; }
.ai-safety-banner strong, .ai-safety-banner p { display: block; margin: 0; }
.ai-safety-banner p { color: var(--muted); margin-top: 4px; }
.production-source-list { border: 1px solid var(--line); padding: 14px; margin: 0 0 18px; display: grid; gap: 8px; }
.production-source-list legend { padding: 0 6px; font-weight: 700; }
.production-document-card { border: 1px solid var(--line); background: var(--surface); margin: 16px 0; }
.production-document-card > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; cursor: pointer; }
.production-document-card > summary::-webkit-details-marker { display: none; }
.production-document-card > summary > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.production-document-card > summary > div span { color: var(--muted); font-size: .86rem; }
.production-document-body { border-top: 1px solid var(--line); padding: 18px; }
.revision-gates { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.revision-gates span { border: 1px solid var(--line); padding: 6px 9px; font-size: .78rem; font-weight: 700; }
.revision-gates .passed { border-color: #47745b; background: #eef7f1; color: #28553b; }
.revision-gates .pending { color: var(--muted); background: var(--paper); }
@media (max-width: 680px) {
  .production-document-card > summary { align-items: flex-start; flex-direction: column; }
  .production-document-card > summary .status { align-self: flex-start; }
}

/* Production phases 2 and 3 */
.production-synchronized-view { margin: 16px 0 20px; border: 1px solid var(--line); background: var(--paper); min-height: 180px; }
.source-viewer-placeholder, .source-structured-frame { padding: 22px; color: var(--muted); }
.source-viewer-placeholder strong, .source-structured-frame strong { color: var(--ink); }
.source-visual-frame { height: min(60vh, 620px); background: #eee; border-bottom: 1px solid var(--line); }
.source-visual-frame iframe { width: 100%; height: 100%; border: 0; }
.source-image-frame { position: relative; display: grid; place-items: center; max-height: 620px; overflow: auto; background: #eee; border-bottom: 1px solid var(--line); }
.source-image-frame img { display: block; max-width: 100%; height: auto; }
.source-highlight { position: absolute; border: 2px solid #b11f2e; background: rgb(177 31 46 / 12%); pointer-events: none; }
.source-segment-caption { padding: 16px 20px; }
.source-segment-caption p { margin: 8px 0; white-space: pre-wrap; }
.source-segment-caption small { color: var(--muted); }
.segment-focus-button { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.file-button { position: relative; cursor: pointer; }
.final-production-panel { margin-top: 22px; border: 1px solid var(--line); background: var(--surface); }
.final-production-panel > .panel-head { margin: 0; }
.production-render-form, .final-approval-form, .scanned-final-form { padding: 20px; }
.final-checklist { display: grid; gap: 10px; margin-bottom: 18px; }
.render-issue-list { display: grid; gap: 12px; padding: 18px; }
.production-reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 20px; }
.compact-reference-form { display: grid; grid-template-columns: 120px minmax(120px,1fr) minmax(140px,1fr) minmax(160px,1.3fr) auto auto; gap: 7px; align-items: center; margin: 8px 0; }
.compact-reference-form.pair { grid-template-columns: 120px auto 120px 70px auto auto; }
.compact-reference-form input, .compact-reference-form select, .compact-reference-form button { min-height: 36px; border: 1px solid var(--line); background: var(--surface); padding: 6px 8px; }
.production-assets { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.production-assets form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.signer-admin-card { margin-top: 16px; }
.signer-admin-card > summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; }
.signer-admin-card > summary span { color: var(--muted); }
.compact-table { margin-top: 20px; }
@media (max-width: 900px) {
  .production-reference-grid { grid-template-columns: 1fr; }
  .compact-reference-form, .compact-reference-form.pair { grid-template-columns: 1fr; }
  .source-visual-frame { height: 430px; }
}
.production-position-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 10px;
  margin: 4px 0;
  padding: 14px;
  border: 1px solid var(--line);
}
.production-position-fields legend { padding: 0 6px; font-weight: 800; font-size: .82rem; }
@media (max-width: 760px) { .production-position-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Launch lifecycle hardening */
.admin-account-row,
.account-lifecycle-actions {
  border: 1px solid var(--line, #d9dde3);
  border-radius: 14px;
  padding: 1rem;
}
.account-lifecycle-actions { margin-top: 1rem; }
.document-trash-action { margin: .35rem 0 0 3.25rem; }
.lifecycle-case-panel .action-row,
.account-lifecycle-actions .action-row { flex-wrap: wrap; }
.admin-account-row .settings-card-head { margin-bottom: .75rem; }
@media (max-width: 760px) {
  .document-trash-action { margin-left: 0; }
}

/* Configurable languages and pre-payment language analysis */
.product-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.product-language-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
}
.product-language-grid legend { padding: 0 6px; font-weight: 800; }
.language-choice-grid { display: grid; gap: 8px; }
.language-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.language-choice input { margin-top: 3px; }
.language-choice span,
.language-choice strong,
.language-choice small { display: block; }
.language-choice small { margin-top: 2px; color: var(--muted); }
.language-analysis-status { margin: 10px 0; font-weight: 700; }
.language-analysis-list,
.language-analysis-excluded ul { margin: 8px 0; padding-left: 20px; }
.language-analysis-list li,
.language-analysis-excluded li { margin: 6px 0; }
.language-analysis-list li span,
.language-analysis-excluded li small { display: block; color: var(--muted); }
.language-analysis-excluded {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--warning, #b66a00);
  background: #fff8e8;
}
.language-analysis-blocking {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #d99aa1;
  border-left: 4px solid #a41e2b;
  background: #fff4f4;
  color: #6f111b;
}
.language-analysis-blocking span {
  color: var(--ink);
  font-size: .82rem;
}
.translation-page-group {
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.translation-page-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  cursor: pointer;
  background: var(--paper);
}
.translation-page-group > summary span { color: var(--muted); font-size: .86rem; }
.translation-page-segments { padding: 0 14px 14px; }

/* Page-based translation review workstation */
.translation-review-workstation {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.translation-page-navigation {
  position: sticky;
  top: 8px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}
.translation-page-navigation label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.translation-page-navigation select {
  min-height: 38px;
  max-width: 230px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 30px 7px 9px;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.translation-page-position {
  margin-left: auto;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.translation-page-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.translation-source-pane,
.translation-target-pane {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.translation-source-pane {
  position: sticky;
  top: 76px;
}
.translation-source-pane > header,
.translation-target-pane > header {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.translation-source-pane > header > div,
.translation-target-pane > header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.translation-source-pane > header span,
.translation-target-pane > header span {
  color: var(--muted);
  font-size: .75rem;
}
.translation-source-pane .production-synchronized-view {
  min-height: 540px;
  margin: 0;
  border: 0;
}
.translation-source-pane .source-visual-frame,
.translation-source-pane .source-image-frame {
  height: min(68vh, 760px);
  max-height: 760px;
}
.source-structured-list {
  max-height: 52vh;
  margin-top: 14px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.source-structured-list p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: pre-wrap;
}
.translation-page-panel[hidden] { display: none; }
.translation-page-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f3ed;
}
.translation-page-summary span {
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}
.translation-page-sheet {
  width: min(100%, 820px);
  min-height: 780px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 3%);
}
.translation-page-block {
  position: relative;
  margin: 0 0 8px;
  border: 1px solid transparent;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.translation-page-block:hover,
.translation-page-block:focus-within {
  z-index: 2;
  border-color: #b9b5ac;
  box-shadow: 0 7px 20px rgb(0 0 0 / 7%);
}
.translation-page-block.requires-review { border-left: 4px solid #b26a00; }
.translation-block-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 3px 5px;
  opacity: .58;
  background: #faf9f6;
  transition: opacity .15s ease;
}
.translation-page-block:hover .translation-block-bar,
.translation-page-block:focus-within .translation-block-bar { opacity: 1; }
.translation-block-type {
  color: var(--muted);
  font-size: .67rem;
  text-transform: uppercase;
}
.translation-format-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.translation-format-controls select {
  max-width: 120px;
  min-height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 3px 6px;
  font: inherit;
  font-size: .72rem;
}
.format-toggle {
  position: relative;
  width: 29px;
  height: 29px;
  cursor: pointer;
}
.format-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.format-toggle > span[aria-hidden] {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .78rem;
}
.format-toggle input:checked + span[aria-hidden] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.translation-page-block .segment-flags { margin-left: 3px; }
.translation-block-text {
  display: block;
  width: 100%;
  min-height: 58px;
  overflow: hidden;
  resize: none;
  border: 0;
  outline: 0;
  padding: 8px 10px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  line-height: 1.45;
}
.translation-block-text[readonly] { background: #f8f7f4; }
.translation-page-block[data-format-block="heading"] .translation-block-text,
.translation-page-block[data-format-block="auto"][data-source-type="heading"] .translation-block-text {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}
.translation-page-block[data-format-block="list_item"] .translation-block-text,
.translation-page-block[data-format-block="auto"][data-source-type="list_item"] .translation-block-text {
  padding-left: 28px;
  background-image: radial-gradient(circle, var(--ink) 0 2px, transparent 2.5px);
  background-position: 12px 19px;
  background-repeat: no-repeat;
}
.translation-page-block[data-format-bold="true"] .translation-block-text { font-weight: 800; }
.translation-page-block[data-format-italic="true"] .translation-block-text { font-style: italic; }
.translation-page-block[data-format-alignment="center"] .translation-block-text { text-align: center; }
.translation-page-block[data-format-alignment="right"] .translation-block-text { text-align: right; }
.translation-page-block[data-format-alignment="justify"] .translation-block-text { text-align: justify; }
.translation-source-correction {
  margin: 0 9px 9px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.translation-source-correction summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .7rem;
}
.translation-source-correction label {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.translation-source-correction textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.4;
}
.translation-source-correction small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
}
.translation-page-block .translation-issues { padding: 8px; }

@media (max-width: 760px) {
  .product-language-grid { grid-template-columns: 1fr; }
  .translation-page-group > summary { flex-direction: column; gap: 4px; }
  .translation-page-review-grid { grid-template-columns: 1fr; }
  .translation-source-pane { position: static; }
  .translation-source-pane .production-synchronized-view { min-height: 360px; }
  .translation-source-pane .source-visual-frame,
  .translation-source-pane .source-image-frame { height: 430px; }
  .translation-page-sheet { min-height: 600px; padding: 16px; }
  .translation-page-position { width: 100%; margin-left: 0; }
  .translation-block-bar { flex-wrap: wrap; opacity: 1; }
  .translation-format-controls { order: 3; width: 100%; margin-left: 0; }
  .translation-page-block .segment-flags { margin-left: auto; }
  .translation-studio-launch { align-items: stretch; flex-direction: column; }
  .translation-studio-launch .button { width: 100%; }
  .translation-studio-launch-actions { display: grid !important; grid-auto-flow: row; align-items: stretch; }
}


/* Original-document appointment flow */
.appointment-panel .panel-body { display: grid; gap: 1rem; }
.appointment-summary { display: grid; gap: .25rem; padding: .9rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.appointment-summary small { color: var(--muted); white-space: pre-line; }
.handover-slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .65rem; margin-top: .65rem; }
.handover-slot-button { min-height: 3rem; text-align: left; }
@media (max-width: 680px) {
  .handover-slot-grid { grid-template-columns: 1fr; }
  .appointment-panel .action-row { align-items: stretch; flex-direction: column; }
}
