:root {
  color-scheme: light;
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #18343b;
  --ink-soft: #586c6e;
  --deep: #102c34;
  --deep-2: #183e47;
  --teal: #176e69;
  --teal-soft: #e7f2ef;
  --sand: #f5f3ee;
  --line: #e2e6e2;
  --white: #fff;
  --orange: #d59b56;
  --warn: #a35425;
  --warn-soft: #fff1e5;
  --radius: 14px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  max-width: 100vw;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #dbad6a; outline-offset: 3px; }
a { color: inherit; }
.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; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--deep); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

#app:has(> .sidebar) {
  flex-direction: row;
}

.sidebar { width: 276px; flex: 0 0 276px; min-height: 100vh; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 28px 16px 18px; background: var(--deep); color: #edf3ef; overflow-y: auto; scrollbar-color: #3a5960 transparent; }
.brand { display: flex; gap: 12px; align-items: center; margin: 0 10px 34px; text-decoration: none; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.48); border-radius: 12px; font-size: 26px; font-weight: 700; letter-spacing: -.12em; padding-right: 5px; font-family: Georgia, serif; }
.brand-mark span { color: var(--orange); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; font-weight: 740; letter-spacing: .22em; }
.brand-copy small { color: #9db4b7; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.sidebar-group { margin-bottom: 26px; }
.sidebar-caption { margin: 0 12px 12px; color: #83a3a6; }
.nav-overview, .step-link { border: 0; width: 100%; color: #c6d5d5; background: transparent; text-align: left; }
.nav-overview { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 650; }
.nav-overview:hover, .step-link:hover { background: rgba(255,255,255,.075); color: white; }
.nav-overview.is-active, .step-link.is-active { color: white; background: #25515a; }
.nav-icon { font-size: 19px; line-height: 0; width: 19px; }
.nav-arrow { margin-left: auto; color: #a4bdba; }
.case-select { width: calc(100% - 16px); margin: 0 8px; padding: 11px 13px; color: white; background: #234750; border: 1px solid #4b686c; border-radius: 8px; font-size: 12px; font-weight: 700; }
.case-select option { color: var(--ink); background: white; }
.case-mini { display: flex; align-items: flex-start; gap: 8px; margin: 10px 12px 0; color: #a9bfbe; font-size: 11px; line-height: 1.45; }
.case-mini-dot { width: 6px; height: 6px; flex: 0 0 6px; margin-top: 4px; border-radius: 50%; background: var(--orange); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.step-link { display: flex; align-items: center; gap: 10px; padding: 9px 9px; border-radius: 9px; }
.step-number { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid #567278; border-radius: 7px; font-size: 10px; font-weight: 750; color: #adc3c1; }
.step-link.is-active .step-number { background: #e2b374; border-color: #e2b374; color: #1f3a3b; }
.step-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.step-copy strong { font-size: 12px; font-weight: 700; }
.step-copy small { font-size: 10px; color: #8eadad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-indicator { display: flex; justify-content: center; align-items: center; width: 17px; height: 17px; flex: 0 0 17px; margin-left: auto; border: 1px solid #6e8588; border-radius: 50%; color: transparent; font-size: 10px; }
.step-indicator--done { background: #8fc7ad; border-color: #8fc7ad; color: #0e3439; font-weight: 800; }
.sidebar-bottom { display: flex; gap: 11px; margin-top: auto; padding: 15px 10px 2px; border-top: 1px solid #2d4b53; }
.sidebar-bottom-icon { font-size: 24px; color: #d2aa74; line-height: 1; }
.sidebar-bottom div { display: flex; flex-direction: column; gap: 4px; }
.sidebar-bottom strong { font-size: 11px; font-weight: 700; }
.sidebar-bottom small { color: #8facad; font-size: 10px; line-height: 1.4; }

.shell-main { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(22px, 3.5vw, 56px); background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12px; color: #65787b; }
.breadcrumb span { margin: 0 10px; color: #a8b5b2; }
.topbar-right { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: .11em; color: #637a77; }
.demo-dot { width: 7px; height: 7px; background: #52a485; border-radius: 50%; box-shadow: 0 0 0 3px #e3f1eb; }
.topbar-version { margin-left: 8px; padding: 5px 7px; background: #f1f3f0; border-radius: 5px; letter-spacing: 0; color: #7b8e8b; }
#main-content { flex: 1; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px clamp(22px, 3.5vw, 56px); color: #85918d; font-size: 11px; }

.overview { max-width: 1500px; margin: 0 auto; padding: 34px clamp(22px, 3.5vw, 56px) 50px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); min-height: 402px; overflow: hidden; border-radius: 16px; background: var(--deep); color: white; }
.hero-text { position: relative; z-index: 2; padding: clamp(32px, 4vw, 56px); }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #e1bd89; font-size: 10px; letter-spacing: .19em; font-weight: 800; }
.hero-kicker-line { width: 21px; height: 1px; background: #e1bd89; }
.hero h1 { margin: 36px 0 21px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 3.6vw, 57px); line-height: 1.13; font-weight: 400; letter-spacing: -.04em; }
.hero h1 em { color: #b7dbca; font-style: italic; }
.hero p { max-width: 520px; margin: 0 0 28px; color: #b6ccca; font-size: 14px; line-height: 1.7; }
.hero-graphic { position: relative; min-height: 360px; background: radial-gradient(circle at 52% 48%, #22545a 0%, #173a42 43%, #0e2931 75%); overflow: hidden; }
.hero-graphic:after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 59px, rgba(255,255,255,.028) 60px), repeating-linear-gradient(0deg, transparent 0 59px, rgba(255,255,255,.028) 60px); }
.orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(178,214,202,.26); border-radius: 50%; }
.orbit-one { width: 170px; height: 170px; }.orbit-two { width: 300px; height: 300px; }.orbit-three { width: 450px; height: 450px; }
.graphic-center { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; transform: translate(-50%,-50%); width: 95px; height: 95px; border-radius: 23px; background: #d7e5d6; color: #173c3d; font: 58px Georgia,serif; letter-spacing: -.12em; padding-right: 8px; box-shadow: 0 18px 60px #0a202a88; }
.graphic-label { position: absolute; z-index: 2; padding: 9px 12px; color: #d0e0d9; background: #24535b; border: 1px solid #547078; border-radius: 6px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.graphic-label-one { top: 17%; left: 13%; }.graphic-label-two { top: 27%; right: 7%; }.graphic-label-three { bottom: 17%; left: 16%; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 17px; border-radius: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 750; text-align: left; transition: transform .18s, background .18s, box-shadow .18s; }
.button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 7px 22px #15353a20; }
.button span { font-size: 16px; font-weight: 400; }
.button--light { color: #15363a; background: #e8efe5; }
.button--primary { background: #18716b; color: white; }
.button--outline { border-color: #b8c9c4; background: white; color: #286660; }
.button--dark { background: var(--deep); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 42px 0 21px; }
.section-heading .eyebrow { color: var(--teal); margin: 0 0 7px; }
.section-heading h2 { margin: 0; font: 400 clamp(25px, 2.4vw, 34px) Georgia,serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 280px; margin: 0 0 3px; color: #758483; font-size: 12px; line-height: 1.6; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.scenario-card { min-height: 270px; display: flex; flex-direction: column; align-items: stretch; padding: 19px 21px 0; border: 1px solid #e1e6e1; border-radius: 13px; background: #fff; color: var(--ink); text-align: left; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.scenario-card:hover { transform: translateY(-4px); border-color: #9bbab0; box-shadow: 0 18px 34px #223b3420; }
.scenario-top, .scenario-bottom { display: flex; align-items: center; justify-content: space-between; }
.scenario-id { color: #5f7f7c; font-size: 10px; font-weight: 800; letter-spacing: .14em; }.scenario-open { font-size: 19px; color: #5f8984; }
.scenario-art { position: relative; display: flex; gap: 5px; height: 65px; margin: 13px 0 13px; }
.scenario-art span { height: 56px; width: 56px; border-radius: 50%; background: #dbebdf; }
.scenario-art span:nth-child(2) { position: relative; left: -26px; background: #88b9a8aa; }.scenario-art span:nth-child(3) { position: relative; left: -52px; background: #286b6ba6; }
.scenario-card--2 .scenario-art span { border-radius: 11px; transform: rotate(22deg); background: #efe5d4; }.scenario-card--2 .scenario-art span:nth-child(2) { background: #d4b582b3; }.scenario-card--2 .scenario-art span:nth-child(3) { background: #789b9e9f; }
.scenario-card--3 .scenario-art span { border-radius: 50% 15% 50% 15%; transform: rotate(45deg); background: #dce9e6; }.scenario-card--3 .scenario-art span:nth-child(2) { background: #acd0c7c2; }.scenario-card--3 .scenario-art span:nth-child(3) { background: #cdb58caa; }
.scenario-card > strong { font: 400 24px Georgia,serif; letter-spacing: -.025em; }.scenario-sub { margin-top: 5px; color: #6c807e; font-size: 12px; }
.scenario-bottom { gap: 10px; margin: auto -21px 0; padding: 13px 21px; border-top: 1px solid #e7ebe6; color: #77918a; font-size: 11px; }.scenario-bottom span:last-child { font-weight: 750; color: #246f68; }
.principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 35px; padding-top: 26px; border-top: 1px solid #d8dfd9; }
.principle-number { display: block; color: #bd965f; font-size: 11px; font-weight: 750; letter-spacing: .12em; }.principle strong { display: block; margin: 10px 0 6px; font-size: 13px; }.principle p { margin: 0; color: #6e7e7c; font-size: 12px; line-height: 1.6; }

.workspace { max-width: 1550px; margin: 0 auto; padding: 35px clamp(22px, 3.5vw, 56px) 48px; }
.case-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.case-kicker { display: flex; gap: 10px; color: #28756d; font-size: 10px; letter-spacing: .15em; font-weight: 800; }.case-kicker-separator { color: #b3c3ba; }
.case-header h1 { margin: 8px 0 5px; font: 400 clamp(32px, 3.2vw, 48px) Georgia,serif; letter-spacing: -.045em; }.case-header p { margin: 0; color: #71817c; font-size: 13px; }
.progress-card { width: 205px; flex: 0 0 205px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.progress-card > span { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #78918b; }.progress-card strong { display: block; margin: 5px 0 9px; font: 32px Georgia,serif; }.progress-card small { margin-left: 5px; font: 11px "Segoe UI",sans-serif; color: #899b95; }.progress-track { height: 5px; border-radius: 8px; background: #e3ece7; overflow: hidden; }.progress-track div { height: 100%; background: #41a084; border-radius: inherit; transition: width .2s; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; }.main-column { min-width: 0; }
.stage-panel { min-height: 590px; padding: clamp(24px, 3vw, 42px); border: 1px solid #e3e7e2; border-radius: var(--radius); background: white; box-shadow: 0 8px 28px #283b3408; }
.panel-stack { display: flex; flex-direction: column; align-items: stretch; gap: 21px; }
.stage-heading { margin-bottom: 2px; }.stage-index { color: #24766b; font-size: 10px; font-weight: 800; letter-spacing: .16em; }.stage-heading h2 { margin: 10px 0 8px; font: 400 clamp(27px, 2.6vw, 38px) Georgia,serif; letter-spacing: -.035em; }.stage-heading p { max-width: 650px; margin: 0; color: #71827d; font-size: 13px; line-height: 1.65; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.detail-box { min-height: 75px; padding: 16px 17px; background: #f7f8f5; border: 1px solid #e7ebe6; border-radius: 9px; }.detail-label,.card-overline { display: block; color: #6d8982; font-size: 9px; font-weight: 850; letter-spacing: .14em; }.detail-box strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; }
.content-card { padding: 21px 23px; border: 1px solid #e4e9e3; border-radius: 10px; background: #fff; }.content-card p { margin: 10px 0 0; color: #4b6262; font-size: 13px; line-height: 1.65; }.content-card .lead-copy { color: #25464a; font: 18px/1.5 Georgia,serif; }.content-card--fact { background: #f5faf6; border-color: #daebe0; }.content-card--interpretation { background: #fbf8f2; border-color: #efe5d3; }.content-card--soft { background: #f7f9f6; }.card-divider { height: 1px; margin: 18px 0; background: #e4eae4; }.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.source-foot { display: block; margin-top: 18px; color: #739086; font-size: 10px; }
.question-box { display: flex; align-items: start; gap: 15px; padding: 18px 20px; border-left: 3px solid #cf9d5b; background: #faf7f0; border-radius: 0 8px 8px 0; }.question-icon { width: 27px; height: 27px; flex: 0 0 27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #835b32; background: #efdfc5; font-weight: 800; }.question-box p { margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.form-row { display: flex; flex-direction: column; gap: 7px; }.form-row label { font-size: 12px; font-weight: 750; }.optional-label { margin-left: 4px; color: #91a29c; font-size: 11px; font-weight: 400; }.form-row input,.form-row textarea { width: 100%; padding: 11px 12px; border: 1px solid #cad8d1; border-radius: 7px; color: var(--ink); background: #fff; font-size: 12px; }.form-row input::placeholder,.form-row textarea::placeholder { color: #a6b4af; }.form-row small { color: #87958f; font-size: 10px; line-height: 1.4; }
.source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; background: #f5f8f4; border-radius: 9px; }.source-toolbar div { display: flex; flex-direction: column; gap: 3px; }.source-toolbar strong { font-size: 13px; }.source-toolbar span { font-size: 11px; color: #78908a; }.source-list { border: 1px solid #e2e8e2; border-radius: 10px; overflow: hidden; }.source-item { display: flex; gap: 14px; padding: 18px; border-bottom: 1px solid #e7ebe7; }.source-item:last-child { border-bottom: 0; }.source-moment { width: 35px; height: 26px; flex: 0 0 35px; display: flex; justify-content: center; align-items: center; color: #21695e; background: #e6f2ea; border-radius: 5px; font-size: 10px; font-weight: 850; }.source-moment--later { color: #9a6732; background: #faeddc; }.source-item > div { min-width: 0; flex: 1; }.source-title { display: flex; justify-content: space-between; gap: 12px; }.source-title strong { font-size: 13px; }.source-title code { color: #708b85; font-size: 10px; white-space: nowrap; }.source-kind { display: block; margin-top: 3px; color: #6b887e; font-size: 10px; }.source-item p { margin: 8px 0 0; color: #586f6b; font-size: 12px; line-height: 1.5; }.later-notice { display: flex; gap: 12px; padding: 15px 16px; background: #f8f8f4; border: 1px dashed #cddcd1; border-radius: 9px; }.later-notice--active { background: #fff9ee; border-color: #e5d4b9; }.later-notice > span { color: #669383; font-size: 22px; line-height: 1; }.later-notice strong { font-size: 12px; }.later-notice p { margin: 4px 0 0; color: #789087; font-size: 11px; line-height: 1.5; }
.component-list { display: grid; gap: 9px; }.component { display: flex; align-items: start; gap: 14px; width: 100%; padding: 17px; border: 1px solid #e1e8e2; border-radius: 9px; background: #fff; color: var(--ink); text-align: left; }.component:hover { border-color: #9fbbb0; background: #fcfdfb; }.component--selected { border-color: #8cb8a8; background: #f5faf6; }.component--caution.component--selected { border-color: #e2b78c; background: #fffbf5; }.component-check { width: 22px; height: 22px; flex: 0 0 22px; display: flex; align-items: center; justify-content: center; border: 1px solid #a9c3b6; border-radius: 5px; background: #fff; color: transparent; font-size: 13px; }.component--selected .component-check { color: #fff; background: #23806d; border-color: #23806d; }.component-body { display: flex; flex-direction: column; gap: 5px; flex: 1; }.component-meta { display: flex; gap: 7px; align-items: center; }.component-meta code { color: #287166; font-size: 10px; font-weight: 800; }.mini-label { padding: 3px 5px; border-radius: 3px; background: #e6efeb; color: #65877a; font-size: 8px; font-weight: 800; letter-spacing: .09em; }.mini-label--warn { color: #a16b3d; background: #faecd9; }.component-body strong { font-size: 13px; }.component-body > span:not(.component-meta) { color: #5d7370; font-size: 11px; line-height: 1.45; }.component-body small { margin-top: 2px; color: #8ba09a; font-size: 10px; }.component-arrow { color: #7d9a91; font-size: 17px; }.inline-status { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #758984; }
.status { display: inline-flex; align-items: center; width: fit-content; padding: 6px 9px; border-radius: 5px; font-size: 10px; font-weight: 750; }.status--done { color: #1e735d; background: #e1f2e8; }.status--pending { color: #9d6b39; background: #fff0da; }
.review-hero { display: flex; align-items: center; gap: 18px; padding: 23px; color: #e8f1eb; background: #153d44; border-radius: 10px; }.review-hero-symbol { font-size: 41px; color: #b5dbcb; line-height: 1; }.review-hero .card-overline { color: #9ec8bd; }.review-hero strong { display: block; margin-top: 7px; font: 18px Georgia,serif; }.review-hero p { margin: 8px 0 0; color: #adc9c2; font-size: 11px; }.check-list { list-style: none; display: grid; gap: 11px; padding: 0; margin: 17px 0 0; }.check-list li { display: flex; align-items: start; gap: 9px; font-size: 12px; line-height: 1.5; }.check-list li span { width: 18px; height: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #ad7442; background: #fff0df; font-size: 11px; font-weight: 800; }.decision-note { padding: 16px 18px; border-left: 3px solid #8ab9a5; background: #f6f9f5; border-radius: 0 8px 8px 0; }.decision-note strong { font-size: 12px; }.decision-note p { margin: 5px 0 0; color: #6f837b; font-size: 11px; line-height: 1.55; }
.alignment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.choice-card { display: flex; flex-direction: column; gap: 11px; min-height: 162px; padding: 19px; border: 1px solid #dee8e0; border-radius: 9px; color: var(--ink); background: #fff; text-align: left; }.choice-card:not(:disabled):hover { border-color: #86b7a7; }.choice-card--selected { background: #f2faf4; border-color: #6da68f; }.choice-icon { font-size: 21px; color: #2b806e; }.choice-card strong { font-size: 13px; }.choice-card small { color: #72867e; font-size: 11px; line-height: 1.45; }.separation-strip { display: flex; align-items: center; gap: 9px; padding: 16px 0; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #6b8b81; }.separation-line { height: 1px; flex: 1; background: #c9d7cd; }.separation-strip strong { margin-left: 9px; color: #2d6e64; font-size: 10px; letter-spacing: normal; }
.commercial-bases { display: grid; gap: 14px; }.base-card { overflow: hidden; border: 1px solid #e0e7e1; border-radius: 10px; }.base-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid #e6ebe6; background: #f8faf7; }.base-head h3 { margin: 5px 0 0; font: 19px Georgia,serif; }.base-total { padding: 7px 9px; border-radius: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; }.base-total--valid { color: #236e54; background: #e4f1e7; }.base-total--invalid { color: #a45c2c; background: #fff0e1; }.base-fields { display: grid; grid-template-columns: minmax(130px,.55fr) minmax(0,1fr); gap: 20px; padding: 18px 19px; }.payments { min-width: 0; margin: 0; padding: 0; border: 0; }.payments legend { margin-bottom: 7px; font-size: 12px; font-weight: 750; }.payment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.payment-grid label { color: #71857d; font-size: 10px; }.percent-input { display: flex; align-items: center; margin-top: 5px; border: 1px solid #cad8d1; border-radius: 7px; overflow: hidden; }.percent-input input { width: 100%; min-width: 0; padding: 9px 6px 9px 9px; border: 0; outline: none; font-size: 12px; }.percent-input span { padding-right: 8px; color: #80958b; font-size: 11px; }.base-hint { margin: 0; padding: 0 19px 17px; color: #798e83; font-size: 10px; line-height: 1.5; }
.approval-summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px; border-radius: 9px; background: #f4f8f5; }.approval-summary strong { display: block; margin-top: 6px; font-size: 13px; }.approval-checklist { border: 1px solid #e1e8e2; border-radius: 9px; overflow: hidden; }.approval-checklist > div { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #e8ede8; font-size: 12px; }.approval-checklist > div:last-child { border: 0; }.approval-checklist strong { margin-left: auto; color: #a17750; font-size: 9px; letter-spacing: .07em; }.approval-checklist .approval-check--ready + span + strong { color: #287761; }.approval-check { width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; color: #879d91; background: #f0f3ee; border-radius: 50%; font-size: 12px; }.approval-check--ready { color: white; background: #2e9678; }
.preview-box { padding: 28px; border: 1px solid #c6d6ca; border-radius: 10px; background: #fcfdfa; box-shadow: 0 12px 35px #122f2b10; }.preview-head { display: flex; justify-content: space-between; gap: 10px; color: #4f786b; font-size: 9px; font-weight: 800; letter-spacing: .13em; }.preview-box h3 { margin: 29px 0 10px; font: 29px Georgia,serif; }.preview-box p,.preview-box li { color: #4d6460; font-size: 12px; line-height: 1.7; }.preview-box ul { margin: 9px 0 22px; padding-left: 19px; }.preview-rule { height: 1px; margin: 23px 0; background: #dce7dd; }.preview-stamp { display: inline-block; margin-top: 29px; padding: 9px 12px; border: 1px solid #c49962; color: #a8763d; border-radius: 5px; font-size: 10px; font-weight: 850; letter-spacing: .11em; transform: rotate(-3deg); }.empty-preview { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 62px 25px; border: 1px dashed #d1ddd2; border-radius: 10px; background: #f8faf6; }.empty-preview > span { font-size: 47px; color: #94b9a7; }.empty-preview strong { font: 23px Georgia,serif; }.empty-preview p { max-width: 360px; margin: 0; color: #73877c; font-size: 12px; line-height: 1.6; }
.empty-preview--ready { background: #f2f9f2; border-color: #93bda7; }
.step-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 2px; }.text-button { padding: 9px 0; border: 0; background: transparent; color: #39796e; font-size: 12px; font-weight: 750; }.text-button:hover { text-decoration: underline; }.footer-final { color: #8da299; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.rail { display: grid; gap: 15px; }.rail-card { padding: 20px; border: 1px solid #e1e7e0; border-radius: 11px; background: #fff; }.rail-card .eyebrow { display: block; margin-bottom: 11px; color: #739088; }.rail-card h3 { margin: 0 0 13px; font: 25px Georgia,serif; }.rail-card p { color: #75877e; font-size: 11px; line-height: 1.6; }.rail-card--dark { background: #173e44; border-color: #173e44; color: white; }.rail-card--dark .eyebrow { color: #9cc5b6; }.rail-card--dark p { color: #bad0c8; }.rail-divider { height: 1px; margin: 18px 0 12px; background: #45666a; }.rail-alert { padding: 11px 12px; margin-bottom: 13px; border-radius: 7px; color: #8d613a; background: #fff4e8; font-size: 11px; line-height: 1.5; }.blocker-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }.blocker-list li { display: flex; align-items: start; gap: 9px; color: #5f746b; font-size: 11px; line-height: 1.5; }.blocker-list li > span { width: 5px; height: 5px; flex: 0 0 5px; margin-top: 6px; border-radius: 50%; background: #d99d5b; }.rail-clear { margin: 0; }.rail-card--source strong { font-size: 12px; }.rail-card--source a { color: #247d6b; font-size: 11px; font-weight: 700; text-decoration: none; }.rail-card--source a:hover { text-decoration: underline; }.reset-link { justify-self: start; padding: 7px 2px; border: 0; background: transparent; color: #65877d; font-size: 11px; font-weight: 700; }.reset-link:hover { text-decoration: underline; }

@media (max-width: 1200px) { .sidebar { width: 237px; flex-basis: 237px; }.workspace-grid { grid-template-columns: minmax(0,1fr) 250px; }.hero h1 { font-size: 43px; }.base-fields { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .workspace-grid { grid-template-columns: 1fr; }.rail { grid-template-columns: repeat(2,minmax(0,1fr)); }.rail-card--source { grid-column: span 2; }.reset-link { grid-column: span 2; }.hero { grid-template-columns: 1fr .65fr; }.hero-graphic { min-height: 330px; }.hero h1 { font-size: 38px; } }
@media (max-width: 760px) { #app { display: block; }.sidebar { width: 100%; height: auto; min-height: 0; position: relative; padding: 15px 16px 12px; }.brand { margin: 0 0 14px; }.sidebar-group { margin: 0 0 11px; }div.sidebar-group:first-of-type,.sidebar-bottom,.case-mini { display: none; }.sidebar-caption { margin: 0 0 6px; }.case-select { width: 100%; margin: 0; }.step-list { display: flex; gap: 6px; padding: 1px 0 7px; overflow-x: auto; }.step-list li { flex: 0 0 auto; }.step-link { min-width: 105px; width: auto; padding: 7px; }.step-number { width: 22px; height: 22px; flex-basis: 22px; }.step-copy small,.step-indicator { display: none; }.step-copy strong { font-size: 10px; }.topbar { height: 52px; flex-basis: 52px; }.topbar-right { font-size: 9px; }.breadcrumb { font-size: 10px; }.overview,.workspace { padding-top: 20px; }.hero { grid-template-columns: 1fr; }.hero-text { padding: 32px; }.hero-graphic { display: none; }.hero h1 { font-size: 40px; margin-top: 22px; }.scenario-grid { grid-template-columns: 1fr; }.scenario-card { min-height: 230px; }.scenario-art { height: 43px; margin: 11px 0; }.scenario-art span { width: 43px; height: 43px; }.scenario-art span:nth-child(2) { left: -20px; }.scenario-art span:nth-child(3) { left: -40px; }.principles { grid-template-columns: 1fr; gap: 17px; }.section-heading { display: block; }.section-heading > p { margin-top: 10px; }.case-header { align-items: start; }.progress-card { width: 150px; flex-basis: 150px; }.stage-panel { min-height: 0; }.rail { grid-template-columns: 1fr; }.rail-card--source,.reset-link { grid-column: auto; } }
@media (max-width: 560px) { .topbar-right { display: none; }.case-header { flex-direction: column; }.progress-card { width: 100%; flex: 0 0 auto; }.detail-grid,.split-cards,.alignment-options { grid-template-columns: 1fr; }.source-toolbar { align-items: stretch; flex-direction: column; }.source-title { flex-direction: column; gap: 3px; }.payment-grid { gap: 4px; }.base-fields { padding: 15px; }.step-footer { flex-wrap: wrap; }.stage-panel { padding: 23px 18px; }.site-footer { flex-direction: column; }.hero h1 { font-size: 34px; } }
.tour-intro__callout { max-width: 780px; margin: 24px auto; }.tour-intro__callout h2 { margin: 9px 0 0; font: 28px Georgia,serif; }
.tour-mode { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0; padding:0; border:0; }.tour-mode legend { margin-bottom:10px; font-size:12px; font-weight:800; }.tour-mode__option { display:flex; gap:10px; padding:13px; border:1px solid #d4e0d8; border-radius:8px; cursor:pointer; }.tour-mode__option.is-selected { border-color:#388371; background:#f0f8f3; box-shadow:inset 0 0 0 1px #388371; }.tour-mode__option input { margin:3px 0 0; accent-color:#18716b; }.tour-mode__option strong,.tour-mode__option small { display:block; }.tour-mode__option strong { font-size:12px; }.tour-mode__option small { margin-top:4px; color:#6d827a; font-size:10px; line-height:1.4; }
.client-message { padding:19px 21px; border:1px solid #d9e5dc; border-left:4px solid #6aa18e; border-radius:9px; background:#f7fbf7; }.client-message strong { display:block; margin-top:8px; font-size:13px; }.client-message p { margin:9px 0; color:#405c57; font-size:13px; line-height:1.65; }.client-message small { color:#71877f; font-size:10px; }
.demand-analysis { padding:20px; border:1px solid #d3e1d8; border-radius:10px; background:#f7faf7; }.demand-analysis h3 { margin:8px 0 5px; font:22px Georgia,serif; }.demand-analysis > p { margin:0; color:#637971; font-size:12px; line-height:1.55; }.demand-analysis__rows { display:grid; gap:7px; margin-top:15px; }.demand-analysis__row { display:grid; grid-template-columns:minmax(190px,1.6fr) minmax(110px,.7fr) 110px minmax(130px,.8fr); gap:10px; align-items:center; padding:11px 12px; border:1px solid #dce7df; border-radius:7px; background:#fff; }.demand-analysis__row q { color:#345b52; font-size:11px; line-height:1.45; }.demand-analysis__row span { color:#5c8075; font-size:10px; font-weight:750; }.demand-analysis__row strong { color:#1a7161; font-size:11px; }.demand-analysis__row small { color:#6d817a; font-size:10px; }.demand-analysis__row.is-not-suggested { background:#fbf8f1; border-color:#e7d8be; }.demand-analysis__row.is-not-suggested strong { color:#9b7141; }
.tour-storyboard { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:24px 0; }.tour-storyboard__item { min-height:124px; padding:15px; border:1px solid #dce7df; border-radius:10px; background:#fff; }.tour-storyboard__item > span { color:#b68249; font-size:10px; font-weight:800; letter-spacing:.12em; }.tour-storyboard__item strong { display:block; margin-top:12px; font-size:12px; }.tour-storyboard__item p { margin:6px 0 0; color:#6e817c; font-size:11px; line-height:1.45; }
.tour-dim { position:fixed; inset:0; z-index:9000; background:rgba(9,29,38,.62); pointer-events:none; }.tour-focus { position:relative; z-index:9001; outline:3px solid #e1b770; outline-offset:8px; box-shadow:0 0 0 5px rgba(255,255,255,.7); border-radius:5px; }.tour-guide { position:fixed; z-index:9003; left:50%; bottom:22px; transform:translateX(-50%); width:min(680px,calc(100vw - 32px)); padding:18px 22px; color:#f6f3eb; background:#112f3a; border:1px solid #53747a; border-radius:12px; box-shadow:0 22px 55px rgba(0,0,0,.38); }.tour-guide__meta { display:flex; justify-content:space-between; color:#e4bb76; font-size:10px; font-weight:800; letter-spacing:.13em; }.tour-guide strong { display:block; margin:8px 0 5px; font:23px Georgia,serif; }.tour-guide > p { margin:0; color:#d1dfdc; font-size:13px; line-height:1.5; }.tour-guide__controls { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }.tour-guide__controls button { min-height:34px; padding:7px 10px; border:1px solid #648189; border-radius:6px; color:#eef5f2; background:transparent; font-size:11px; font-weight:750; }.tour-guide__controls button:not(:disabled):hover { color:#173a42; background:#e3bb79; border-color:#e3bb79; }.tour-guide__controls button:last-child { margin-left:auto; color:#b6d0c8; border-color:transparent; }.tour-analysis { margin-top:13px; padding:12px 14px; color:#17313c; background:#f5f8f4; border-radius:7px; }.tour-analysis span { color:#547a70; font-size:9px; font-weight:850; letter-spacing:.12em; }.tour-analysis p { margin:7px 0 0; font-size:12px; line-height:1.65; }.tour-analysis b { color:#1e6d62; }.tour-pointer { position:fixed; z-index:9002; width:28px; height:28px; display:grid; place-items:center; color:#112f3a; background:#e9c177; border:2px solid #fff7e8; border-radius:50%; font-size:19px; opacity:0; transform:translate(-50%,-50%) scale(.7); transition:opacity .2s,transform .35s,left .5s,top .5s; box-shadow:0 5px 15px #0005; pointer-events:none; }.tour-pointer--visible { opacity:1; transform:translate(-50%,-50%) scale(1); }
.tour-guide__manual { display:inline-flex; align-items:center; padding:7px 2px; color:#d8b674; font-size:11px; font-weight:750; }
@media (max-width:760px) { .tour-storyboard,.tour-mode { grid-template-columns:repeat(2,minmax(0,1fr)); }.demand-analysis__row { grid-template-columns:1fr 1fr; }.demand-analysis__row q { grid-column:span 2; }.tour-guide { bottom:10px; width:calc(100vw - 20px); padding:15px; }.tour-guide strong { font-size:20px; }.tour-guide > p { font-size:12px; }.tour-guide__controls { gap:6px; }.tour-guide__controls button { padding:7px 8px; }.tour-guide__controls button:last-child { margin-left:0; }.tour-analysis { max-height:150px; overflow:auto; }.primary-nav a { min-width:0; }.primary-nav a span:first-child { display:none; } }
@media (max-width:420px) { .tour-guide__controls button { font-size:10px; }.tour-guide__controls button:last-child { width:100%; }.tour-storyboard__item { min-height:112px; padding:12px; } }

.intake-record { padding:20px; border:1px solid #cfe0d7; border-radius:10px; background:linear-gradient(135deg,#f6faf7,#fbfcfa); }
.intake-record__head { display:flex; justify-content:space-between; gap:24px; align-items:start; margin-bottom:16px; }.intake-record__head h3 { margin:6px 0 0; font:21px Georgia,serif; }.intake-record__head p { max-width:360px; margin:0; color:#61786f; font-size:11px; line-height:1.5; }
.intake-record__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.intake-record__grid label { display:flex; flex-direction:column; gap:6px; color:#415a52; font-size:10px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }.intake-record__grid input,.intake-record__grid textarea { box-sizing:border-box; width:100%; border:1px solid #d4e1da; border-radius:6px; background:#fff; color:#1d3730; padding:10px 11px; font:12px/1.45 Inter,Arial,sans-serif; font-weight:500; resize:none; }.intake-record__grid input:read-only,.intake-record__grid textarea:read-only { cursor:default; }.intake-record__wide { grid-column:span 2; }.intake-record__legend { display:flex; gap:16px; margin-top:12px; color:#71877f; font-size:10px; }.intake-record__legend span:first-child::first-letter { color:#4d8e7a; }.intake-record__legend span:last-child::first-letter { color:#b07d3d; }
.analysis-trace { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0 12px; }.analysis-trace div { padding:10px; border:1px solid #d9e5dc; border-radius:7px; background:#fff; }.analysis-trace span { display:inline-grid; place-items:center; width:19px; height:19px; margin-right:6px; border-radius:50%; background:#e6f0ea; color:#39715f; font-size:9px; font-weight:800; }.analysis-trace strong { color:#34584e; font-size:10px; }.analysis-trace small { display:block; margin-top:5px; color:#758880; font-size:10px; }
@media (max-width:760px) { .intake-record__head { display:block; }.intake-record__head p { margin-top:9px; }.intake-record__grid { grid-template-columns:1fr; }.intake-record__wide { grid-column:span 1; }.intake-record__legend { flex-direction:column; gap:4px; }.analysis-trace { grid-template-columns:1fr; } }


.source-review { padding:19px; border:1px solid #cfdfd5; border-radius:10px; background:#f7faf7; }
.source-review__head { display:flex; justify-content:space-between; gap:24px; }
.source-review__head h3 { margin:7px 0 0; font:21px Georgia,serif; }
.source-review__head p { max-width:350px; margin:0; color:#637a71; font-size:11px; line-height:1.5; }
.source-review__items { display:grid; gap:8px; margin-top:15px; }
.source-review__items article { display:grid; grid-template-columns:28px 1fr auto; gap:11px; align-items:start; padding:12px; border:1px solid #dce7df; border-radius:7px; background:#fff; }
.source-review__items article > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#39715f; background:#e6f0ea; font-size:9px; font-weight:850; }
.source-review__items strong { display:block; color:#294e44; font-size:12px; }
.source-review__items small { display:block; margin-top:3px; color:#759087; font-size:10px; }
.source-review__items p { margin:6px 0 0; color:#536e65; font-size:11px; line-height:1.45; }
.source-review__items b { padding:4px 6px; border-radius:4px; color:#39715f; background:#e8f3ec; font-size:9px; }
.source-review__result { margin-top:11px; padding:11px 12px; border-left:3px solid #6a9a87; background:#edf5ef; }
.source-review__result span { color:#4c7668; font-size:9px; font-weight:850; }
.source-review__result p { margin:4px 0 0; color:#426359; font-size:11px; line-height:1.5; }
@media (max-width:760px) { .source-review__head { display:block; } .source-review__head p { margin-top:8px; } .source-review__items article { grid-template-columns:25px 1fr; } .source-review__items b { grid-column:2; justify-self:start; } }
/* Conversa de novo caso */
.intake-shell{min-height:100vh;display:grid;grid-template-columns:minmax(240px,1fr) minmax(420px,2fr) minmax(240px,1fr);gap:28px;padding:42px;background:#eef1ed;color:#17334b}.intake-aside,.intake-context{padding:20px}.intake-aside h1{font-family:Georgia,serif;font-size:32px;line-height:1.08;margin:16px 0}.intake-eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:#6a655e}.intake-back{color:#17334b;font-weight:700;text-decoration:none}.intake-steps{list-style:none;padding:18px 0;border-top:1px solid #ccd4cf}.intake-steps li{padding:10px 0;color:#6a746e}.intake-steps .is-current{color:#17334b;font-weight:800;border-left:3px solid #d5a84a;padding-left:10px}.intake-conversation{background:#fffdf8;border:1px solid #d8ddd7;border-top:6px solid #243b87;padding:38px;box-shadow:0 18px 45px #17334b18}.intake-conversation h2{font:36px/1.08 Georgia,serif;margin:10px 0}.intake-thread{display:grid;gap:12px;margin:30px 0}.assistant-message,.answer-message{padding:16px 18px;border-radius:4px;display:grid;gap:7px}.assistant-message{background:#e7f0ec;border-left:4px solid #4b8c77}.answer-message{background:#f3f1ea;border-left:4px solid #d5a84a}.intake-form label{font-weight:800;display:block;margin-bottom:8px}.intake-form textarea{box-sizing:border-box;width:100%;padding:14px;font:16px/1.5 inherit;border:1px solid #aeb9b2;border-radius:3px}.intake-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;font-size:13px;color:#596862}.intake-actions button,.intake-ready button{border:0;background:#243b87;color:white;padding:13px 18px;font-weight:800;cursor:pointer}.intake-context{background:#17334b;color:#edf1ec;align-self:start}.intake-context dl{display:grid;gap:15px}.intake-context dt{font-size:12px;color:#bdcabf}.intake-context dd{margin:4px 0 0;font-weight:700}.intake-ready{padding:20px;background:#e7f0ec;border-left:4px solid #4b8c77}@media(max-width:900px){.intake-shell{grid-template-columns:1fr;padding:18px}.intake-context{order:3}.intake-conversation{padding:25px}.intake-actions{align-items:flex-start;flex-direction:column}.intake-conversation h2{font-size:30px}}


/* ==========================================================================
   Centro de Análise Técnica & Consistência (Design Executivo Inglese)
   ========================================================================== */
.analysis-shell {
  min-height: calc(100vh - 52px);
  background: #f8fafc;
  color: #0f172a;
  padding: 28px 36px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto 24px;
}

.analysis-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.analysis-breadcrumbs a {
  color: #1b2f7a;
  text-decoration: none;
}
.analysis-breadcrumbs a:hover {
  text-decoration: underline;
}

.analysis-header__title-group h1 {
  margin: 6px 0 4px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.analysis-header__title-group p {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  max-width: 820px;
  line-height: 1.5;
}

.analysis-btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #1b2f7a;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(27, 47, 122, 0.2);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.analysis-btn-cta:hover {
  background: #122056;
  transform: translateY(-1px);
}

/* KPI Ribbon */
.analysis-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto 24px;
}

.analysis-kpi-card {
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.analysis-kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.analysis-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-kpi-card small {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* Tabs */
.analysis-tabs {
  display: flex;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto 20px;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
}

.analysis-tab-btn {
  padding: 11px 18px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.analysis-tab-btn:hover {
  color: #1b2f7a;
  background: rgba(27, 47, 122, 0.04);
}

.analysis-tab-btn.is-active {
  color: #1b2f7a;
  border-bottom-color: #1b2f7a;
  font-weight: 800;
}

.analysis-main-area {
  max-width: 1400px;
  margin: 0 auto;
}

/* Badges */
.analysis-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analysis-badge--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.analysis-badge--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.analysis-badge--pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.analysis-badge--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.analysis-badge--navy {
  background: #eef2ff;
  color: #1b2f7a;
  border: 1px solid #c7d2fe;
}

/* Readiness Checklist */
.analysis-readiness-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.analysis-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.analysis-section-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.analysis-section-title p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.analysis-readiness-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
}

.analysis-readiness-score strong {
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
}

.analysis-readiness-score small {
  font-size: 10px;
  color: #047857;
  font-weight: 700;
  text-transform: uppercase;
}

.analysis-checklist-grid {
  display: grid;
  gap: 12px;
}

.analysis-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.analysis-check-item--ok {
  border-left: 4px solid #10b981;
}

.analysis-check-item--warn {
  border-left: 4px solid #f59e0b;
  background: #fffdfa;
}

.analysis-check-item--pending {
  border-left: 4px solid #64748b;
}

.analysis-check-icon {
  font-size: 18px;
  line-height: 1.2;
}

.analysis-check-body {
  flex: 1;
}

.analysis-check-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.analysis-check-head strong {
  font-size: 13.5px;
  color: #1e293b;
}

.analysis-check-body p {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

/* Facts Grid */
.analysis-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.analysis-fact-card {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.analysis-fact-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.analysis-fact-value {
  font-size: 14px;
  color: #0f172a;
  line-height: 1.45;
}

/* Sources Comparison Grid */
.analysis-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.analysis-source-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-source-col__head {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #1b2f7a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analysis-source-col__head strong {
  font-size: 13.5px;
  color: #0f172a;
}

.analysis-source-col__head small {
  font-size: 11px;
  color: #64748b;
}

.analysis-source-card {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-source-card h4 {
  margin: 0;
  font-size: 13px;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analysis-source-card h4 code {
  font-size: 11px;
  color: #1b2f7a;
  background: #eef2ff;
  padding: 1px 5px;
  border-radius: 3px;
}

.analysis-source-card p {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.analysis-source-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.analysis-source-meta code {
  font-weight: 700;
  color: #1b2f7a;
}

/* Catalog View */
.analysis-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.analysis-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.analysis-search-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.analysis-search-box input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s;
}

.analysis-search-box input:focus {
  outline: none;
  border-color: #1b2f7a;
  box-shadow: 0 0 0 3px rgba(27, 47, 122, 0.12);
}

.analysis-search-clear {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  border: 0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
}

.analysis-discipline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analysis-discipline-pill {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.analysis-discipline-pill:hover {
  border-color: #1b2f7a;
  color: #1b2f7a;
}

.analysis-discipline-pill.is-active {
  background: #1b2f7a;
  color: #ffffff;
  border-color: #1b2f7a;
}

.analysis-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.analysis-component-card {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s;
}

.analysis-component-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.analysis-component-card.is-selected-in-case {
  border: 2px solid #10b981;
  background: #fcfdfd;
}

.analysis-comp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.analysis-comp-code {
  font-family: monospace;
  font-weight: 800;
  font-size: 12px;
  color: #1b2f7a;
  background: #eef2ff;
  padding: 2px 7px;
  border-radius: 4px;
}

.analysis-comp-discipline {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.analysis-comp-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.analysis-comp-field {
  font-size: 12px;
  color: #475569;
}

.analysis-comp-field span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.analysis-comp-field strong {
  color: #1e293b;
  font-weight: 700;
}

.analysis-comp-field p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.analysis-comp-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
}

.analysis-comp-evidence {
  font-family: monospace;
  color: #0284c7;
}

/* Opinion View */
.analysis-opinion-card {
  padding: 32px 36px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.analysis-opinion-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #1b2f7a;
}

.analysis-opinion-stamp strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1b2f7a;
}

.analysis-opinion-stamp span {
  font-size: 10.5px;
  font-weight: 750;
  color: #64748b;
}

.analysis-opinion-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1b2f7a;
}

.analysis-opinion-section p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
}

.analysis-opinion-list {
  margin: 8px 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}

/* Research View */
.analysis-research-card {
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #1b2f7a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analysis-research-question {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.analysis-research-meta p {
  margin: 4px 0;
  font-size: 13px;
  color: #334155;
}

.analysis-research-hint {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  border: 1px dashed #cbd5e1;
}

.analysis-research-hint span {
  font-weight: 800;
  color: #1b2f7a;
}

.analysis-view-intro {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.analysis-view-intro h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.analysis-view-intro p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.analysis-catalog-counter {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.analysis-catalog-counter strong {
  font-size: 14px;
  color: #1b2f7a;
}

@media (max-width: 1024px) {
  .analysis-sources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .analysis-shell {
    padding: 18px 16px;
  }
  .analysis-header {
    flex-direction: column;
    align-items: stretch;
  }
  .analysis-btn-cta {
    width: 100%;
    justify-content: center;
  }
}


.approval-page { max-width:1160px; margin:0 auto; padding:34px 34px 70px; color:#17313c; }.approval-page__head { display:flex; justify-content:space-between; padding-bottom:20px; border-bottom:1px solid #d8e2dc; color:#648076; font-size:10px; font-weight:800; letter-spacing:.1em; }.approval-page__head a { color:#2c6257; text-decoration:none; }.approval-intro { display:flex; justify-content:space-between; gap:35px; padding:42px 0 32px; }.approval-intro p:first-child,.approval-panel>p { margin:0; color:#a27438; font-size:10px; font-weight:850; letter-spacing:.14em; }.approval-intro h1 { max-width:690px; margin:10px 0; font:42px/1.06 Georgia,serif; }.approval-intro div>p:last-child { max-width:640px; color:#5d766d; font-size:14px; line-height:1.65; }.approval-intro aside { min-width:150px; align-self:center; padding:18px; border-left:3px solid #d9ad65; background:#faf7f0; }.approval-intro aside strong { display:block; font:32px Georgia,serif; }.approval-intro aside span { color:#6b8177; font-size:11px; }.approval-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:28px; align-items:start; }.proposal-sheet { padding:46px 52px; border:1px solid #d8e1db; box-shadow:0 14px 32px #183c3212; background:#fff; }.proposal-sheet__brand { color:#183d61; font-size:18px; font-weight:850; letter-spacing:.06em; }.proposal-sheet__brand span { display:block; margin-top:3px; font-size:8px; letter-spacing:.18em; }.proposal-sheet__meta { display:flex; justify-content:space-between; margin-top:36px; color:#9b753e; font-size:9px; font-weight:850; letter-spacing:.1em; }.proposal-sheet h2 { max-width:610px; margin:20px 0 12px; font:34px/1.12 Georgia,serif; }.proposal-sheet__client { color:#537067; font-size:13px; line-height:1.7; }.proposal-sheet__client small { color:#798d85; }.proposal-sheet-legacy article { display:grid; grid-template-columns:32px 1fr; gap:13px; margin-top:25px; }.proposal-sheet-legacy article>b { color:#b18b50; font-size:11px; }.proposal-sheet-legacy article h3 { margin:0; color:#244c43; font-size:14px; }.proposal-sheet-legacy article p { margin:5px 0 0; color:#59756c; font-size:12px; line-height:1.6; }.proposal-sheet footer { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-top:36px; padding-top:17px; border-top:1px solid #dce5df; color:#5e756d; font-size:11px; }.proposal-sheet footer strong { color:#183d61; font-size:17px; }.approval-panel { padding:24px; border:1px solid #d9e3dc; background:#f8faf8; }.approval-panel h2 { margin:8px 0; font:25px Georgia,serif; }.approval-panel__copy { color:#5c756c; font-size:12px; line-height:1.55; }.approval-list { margin-top:20px; border-top:1px solid #dfe7e1; }.approval-list__item { display:grid; grid-template-columns:27px 1fr; gap:10px; padding:15px 0; border-bottom:1px solid #dfe7e1; }.approval-list__item>span { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; color:#8a6938; background:#f1e6cf; font-size:9px; font-weight:850; }.approval-list__item.is-approved>span { color:#2f755f; background:#dfeee6; }.approval-list__item b,.approval-list__item strong,.approval-list__item small { display:block; }.approval-list__item b { color:#375d53; font-size:10px; }.approval-list__item strong { margin-top:3px; font-size:12px; }.approval-list__item small { margin-top:3px; color:#7b9088; font-size:9px; }.approval-list__item em { grid-column:2; color:#397b64; font-size:10px; font-style:normal; font-weight:800; }.approval-list__item button { grid-column:2; justify-self:start; margin-top:2px; border:1px solid #c4d8ce; border-radius:5px; padding:6px 8px; color:#285a4c; background:#fff; font-size:10px; font-weight:750; cursor:pointer; }.approval-trace { margin-top:20px; padding:13px; border-left:3px solid #6e9d8a; background:#eaf3ed; }.approval-trace b { color:#457568; font-size:10px; }.approval-trace p { margin:5px 0 0; color:#527269; font-size:10px; line-height:1.5; }.approval-issue { width:100%; margin-top:20px; border:0; border-radius:5px; padding:12px; color:#fff; background:#183d61; font-size:11px; font-weight:800; }.approval-issue:disabled { color:#7a8d87; background:#e1e8e3; }
@media (max-width:800px) { .approval-page { padding:22px 16px 45px; }.approval-intro,.approval-layout { display:block; }.approval-intro h1 { font-size:32px; }.approval-intro aside { margin-top:18px; }.approval-panel { margin-top:18px; }.proposal-sheet { padding:31px 24px; }.proposal-sheet h2 { font-size:28px; }.proposal-sheet__meta,.proposal-sheet footer { align-items:flex-start; flex-direction:column; } }

.intake-form input{box-sizing:border-box;width:100%;margin:0 0 14px;padding:11px 13px;border:1px solid #aeb9b2;border-radius:3px;font:14px inherit}.intake-error{padding:10px;color:#8b3529;background:#fae8e4;font-size:12px}


/* Layout Oficial Carta-Propuesta Inglese Consultores S.A. (Acervo Histórico) */
.approval-page {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(12px, 3vw, 34px) 60px;
  box-sizing: border-box;
  color: #17313c;
  overflow-x: clip;
}

.approval-page__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8e2dc;
  color: #648076;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.approval-page__nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.approval-page__nav a:hover {
  text-decoration: underline;
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1140px) {
  .approval-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .approval-panel {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }
  .proposal-sheet--carta {
    width: 100%;
    max-width: 100% !important;
  }
}

.carta-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #d5dfd9;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(23, 49, 60, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.carta-toolbar__select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  font-weight: 750;
  color: #1c3a44;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}

.carta-toolbar__select select {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #b8c8c0;
  border-radius: 6px;
  background: #f9fbf9;
  color: #17313c;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  overflow: hidden;
}

.carta-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.carta-lang-switch {
  display: inline-flex;
  border: 1px solid #c3d1ca;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f7f5;
}

.carta-lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 750;
  color: #4d6760;
}

.carta-lang-switch button.is-active {
  background: #1b2f7a;
  color: #fff;
}

.carta-print-btn {
  border: 1px solid #1b2f7a;
  border-radius: 6px;
  padding: 7px 13px;
  background: #fff;
  color: #1b2f7a;
  font-size: 11px;
  font-weight: 800;
  transition: background .15s, color .15s;
}

.carta-print-btn:hover {
  background: #1b2f7a;
  color: #fff;
}

.carta-estimator {
  margin-bottom: 22px;
  padding: 16px 20px;
  background: #f8faff;
  border: 1.5px solid #c9d6f0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(27, 47, 122, 0.06);
  box-sizing: border-box;
  width: 100%;
}

.carta-estimator__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.carta-estimator__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carta-estimator__icon {
  font-size: 24px;
}

.carta-estimator__title strong {
  display: block;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1b2f7a;
  letter-spacing: .04em;
}

.carta-estimator__title small {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.carta-estimator__toggle-btn {
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #1b2f7a;
  border-radius: 5px;
  color: #1b2f7a;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all .15s;
}

.carta-estimator__toggle-btn:hover {
  background: #1b2f7a;
  color: #fff;
}

.carta-estimator__body {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dce4f5;
  display: grid;
  gap: 16px;
}

.carta-estimator__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.carta-estimator__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 750;
  color: #1e293b;
}

.carta-estimator__field input, .carta-estimator__field select {
  padding: 7px 10px;
  border: 1px solid #b4c3e3;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
}

.carta-estimator__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d3def7;
  border-radius: 6px;
}

.carta-estimator__metric-item strong {
  display: block;
  font-size: 14px;
  color: #1b2f7a;
  font-family: Arial, "Segoe UI", sans-serif;
}

.carta-estimator__metric-item span {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.carta-estimator__apply-btn {
  padding: 9px 18px;
  background: #1b2f7a;
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  justify-self: start;
}

.carta-estimator__apply-btn:hover {
  background: #122056;
}

.proposal-sheet--carta {
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
  padding: 44px clamp(18px, 4vw, 56px) 38px;
  border: 1px solid #cfd6df;
  background: #ffffff;
  color: #141a24;
  box-shadow: 0 18px 42px rgba(18, 32, 68, 0.11);
  overflow-wrap: break-word;
  word-break: break-word;
}

.carta-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.carta-letterhead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inglese-logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.carta-letterhead__company .proposal-sheet__brand {
  display: block;
  color: #1b2f7a;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.carta-letterhead__company .proposal-sheet__brand span {
  display: inline;
  font-size: 18px;
  letter-spacing: .04em;
}

.carta-letterhead__company p {
  margin: 2px 0 0;
  color: #2b3856;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 10.5px;
  line-height: 1.35;
}

.carta-letterhead__stamp {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.carta-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #eef2ff;
  border: 1px solid #b9c6f2;
  border-radius: 4px;
  color: #1b2f7a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.carta-letterhead__stamp small {
  color: #5b6782;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.carta-rule {
  border: 0;
  margin: 10px 0;
}

.carta-rule--navy {
  height: 2px;
  background: #1b2f7a;
}

.carta-date-line {
  text-align: right;
  margin: 8px 0 10px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 13px;
  color: #1c2433;
}

.carta-addressee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 8px 0 10px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 13.5px;
  line-height: 1.45;
}
.carta-label { display: block; color: #2a3342; font-size: 13px; }
.carta-client-name { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: #0f172a; letter-spacing: .01em; }
.carta-case-subtitle { margin: 3px 0 8px; color: #475569; font-size: 12px; font-style: italic; }
.carta-attention { margin: 8px 0 0; font-size: 13px; color: #111827; }
.carta-addressee__right p { margin: 0 0 6px; font-size: 13px; color: #111827; }
.carta-folder span { font-weight: 700; color: #1b2f7a; }
.carta-ref span { font-weight: 700; }

.carta-body { margin-top: 18px; font-family: "Times New Roman", Georgia, serif; font-size: 13.8px; line-height: 1.62; color: #141a24; }
.carta-salutation { margin: 0 0 12px; font-weight: 700; }
.carta-paragraph { margin: 0 0 11px; text-align: justify; }

.carta-section { margin-top: 22px; }
.carta-section__title { margin: 0 0 9px; padding-bottom: 3px; border-bottom: 1px solid #d5dceb; color: #1b2f7a; font-family: Arial, "Segoe UI", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.carta-scope-list { display: block; margin-top: 10px; }
/* Global Navigation Bar across all application views */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #112638;
  color: #fff;
  border-bottom: 2px solid #e5a93c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.global-nav__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.global-nav__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.global-nav__title {
  font-size: 13.5px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #ffffff;
}

.global-nav__title span {
  color: #e5a93c;
  font-weight: 400;
}

.global-nav__subtitle {
  font-size: 10px;
  color: #9cb5cf;
  border-left: none;
  padding-left: 0;
  margin-top: 1px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

.global-nav__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  overflow-x: visible;
  overflow-y: visible;
  flex-shrink: 1;
  min-width: 0;
  padding: 2px 0;
}

.global-nav__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b5c7da;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  flex-shrink: 0;
}

.global-nav__tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.global-nav__tab.is-active {
  background: #1f4263;
  color: #ffffff;
  border-bottom: 2px solid #e5a93c;
}

@media (max-width: 1680px) {
  .global-nav__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand user"
      "tabs  tabs";
    padding: 8px 16px 6px;
    row-gap: 6px;
    column-gap: 12px;
    min-height: auto;
  }
  .global-nav__brand {
    grid-area: brand;
  }
  .global-nav__subtitle {
    display: none;
  }
  .global-nav__user-area {
    grid-area: user;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
  }
  .global-nav__tabs {
    grid-area: tabs;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    gap: 6px;
  }
  .user-session-pill__role {
    display: none !important;
  }
  .user-session-pill {
    max-width: 150px;
  }
}

@media (max-width: 1120px) {
  .terminal-nav-btn__label {
    display: none;
  }
  .terminal-nav-btn {
    padding: 5px 9px;
  }
  .ai-config-nav-pill__label {
    display: none;
  }
  .ai-config-nav-pill {
    padding: 5px 9px;
  }
  .tour-nav-pill {
    padding: 5px 9px;
  }
}

@media (max-width: 760px) {
  .global-nav__inner {
    padding: 6px 10px;
    column-gap: 8px;
  }
  .user-session-pill__name {
    display: none;
  }
  .user-session-pill {
    padding: 2px;
    border-radius: 50%;
    max-width: none;
  }
  .user-session-pill__arrow {
    display: none;
  }
  .tour-nav-pill__text {
    display: none;
  }
  .tour-nav-pill,
  .ai-config-nav-pill,
  .terminal-nav-btn {
    padding: 5px 7px;
  }
  .global-nav__lang-code {
    display: none;
  }
  .global-nav__lang-btn {
    padding: 4px 5px;
  }
  .global-nav__tab {
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .global-nav__title span {
    display: none;
  }
  .global-nav__user-area {
    gap: 4px;
  }
  .global-nav__tabs {
    gap: 4px;
  }
  .global-nav__tab {
    padding: 4px 7px;
    font-size: 10.5px;
  }
}


.proposal-sheet--carta .carta-scope-list { display: block !important; }
.proposal-sheet-legacy article.carta-scope-item,
.proposal-sheet--carta article.carta-scope-item,
.proposal-sheet--carta article,
article.carta-scope-item {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 14px !important;
  padding: 16px 20px !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3px solid #1b2f7a !important;
  background: #fbfcff !important;
  border-radius: 0 6px 6px 0 !important;
}
.proposal-sheet-legacy article.carta-scope-item > *,
.proposal-sheet--carta article.carta-scope-item > * {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.proposal-sheet-legacy article.carta-scope-item h4.carta-scope-item__title,
.proposal-sheet--carta article.carta-scope-item h4.carta-scope-item__title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
  font-family: Arial, 'Segoe UI', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #162447 !important;
}
.proposal-sheet-legacy article.carta-scope-item ol.carta-alpha-list,
.proposal-sheet--carta article.carta-scope-item ol.carta-alpha-list {
  display: grid !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 8px 0 12px !important;
  padding: 0 !important;
}
.proposal-sheet-legacy article.carta-scope-item ol.carta-alpha-list > li,
.proposal-sheet--carta article.carta-scope-item ol.carta-alpha-list > li {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  text-align: justify !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
.proposal-sheet-legacy article.carta-scope-item p.carta-scope-result,
.proposal-sheet--carta article.carta-scope-item p.carta-scope-result {
  display: block !important;
  margin: 12px 0 0 !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
  text-align: justify !important;
}

.proposal-sheet--carta .carta-scope-item__title { margin: 0 0 10px; font-family: Arial, "Segoe UI", sans-serif; font-size: 13px; font-weight: 800; color: #162447; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.carta-component-tag { padding: 2px 7px; background: #e8edff; color: #1b2f7a; border-radius: 3px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }

.carta-alpha-list { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 7px; }
.carta-alpha-list > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: start; text-align: justify; }
.carta-alpha-marker { font-weight: 700; color: #1b2f7a; }
.carta-folder-bullets { list-style: none; margin: 6px 0 2px; padding-left: 12px; display: grid; gap: 4px; }
.carta-folder-bullets li { font-size: 13px; color: #283244; }
.carta-hollow-bullet { display: inline-block; width: 14px; font-family: "Courier New", monospace; font-weight: 700; color: #1b2f7a; }
.proposal-sheet--carta article.carta-scope-item p.carta-scope-result { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed #cbd5e1; font-size: 13px; line-height: 1.55; color: #1e293b; }

.carta-exclusion-box { padding: 10px 13px; background: #fffaf2; border-left: 3px solid #c27d2c; font-size: 13px; color: #3b2a14; }
.carta-milestone-list { list-style: none; margin: 8px 0 12px; padding-left: 8px; display: grid; gap: 6px; }

.carta-fee-table { width: 100%; border-collapse: collapse; margin: 10px 0 10px; font-family: Arial, "Segoe UI", sans-serif; font-size: 12px; }
.carta-fee-table th, .carta-fee-table td { padding: 9px 11px; border: 1px solid #cbd5e1; text-align: left; }
.carta-fee-table thead th { background: #1b2f7a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.carta-fee-table tbody tr:nth-child(even) { background: #f8fafc; }
.carta-fee-table tfoot td { background: #eef2ff; color: #122056; font-size: 12px; }
.carta-fee-table .is-right { text-align: right; white-space: nowrap; }
.carta-total-amount { font-size: 14px; color: #1b2f7a; }
.carta-fee-words { margin: 6px 0 0; font-style: italic; font-size: 13px; }
.carta-commercial-terms { padding: 9px 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 12.5px; }

.carta-closing { margin-top: 18px; }
.carta-signatures { display: grid; grid-template-columns: repeat(2, minmax(180px, 240px)); justify-content: end; gap: 28px; margin: 38px 0 22px; text-align: center; font-family: Arial, "Segoe UI", sans-serif; }
.carta-signature-line { height: 1px; background: #1b2f7a; margin-bottom: 7px; }
.carta-signature-block strong { display: block; font-size: 12px; color: #122056; }
.carta-signature-block span { display: block; margin-top: 2px; font-size: 10.5px; color: #475569; }

.carta-issued-seal { margin: 18px 0 8px; padding: 11px 14px; border: 1.5px solid #1e735d; background: #ecfdf5; border-radius: 5px; font-family: Arial, "Segoe UI", sans-serif; font-size: 11px; color: #065f46; display: flex; flex-direction: column; gap: 3px; }
.proposal-sheet--carta footer.carta-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 12px; border-top: 1.5px solid #1b2f7a; font-family: Arial, "Segoe UI", sans-serif; font-size: 10.5px; color: #334155; }
.proposal-sheet--carta footer.carta-footer strong { color: #1b2f7a; font-size: 11.5px; }

.approval-issued-card { margin-top: 14px; padding: 12px; border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 6px; font-size: 11px; color: #065f46; }
.approval-issued-card p { margin: 5px 0 0; line-height: 1.5; }

/* Prévia Carta-Propuesta dentro da etapa 08/Emissão da bancada */
.preview-box--carta { border-top: 4px solid #1b2f7a; background: #fff; }
.preview-rule--navy { height: 1.5px; margin: 12px 0; background: #1b2f7a; }
.preview-addressee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-family: Georgia, "Times New Roman", serif; font-size: 12.5px; line-height: 1.5; color: #1e293b; }
.preview-salutation { font-family: Georgia, "Times New Roman", serif; font-weight: 700; margin-top: 12px; }
.preview-scope-numbered { margin: 8px 0 18px; padding-left: 18px; font-size: 12px; line-height: 1.65; color: #2b3d3b; }
.preview-footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #dce5df; flex-wrap: wrap; }
.preview-footer-bar .preview-stamp { margin-top: 0; }

@media (max-width: 800px) {
  .carta-addressee-grid, .carta-signatures, .preview-addressee { grid-template-columns: 1fr; }
  .proposal-sheet--carta { padding: 28px 20px; }
}

@media print {
  body { background: #fff !important; }
  .no-print, .sidebar, .topbar, .site-footer, .approval-panel, .approval-page__head, .approval-intro, .carta-toolbar { display: none !important; }
  .approval-page { max-width: 100%; margin: 0; padding: 0; }
  .approval-layout { display: block; }
  .proposal-sheet--carta { max-width: 100%; padding: 12mm 14mm; border: 0; box-shadow: none; }
}


/* Carta-Propuesta Scope Item Styles */
.carta-scope-list, .proposal-sheet--carta .carta-scope-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  margin-top: 14px !important;
}
.carta-scope-item,
div.carta-scope-item,
.proposal-sheet .carta-scope-item,
.proposal-sheet--carta .carta-scope-item {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 !important;
  padding: 18px 22px !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #1b2f7a !important;
  background: #fbfdff !important;
  border-radius: 0 6px 6px 0 !important;
  clear: both !important;
}
.carta-scope-item > *,
div.carta-scope-item > * {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.carta-scope-item h4.carta-scope-item__title,
div.carta-scope-item h4.carta-scope-item__title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
  font-family: Arial, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #162447 !important;
}
.carta-scope-item ol.carta-alpha-list,
div.carta-scope-item ol.carta-alpha-list {
  display: grid !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 10px 0 14px !important;
  padding: 0 !important;
  width: 100% !important;
}
.carta-scope-item ol.carta-alpha-list > li,
div.carta-scope-item ol.carta-alpha-list > li {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  text-align: justify !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  width: 100% !important;
}
.carta-scope-item p.carta-scope-result,
div.carta-scope-item p.carta-scope-result {
  display: block !important;
  margin: 12px 0 0 !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
  width: 100% !important;
}


/* Viewport lock & Zero micro-scroll */
html, body {
  margin: 0;
  padding: 0;
}
body.chat-viewport-lock {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
body.chat-viewport-lock #app {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: block !important;
}
body.chat-viewport-lock #global-nav-bar {
  flex-shrink: 0 !important;
  height: auto !important;
}

/* ==========================================================================
   User Session Nav Pill & Modal Styles
   ========================================================================== */
.global-nav__user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  max-width: 250px;
  flex-shrink: 0;
}

.user-session-pill:hover,
.user-session-pill:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #e5a93c;
  outline: none;
}

.user-session-pill__avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.user-session-pill__info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
}

.user-session-pill__name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-session-pill__role {
  font-size: 9px;
  color: #9cb5cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-session-pill__arrow {
  font-size: 10px;
  color: #8da4be;
  margin-left: 2px;
  flex-shrink: 0;
}

/* User Switch Modal Dialog */
.user-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 30, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: userModalFadeIn 0.2s ease-out;
}

@keyframes userModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.user-modal-dialog {
  background: #ffffff;
  color: #1e293b;
  width: 100%;
  max-width: 580px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-modal-header {
  padding: 20px 24px;
  background: #112638;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.user-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.user-modal-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9cb5cf;
  line-height: 1.4;
}

.user-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.user-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-modal-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.user-modal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-modal-item:hover {
  border-color: #1b2f7a;
  background: #f0f4ff;
  transform: translateY(-1px);
}

.user-modal-item.is-active {
  border-color: #1b2f7a;
  background: #eef2ff;
  box-shadow: 0 0 0 1px #1b2f7a;
}

.user-modal-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-modal-item__details strong {
  font-size: 13.5px;
  color: #0f172a;
}

.user-modal-item__details span {
  font-size: 11.5px;
  color: #475569;
}

.user-modal-item__details small {
  font-size: 10.5px;
  color: #64748b;
}

.user-modal-item__badge {
  font-size: 11px;
  font-weight: 700;
  color: #1b2f7a;
  background: #dbe4ff;
  padding: 4px 10px;
  border-radius: 12px;
}

.user-modal-select-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
}

.user-modal-item:hover .user-modal-select-btn {
  background: #1b2f7a;
  color: #ffffff;
  border-color: #1b2f7a;
}

.user-modal-custom {
  padding: 16px 20px 22px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.user-modal-custom h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.user-modal-custom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.user-modal-custom__grid input {
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
}

.user-modal-custom__grid input:focus {
  border-color: #1b2f7a;
}

.user-modal-custom__grid button {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  background: #112638;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.user-modal-custom__grid button:hover {
  background: #1b2f7a;
}

/* ==========================================================================
   Gestão de Projetos (#projects) Styles
   ========================================================================== */
.projects-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

.projects-header {
  margin-bottom: 24px;
}

.projects-header__nav {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.projects-header__nav a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f1f5f9;
  transition: all 0.15s ease;
}

.projects-header__nav a:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.projects-header__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.projects-header__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1b2f7a;
  text-transform: uppercase;
}

.projects-header h1 {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.projects-header p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  max-width: 760px;
}

.projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.projects-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.projects-btn--primary {
  background: #1b2f7a;
  color: #ffffff;
  border-color: #122056;
  box-shadow: 0 2px 6px rgba(27, 47, 122, 0.25);
}

.projects-btn--primary:hover {
  background: #162447;
  border-color: #0d162e;
}

.projects-btn__icon {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

/* KPI Ribbon */
.projects-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.projects-kpi-card {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.projects-kpi-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.projects-kpi-card__value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.projects-kpi-card__hint {
  font-size: 11px;
  color: #94a3b8;
}

/* Toolbar */
.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.projects-toolbar__search {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.projects-toolbar__search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.projects-toolbar__search input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.projects-toolbar__search input:focus {
  border-color: #1b2f7a;
  box-shadow: 0 0 0 2px rgba(27, 47, 122, 0.12);
}

.projects-toolbar__clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 12px;
}

.projects-toolbar__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-toolbar__filters select {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

/* Projects Grid & Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.project-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
  overflow: hidden;
}

.project-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-card__top {
  padding: 14px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.project-card__id-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card__id-badge code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  background: #eef2ff;
  color: #1b2f7a;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #c7d2fe;
}

.project-card__status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.project-card__status-pill.is-t0 {
  background: #fef3c7;
  color: #92400e;
}

.project-card__status-pill.is-t1 {
  background: #e0f2fe;
  color: #0369a1;
}

.project-card__status-pill.is-approved {
  background: #dcfce7;
  color: #15803d;
}

.project-card__snapshots-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card__body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__client {
  font-size: 12px;
  color: #475569;
  margin-bottom: 14px;
}

.project-card__client strong {
  color: #1e293b;
}

.project-card__metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 14px;
}

.project-card__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card__metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.project-card__metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.project-card__audit-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}

.project-card__author-pill {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__time {
  white-space: nowrap;
}

.project-card__actions {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.project-card__btn {
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.project-card__btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.project-card__btn--chat {
  background: #1b2f7a;
  color: #ffffff;
  border-color: #122056;
}

.project-card__btn--chat:hover {
  background: #162447;
}

.project-card__btn--proposal {
  background: #eef2ff;
  color: #1b2f7a;
  border-color: #c7d2fe;
}

.project-card__btn--proposal:hover {
  background: #dbe4ff;
}

.project-card__btn--history {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.project-card__btn--history:hover {
  background: #d1fae5;
}

.project-card__more-dropdown {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.project-card__btn--icon {
  padding: 6px 8px;
}

.project-card__btn--danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.projects-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
}

.projects-empty-state__icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.projects-empty-state h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

.projects-empty-state p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   Project Reversion / Timeline Modal Styles
   ========================================================================== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 30, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-history-dialog,
.project-create-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-history-dialog__header,
.project-create-dialog__header {
  padding: 20px 24px;
  background: #112638;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.project-history-dialog__header h2,
.project-create-dialog__header h2 {
  margin: 4px 0 2px;
  font-size: 17px;
  font-weight: 800;
}

.project-history-dialog__header p,
.project-create-dialog__header p {
  margin: 0;
  font-size: 12px;
  color: #9cb5cf;
}

.project-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.project-history-dialog__body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-history-notice {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.45;
}

.project-history-empty {
  text-align: center;
  padding: 30px;
  color: #64748b;
  font-size: 13px;
}

.project-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.project-timeline__item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.project-timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #94a3b8;
  margin-top: 3px;
}

.project-timeline__item.is-current .project-timeline__dot {
  background: #1b2f7a;
  box-shadow: 0 0 0 2px #1b2f7a;
}

.project-timeline__line {
  width: 2px;
  flex: 1;
  background: #e2e8f0;
  margin-top: 4px;
}

.project-timeline__content {
  flex: 1;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-timeline__item.is-current .project-timeline__content {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.project-timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-timeline__time {
  font-size: 13px;
  color: #0f172a;
}

.project-timeline__badge-latest {
  font-size: 10.5px;
  font-weight: 700;
  background: #1b2f7a;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
}

.project-timeline__val {
  font-size: 13px;
  font-weight: 800;
  color: #1b2f7a;
  margin-left: auto;
}

.project-timeline__author {
  font-size: 11.5px;
  color: #475569;
}

.project-timeline__reason {
  margin: 0;
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.4;
}

.project-timeline__revert-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #059669;
  background: #ecfdf5;
  color: #047857;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.project-timeline__revert-btn:hover {
  background: #059669;
  color: #ffffff;
}

/* Create Project Modal Form */
.project-create-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-create-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-create-form__field span {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.project-create-form__field input {
  padding: 9px 12px;
  font-size: 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
}

.project-create-form__field input:focus {
  border-color: #1b2f7a;
}

.project-create-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Global Nav Language Selector Styles
   ========================================================================== */
.global-nav__lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.global-nav__lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  user-select: none;
}

.global-nav__lang-btn span {
  font-size: 12px;
}

.global-nav__lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.global-nav__lang-btn.is-active {
  background: #e5a93c;
  color: #112638;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
