/* Shared look for LINE tools (Material Calculator, Interior). Same locked LINE palette as the main calculator. */
:root { --navy:#0F172A; --bg:#F8FAFC; --surface:#fff; --surface-2:#F1F5F9; --ink:#0F172A; --muted:#64748B; --muted-2:#94A3B8; --line:#E2E8F0; --accent:#F97316; --accent-soft:#FFF1E6; --good:#16A34A; --bad:#DC2626; --radius:14px; color-scheme:light; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.55 "Inter","Noto Sans Malayalam",system-ui,-apple-system,"Segoe UI",sans-serif; }
[hidden] { display:none !important; }
h1,h2,h3 { margin:0; text-wrap:balance; }
button,input,select { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.inner { max-width:1100px; margin:0 auto; padding-inline:max(16px, env(safe-area-inset-left,0px)); }

.hero { background:var(--navy); color:#fff; border-bottom:3px solid var(--accent); padding-top:calc(env(safe-area-inset-top,0px) + 1rem); padding-bottom:1.8rem; }
.brandrow { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.logo { display:inline-flex; flex-direction:column; line-height:1; text-decoration:none; color:#fff; }
.logo-mark { font-weight:800; font-size:38px; letter-spacing:.12em; display:inline-flex; align-items:flex-end; }
.logo-mark i { display:inline-block; width:11px; height:6px; background:var(--accent); margin:0 0 4px 1px; }
.logo-by { font-size:8px; font-weight:300; color:var(--muted-2); letter-spacing:.08em; margin-top:5px; }
.toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.lang { display:inline-flex; border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:3px; }
.lang button { background:none; border:0; color:#fff; padding:5px 12px; border-radius:999px; cursor:pointer; font-size:13px; font-weight:600; }
.lang button[aria-pressed="true"] { background:#fff; color:var(--navy); }
.backlink { color:#fff; text-decoration:none; font-size:13px; font-weight:600; border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:6px 14px; }
.hero h1 { font-size:clamp(26px,4.6vw,44px); font-weight:800; line-height:1.1; margin-top:1.4rem; letter-spacing:-.01em; }
.hero p { color:var(--muted-2); max-width:60ch; margin:.7rem 0 0; font-size:15px; }

.layout { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:22px; align-items:start; padding-block:22px 36px; }
@media (max-width:960px) { .layout { grid-template-columns:minmax(0,1fr); } }
.col { display:grid; gap:16px; min-width:0; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; display:grid; gap:14px; min-width:0; }
.panel h2 { font-size:17px; font-weight:700; display:flex; gap:10px; align-items:baseline; }
.step { font-size:12px; font-weight:700; color:var(--accent); background:var(--accent-soft); border-radius:6px; padding:2px 7px; }
.hint { color:var(--muted); font-size:13px; margin:0; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.field { display:grid; gap:5px; align-content:start; min-width:0; }
.field > label,.lbl { font-size:13px; font-weight:600; color:var(--muted); }
.field input,.field select,.row input,.row select { width:100%; min-height:44px; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:9px 12px; }
.field input:focus,.field select:focus,.row input:focus,.row select:focus { border-color:var(--navy); outline:none; box-shadow:0 0 0 3px rgba(15,23,42,.12); }
.unit { position:relative; }
.unit input { padding-right:54px; }
.unit span { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--muted); pointer-events:none; }

.tabs { display:flex; flex-wrap:wrap; gap:4px; background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:4px; }
.tabs button { flex:1 1 auto; border:0; background:none; padding:9px 12px; border-radius:9px; cursor:pointer; font-weight:600; font-size:14px; color:var(--muted); white-space:nowrap; }
.tabs button[aria-pressed="true"] { background:var(--surface); color:var(--navy); box-shadow:0 1px 3px rgba(0,0,0,.12); }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:11px; padding:10px 16px; font-weight:700; cursor:pointer; border:1.5px solid transparent; text-decoration:none; min-height:44px; text-align:center; }
.btn-primary { background:var(--navy); color:#fff; }
.btn-wa { background:var(--good); color:#fff; }
.btn-ghost { background:transparent; border-color:var(--line); color:var(--ink); }
.btn-dashed { background:transparent; border:1.5px dashed var(--navy); color:var(--navy); justify-self:start; }
.xbtn { border:0; background:none; color:var(--bad); font-size:20px; cursor:pointer; min-width:36px; min-height:44px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }

.result { position:sticky; top:14px; display:grid; gap:14px; }
@media (max-width:960px) { .result { position:static; } }
.big { background:var(--navy); color:#fff; border-radius:var(--radius); padding:20px; display:grid; gap:4px; border-bottom:3px solid var(--accent); }
.big small { color:var(--muted-2); font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
.big b { font-size:34px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1.15; }
.big em { font-style:normal; color:var(--muted-2); font-size:13px; }
.kv { display:grid; gap:0; }
.kv div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; }
.kv div:last-child { border-bottom:0; }
.kv span { color:var(--muted); }
.kv b { text-align:right; }
.kv .tot { font-size:16px; }
.kv .tot span { color:var(--ink); font-weight:700; }
.empty { color:var(--muted); text-align:center; padding:18px 0; }
.note { background:var(--accent-soft); border-radius:10px; padding:10px 12px; font-size:13px; color:#9A3412; }
.bars { display:grid; gap:8px; }
.bar { display:grid; grid-template-columns:minmax(80px,38%) 1fr auto; gap:8px; align-items:center; font-size:13px; }
.bar i { display:block; height:9px; background:var(--accent); border-radius:5px; min-width:3px; }
.bar b { font-variant-numeric:tabular-nums; }

.lockcard { background:var(--navy); color:#fff; border-radius:var(--radius); padding:20px; display:grid; gap:10px; text-align:center; border-top:4px solid var(--accent); }
.lockcard h3 { font-size:19px; }
.lockcard ul { margin:0; padding:0; list-style:none; display:grid; gap:4px; font-size:14px; color:#CBD5E1; text-align:left; }
.lockcard .offerline { margin:2px 0; font-size:13px; font-weight:700; color:#FDBA74; background:rgba(249,115,22,.14); border:1px dashed #FDBA74; border-radius:10px; padding:8px 10px; }
.lockcard .buyb { background:var(--accent); color:#fff; font-size:17px; width:100%; }
.linkbtn { background:none; border:0; color:#FDBA74; font-weight:600; cursor:pointer; text-decoration:underline; justify-self:center; min-height:36px; }
.codeform { display:grid; gap:8px; }
.codeform input { width:100%; min-height:44px; border-radius:10px; border:1px solid var(--line); padding:9px 12px; color:var(--ink); text-transform:uppercase; }
.codeform .btn-primary { background:#fff; color:var(--navy); }
.codeform .err { color:#FCA5A5; font-size:13px; margin:0; }
.foot { border-top:1px solid var(--line); padding-block:24px 40px; color:var(--muted); font-size:12.5px; }
.foot p { max-width:78ch; margin:.4em 0; }
.foot a { color:var(--navy); font-weight:600; }

@media print {
  body { background:#fff; }
  .toolbar,.actions,.tabs,.xbtn,.btn,.inputs,.hero p { display:none !important; }
  .hero { padding-bottom:.6rem; }
  .layout { display:block; padding-block:10px; }
  .result { position:static; }
  .panel,.big { break-inside:avoid; }
}
