:root{
  --bg:#ffffff;
  --fg:#0b1220;
  --muted:#5b6b78;
  --accent:#ff6b35;
  --card:#f7fafc;
  --maxw:900px;
  --mono: "Segoe UI Mono", "Roboto Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
/* Reset and base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--fg);
  background:linear-gradient(180deg,#fcfdff 0%, #f3f7fb 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:24px;
}
.container{
  width:100%;
  max-width:var(--maxw);
  background:var(--bg);
  border-radius:10px;
  box-shadow:0 6px 24px rgba(11,17,32,0.08);
  padding:28px;
  border:1px solid #e6eef6;
  overflow:hidden;
}
/* Hero */
.hero{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}
.title{
  font-size:20px;
  font-weight:700;
  letter-spacing:-0.01em;
}
.lead{
  color:var(--muted);
  font-size:14px;
  margin-bottom:6px;
}
/* Search mini */
.search-row{display:flex;gap:8px;align-items:center}
.search-row input[type="search"]{
  flex:1;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #d7e6f3;
  background:transparent;
  outline:none;
}
.search-row .btn{white-space:nowrap}
/* Chart table */
.table-wrap{overflow:auto;border-radius:8px;margin:18px 0}
table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
thead th{
  text-align:left;
  font-size:13px;
  color:var(--muted);
  padding:10px 12px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border-bottom:1px solid #eef6fb;
}
tbody td{padding:10px 12px;border-bottom:1px dashed #f0f6fb}
tbody tr:hover td{background:#fcfcff}
.small{font-size:13px;color:var(--muted)}
/* Convert widget */
.controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:8px;
}
.control {
  display:flex;
  gap:8px;
  align-items:center;
}
select,input[type="number"]{
  padding:8px;
  border-radius:8px;
  border:1px solid #e0eef8;
  background:transparent;
}
.btn{
  background:var(--accent);
  color:white;
  border:none;
  padding:9px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}
.result{
  margin-top:10px;
  padding:10px;
  border-radius:8px;
  background:linear-gradient(180deg,#fff7f0,#fffdfa);
  border:1px solid rgba(255,107,53,0.12);
  color:#6c3100;
  font-weight:600;
}
/* FAQ style */
section.faq h2{margin:16px 0 8px;padding-top:6px}
.faq p{color:var(--muted);line-height:1.45}
/* small helpers */
.meta{font-size:12px;color:var(--muted)}
.kv{display:flex;gap:8px;align-items:center;font-weight:600}
/* Anchors highlight */
.flash{animation:flashbg 1.4s ease}
@keyframes flashbg{0%{background:rgba(255,230,200,0.8)}80%{background:transparent}100%{background:transparent}}
/* Related links */
.related-links{
  margin-top:18px;
  padding:14px;
  border-radius:8px;
  background:linear-gradient(180deg,#fbfcff,#ffffff);
  border:1px solid #eef6fb;
}
.related-links h3{
  margin:0 0 8px 0;
  font-size:15px;
  color:var(--fg);
}
.related-links ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.related-links li{
  margin:0;
}
.related-links a{
  display:inline-block;
  padding:8px 10px;
  border-radius:8px;
  background:transparent;
  color:#254b6b;
  text-decoration:none;
  border:1px solid transparent;
  font-size:13px;
}
.related-links a:hover,
.related-links a:focus{
  background:#f3f8fd;
  border-color:#dbeefb;
  outline:none;
  text-decoration:underline;
}
/* Print */
@media print{
  body{background:white}
  .container{box-shadow:none;border:none;padding:6mm}
  .no-print{display:none}
  h1,h2{color:black}
  .related-links{page-break-inside:avoid}
}
/* Responsive */
@media (max-width:720px){
  .controls{grid-template-columns:1fr}
  body{padding:18px}
  .related-links ul{flex-direction:column}
}