/* GrowNiti Labs Dev Tools – brand stylesheet (dark by default, light available). */
:root {
  --bg: #060B17; --bg2: #0B1730; --surface: #0D182D; --surface2: #13213D; --field: #091325;
  --ink: #E8ECF4; --muted: #95A3BA; --rule: #1E2C48; --rule2: #2A3B5E;
  --green: #5CC97B; --blue: #5AB8E8; --grad: linear-gradient(90deg, #5CC97B, #5AB8E8);
  --accent: #5CC97B; --accent-ink: #06101E; --star: #F2C14E;
  --ok: #5CC97B; --warn: #F2C14E; --error: #FF8A80;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px; --r-sm: 8px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F7FB; --bg2: #E6EFF9; --surface: #FFFFFF; --surface2: #F0F4FA; --field: #FAFCFE;
  --ink: #0D1A30; --muted: #4E5E77; --rule: #D6DFEB; --rule2: #C3CFDF;
  --green: #1C8A4C; --blue: #1677AE; --grad: linear-gradient(90deg, #1C8A4C, #1677AE);
  --accent: #1C8A4C; --accent-ink: #FFFFFF; --star: #B97C00; --ok: #1C8A4C; --warn: #8A5A00; --error: #B3261E;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); min-width: 0; }
.logo { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #12244A; border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: -.02em; position: relative; overflow: hidden; }
.logo::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 2px; background: var(--grad); }
.logo-img { flex: none; display: block; width: 52px; height: 52px; border-radius: 13px; border: 2px solid #fff; object-fit: cover; background: #12244A; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.brand-text small { font-size: .82rem; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-head nav { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.site-head nav a:hover { color: var(--green); }
.theme { background: var(--surface); border: 1px solid var(--rule2); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.theme svg { width: 18px; height: 18px; }

/* Type */
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin: 2.5rem 0 .7rem; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 1.4rem 0 .3rem; font-weight: 600; }
p, li, dd { max-width: 70ch; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 0 0 1.75rem; max-width: 60ch; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface2); padding: .05em .35em; border-radius: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .85rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--rule2); color: var(--muted); background: var(--surface); }
a.chip { text-decoration: none; }
a.chip:hover { color: var(--green); border-color: var(--green); }
.chip.hi { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.chip.star { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; background: radial-gradient(1200px 500px at 20% -10%, var(--bg2), transparent 70%); }
.hero h1 { max-width: 16ch; }
.search-box { position: relative; max-width: 680px; }
.search { display: flex; align-items: center; gap: .75rem; border: 1.5px solid var(--rule2); border-radius: 999px; background: var(--surface); padding: 0 .7rem 0 1.2rem; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 400 1.05rem/1 var(--sans); padding: 1.05rem 0; min-width: 0; }
.search input:focus { outline: none; }
kbd { font-family: var(--mono); font-size: .78rem; color: var(--muted); border: 1px solid var(--rule2); border-radius: 6px; padding: .1rem .5rem; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); margin: 0; padding: .4rem; list-style: none; background: var(--surface); border: 1px solid var(--rule2); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0,0,0,.35); z-index: 15; }
.results li { max-width: none; }
.results a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.results a span { color: var(--muted); font-size: .85rem; }
.results li.on a, .results a:hover { background: var(--surface2); }
.results .none { padding: .7rem .9rem; color: var(--muted); }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.4rem; max-width: 820px; }
.try > span { font-family: var(--mono); color: var(--muted); font-size: .9rem; margin-right: .2rem; }
.try a { font-family: var(--mono); font-size: .88rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--rule2); color: var(--ink); text-decoration: none; background: var(--surface); }
.try a:hover { border-color: var(--green); color: var(--green); }

/* Buttons */
.btn { font: 500 .88rem/1 var(--sans); padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--rule2); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; min-height: 38px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--grad); border: 0; color: #06101E; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }

