/* ESG interface theme. Business logic and document templates are independent. */
:root {
  --ink: #142944; --muted: #64758e; --line: #e2eaf5; --soft: #f3f6fc;
  --nav: #073b9b; --nav-soft: #2054ac; --accent: #1258db; --accent-soft: #eaf1ff;
  --shadow: 0 4px 22px rgba(29, 64, 120, .035);
}
body { background: var(--soft); font-family: "Segoe UI", Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
:focus-visible { outline: 3px solid #6da8ff; outline-offset: 3px; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
.app-shell { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 30px 18px 20px; gap: 0; background: linear-gradient(165deg, #083e9f 0%, #062d78 100%); }
.brand { padding: 0 4px; gap: 12px; }
.brand-mark { width: 49px; height: 43px; border-radius: 9px; background: #fff; color: #0b409e; font-size: 19px; font-style: italic; font-weight: 900; letter-spacing: -1.7px; box-shadow: 0 5px 15px #00246733; }
.brand strong { font-size: 20px; letter-spacing: -.6px; }
.brand em { font-size: 12px; font-style: normal; font-weight: 500; color: #b7d3ff; margin-left: 4px; letter-spacing: 1px; }
.brand small { display: block; color: #b3c9ed; font-size: 10px; margin-top: 3px; }
.nav-caption { color: #a7c2ec; font-size: 9px; letter-spacing: 1.5px; margin: 42px 12px 15px; font-weight: 600; }
.nav { gap: 7px; }
.nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px; color: #ccddf8; border-radius: 9px; font-size: 13px; font-weight: 500; }
.nav button:hover { background: #ffffff12; }
.nav button.active { color: #083c97; background: #fff; box-shadow: 0 5px 12px #00246120; font-weight: 700; }
.nav .nav-icon { width: 20px; height: 20px; display: flex; opacity: 1; }
.nav-icon svg { width: 20px; height: 20px; }
.sidebar-note { margin: auto 0 20px; padding: 30px 12px 18px; display: grid; gap: 7px; color: #c1d6f7; }
.sidebar-note svg { width: 29px; height: 29px; color: #86b5ff; margin-bottom: 5px; }
.sidebar-note strong { font-size: 12px; font-weight: 500; }
.sidebar-note span { font-size: 10px; color: #a1bfe9; }
.side-bottom { margin-top: 0; border-top: 1px solid #ffffff24; padding: 18px 5px 0; }
.user-switch label { color: #b3c9ed; }
.user-switch select { background: #ffffff10; border-color: #ffffff25; font-size: 11px; padding: 10px 5px; }
.user-switch option { color: var(--ink); background: white; }
.workspace-label { font-size: 9px; letter-spacing: .7px; color: #a1bfe9; }
.topbar { height: 89px; padding: 0 36px; background: #ffffffed; }
.crumb { font-size: 11px; color: #7a8da7; margin-bottom: 5px; }
.crumb span { margin: 0 9px; color: #b3c1d6; }
.title-line h1 { font-size: 20px; font-weight: 650; }
.profile-avatar { display: grid; place-items: center; width: 37px; height: 37px; background: #e8f0ff; border: 1px solid #d4e3ff; border-radius: 50%; color: #144fae; font-weight: 700; }
.sync { font-size: 11px; }
.view { padding: 28px 36px 48px; max-width: 1720px; margin: 0 auto; }
.overview-hero { position: relative; overflow: hidden; min-height: 276px; display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid #d9e6fb; border-radius: 18px; background: linear-gradient(110deg, #fff 5%, #edf4ff 66%, #e2edff 100%); margin-bottom: 30px; }
.hero-copy { padding: 29px 33px; position: relative; z-index: 1; }
.eyebrow { font-size: 9px; font-weight: 750; letter-spacing: 1.8px; color: #2161c3; }
.hero-copy h2 { font-size: clamp(27px, 2.45vw, 39px); font-weight: 650; letter-spacing: -1.3px; line-height: 1.14; margin: 13px 0; }
.hero-copy p { color: #687e9b; font-size: 12px; line-height: 1.7; margin: 0 0 21px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; padding: 11px 16px; font-size: 12px; font-weight: 600; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: #1258db; box-shadow: 0 4px 10px #1258db18; }
.btn.primary:hover:not(:disabled) { background: #0847be; box-shadow: 0 5px 16px #1258db30; }
.btn.secondary { color: #3f5c7f; border-color: #dce5f3; }
.btn.secondary:hover:not(:disabled) { background: #edf4ff; border-color: #b6cef5; }
.btn.danger { color: #b83d45; background: #fff5f5; border: 1px solid #f5dfe1; }
.icon-btn { width: 34px; height: 34px; padding: 0; font-size: 20px; }
.route-visual { position: relative; min-height: 270px; background-image: radial-gradient(#84a9e33d 1px, transparent 1px); background-size: 19px 19px; mask-image: linear-gradient(90deg, transparent, black 15%); }
.orbit { position: absolute; border: 1px solid #bbd3f5; width: 250px; height: 250px; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-two { width: 335px; height: 185px; border-style: dashed; transform: translate(-50%, -50%) rotate(-34deg); }
.route-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 106px; height: 106px; border: 7px solid #ffffff; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: linear-gradient(140deg, #367df0, #0644b4); box-shadow: 0 18px 38px #2567c940, 0 0 0 12px #ffffff60; }
.route-center svg { width: 39px; height: 39px; }
.route-center strong { font-size: 12px; font-style: italic; letter-spacing: 2px; }
.route-tag { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; padding: 11px 14px; background: #fffffff2; border: 1px solid #dce8f9; border-radius: 9px; box-shadow: 0 6px 20px #174c9710; }
.route-tag i { width: 6px; height: 6px; background: #2367d9; border-radius: 50%; box-shadow: 0 0 0 4px #edf4ff; }
.tag-one { top: 37px; left: 12%; }.tag-two { top: 88px; right: 6%; }.tag-three { bottom: 35px; left: 28%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 16px; font-weight: 650; }
.section-heading span { font-size: 11px; color: var(--muted); }
.metrics { gap: 14px; }
.metric, .panel, .card, .form-card { border-radius: 13px; }
.metric { padding: 21px; position: relative; overflow: hidden; }
.metric:before { content: ''; display: block; width: 24px; height: 3px; border-radius: 2px; background: #377def; margin-bottom: 16px; }
.metric span { font-size: 11px; font-weight: 500; }
.metric strong { font-size: clamp(23px, 2.2vw, 32px); font-weight: 650; color: #123e83; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.metric small { font-size: 10px; color: #8493a9; }
.panel { padding: 23px; }.panel h3 { font-size: 15px; font-weight: 650; }
.panel-head p { margin: -6px 0 18px; font-size: 11px; }
.muted { color: var(--muted); }
.stats-panel { margin: 0 0 22px; }
.stats-grid { gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 19px; gap: 7px; background: #f9fbff; }
.stat-card:last-child { border: 0; }.stat-card strong { font-size: 12px; }.stat-card b { font-weight: 650; font-size: 23px; letter-spacing: -.6px; }.stat-card small { font-size: 10px; }
.stage-row { font-size: 12px; padding: 11px 0; }.stage-count { border-radius: 6px; min-width: 28px; text-align: center; background: #eff4fc; color: #346ac1; font-size: 11px; }
.quick button { padding: 13px 15px; font-size: 12px; color: #315988; border-color: #e1eaf7; background: #f9fbff; }
.mini-item { font-size: 12px; padding: 12px 0; }.mini-item small { color: var(--muted); font-size: 11px; }
.view-head h2 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; }.view-head p { font-size: 12px; line-height: 1.7; max-width: 750px; }
.table-wrap { border-radius: 12px; }th { padding: 15px; font-size: 10px; color: #667e9d; background: #f7faff; }td { padding: 16px 15px; font-size: 12px; }td small { color: var(--muted); }
.search { min-height: 43px; border-color: #d9e3f2; border-radius: 9px; }.badge { font-size: 10px; padding: 4px 9px; }
.empty { font-size: 12px; padding: 36px 22px; line-height: 1.7; background: linear-gradient(135deg, #fafcff, #fff); border: 1px dashed #dde7f5; border-radius: 9px; }
.split { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); align-items: start; }
.form-card { padding: 25px; min-width: 0; }.form-card h3 { font-size: 16px; font-weight: 650; }.form-card > p { font-size: 11px; }
.form-grid { gap: 18px 16px; }.field { min-width: 0; }.field label { font-size: 11px; color: #4e6583; font-weight: 600; }
.field input, .field select, .field textarea, .point-input { min-width: 0; width: 100%; min-height: 43px; border: 1px solid #d8e3f3; border-radius: 8px; background: #fbfcff; padding: 11px 12px; font-size: 12px; color: #213d61; }
input::placeholder, textarea::placeholder { color: #8192aa; }.point-input:focus { outline: 3px solid #dce7ff; border-color: var(--accent); }
.points-list { display: grid; gap: 12px; }.point-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) 100px auto; gap: 8px; align-items: center; padding: 12px; background: #f5f8fe; border: 1px solid #e4ecf9; border-radius: 10px; }
.point-row > strong { display: grid; place-items: center; font-size: 11px; width: 24px; height: 24px; background: #e5eeff; color: #2255a3; border-radius: 6px; }.point-row .btn { padding: 10px 8px; font-size: 10px; }
.direction-box { background: #f8faff; border-color: #e5edf9; padding: 15px; line-height: 1.65; }.direction-box span { font-size: 11px; }
.calc-result { background: linear-gradient(120deg, #eff5ff, #f8fbff); border-color: #cddffd; padding: 22px; border-radius: 12px; }
.calc-result > div:not(.amount) { padding: 6px 0; }.calc-result .amount { color: #0c4bb7; font-size: clamp(24px, 2.4vw, 35px); letter-spacing: -.9px; font-weight: 700; }.calc-result small { color: #536e93; font-size: 11px; }.calc-result hr { border: 0; border-top: 1px solid #d0def3; margin: 16px 0; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; }.calc-actions .btn { flex: 1; white-space: nowrap; }
.quote { padding: 17px; border-color: #e0e9f7; border-radius: 10px; }.quote-head { font-size: 12px; gap: 12px; margin-bottom: 8px; }.quote-head > span:last-child { white-space: nowrap; color: #1554b4; }.quote small { font-size: 10px; }.quote-hint { font-weight: 600; }.quote-footer { margin-top: 14px; }
.notice { font-size: 11px; line-height: 1.6; }.notice.warn { background: #fff8e9; color: #82601c; border: 1px solid #f0e6c9; }
.modal-backdrop { backdrop-filter: blur(5px); background: #071d4360; }.modal { width: min(780px, 100%); padding: 28px; border: 1px solid #dce8fc; border-radius: 17px; }.modal table { min-width: 520px; }.modal-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 6px 0 24px; }.detail-grid > div { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }.detail-grid span { font-size: 11px; color: var(--muted); }.detail-grid strong { font-size: 13px; font-weight: 600; }
.toast { background: #103e8a; font-size: 12px; border: 1px solid #ffffff24; }
.login-shell { display: block; }.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }.login-story { padding: 50px 56px 35px; color: white; background: radial-gradient(ellipse at 80% 65%, #1b5dc9, transparent 60%), #073588; display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; overflow: hidden; }.login-message { padding: 70px 0; }.login-message .eyebrow { color: #a9cdff; }.login-message h1 { font-size: clamp(36px, 4vw, 62px); line-height: 1.12; letter-spacing: -2px; font-weight: 600; margin: 22px 0; }.login-message p { color: #bbd4f9; font-size: 16px; line-height: 1.8; }.login-story > small { color: #a2bfe9; font-size: 11px; }.login-route { display: flex; gap: 16px; align-items: center; margin-top: 60px; font-size: 12px; color: #cbe0ff; }.login-route i { border-top: 1px dashed #7fa9e8; flex: 1; }.login-route svg { width: 40px; height: 40px; }
.login-area { display: grid; place-items: center; padding: 40px; background: #f8faff; }.login-card { width: min(400px, 100%); }.login-card h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.8px; margin: 18px 0 12px; }.login-card p { font-size: 13px; margin-bottom: 34px; }.login-card form { display: grid; gap: 20px; }.login-card input, .login-card select { min-height: 49px; background: #fff; font-size: 14px; }.login-submit { width: 100%; margin-top: 8px; min-height: 48px; }.login-note { font-size: 11px; color: #7d8ea6; text-align: center; margin-top: 25px; }
@media (min-width: 1700px) { .view { padding-top: 36px; }.overview-hero { min-height: 305px; } }
@media (max-width: 1200px) { .app-shell { grid-template-columns: 210px minmax(0, 1fr); }.sidebar { padding: 25px 12px 18px; }.brand { gap: 8px; }.view { padding: 24px; }.topbar { padding: 0 24px; }.split { grid-template-columns: minmax(0, 1fr); }.metric { padding: 16px; }.hero-copy { padding: 26px; }.route-tag { padding: 9px; }.tag-one { left: 5%; }.tag-two { right: 3%; } }
@media (max-width: 960px) { .app-shell { grid-template-columns: 1fr; }.sidebar { display: flex; position: relative; height: auto; overflow: visible; padding: 16px 20px 12px; }.sidebar .brand { margin-bottom: 16px; }.sidebar .nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 3px; }.nav button { flex-shrink: 0; min-height: 40px; font-size: 11px; padding: 9px 12px; }.nav-caption, .sidebar-note, .side-bottom { display: none; }.topbar { height: 76px; }.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }.metric strong { font-size: 24px; }.dashboard-grid { grid-template-columns: 1fr; }.integrations { grid-template-columns: 1fr; }.docs-grid { grid-template-columns: 1fr; }.login-story { padding: 35px; } }
@media (max-width: 650px) { .view { padding: 18px 14px 35px; }.topbar { padding: 0 16px; }.crumb { font-size: 9px; }.top-actions { gap: 8px; }.overview-hero { grid-template-columns: 1fr; min-height: 0; }.hero-copy { padding: 26px 23px; }.hero-copy h2 { font-size: 31px; }.route-visual { display: none; }.hero-actions .btn { font-size: 11px; }.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.metric { padding: 16px; }.metric strong { font-size: 23px; }.stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { padding: 15px; border-bottom: 1px solid var(--line); }.stat-card:nth-child(2) { border-right: 0; }.stat-card b { font-size: 21px; }.panel { padding: 18px; }.panel-head { flex-wrap: wrap; }.panel-head .btn { margin-bottom: 15px; }.form-card { padding: 18px; }.form-grid { grid-template-columns: 1fr; }.point-row { grid-template-columns: 24px minmax(0, 1fr); padding: 10px; }.point-row input[name="extra"] { grid-column: 2; }.point-row .btn { grid-column: 2; justify-self: start; }.detail-grid { grid-template-columns: 1fr; }.modal { padding: 18px; }.modal-backdrop { padding: 10px; }.modal-actions { flex-wrap: wrap; }.login-page { grid-template-columns: 1fr; }.login-story { min-height: 0; padding: 24px; }.login-message, .login-story > small { display: none; }.login-area { padding: 42px 24px; }.login-card h2 { font-size: 26px; }.login-shell { min-height: 100dvh; background: #f8faff; }.section-heading span { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
