@import url('/fonts/wdth.css');
/* Vilvam livery: white body, orange tail, black curve, vilvam leaf green. */
:root {
  --orange: #f88121; --orange-deep: #b04e00; --orange-soft: #fff0e2; --leaf: #2f7d28; --leaf-bright: #65b958; --leaf-soft: #e9f5e6;
  --ink: #1b1d1a; --soft: #5a6057; --line: #dfe3dc; --bg: #f5f7f4; --card: #fff; --red: #b3261e; --red-soft: #fdecea; --blue: #1f5fa8; --blue-soft: #e7f0fa;
  --r: 16px; --sun: #ffd32a; --font: 'Anek Tamil Variable', 'Noto Sans Tamil', system-ui, sans-serif;
  color-scheme: light;
}
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; } ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; text-wrap: balance; }
a { color: var(--orange-deep); } img { max-width: 100%; height: auto; display: block; } small { font-size: .85rem; color: var(--soft); }
button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.i { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.3em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 20px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.2; text-align: center; transition: background .15s, transform .1s; }
.btn:hover { background: #f1f3ef; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: progress; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #1b1208; } .btn.primary:hover { background: #ff9238; }
.btn.go { background: var(--leaf); border-color: var(--leaf); color: #fff; } .btn.go:hover { background: #276a21; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.dark:hover { background: #33372f; }
.btn.danger { background: #fff; border-color: #e5b5b1; color: var(--red); } .btn.danger:hover { background: var(--red-soft); }
.btn.small { min-height: 38px; padding: 5px 13px; font-size: .94rem; } .btn.full { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; position: relative; color: inherit; } .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.link { border: 0; background: none; padding: 6px 0; color: var(--orange-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; } .muted { color: var(--soft); } .num { font-variant-numeric: tabular-nums; }

.f { display: grid; gap: 4px; min-width: 0; align-content: start; } .f > span { font-weight: 600; font-size: .95rem; }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid #c5cbc1; border-radius: 12px; background: #fff; font-size: 1rem; }
.f textarea { resize: vertical; } .f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid #ffd2ab; border-color: var(--orange-deep); }
.f input::placeholder, .f textarea::placeholder { color: #747a70; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .span2 { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; } .check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--leaf); }
.err { color: var(--red); font-weight: 600; } .err:empty { display: none; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .86rem; font-weight: 650; white-space: nowrap; background: #e9ece7; color: #41463e; }
.chip.hot { background: var(--orange); color: #1b1208; } .chip.wait { background: var(--blue-soft); color: var(--blue); } .chip.ok { background: var(--leaf-soft); color: #22641c; } .chip.bad, .chip.off { background: var(--red-soft); color: var(--red); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.note { background: var(--orange-soft); border-radius: 10px; padding: 10px 14px; font-size: .96rem; } .note.blue { background: var(--blue-soft); } .note.bad { background: var(--red-soft); } .note.ok { background: var(--leaf-soft); }
.empty { text-align: center; padding: 38px 18px; color: var(--soft); } .empty b { display: block; color: var(--ink); font-size: 1.1rem; }

.meter { display: inline-flex; align-items: center; gap: 3px; padding: 7px 9px; background: var(--ink); border-radius: 9px; font-size: 1.7rem; line-height: 1; color: var(--orange); font-weight: 700; font-stretch: 85%; }
.meter b { padding-right: 4px; color: #fff; font-weight: 600; } .meter i { font-style: normal; min-width: .86em; text-align: center; padding: .22em .06em .12em; background: #34382f; border-radius: 4px; font-variant-numeric: tabular-nums; } .meter u { text-decoration: none; color: #fff; align-self: flex-end; }
.bill { width: 100%; border-collapse: collapse; } .bill td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .bill td small { display: block; } .bill td:last-child { text-align: right; font-weight: 600; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill tfoot td { font-weight: 700; } .bill tfoot tr:last-child td { border: 0; font-size: 1.15rem; }
.route { position: relative; padding-left: 22px; font-weight: 600; } .route li { padding: 2px 0; overflow-wrap: anywhere; } .route li::before { content: ''; position: absolute; left: 3px; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: var(--leaf-bright); } .route li:last-child::before { background: var(--orange); border-radius: 2px; } .route::before { content: ''; position: absolute; left: 7px; top: 1.2em; bottom: 1.2em; border-left: 2px dotted #a8afa3; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; } .dl dt { color: var(--soft); } .dl dd { font-weight: 600; overflow-wrap: anywhere; }
.log li { position: relative; padding: 0 0 12px 20px; } .log li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-bright); } .log li:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 1.2em; bottom: -.2em; border-left: 2px solid var(--line); } .log small { display: block; }
.msgs { display: grid; gap: 8px; } .msg { max-width: 85%; padding: 8px 13px; border-radius: 12px; background: #eef1ec; justify-self: start; overflow-wrap: anywhere; } .msg.me { justify-self: end; background: var(--orange-soft); } .msg small { display: block; }
.msg-form { display: flex; gap: 8px; margin-top: 12px; } .msg-form input { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid #c5cbc1; border-radius: 9px; padding: 8px 12px; }
.stars { display: inline-flex; gap: 2px; color: #c8cdc4; } .stars .i { width: 2.4rem; height: 2.4rem; } .stars button { border: 0; background: none; padding: 3px; color: inherit; } .stars .on, .stars .on .i { color: #e79a00; fill: #ffc53d; }

.sheet { width: min(540px, 100%); max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: #fff; color: var(--ink); overflow: hidden; }
.sheet[open] { animation: up .22s ease-out; } .sheet::backdrop { background: rgba(20, 24, 18, .55); } .sheet.wide { width: min(820px, 100%); }
.sheet form { display: flex; flex-direction: column; max-height: 92dvh; } .sheet header { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px 8px 20px; } .sheet h2 { font-size: 1.3rem; }
.sheet-body { padding: 6px 20px 18px; overflow: auto; display: grid; gap: 14px; } .sheet footer { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
#toasts { position: fixed; z-index: 100; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; width: min(430px, 100%); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-left: 6px solid var(--leaf-bright); animation: drop .2s ease-out; } .toast b, .toast span { display: block; overflow-wrap: anywhere; } .toast.bad { border-color: #ff7b70; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.login { max-width: 400px; margin: 0 auto; padding: 48px 20px; display: grid; gap: 14px; } .login h1 { font-size: 1.7rem; margin-top: 10px; } .login form { display: grid; gap: 14px; } .demo { display: grid; gap: 8px; padding: 14px; background: var(--leaf-soft); border-radius: var(--r); }
@media (max-width: 420px) { .grid2 { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.f input { min-width: 0; } @media (max-width: 480px) { .wide-m { grid-column: 1 / -1; } }