/* Category explorer */
.explorer { padding: 1rem 0 4rem; }
.ex-panel { border: 1px solid var(--rule); border-radius: 22px; background: var(--surface); overflow: hidden; }
.ex-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--rule); }
.ex-head h2 { margin: 0; font-size: 1.25rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .82rem; color: var(--blue); padding: .3rem .8rem; border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); border-radius: 999px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.jump { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.jump select, .ex-controls input { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--rule2); border-radius: var(--r-sm); padding: .45rem .6rem; min-height: 40px; }
.ex-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--rule); }
.ex-controls .lbl { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--rule2); border-radius: 10px; background: var(--field); }
.seg button { font: 500 .88rem/1 var(--sans); background: none; border: 0; color: var(--muted); padding: .55rem .85rem; border-radius: 7px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface2); color: var(--ink); }
.ex-controls .filter { flex: 1 1 220px; display: flex; }
.ex-controls .filter input { width: 100%; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.2rem; padding: 1.4rem; }
.cat { border: 1px solid var(--rule); border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; }
.cat-top { padding: 1.3rem 1.3rem 1.1rem; }
.cat-title { display: flex; align-items: center; gap: 1rem; }
.cat-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 700 1.25rem/1 var(--mono); color: #10141C; background: var(--c); box-shadow: 0 8px 28px color-mix(in srgb, var(--c) 35%, transparent); }
.cat-path { margin: 0; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.cat h3 { margin: 0; font-size: 1.35rem; }
.cat h3 a { color: var(--ink); text-decoration: none; }
.cat h3 a:hover { color: var(--green); }
.cat-go { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rule2); display: grid; place-items: center; color: var(--muted); text-decoration: none; flex: none; }
.cat-go:hover { color: var(--green); border-color: var(--green); }
.cat-desc { color: var(--muted); margin: .9rem 0 .9rem; }
.cat-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.cat-inc { border-top: 1px solid var(--rule); padding: 1rem 1.3rem 1.2rem; margin-top: auto; }
.inc-h { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: 0 0 .4rem; }
.inc-h b { color: var(--blue); font-weight: 500; }
.tree { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .9rem; }
.tree li { display: flex; align-items: center; border-bottom: 1px dashed var(--rule2); max-width: none; }
.tree li a { flex: 1; padding: .55rem 0 .55rem 1.6rem; color: var(--ink); text-decoration: none; position: relative; }
.tree li a::before { content: ""; position: absolute; left: .2rem; top: 0; bottom: 0; width: .9rem; border-left: 1px solid var(--rule2); background: linear-gradient(var(--rule2), var(--rule2)) left 50% / 100% 1px no-repeat; }
.tree li a:hover { color: var(--green); }
.tree .s { color: var(--star); font-size: .95rem; }
.more { display: inline-block; margin-top: .6rem; font-family: var(--mono); font-size: .88rem; color: var(--blue); text-decoration: none; }
.more:hover { text-decoration: underline; }
.cats[data-view="list"] { grid-template-columns: 1fr; gap: .7rem; }
.cats[data-view="list"] .cat { flex-direction: row; align-items: center; }
.cats[data-view="list"] .cat-top { flex: 1; padding: 1rem 1.2rem; }
.cats[data-view="list"] .cat-desc { margin: .5rem 0 .6rem; }
.cats[data-view="list"] .cat-inc { display: none; }
.cats-none { padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* Tool page */
.tool-head { padding: 1.8rem 0 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }
.pair { display: inline-flex; align-items: stretch; font-family: var(--mono); font-size: .95rem; margin-bottom: 1rem; border: 1px solid var(--rule2); border-radius: 999px; background: var(--surface); overflow: hidden; }
.pair span { padding: .4rem 1rem; }
.pair a, .pair i { display: grid; place-items: center; padding: 0 .8rem; color: var(--ink); text-decoration: none; font-style: normal; }
.pair a { background: var(--grad); color: #06101E; font-weight: 700; font-size: 1.15rem; }
.pair .to { color: var(--green); }
.tool-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.bench { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.bench.single { grid-template-columns: 1fr; }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); min-height: 56px; }
.bar .name { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-right: auto; }
textarea { flex: 1; width: 100%; min-height: 420px; resize: vertical; border: 0; margin: 0; padding: 1rem; background: var(--field); color: var(--ink); font: 400 .88rem/1.6 var(--mono); tab-size: 2; overflow: auto; }
textarea.wrap-text { white-space: pre-wrap; word-break: break-word; }
textarea:not(.wrap-text) { white-space: pre; }
.bench.single textarea { min-height: 300px; }
textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
textarea.is-drop { background: color-mix(in srgb, var(--blue) 12%, var(--field)); }
.opts { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; font-size: .86rem; color: var(--muted); }
.opts label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.opts select, .opts input[type=text], .opts input[type=number] { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--rule2); border-radius: var(--r-sm); padding: .3rem .5rem; min-height: 34px; }
.opts input[type=text] { width: 9rem; font-family: var(--mono); }
.opts input[type=number] { width: 5rem; }
.opts input[type=checkbox], .opts input[type=radio] { accent-color: var(--green); width: 16px; height: 16px; }
.status { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--muted); grid-column: 1 / -1; min-height: 3rem; max-width: none; }
.status[data-type="ok"] { color: var(--ok); }
.status[data-type="warn"] { color: var(--warn); }
.status[data-type="error"] { color: var(--error); font-weight: 500; }
.privacy-note { font-size: .88rem; color: var(--muted); margin: .7rem 0 0; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3rem; padding-bottom: 4rem; }
.content ol, .content ul { padding-left: 1.2rem; }
.content li { margin: .25rem 0; }
.content dt { font-weight: 600; margin-top: 1.1rem; }
.content dd { margin: .25rem 0 0; color: var(--muted); }
.related { align-self: start; position: sticky; top: 92px; margin-top: 2.5rem; border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--surface); }
.related h2 { font-size: 1rem; margin: 0 0 .4rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related li a { display: block; padding: .5rem 0; border-bottom: 1px dashed var(--rule2); text-decoration: none; color: var(--ink); font-size: .93rem; }
.related li:last-child a { border-bottom: 0; }
.related li a:hover { color: var(--green); }

/* Category page */
.cat-page { padding: 1.8rem 0 4rem; }
.cat-page .cat-title { margin-bottom: 1.2rem; }
.tool-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.tool-list li { max-width: none; }
.tool-list a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.tool-list a:hover { border-color: var(--green); }
.tool-list strong { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; }
.tool-list strong .s { color: var(--star); }
.tool-list span { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.other-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.page { padding: 2.5rem 0 4rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem 2rem; }
.site-foot h2 { font-size: .95rem; margin: 0 0 .5rem; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: .3rem 0; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--green); }
.site-foot p { margin: .4rem 0 0; }

/* Tablet */
@media (max-width: 960px) {
  .content { grid-template-columns: 1fr; gap: 0; }
  .related { position: static; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .site-head .wrap { min-height: 64px; gap: .6rem; }
  .logo { width: 40px; height: 40px; font-size: .95rem; }
  .logo-img { width: 44px; height: 44px; border-radius: 11px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: .75rem; }
  .site-head nav { gap: .7rem; }
  .site-head nav .hide-sm { display: none; }
  .bench { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--rule); }
  textarea { min-height: 230px; }
  .bar .name { flex-basis: 100%; }
  .cats { grid-template-columns: 1fr; padding: 1rem; }
  .ex-head, .ex-controls { padding: 1rem; }
  .jump { margin-left: 0; width: 100%; }
  .jump select { flex: 1; }
  .cats[data-view="list"] .cat-desc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .search kbd, .jump kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Privacy & disclaimer strip – on every page */
.trust { padding: 2.5rem 0 1rem; border-top: 1px solid var(--rule); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tcard { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem 1.2rem .9rem; scroll-margin-top: 96px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--a) 7%, var(--surface)), var(--surface) 65%); transition: border-color .2s; }
.tcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--a), transparent 85%); }
.tcard:hover, .tcard:target { border-color: color-mix(in srgb, var(--a) 55%, var(--rule)); }
.tcard-head { display: flex; align-items: center; gap: .85rem; }
.tcard-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--a);
  background: color-mix(in srgb, var(--a) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent) inset; }
