:root {
  color-scheme: light;
  --canvas: #f4f6fa;
  --surface: #fff;
  --surface-soft: #f8f9fc;
  --ink: #182230;
  --ink-soft: #475467;
  --muted: #8792a3;
  --line: #e9edf3;
  --green: #13836b;
  --green-dark: #086c57;
  --green-pale: #e4f4ef;
  --nav: #122b30;
  --nav-muted: #a6b8b9;
  --shadow: 0 10px 34px rgba(19, 39, 58, .055);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
.auth-body { min-height: 100vh; background: var(--surface); }
.auth-shell { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.auth-visual { position: relative; overflow: hidden; padding: 44px 8.5%; color: #fff; background: radial-gradient(ellipse at 90% 100%, rgba(30, 161, 135, .35), transparent 49%), linear-gradient(145deg, #143a3b, #10282e 67%, #10272c); display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual::after { content: ""; position: absolute; width: 520px; height: 520px; right: -280px; top: 24%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.025), 0 0 0 126px rgba(255,255,255,.02); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.55px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(140deg, #22aa88, #097860); font-size: 18px; box-shadow: 0 6px 15px rgba(3, 125, 98, .24); }
.auth-message { position: relative; z-index: 1; max-width: 520px; margin: auto 0; padding: 80px 0; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.55px; }
.auth-visual .eyebrow { color: #74d4ba; }
.auth-message h1 { margin: 20px 0 18px; font-family: Manrope, sans-serif; font-size: clamp(36px, 4.1vw, 55px); line-height: 1.12; letter-spacing: -2.3px; }
.auth-message h1 em { color: #6bd0b4; font-style: normal; }
.auth-message p { max-width: 400px; color: #b8cacc; font-size: 15px; line-height: 1.8; }
.auth-foot { color: #81999b; font-size: 11px; }
.auth-form-wrap { display: grid; place-items: center; padding: 56px 8%; }
.auth-form { width: min(100%, 390px); }
.mobile-brand { display: none; }
.auth-form h2 { margin: 14px 0 8px; font-family: Manrope, sans-serif; font-size: 29px; letter-spacing: -.85px; }
.auth-form > p { margin-bottom: 30px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.stack-form { display: grid; gap: 18px; }
.stack-form label, .input-grid > label { display: grid; gap: 8px; color: #364456; font-size: 12px; font-weight: 600; }
.stack-form input, .stack-form select, .stack-form textarea, .input-grid input, .input-grid select, .table-search { width: 100%; min-width: 0; height: 43px; border: 1px solid #e2e7ee; border-radius: 8px; background: #fff; padding: 0 12px; outline: none; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.stack-form textarea { height: auto; min-height: 80px; padding-top: 10px; resize: vertical; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .table-search:focus { border-color: #38a98b; box-shadow: 0 0 0 3px rgba(23, 145, 116, .1); }
.stack-form input::placeholder { color: #aeb7c3; }
.button { min-height: 41px; border: 0; border-radius: 8px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #159276, #08745e); box-shadow: 0 5px 14px rgba(12, 128, 100, .18); }
.button-primary:hover { background: #096c58; }
.button-wide { width: 100%; height: 47px; margin-top: 5px; }
.button-wide span { margin-left: auto; }
.button-white { color: #116f5a; background: #fff; }
.button-quiet { color: #536172; background: #f3f5f8; border: 1px solid #e8ecf1; }
.button-small { min-height: 34px; font-size: 11px; }
.secure-note { margin-top: 25px; color: #8994a3; font-size: 10px; }
.secure-note span { margin-right: 7px; color: #14a27e; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 246px; padding: 27px 16px 18px; color: #edf7f5; background: var(--nav); }
.sidebar .brand { padding: 0 9px 34px; color: #f4fbfa; }
.nav-label { padding: 0 12px 12px; color: #769192; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: #b9c8c8; font-size: 12px; font-weight: 500; transition: .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(36, 159, 128, .23), rgba(36, 159, 128, .08)); box-shadow: inset 2px 0 #40c09e; }
.nav-icon { width: 18px; color: #91b5b1; text-align: center; font-size: 16px; }
.nav-link.active .nav-icon { color: #67d5b5; }
.nav-count { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 6px; background: rgba(255,255,255,.1); font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-profile { display: flex; align-items: center; gap: 10px; }
.avatar, .top-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #d4fff2; background: #23695e; font-weight: 700; }
.profile-name { min-width: 0; flex: 1; color: #edf7f5; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.profile-name small { display: block; margin-top: 4px; color: #88a2a2; font-size: 9px; font-weight: 400; }
.sidebar-profile form { margin: 0; }
.sidebar-profile .icon-button { color: #9fb2b1; }
.main-area { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 10; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(14px); }
.breadcrumb { color: #9aa4b1; font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #c7ced7; }
.breadcrumb strong { color: #3e4959; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.status-pill, .live-badge { display: inline-flex; align-items: center; gap: 7px; color: #5a6878; font-size: 10px; }
.status-pill i, .live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #22a77e; box-shadow: 0 0 0 3px rgba(34,167,126,.12); }
.icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #778496; font-size: 16px; }
.icon-button:hover { color: var(--green-dark); background: #eef6f3; }
.top-avatar { width: 29px; height: 29px; border-radius: 50%; color: #24745e; background: #e1f2ec; font-size: 11px; }
.mobile-menu { display: none; }
.content { max-width: 1470px; margin: 0 auto; padding: 32px 38px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h1 { margin: 7px 0 5px; font-family: Manrope, sans-serif; font-size: 26px; letter-spacing: -.9px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.heading-date { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; color: #687587; background: #fff; font-size: 10px; white-space: nowrap; }
.date-dot { width: 7px; height: 7px; border-radius: 50%; background: #24a27f; }
.welcome-banner { position: relative; min-height: 235px; display: flex; align-items: center; overflow: hidden; padding: 28px 38px; border-radius: 13px; color: #fff; background: radial-gradient(ellipse at 85% 0, rgba(43, 176, 141, .38), transparent 43%), linear-gradient(107deg, #123a3b, #12534b 57%, #15705c); box-shadow: 0 12px 32px rgba(15, 80, 68, .13); }
.welcome-banner > div:first-child { position: relative; z-index: 2; }
.banner-kicker { color: #89dbc3; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.welcome-banner h2 { margin: 13px 0 8px; font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.23; letter-spacing: -.8px; }
.welcome-banner p { margin-bottom: 17px; color: #bbd8d1; font-size: 11px; }
.welcome-banner .button { min-height: 35px; }
.banner-art { position: absolute; width: 380px; height: 250px; right: 6%; top: 50%; transform: translateY(-50%); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(181,255,232,.22); border-radius: 50%; transform: translate(-50%,-50%) rotate(-19deg); }
.orbit-one { width: 310px; height: 145px; }
.orbit-two { width: 250px; height: 210px; transform: translate(-50%,-50%) rotate(43deg); }
.orb-core { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid rgba(222,255,244,.6); border-radius: 50%; color: #b1ffe6; background: radial-gradient(circle at 35% 30%, rgba(81,207,164,.52), rgba(4,92,76,.84)); box-shadow: 0 0 35px rgba(63,236,182,.27), inset 0 0 20px rgba(160,255,222,.13); font-family: Manrope,sans-serif; font-size: 16px; font-weight: 800; transform: translate(-50%,-50%); }
.orb-node { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(218,255,245,.34); border-radius: 13px; color: #b6eddb; background: rgba(255,255,255,.09); box-shadow: 0 8px 25px rgba(0,0,0,.12); font-size: 9px; font-weight: 700; backdrop-filter: blur(8px); }
.node-one { top: 22%; left: 22%; }.node-two { top: 64%; right: 12%; }.node-three { bottom: 2%; left: 33%; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 17px 0; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-height: 135px; padding: 15px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; font-size: 15px; }
.metric-icon.violet { color: #7751c8; background: #f1ebff; }.metric-icon.amber { color: #bc822b; background: #fff3df; }.metric-icon.green { color: #148a6d; background: #e4f6ef; }.metric-icon.blue { color: #3b7dcb; background: #eaf2ff; }
.metric-caption { color: #a2adba; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.metric-card > strong { display: block; margin-top: 11px; font-family: Manrope,sans-serif; font-size: 24px; letter-spacing: -.7px; }
.metric-card > strong.metric-rate { font-size: 20px; }
.metric-label { display: block; margin-top: 1px; color: #4d5b6a; font-size: 10px; font-weight: 600; }
.metric-foot { margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f2f5; color: #98a2ae; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); gap: 15px; }
.panel { padding: 19px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading h3 { margin: 0 0 5px; font-family: Manrope,sans-serif; font-size: 14px; letter-spacing: -.25px; }
.panel-heading p { margin: 0; color: #98a2af; font-size: 10px; }
.text-link { color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link span { margin-left: 4px; }
.chart-wrap { position: relative; height: 232px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #a2acb8; font-size: 11px; line-height: 2; }
.chart-empty a { color: var(--green); font-weight: 700; }
.activity-list { display: grid; }
.activity-row { display: flex; align-items: center; gap: 11px; min-height: 58px; border-bottom: 1px solid #f0f2f5; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #16856b; background: #e7f5ef; }
.activity-copy { flex: 1; min-width: 0; }.activity-copy strong { display: block; font-size: 10px; font-weight: 600; }.activity-copy small { display: block; margin-top: 5px; color: #9aa5b1; font-size: 9px; }.activity-arrow { color: #a8b2be; }
.two-column-layout { display: grid; grid-template-columns: minmax(0,1.07fr) minmax(330px,.93fr); align-items: start; gap: 15px; }
.form-panel { padding: 21px; }
.step-badge { padding: 6px 8px; border-radius: 5px; color: #769288; background: #f0f7f4; font-size: 8px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.section-caption { padding-bottom: 9px; border-bottom: 1px solid #edf0f4; color: #81909e; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.section-caption-spaced { margin-top: 10px; }
.section-caption > span { float: right; color: #a7b0bb; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.input-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.input-grid small, .stack-form label > small { margin-top: -5px; color: #9aa5b1; font-size: 9px; font-weight: 400; }
.input-with-unit { display: flex; min-width: 0; }
.input-with-unit input { flex: 1; min-width: 0; border-radius: 8px 0 0 8px; }
.input-with-unit select, .input-with-unit > span { min-width: 107px; height: 43px; display: flex; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid #e2e7ee; border-left: 0; border-radius: 0 8px 8px 0; color: #69788a; background: #f8f9fb; font-size: 10px; white-space: nowrap; }
.fuel-input-list { display: grid; margin-top: 5px; }
.fuel-input-row { display: grid; grid-template-columns: 20px 48px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid #f0f2f5; }
.check-wrap { display: grid; place-items: center; cursor: pointer; }.check-wrap input { position: absolute; width: 1px; height: 1px; opacity: 0; }.checkmark { position: relative; width: 15px; height: 15px; border: 1px solid #cbd3dd; border-radius: 4px; }.check-wrap input:checked + .checkmark { border-color: var(--green); background: var(--green); }.check-wrap input:checked + .checkmark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fuel-chip { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 37px; padding: 5px 7px; border-radius: 5px; color: #4f6274; background: #edf2f6; font-size: 9px; font-weight: 700; }
.fuel-chip.do { color: #966817; background: #fff4da; }.fuel-chip.fo { color: #a25a30; background: #fff0e5; }.fuel-chip.lpg { color: #6250ac; background: #f1edff; }.fuel-chip.cng { color: #3372aa; background: #eaf5ff; }.fuel-chip.coal { color: #58616b; background: #edf0f2; }
.fuel-value { display: flex; min-width: 0; }
.fuel-value input, .fuel-value select { height: 34px; min-width: 0; border: 1px solid #e3e8ee; outline: none; color: var(--ink); background: #fff; font-size: 10px; }
.fuel-value input { flex: 1; padding: 0 9px; border-radius: 6px 0 0 6px; }.fuel-value select { width: auto; max-width: 142px; border-left: 0; border-radius: 0 6px 6px 0; color: #687689; font-size: 9px; }
.vat-check { display: flex; align-items: center; gap: 5px; color: #8894a3; font-size: 9px; white-space: nowrap; }.vat-check input { accent-color: var(--green); }
.form-actions { display: flex; gap: 9px; margin-top: 17px; }.form-actions > :first-child { flex: 1; }
.assumption-note { display: flex; gap: 11px; margin-top: 17px; padding: 12px; border: 1px solid #e9f0e7; border-radius: 8px; background: #fbfcf8; }
.assumption-note > span { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #66814a; background: #eaf1df; font-size: 10px; font-weight: 700; }
.assumption-note strong { display: block; color: #59694e; font-size: 10px; }.assumption-note p { margin: 4px 0 0; color: #879080; font-size: 9px; line-height: 1.65; }
.result-panel { min-height: 450px; }.live-badge { color: #16816b; font-size: 9px; }
.empty-result { min-height: 355px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.empty-illustration { position: relative; width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #e7f1ed; border-radius: 22px; color: #17886e; background: linear-gradient(145deg,#eff8f4,#fff); font-size: 27px; }.empty-illustration i { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #a9dfca; box-shadow: 0 0 0 5px #e8f6ef; }.empty-result h4 { margin-bottom: 7px; font-family: Manrope,sans-serif; font-size: 13px; }.empty-result p { max-width: 240px; margin: 0; color: #9aa4b0; font-size: 10px; line-height: 1.7; }
.lng-highlight { padding: 17px; border: 1px solid #dff0e9; border-radius: 9px; background: linear-gradient(125deg,#f0faf5,#f8fcfa); }.lng-highlight > span { display: block; color: #6f9285; font-size: 8px; font-weight: 700; letter-spacing: 1px; }.lng-highlight > strong { display: block; margin: 7px 0 4px; color: #106f59; font-family: Manrope,sans-serif; font-size: 32px; letter-spacing: -1.2px; }.lng-highlight > small { color: #81968d; font-size: 9px; }
.result-list { margin-top: 8px; }.result-row { padding: 14px 1px 12px; border-bottom: 1px solid #edf0f4; }.result-row-top, .result-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.result-price { font-family: Manrope,sans-serif; font-size: 14px; font-weight: 700; }.result-price small { color: #9ba5b0; font-family: "DM Sans",sans-serif; font-size: 9px; font-weight: 400; }.result-meter { height: 4px; margin: 10px 0 7px; overflow: hidden; border-radius: 4px; background: #edf1f3; }.result-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#75cfab,#189174); }.result-meta { color: #95a0ac; font-size: 9px; }.result-meta strong { font-size: 9px; }.positive { color: #13836b !important; }.negative { color: #cf6158 !important; }.result-saving { display: flex; justify-content: space-between; margin-top: 10px; color: #84909d; font-size: 9px; }.result-saving strong { font-size: 10px; }.result-foot { margin-top: 14px; color: #a0aab5; font-size: 9px; }
.table-panel { margin-top: 15px; }.table-scroll { width: 100%; overflow: auto; }table { width: 100%; border-collapse: collapse; text-align: left; }th { padding: 11px 12px; color: #8792a0; background: #f8f9fb; font-size: 9px; font-weight: 600; white-space: nowrap; }td { padding: 12px; border-bottom: 1px solid #f0f2f5; color: #506071; font-size: 10px; white-space: nowrap; }tbody tr:last-child td { border-bottom: 0; }.comparison-tag, .category-pill { display: inline-flex; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 600; }.tag-positive { color: #12836a; background: #e8f6ef; }.tag-negative { color: #c65d57; background: #fff0ed; }.table-search { width: 190px; height: 34px; font-size: 10px; }.table-empty { padding: 26px; color: #a0aab5; text-align: center; }.cell-sub { display: block; margin-top: 4px; color: #9da7b3; font-size: 9px; }.category-pill.large { color: #9b6e27; background: #fff4de; }.category-pill.potential { color: #5174aa; background: #edf3ff; }.category-pill.small { color: #66856b; background: #eff7ee; }.progress-cell { display: flex; align-items: center; gap: 7px; }.progress-cell > span { width: 55px; height: 5px; overflow: hidden; border-radius: 5px; background: #edf1f4; }.progress-cell i { display: block; height: 100%; border-radius: inherit; background: #25a583; }.progress-cell small { color: #748193; font-size: 9px; }.danger-icon { color: #bd6e68; }
.capital-breakdown { display: grid; gap: 0; margin-top: 12px; }.capital-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 2px; border-bottom: 1px solid #edf0f4; color: #7d8998; font-size: 10px; }.capital-breakdown strong { color: #344355; font-size: 10px; }.wide-note { max-width: 760px; }
.alert { margin: 10px 0 17px; padding: 11px 13px; border-radius: 7px; font-size: 11px; }.alert-error { border: 1px solid #f4d7d3; color: #a6473e; background: #fff5f3; }.alert-success { border: 1px solid #d3ebdf; color: #1b765c; background: #effaf4; }
.empty-state { padding: 23px 14px; border: 1px dashed #dde4ea; border-radius: 8px; color: #9aa4af; text-align: center; font-size: 10px; line-height: 1.7; }.empty-state.compact { border: 0; padding: 40px 12px; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 2px 0; color: #9ba5b1; font-size: 9px; }.app-footer span:last-child { text-align: right; }
.mobile-scrim { display: none; }
body.dark { color-scheme: dark; --canvas:#111a1d; --surface:#1b272b; --surface-soft:#202d31; --ink:#e9f0ef; --ink-soft:#bcc8c7; --muted:#95a6a4; --line:#2d3a3e; --nav:#0d2024; --shadow:0 10px 34px rgba(0,0,0,.13); }
body.dark .topbar { background:rgba(27,39,43,.92); }body.dark .breadcrumb strong,body.dark .metric-label,body.dark .panel-heading h3,body.dark .stack-form label,body.dark .input-grid>label,body.dark .capital-breakdown strong,body.dark .result-price { color:var(--ink); }body.dark .heading-date,body.dark .metric-card,body.dark .panel,body.dark .stack-form input,body.dark .stack-form select,body.dark .stack-form textarea,body.dark .input-grid input,body.dark .input-grid select,body.dark .table-search { color:var(--ink); background:var(--surface); border-color:var(--line); }body.dark th,body.dark .fuel-value input,body.dark .fuel-value select { color:#afbfbd; background:#202d31; border-color:#354347; }body.dark td,body.dark .metric-foot,body.dark .activity-row,body.dark .fuel-input-row,body.dark .result-row,body.dark .capital-breakdown>div { border-color:#2b393d; color:#b8c7c5; }body.dark .metric-foot { border-color:#2b393d; }body.dark .input-with-unit select,body.dark .input-with-unit>span { color:#bfccca; background:#263438; border-color:#3a494d; }body.dark .assumption-note { background:#222e29; border-color:#34493e; }body.dark .assumption-note strong { color:#c5d5bd; }body.dark .assumption-note p { color:#a9b5a5; }body.dark .lng-highlight { background:#1f332d; border-color:#314e42; }body.dark .lng-highlight>strong { color:#79d3b3; }body.dark .lng-highlight>span,body.dark .lng-highlight>small { color:#a5c6b8; }body.dark .step-badge { background:#263833; color:#a5c6b8; }body.dark .section-caption { border-color:#334145; }body.dark .button-quiet { color:#c4d0ce; background:#28363a; border-color:#39484c; }body.dark .status-pill { color:#c5d1cf; }
@media (max-width:1100px) { .sidebar { width:218px; }.main-area { margin-left:218px; }.content { padding-right:25px; padding-left:25px; }.topbar { padding:0 25px; }.fuel-input-row { grid-template-columns:20px 42px minmax(0,1fr); }.vat-check { grid-column:3; margin-top:-5px; }.input-grid-three { grid-template-columns:repeat(2,minmax(0,1fr)); }.input-grid-three>label:last-child { grid-column:1/-1; } }
@media (max-width:800px) { .sidebar { width:246px; transform:translateX(-100%); transition:transform .23s ease; }.sidebar.open { transform:translateX(0); }.main-area { margin-left:0; }.mobile-menu { display:inline-grid; margin-right:10px; }.topbar { justify-content:flex-start; padding:0 16px; }.topbar-right { margin-left:auto; gap:8px; }.breadcrumb { font-size:10px; }.status-pill { display:none; }.content { padding:25px 17px 18px; }.mobile-scrim.show { position:fixed; inset:0; z-index:15; display:block; background:rgba(11,24,27,.4); }.dashboard-grid { grid-template-columns:1fr; }.metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.welcome-banner { min-height:225px; padding:25px; }.banner-art { right:-125px; opacity:.52; }.two-column-layout { grid-template-columns:1fr; }.auth-shell { grid-template-columns:1fr; }.auth-visual { display:none; }.auth-form-wrap { min-height:100vh; padding:32px 25px; }.mobile-brand { display:inline-flex; margin-bottom:45px; color:#1b4a42; }.auth-form { max-width:400px; }.page-heading h1 { font-size:23px; }.app-footer { flex-direction:column; gap:7px; }.app-footer span:last-child { text-align:left; } }
@media (max-width:520px) { .page-heading { align-items:flex-start; }.heading-date { display:none; }.metric-card { min-height:122px; padding:13px; }.metric-card>strong { font-size:21px; }.metric-card>strong.metric-rate { font-size:17px; }.metric-grid { gap:9px; }.welcome-banner h2 { font-size:22px; }.welcome-banner p { max-width:230px; line-height:1.5; }.banner-art { right:-205px; }.panel,.form-panel { padding:15px; }.input-grid,.input-grid-three { grid-template-columns:1fr; }.input-grid-three>label:last-child { grid-column:auto; }.fuel-input-row { grid-template-columns:17px 39px minmax(0,1fr); gap:6px; padding:7px 0; }.fuel-value { flex-direction:column; gap:4px; }.fuel-value input,.fuel-value select { width:100%; max-width:none; border:1px solid #e3e8ee; border-radius:5px; }.vat-check { grid-column:3; margin-top:-2px; }.form-actions { flex-direction:column; }.form-actions>* { width:100%; }.panel-heading { gap:8px; }.panel-heading p { max-width:245px; line-height:1.5; }.table-search { width:138px; }.result-panel { min-height:0; }.empty-result { min-height:275px; } }
@media print { .sidebar,.topbar,.page-heading,.form-panel,.app-footer,.button,.icon-button { display:none!important; }.main-area { margin:0; }.content { max-width:none; padding:0; }.panel { box-shadow:none; break-inside:avoid; }.result-panel { border:0; }.table-panel { margin-top:10px; }body { background:#fff; } }

/* Keep form controls readable in split panels and on narrow screens. */
:root { --muted: #596779; }
.auth-message h1 { font-size: clamp(32px, 3.5vw, 50px); text-wrap: balance; }
.auth-form > p, .secure-note { color: var(--muted); }
.secure-note, .metric-foot, .panel-heading p, .activity-copy small,
.assumption-note p, .result-meta, .result-foot, .cell-sub, .app-footer { font-size: 12px; color: var(--muted); }
.metric-label, .text-link, .empty-state, th, td { font-size: 13px; }
.panel-heading h3 { font-size: 16px; }
.stack-form label, .input-grid > label, .table-search { font-size: 13px; }
.sidebar { overflow-y: auto; }
.panel, .input-grid > label { min-width: 0; }
.stack-form .input-with-unit input { flex: 1 1 0; width: 0; min-width: 46px; }
.stack-form .input-with-unit select { flex: 0 0 auto; width: auto; min-width: 0; }
.stack-form .fuel-value select { flex: 0 0 auto; width: auto; }
.stack-form .fuel-value input { flex: 1 1 0; width: 0; }
.stack-form .vat-check { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.stack-form .vat-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; }
.stack-form .check-wrap input { width: 1px; height: 1px; padding: 0; }
.check-wrap input:focus-visible + .checkmark, :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #23a687;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.price-chart { list-style: none; display: grid; gap: 12px; margin: 0; padding: 5px 0; }
.price-chart li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 5rem; align-items: center; gap: 8px; }
.price-chart meter { width: 100%; height: 20px; accent-color: #16866a; }
.price-chart strong { text-align: right; font-variant-numeric: tabular-nums; }
.chart-empty { font-size: 13px; color: var(--muted); }
body.dark .text-link { color: #81d6bd; }
@media (max-width: 1050px) {
  .two-column-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .stack-form .fuel-value input, .stack-form .fuel-value select { width: 100%; flex: auto; }
  .panel-heading { flex-wrap: wrap; }
  .table-search { width: 100%; }
}
@media print {
  body, body.dark { color: #111; background: #fff; }
  .two-column-layout { display: block; }
  .table-scroll { overflow: visible; }
  .table-scroll :is(th, td) { white-space: normal; }
  body.dark :is(.panel, .lng-highlight, th, td) { background: #fff; color: #111; }
}

.result-scale { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.market-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.market-prices p { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.market-prices .button:disabled { opacity: .65; cursor: default; }
.tax-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tax-fields > label:last-child { width: 110px; }
.stack-form .fuel-tax { display: flex; align-items: center; font-size: 11px; gap: 4px; white-space: nowrap; }
.stack-form .fuel-tax input { width: 56px; height: 34px; padding: 0 5px; }
.fuel-input-row { grid-template-columns: 20px 48px minmax(0,1fr) auto auto; }
.result-row-lng { border: 1px solid #d8e3ff; border-radius: 8px; padding: 10px; margin-top: 10px; }
.result-row-lng .fuel-chip { background: #e9efff; color: #244fb2; }
.result-row-lng .result-meter span { background: #345fd3; print-color-adjust: exact; }
body.dark .result-row-lng { border-color: #4562a6; }
@media (max-width: 1450px) {
  .fuel-input-row { grid-template-columns: 20px 42px minmax(0,1fr) auto; }
  .fuel-value { grid-column: 3 / -1; }
  .stack-form .vat-check { grid-column: 3; margin: 0 0 6px; }
  .stack-form .fuel-tax { grid-column: 4; margin-bottom: 6px; }
  .fuel-input-row { padding-top: 8px; }
}
@media (max-width: 520px) {
  .fuel-input-row { grid-template-columns: 17px 39px minmax(0,1fr); }
  .stack-form .fuel-tax { grid-column: 3; }
}

.compare-status { margin: 0; color: var(--muted); font-size: 13px; }
.compare-status:empty { display: none; }
.price-chart .chart-lng meter::-webkit-meter-optimum-value { background: #345fd3; }
.price-chart .chart-lng meter::-moz-meter-bar { background: #345fd3; }

.quote-basis { color: var(--muted); font-size: 12px; }
.stack-form .vat-check span { white-space: normal; }

#compareForm .lng-input-grid { grid-template-columns: minmax(0, 1fr); }
#compareForm .lng-input-grid .input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
}
#compareForm .lng-input-grid .input-with-unit input { width: 100%; min-width: 0; }
#compareForm .lng-input-grid .input-with-unit select { max-width: 100%; }
#compareForm input[inputmode="decimal"] { font-variant-numeric: tabular-nums; }

#compareForm .fuel-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: none;
  align-items: start;
  gap: 9px;
  padding: 13px 0;
}
.fuel-row-heading, .fuel-price-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, max-content);
  align-items: center;
  gap: 8px;
}
.fuel-row-heading .fuel-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
}
.fuel-row-heading .fuel-select input, .fuel-options .vat-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.fuel-row-heading .fuel-chip { font-size: 13px; min-width: 44px; }
.fuel-row-heading select { height: 38px; min-width: 0; font-size: 13px; }
.fuel-price-line input, .fuel-price-line select { font-size: 14px; }
.fuel-price-line > input[hidden] + select { grid-column: 1 / -1; max-width: 150px; }
.fuel-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
#compareForm .fuel-options > label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
#compareForm .fuel-options input:not([type="checkbox"]) { width: 64px; height: 36px; padding-inline: 6px; }
.lpg-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lpg-components label { min-width: 0; }
.fuel-quote-caption { margin: 6px 0; color: var(--muted); font-size: 13px; }
#compareForm .section-caption, #compareForm .section-caption > span, #compareForm .assumption-note,
.form-panel .assumption-note p, .form-panel .assumption-note strong { font-size: 13px; line-height: 1.55; }
#compareForm small, .form-panel .quote-basis { font-size: 12px; }
.result-meta strong, .result-saving strong, .result-price small { font-size: 12px; }
@media (max-width: 360px) {
  .lpg-components { grid-template-columns: minmax(0, 1fr); }
}

.result-row-top .fuel-chip { min-width: 48px; padding: 6px 9px; font-size: 15px; }
.price-chart li > span:first-child { font-size: 15px; font-weight: 700; }
#exchangeRateStatus { margin-top: 0; color: var(--muted); line-height: 1.5; }
.exchange-rate-apply { justify-self: start; }

.fuel-comparison-layout {
  gap: clamp(16px, 2vw, 28px);
}
.fuel-comparison-layout .panel { padding: clamp(16px, 2vw, 26px); }
.fuel-comparison-layout .panel-heading h3 { font-size: 19px; letter-spacing: -.35px; }
.fuel-comparison-layout .panel-heading p { font-size: 13px; line-height: 1.5; }
#compareForm { gap: 14px; }
#compareForm .fuel-input-list { gap: 6px; }
#compareForm .fuel-input-row {
  padding: 0;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#compareForm .fuel-row-heading {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 10px;
  min-height: 51px;
  padding: 7px 10px;
}
#compareForm .fuel-row-heading .fuel-chip { font-size: 14px; min-width: 44px; }
.fuel-mode-summary {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fuel-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
}
.fuel-disclosure[aria-expanded=true] span:last-child { transform: rotate(180deg); }
.fuel-editor {
  display: grid;
  gap: 10px;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
}
.fuel-editor > label select { font-size: 14px; }
#compareForm .compare-commercial-inputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
#compareForm .compare-commercial-inputs > label:last-child { grid-column: auto; }
.comparison-heading { align-items: center; flex-wrap: wrap; }
.comparison-currency { min-width: 0; margin: 0; padding: 0; border: 0; }
.comparison-currency legend { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.currency-options {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.currency-options label { position: relative; cursor: pointer; }
.currency-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.currency-options span {
  display: block;
  min-width: 45px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.currency-options input:checked + span { background: var(--green); color: #fff; }
.currency-options input:focus-visible + span { outline: 2px solid #23a687; outline-offset: 2px; }
.compare-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-money small { font-size: .83em; font-weight: 500; }
.compare-money:not(.compare-money-pair) [data-money=VND],
[data-comparison-currency=VND] .compare-money:not(.compare-money-pair) [data-money=USD] { display: none; }
[data-comparison-currency=VND] .compare-money:not(.compare-money-pair) [data-money=VND] { display: inline; }
.compare-money-pair {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--ink);
  text-align: right;
}
.compare-money-pair [data-money=USD],
[data-comparison-currency=VND] .compare-money-pair [data-money=VND] { order: 0; font-size: clamp(16px, 2vw, 22px); font-weight: 800; }
.compare-money-pair [data-money=VND],
[data-comparison-currency=VND] .compare-money-pair [data-money=USD] { order: 1; color: var(--muted); font-size: 13px; font-weight: 500; }
.fuel-result-panel .result-row { padding: 13px 0; }
.fuel-result-panel .result-row-lng { padding: 13px 12px; background: var(--surface-soft); }
.fuel-result-panel .result-row-top { align-items: start; }
.fuel-result-panel .result-meta { flex-wrap: wrap; color: var(--muted); }
.fuel-result-panel .fuel-quote-caption { display: block; line-height: 1.4; font-size: 12px; }
.fuel-result-panel .result-foot { line-height: 1.55; }
.fuel-result-panel .result-meter { height: 5px; }
@media (max-width: 520px) {
  #compareForm .compare-commercial-inputs { grid-template-columns: minmax(0, 1fr); }
  #compareForm .fuel-row-heading { gap: 7px; }
}
@media print { .comparison-currency { display: none; } }
[data-comparison-currency=VND] .compare-money-pair [data-money=VND] { color: var(--ink); }

#compareForm .tax-fields { align-items: center; gap: 6px 14px; }
#compareForm .tax-fields > label:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  white-space: nowrap;
}
#compareForm .tax-fields input[name="lng_vat_rate"] {
  width: 62px;
  height: 36px;
  padding-inline: 7px;
  text-align: right;
}
#compareForm .tax-fields .quote-basis { order: 1; flex-basis: 100%; }

.market-news { padding: 38px max(20px, calc((100vw - 1120px) / 2)) 48px; background: #f3f7f5; }
.market-news-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.market-news-header h2 { margin: 0 0 5px; font: 800 clamp(23px, 3vw, 31px)/1.2 Manrope, system-ui, sans-serif; }
.market-news-header p, .market-news-header time { margin: 0; color: var(--muted); font-size: 13px; }
.market-news-headlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; margin: 0; padding: 0; list-style: none; }
.market-news-headlines a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 13px; border: 1px solid #dfe9e5; border-radius: 8px; background: #fff; color: #173731; font-size: 15px; font-weight: 700; line-height: 1.45; }
.market-news-headlines a:hover { color: #07634e; border-color: #a3c8bb; background: #fcfffd; }
.market-news-headlines a span { color: #0f765f; font-size: 21px; font-weight: 500; }
.market-news-dialog { position: fixed; width: min(660px, calc(100% - 30px)); max-height: min(760px, calc(100% - 30px)); padding: clamp(20px, 4vw, 36px); border: 1px solid #dce9e4; border-radius: 15px; background: #fff; color: #182230; box-shadow: 0 18px 60px #102b2840; overflow: auto; }
.market-news-dialog::backdrop { background: #0e2826a6; }
.market-news-dialog h3 { margin: 10px 28px 16px 0; font: 800 clamp(21px, 4vw, 29px)/1.26 Manrope, system-ui, sans-serif; }
.market-news-close { position: absolute; top: 11px; right: 11px; margin: 0; }
.market-news-close button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 7px; background: #eef4f1; color: #193c33; font-size: 23px; line-height: 1; }
.market-news-meta { padding-right: 30px; color: #38675b; font-size: 13px; font-weight: 700; }
.market-news-copy p { margin-bottom: 13px; color: #354657; font-size: 15px; line-height: 1.65; }
.market-news-source { padding-top: 13px; border-top: 1px solid #e3ede8; color: #086752; font-size: 14px; font-weight: 700; }
.market-news-source a:hover { text-decoration: underline; }
@media (max-width: 650px) { .market-news-headlines { grid-template-columns: minmax(0, 1fr); } }

.market-news-back, .market-news-archive-link { display: inline-block; margin: 0 0 12px; color: #086752; font-weight: 750; }
.market-news-archive-link { margin: 18px 0 0; }
.market-news-filters, .market-news-pager { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 16px 0; }
.market-news-filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 650; }
.market-news-filters select { min-height: 38px; min-width: 110px; padding: 0 9px; border: 1px solid #cdded7; border-radius: 7px; color: #173731; background: #fff; }
.market-news-pager { align-items: center; }
.market-news-pager span { color: var(--muted); }
.market-news-dialog-nav { margin: 13px 0 0; }
