/* App-specific styles (site-wide styles come from /appln/assets/style.css) */
.tool form { display: grid; gap: 1rem; }
.tool fieldset { border: 1px solid #c9d2dc; border-radius: 10px; padding: 1rem; margin: 0; display: grid; gap: .8rem; }
.tool legend { font-weight: 700; padding: 0 .3rem; }
.tool label { display: block; font-weight: 600; margin-bottom: .25rem; }
.tool .hint { display: block; font-weight: 400; font-size: .9rem; color: #4a5866; }
.tool textarea, .tool input, .tool select { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem .6rem; border: 1px solid #9aa8b6; border-radius: 8px; background: #fff; color: #17202a; }
.tool textarea { min-height: 8rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.tool .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.tool .check { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.tool .check input { width: auto; }
.buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.buttons button { font: inherit; padding: .55rem 1rem; border-radius: 8px; border: 1px solid #1d4f7a; background: #1d4f7a; color: #fff; cursor: pointer; }
.buttons button[type="button"] { background: #fff; color: #1d4f7a; }
.buttons button:focus-visible, .tool input:focus-visible, .tool textarea:focus-visible, .tool select:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
.result { margin-top: 1rem; }
.result .summary { font-size: 1.05rem; padding: .7rem .9rem; border-radius: 8px; background: #eef5fb; border: 1px solid #c6dbee; }
.result .error { background: #fdf0ef; border-color: #e7b7b2; color: #7a1d14; }
.table-wrap { overflow-x: auto; margin: .8rem 0; }
.result table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.result th, .result td { border: 1px solid #c9d2dc; padding: .35rem .5rem; text-align: left; vertical-align: top; }
.result th { background: #f2f5f8; }
.result td.num, .result th.num { text-align: right; font-variant-numeric: tabular-nums; }
.result tfoot td { font-weight: 700; background: #f8fafb; }
.result .over { color: #8a4b00; }
.result .ok { color: #1f6b35; }
.result h3 { margin: 1.2rem 0 .3rem; }
.heat-card { break-inside: avoid; page-break-inside: avoid; margin-bottom: 1rem; }
.linkish { background: none; border: none; color: #1d4f7a; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media print {
  header, footer, .crumbs, .app-hero, .tool form, .buttons, .no-print, section:not(#tool) { display: none !important; }
  .tool { border: 0; padding: 0; }
  .result .summary { border: 0; background: none; padding: 0; }
  .result th { background: #eee; }
}