.tcard-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcard h2 { margin: 0; font-size: 1.05rem; }
.tcard-sub { margin: 0; font-size: .88rem; color: var(--muted); }
.tchips { list-style: none; margin: .9rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tchips li { margin: 0; font-size: .8rem; padding: .32rem .75rem .32rem 1.55rem; border-radius: 999px; border: 1px solid var(--rule2); background: var(--field); position: relative; }
.tchips li::before { content: ""; position: absolute; left: .7rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--a); }
.tmore { margin-top: .6rem; border-top: 1px solid var(--rule); }
.tmore summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--a); }
.tmore summary::-webkit-details-marker { display: none; }
.tmore summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.tmore[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.tmore p { font-size: .88rem; color: var(--muted); margin: .2rem 0 .7rem; max-width: none; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tcard, .tmore summary::after { transition: none; } }

/* ===== App-style tools (India) ===== */
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.2rem; align-items: start; }
.app-card { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 22px; background: var(--surface); padding: 1.4rem; }
.app-card.result { background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--green)) 10%, var(--surface)), var(--surface) 55%); }
.app-card.result::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.app-card h2 { font-size: .8rem; font-family: var(--mono); font-weight: 500; letter-spacing: .04em; color: var(--muted); margin: 0 0 1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .45rem; }
.money-in { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--rule2); border-radius: 16px; background: var(--field); padding: 0 1rem; transition: border-color .15s, box-shadow .15s; }
.money-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.money-in b { font-size: 1.5rem; color: var(--green); font-weight: 600; }
.money-in input, .money-in select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 clamp(1.3rem, 3.4vw, 1.7rem)/1.2 var(--mono); padding: .85rem 0; }
.money-in input:focus, .money-in select:focus { outline: none; }
.money-in select { font: 500 1rem/1.2 var(--sans); }
.app select.plain, .app input.plain { width: 100%; font: 500 1rem/1.2 var(--sans); color: var(--ink); background: var(--field); border: 1.5px solid var(--rule2); border-radius: 12px; padding: .75rem .9rem; min-height: 48px; }
.app input[type=date].plain { font-family: var(--mono); color-scheme: inherit; }
.app .seg { display: flex; flex-wrap: wrap; width: 100%; }
.app .seg button { flex: 1 1 auto; min-height: 42px; }
.chips-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips-row button { font: 500 .85rem/1 var(--mono); padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--rule2); background: var(--field); color: var(--ink); cursor: pointer; min-height: 38px; }
.chips-row button:hover { border-color: var(--green); color: var(--green); }
.chk { display: flex; align-items: center; gap: .55rem; font-size: .92rem; cursor: pointer; }
.chk input { accent-color: var(--green); width: 18px; height: 18px; }
.big-wrap { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); margin-bottom: .6rem; }
.big-label { font-size: .85rem; color: var(--muted); margin: 0 0 .35rem; }
.big { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; word-break: break-word; max-width: none; }
.big.num { font-family: var(--mono); font-size: clamp(1.6rem, 4.6vw, 2.4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy { flex: none; display: inline-flex; align-items: center; gap: .35rem; font: 600 .82rem/1 var(--sans); padding: .55rem .9rem; border-radius: 999px; border: 0; background: var(--grad); color: #06101E; cursor: pointer; min-height: 38px; }
.copy.ghost { background: var(--field); color: var(--ink); border: 1px solid var(--rule2); font-weight: 500; }
.copy.ok { background: var(--green); color: #06101E; }
.rows { margin: 0; }
.row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--rule2); }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--muted); font-size: .9rem; flex: 0 0 42%; }
.row dd { margin: 0; flex: 1; font-family: var(--mono); font-size: .98rem; word-break: break-word; max-width: none; }
.row dd.txt { font-family: var(--sans); }
.row .copy { padding: .45rem .7rem; min-height: 34px; }
.row.total dd { font-weight: 600; color: var(--green); }
.app .status { border: 0; padding: .8rem 0 0; }
.app textarea { min-height: 260px; border: 1.5px solid var(--rule2); border-radius: 14px; }
.app-note { font-size: .86rem; color: var(--muted); margin: .9rem 0 0; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .app-card { padding: 1.1rem; border-radius: 18px; } .row dt { flex-basis: 45%; font-size: .85rem; } .row dd { font-size: .9rem; } .big-wrap { flex-direction: column; } }
[hidden] { display: none !important; }
.app .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
@media (max-width: 520px) {
  .row { flex-wrap: wrap; row-gap: .25rem; }
  .row dt { flex: 0 0 100%; }
  .row dd { font-size: .98rem; }
  .big-wrap { flex-direction: row; align-items: flex-start; }
}
