/* ==========================================================================
   RojgarTool — design system
   Four brand colours over a cool-paper neutral scale:
     navy ink (base) · saffron (action) · ledger green (document) · seal red (PDF)
   Inspired by Indian government form stationery, built for 360px phones first.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --ink:        #0F2A4A;
  --ink-700:    #1C3D63;
  --ink-600:    #33527A;
  --ink-500:    #3E5C82;
  --ink-400:    #6B84A5;
  --saffron:    #F26B0F;
  --saffron-600:#D25907;
  --saffron-50: #FFF3E8;
  --green:      #0B7A5A;
  --green-600:  #09644A;
  --green-50:   #E6F4EF;
  --red:        #D63B3F;
  --red-50:     #FDECEC;
  --blue:       #2F6FED;
  --blue-50:    #EAF1FE;

  /* neutrals */
  --paper:      #F4F7FB;
  --paper-2:    #EAF0F7;
  --card:       #FFFFFF;
  --line:       #E1E8F1;
  --line-2:     #CBD6E4;
  --text:       #16273D;
  --text-2:     #46586F;
  --muted:      #6E7F95;

  /* status */
  --warn:       #8A6100;
  --warn-50:    #FDF6E3;

  /* category */
  --cat-image:  var(--saffron);
  --cat-pdf:    var(--red);
  --cat-doc:    var(--green);

  /* shape */
  --r-xs: 8px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(15,42,74,.05), 0 2px 8px rgba(15,42,74,.05);
  --sh-2: 0 2px 6px rgba(15,42,74,.06), 0 12px 28px rgba(15,42,74,.08);
  --sh-3: 0 4px 12px rgba(15,42,74,.08), 0 28px 60px rgba(15,42,74,.12);

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Mukta", "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;

  --wrap: 1140px;
  --ease: cubic-bezier(.22,.72,.3,1);
}
/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg, video { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.18rem + .7vw, 1.75rem); }
h3 { font-size: clamp(1.08rem, 1.02rem + .3vw, 1.22rem); }
p  { margin: 0 0 1.05em; }
a  { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron-600); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
small { font-size: .85rem; }
code, kbd, samp { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: .92em; }
code { background: var(--paper-2); padding: .12em .4em; border-radius: 5px; color: var(--ink-700); }
::selection { background: #FFD9B8; color: var(--ink); }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.wrap-sm { max-width: 820px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 300; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Motion ---------- */
@keyframes rt-up   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rt-pop  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rt-spin { to { transform: rotate(360deg); } }
@keyframes rt-float{ 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rt-shine{ 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }
.reveal-d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 4. Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 80;
  background: rgba(15, 42, 74, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 6px 24px rgba(15,42,74,.16);
}
.site-head::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--saffron) 0%, #FFA557 30%, var(--green) 65%, var(--blue) 100%);
}
.head-row { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(140deg, var(--saffron) 0%, #FF9A45 100%);
  color: #fff; display: grid; place-items: center;
  font-size: .95rem; font-weight: 700; font-family: var(--font-head);
  box-shadow: 0 4px 12px rgba(242,107,15,.4);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-mark span { transform: translateY(-1px); }

.nav-toggle {
  margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-size: .9rem;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,.16); }
.nav-toggle .bars { width: 16px; height: 11px; position: relative; display: inline-block; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 4.5px; }
.nav-toggle .bars i:nth-child(3) { top: 9px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 9px 13px; color: #D5DFEC; text-decoration: none;
  border-radius: var(--r-sm); font-size: .97rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--saffron); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 920px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-700); padding: 10px 18px 16px;
    box-shadow: 0 18px 40px rgba(15,42,74,.32);
    border-bottom: 3px solid var(--saffron);
  }
  .nav.is-open { display: block; animation: rt-fade .18s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.09); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); padding-left: 14px; }
}
@media (min-width: 921px) { .nav-toggle { display: none; } }

/* ---------- 5. Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--line-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--saffron-600); text-decoration: underline; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 12% -10%, #FFEEDD 0%, rgba(255,238,221,0) 60%),
    radial-gradient(900px 420px at 92% 0%, #E2ECFB 0%, rgba(226,236,251,0) 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px) 0 clamp(30px, 4vw, 54px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,42,74,.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero > .wrap { position: relative; }
.hero-grid { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-700);
  border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .84rem; font-weight: 600;
  box-shadow: var(--sh-1); margin-bottom: 16px;
  animation: rt-pop .5s var(--ease) both;
}
.eyebrow b {
  background: var(--saffron); color: #fff; border-radius: 999px;
  padding: 2px 9px; font-size: .76rem; letter-spacing: .02em;
}
.hero h1 { margin-bottom: .35em; animation: rt-up .55s var(--ease) both .05s; }
.hero h1 .hl {
  position: relative; white-space: nowrap; color: var(--saffron-600);
}
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .3em;
  background: linear-gradient(90deg, rgba(242,107,15,.22), rgba(242,107,15,.06));
  border-radius: 4px; z-index: -1;
}
.hero .lede {
  font-size: clamp(1rem, .96rem + .3vw, 1.12rem); color: var(--text-2);
  max-width: 56ch; margin-bottom: 1.3em;
  animation: rt-up .55s var(--ease) both .12s;
}
.hero .searchbox { animation: rt-up .55s var(--ease) both .18s; }
.hero .trust-row { animation: rt-up .55s var(--ease) both .26s; }

.searchbox { position: relative; max-width: 560px; }
.searchbox input[type="search"] {
  width: 100%; font: inherit; font-size: 1.02rem; padding: 15px 16px 15px 50px;
  border: 2px solid var(--line-2); border-radius: var(--r-lg); background: #fff; color: var(--text);
  box-shadow: var(--sh-1); transition: border-color .2s, box-shadow .2s;
}
.searchbox input[type="search"]::placeholder { color: #94A3B4; }
.searchbox input[type="search"]:focus {
  border-color: var(--saffron); outline: none;
  box-shadow: 0 0 0 4px rgba(242,107,15,.16), var(--sh-2);
}
.searchbox .icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 20px; height: 20px;
  color: var(--muted); pointer-events: none;
}
.searchbox .icon svg { width: 20px; height: 20px; display: block; }
.search-meta { font-size: .88rem; color: var(--muted); margin: 10px 0 0; min-height: 1.35em; }

.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: .87rem; font-weight: 500; color: var(--ink-700); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.pill svg { width: 15px; height: 15px; color: var(--green); flex: 0 0 15px; display: block; }

/* hero art */
.hero-art { position: relative; animation: rt-pop .7s var(--ease) both .2s; }
.hero-art .board {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); padding: 18px; position: relative; overflow: hidden;
}
.hero-art .board::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--red) 50%, var(--green));
}
.hero-art .row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--line); }
.hero-art .row:last-child { border-bottom: 0; }
.hero-art .ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
}
.hero-art .ic svg { width: 21px; height: 21px; display: block; }
.hero-art .t { font-weight: 600; font-size: .95rem; color: var(--ink); }
.hero-art .s { font-size: .82rem; color: var(--muted); }
.hero-art .ok {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: 0 0 26px;
}
.hero-art .ok svg { width: 14px; height: 14px; display: block; }
.hero-art .badge {
  position: absolute; right: -10px; bottom: -14px; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 10px 15px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--sh-2); display: flex; align-items: center; gap: 8px;
  animation: rt-float 5s ease-in-out infinite;
}
.hero-art .badge svg { width: 16px; height: 16px; display: block; color: #6FE3B4; flex: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .hero-art .badge { animation: none; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--sh-1);
}
.stat b {
  display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--ink);
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.stat b span { font: inherit; color: inherit; }
.stat > span { font-size: .82rem; color: var(--muted); }

/* ---------- 7. Sections ---------- */
.section { padding: clamp(30px, 4vw, 52px) 0; }
.section-tight { padding: 24px 0; }
.section-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head .count { font-size: .88rem; color: var(--muted); margin-left: auto; }
.kicker {
  display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--saffron-600); margin-bottom: 6px;
}

/* ---------- 8. Tool cards ---------- */
.tool-grid {
  display: grid; gap: 14px; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
}
.tool-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 18px 18px 20px; height: 100%;
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tool-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--cat, var(--ink)); transition: width .25s var(--ease);
}
.tool-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--cat, var(--ink)); opacity: 0;
  transform: scale(.5); transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.tool-card:hover, .tool-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--sh-2); color: inherit; border-color: var(--line-2);
}
.tool-card:hover::before { width: 6px; }
.tool-card:hover::after { transform: scale(1); opacity: .07; }
.tool-card .k {
  position: relative; font-size: .71rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--cat, var(--muted)); font-weight: 700;
}
.tool-card .t { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.tool-card .d { position: relative; font-size: .91rem; color: var(--text-2); line-height: 1.55; }
.tool-card .go {
  position: relative; margin-top: auto; padding-top: 10px; font-size: .87rem; font-weight: 600;
  color: var(--cat, var(--ink)); display: inline-flex; align-items: center; gap: 6px;
}
.tool-card .go svg { width: 14px; height: 14px; display: block; transition: transform .25s var(--ease); }
.tool-card:hover .go svg { transform: translateX(4px); }
.cat-image { --cat: var(--cat-image); }
.cat-pdf   { --cat: var(--cat-pdf); }
.cat-doc   { --cat: var(--cat-doc); }
.empty-note { padding: 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }

/* ---------- 9. Tool page hero ---------- */
.tool-hero {
  background:
    radial-gradient(760px 320px at 85% 0%, var(--th-tint, #FFF3E8) 0%, rgba(255,255,255,0) 65%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 clamp(24px, 3vw, 40px);
}
.tool-hero .inner { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .tool-hero .inner { grid-template-columns: 1.02fr .98fr; gap: 40px; } }
.tool-hero h1 { margin-bottom: .3em; animation: rt-up .5s var(--ease) both; }
.tool-hero .lede { font-size: 1.06rem; color: var(--text-2); max-width: 54ch; margin-bottom: 1em; animation: rt-up .5s var(--ease) both .08s; }
.tool-hero .chips-row { display: flex; flex-wrap: wrap; gap: 8px; animation: rt-up .5s var(--ease) both .14s; }
.tool-hero .tag {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; font-size: .83rem; font-weight: 600; color: var(--ink-700);
}
.tool-hero .tag svg { width: 14px; height: 14px; color: var(--green); flex: 0 0 14px; display: block; }
.tool-shot {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-2);
  animation: rt-pop .6s var(--ease) both .1s;
}
.tool-shot img { width: 100%; display: block; }
.cat-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--th, var(--saffron)); margin-bottom: 10px;
}
.cat-badge::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }

/* ---------- 10. Panels & forms ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 24px); margin: 0 0 20px; box-shadow: var(--sh-1);
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-sub { font-size: .93rem; color: var(--muted); margin-top: -.5em; margin-bottom: 1.1em; }
.panel-accent { border-top: 3px solid var(--saffron); }
.stack > * + * { margin-top: 16px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 720px) { .grid2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.grid3 { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.two-col { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 980px) { .two-col { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; } }
.sticky-side { position: static; }
@media (min-width: 980px) { .sticky-side { position: sticky; top: 86px; } }

/* Drop zone */
.drop {
  position: relative; border: 2px dashed var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FBFDFF, #F5F9FE); padding: 30px 18px; text-align: center;
  cursor: pointer; display: block; width: 100%; font: inherit; color: var(--text);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.drop:hover { border-color: var(--saffron); background: var(--saffron-50); }
.drop.is-over { border-color: var(--saffron); background: var(--saffron-50); border-style: solid; transform: scale(1.01); }
.drop .dz-ic {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--saffron);
  box-shadow: var(--sh-1);
}
.drop .dz-ic svg { width: 22px; height: 22px; display: block; }
.drop .big { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; display: block; margin-bottom: 5px; color: var(--ink); }
.drop .hint { font-size: .87rem; color: var(--muted); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-sm { padding: 18px 14px; }
.drop-sm .dz-ic { width: 38px; height: 38px; margin-bottom: 8px; }
.drop-sm .dz-ic svg { width: 18px; height: 18px; display: block; }

/* Fields */
.field { display: block; margin: 0; }
.field > label, .lbl {
  display: block; font-size: .87rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px;
}
.field .help { font-size: .83rem; color: var(--muted); margin: 5px 0 0; }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=email],
input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 11px 13px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--text); transition: border-color .18s, box-shadow .18s;
}
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #AFC0D6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(242,107,15,.15);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
input:disabled, select:disabled, textarea:disabled { background: #F1F5FA; color: var(--muted); cursor: not-allowed; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7F95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
input[type=color] {
  width: 100%; height: 44px; padding: 4px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,42,74,.14);
}
input[type=color]::-webkit-color-swatch { border: 1px solid rgba(15,42,74,.16); border-radius: 5px; }
input[type=color]::-moz-color-swatch { border: 1px solid rgba(15,42,74,.16); border-radius: 5px; }
input[type=range] {
  width: 100%; accent-color: var(--saffron); height: 22px;
}
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output {
  min-width: 66px; text-align: center; font-variant-numeric: tabular-nums; font-size: .87rem;
  font-weight: 600; color: var(--ink-700); background: var(--paper-2); border-radius: 999px; padding: 3px 10px;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0; background: #FCFDFF; }
legend { font-size: .81rem; font-weight: 700; color: var(--ink-700); padding: 0 8px; text-transform: uppercase; letter-spacing: .07em; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 540px) { .field-row { grid-template-columns: minmax(0,1fr); } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .87rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-700); cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--saffron); color: var(--saffron-600); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--sh-1);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: .97rem; padding: 12px 20px;
  border-radius: var(--r-sm); border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover:not(:disabled) { background: var(--ink-700); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; display: block; flex: 0 0 17px; }
.btn-primary { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 4px 14px rgba(242,107,15,.3); }
.btn-primary:hover:not(:disabled) { background: var(--saffron-600); border-color: var(--saffron-600); box-shadow: 0 8px 22px rgba(242,107,15,.36); }
.btn-go { background: var(--green); border-color: var(--green); box-shadow: 0 4px 14px rgba(11,122,90,.28); }
.btn-go:hover:not(:disabled) { background: var(--green-600); border-color: var(--green-600); box-shadow: 0 8px 22px rgba(11,122,90,.34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.btn-sm { padding: 7px 13px; font-size: .87rem; border-radius: var(--r-xs); }
.btn-lg { padding: 15px 26px; font-size: 1.03rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-block { width: 100%; }

/* Status & progress */
.status {
  font-size: .93rem; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink-700); border-left: 3px solid var(--line-2);
  animation: rt-fade .25s var(--ease);
}
.status:empty { display: none; }
.status.is-work { background: var(--saffron-50); border-color: var(--saffron); }
.status.is-ok { background: var(--green-50); border-color: var(--green); color: var(--green-600); }
.status.is-error { background: var(--red-50); border-color: var(--red); color: #A5262A; }
.status.is-warn { background: var(--warn-50); border-color: #D19B00; color: var(--warn); }
.progress { height: 9px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress > i {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--saffron), #FFA557, var(--saffron));
  background-size: 200% 100%; animation: rt-shine 1.6s linear infinite;
  transition: width .25s var(--ease);
}
.spin {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(242,107,15,.28);
  border-top-color: var(--saffron); border-radius: 50%; animation: rt-spin .7s linear infinite; vertical-align: -2px;
}

/* Results */
.result { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #FBFDFF; }
.result h3 { margin-top: 0; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .91rem; color: var(--text-2); margin: 0 0 10px; padding: 0; list-style: none; }
.kv b { font-weight: 600; color: var(--ink); }
.preview-box {
  background:
    linear-gradient(45deg, #EDF1F6 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(-45deg, #EDF1F6 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, #EDF1F6 75%) / 18px 18px,
    linear-gradient(-45deg, transparent 75%, #EDF1F6 75%) / 18px 18px,
    #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px;
  display: flex; justify-content: center; align-items: center; min-height: 130px; overflow: auto;
}
.preview-box img, .preview-box canvas { max-width: 100%; height: auto; border-radius: 4px; }

/* File list */
.filelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.filelist li {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: .93rem;
  animation: rt-up .3s var(--ease) both; transition: border-color .2s, box-shadow .2s;
}
.filelist li:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.filelist li.is-drag { opacity: .4; }
.filelist li.is-target { border-color: var(--saffron); border-style: dashed; background: var(--saffron-50); }
.filelist .fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist .fmeta { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.filelist .fnum {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.filelist .fbtns { display: flex; gap: 5px; }
.icon-btn {
  border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r-xs);
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; font-size: .9rem;
  color: var(--ink-700); padding: 0; transition: all .18s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--saffron); color: var(--saffron-600); background: var(--saffron-50); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.thumb-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.thumb {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 8px;
  display: flex; flex-direction: column; gap: 7px; align-items: center; font-size: .8rem; text-align: center;
  box-shadow: var(--sh-1); animation: rt-pop .3s var(--ease) both;
}
.thumb img { border: 1px solid var(--line); border-radius: 4px; }

/* Notes */
.note, .warn-note {
  border-radius: var(--r-sm); padding: 13px 15px; font-size: .94rem; margin: 0 0 1.1em;
  border-left: 3px solid var(--green); background: var(--green-50); color: var(--green-600);
}
.warn-note { border-left-color: #D19B00; background: var(--warn-50); color: var(--warn); }
.note p:last-child, .warn-note p:last-child { margin-bottom: 0; }
.clean-list { list-style: none; margin: 0 0 1em; padding: 0; }
.clean-list li { margin-bottom: 7px; font-size: .95rem; }

/* ---------- 11. Prose ---------- */
.prose { max-width: 70ch; }
.prose > * { text-align: left; }
.prose h2 {
  margin-top: 2em; padding-bottom: .3em; position: relative;
}
.prose h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px;
  background: var(--saffron); border-radius: 2px;
}
.prose h3 { margin-top: 1.7em; color: var(--ink-700); }
.prose p { color: var(--text-2); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; color: var(--text-2); }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--saffron); font-weight: 700; }
.prose blockquote {
  margin: 0 0 1.2em; padding: 4px 0 4px 16px; border-left: 3px solid var(--saffron); color: var(--text-2);
}
.tbl-wrap {
  overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; background: #fff; min-width: 440px; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
table.data thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line-2); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FAFCFF; }
table.data caption { caption-side: bottom; font-size: .84rem; color: var(--muted); padding: 10px 14px; text-align: left; }

/* FAQ */
.faq-list { margin: 0 0 1em; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
details.faq[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
details.faq > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-family: var(--font-head);
  font-size: 1rem; list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--ink);
  transition: background .18s;
}
details.faq > summary:hover { background: #FAFCFF; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  background: var(--saffron-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26B0F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .28s var(--ease);
}
details.faq[open] > summary::before { transform: rotate(135deg); }
details.faq > div { padding: 0 18px 16px 50px; font-size: .96rem; color: var(--text-2); animation: rt-fade .3s var(--ease); }
details.faq > div p:last-child { margin-bottom: 0; }

/* ---------- 12. Ads ---------- */
.ad-slot { margin: 34px 0; padding: 0; min-height: 0; text-align: center; }
.ad-slot .ad-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* ---------- 13. Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 780px) { .post-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s;
  position: relative; overflow: hidden;
}
.post-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--green)); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.post-card:hover::before { transform: scaleX(1); }
.post-card h3 { margin: 0 0 .35em; font-size: 1.1rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--saffron-600); }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: .6em; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.post-card p { margin: 0; font-size: .94rem; color: var(--text-2); }
.article-head { margin-bottom: 1.6em; }
.article-head h1 { margin-bottom: .3em; }
.article-head .meta { font-size: .87rem; color: var(--muted); }
.toc {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--r); padding: 16px 20px; margin: 0 0 1.8em; font-size: .95rem; box-shadow: var(--sh-1);
}
.toc p { font-weight: 700; margin: 0 0 .5em; font-family: var(--font-head); color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.25em; color: var(--text-2); }
.toc li { margin-bottom: .3em; }

/* ---------- 14. Footer ---------- */
.site-foot {
  background: var(--ink); color: #B9C7DA; margin-top: 50px; padding: 44px 0 26px; font-size: .94rem;
  position: relative;
}
.site-foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--red) 50%, var(--green));
}
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-foot .brand { margin-bottom: 12px; }
.site-foot h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff;
  margin-bottom: .9em; font-family: var(--font-body); font-weight: 700;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: #B9C7DA; text-decoration: none; transition: color .18s, padding-left .18s; }
.site-foot a:hover { color: #fff; padding-left: 3px; }
.foot-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8FA2BC; }
.foot-note p { margin: 0 0 .6em; }
.foot-note strong { color: #D9E3F0; }

/* ---------- 15. Tool-specific ---------- */
.canvas-stage { position: relative; display: inline-block; max-width: 100%; }
.canvas-stage canvas { display: block; touch-action: none; cursor: crosshair; max-width: 100%; height: auto; border-radius: 6px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.swatch {
  width: 38px; height: 38px; border-radius: var(--r-xs); border: 2px solid var(--line-2);
  cursor: pointer; padding: 0; transition: transform .18s var(--ease), border-color .18s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,42,74,.15); }

/* Typing test */
.typing-box {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 18px;
  font-size: 1.14rem; line-height: 2.05; letter-spacing: .01em; max-height: 260px; overflow-y: auto;
  font-family: var(--font-body); color: var(--text-2);
}
.typing-box .ok { color: var(--green); }
.typing-box .bad { background: #FBD9D9; color: #A5262A; border-radius: 3px; }
.typing-box .cur { background: var(--ink); color: #fff; border-radius: 3px; }
.typing-box .todo { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px;
  text-align: center; box-shadow: var(--sh-1);
}
.metric .v { font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* A4 sheets (biodata / resume) */
.sheet-scroll {
  background: #DFE7F0; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; overflow: auto;
}
.sheet-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.a4 {
  width: 794px; height: 1123px; background: #fff; box-shadow: var(--sh-3);
  position: relative; overflow: hidden; color: #16181d;
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  flex: 0 0 auto;
}
.sheet-fit { transform-origin: top center; }
.page-tag {
  font-size: .78rem; color: var(--muted); text-align: center; font-weight: 600;
}

/* Age calculator */
.big-answer { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 700; color: var(--ink); line-height: 1.3; }
.big-answer em { font-style: normal; color: var(--saffron-600); }

/* misc page bits */
.contact-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--saffron); border-radius: var(--r); padding: 20px; margin-bottom: 20px; box-shadow: var(--sh-1); }
.legal h2 { margin-top: 2.2em; }
.legal .updated { font-size: .88rem; color: var(--muted); }
.big-404 { font-family: var(--font-head); font-size: clamp(4rem, 3rem + 8vw, 7rem); color: var(--saffron); line-height: .9; margin: 0 0 .15em; opacity: .9; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #17395F 55%, #1D4A78 100%);
  border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--sh-2);
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(242,107,15,.22);
}
.cta-band h2 { color: #fff; margin-bottom: .4em; position: relative; }
.cta-band p { color: #C6D4E6; max-width: 58ch; position: relative; }
.cta-band .btn-row { position: relative; }

/* Print */
@media print {
  .site-head, .site-foot, .ad-slot, .crumbs, .no-print, .panel, .hero, .tool-hero { display: none !important; }
  body { background: #fff; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* wider preview column for paint-style tools */
@media (min-width: 980px) {
  .two-col-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

/* ---------- 16. Template picker ---------- */
.tpl-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.tpl-opt {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 9px 8px;
  cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 8px; align-items: center;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.tpl-opt:hover { border-color: var(--saffron); transform: translateY(-2px); }
.tpl-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,42,74,.12); }
.tpl-name { font-size: .77rem; font-weight: 600; color: var(--ink-700); text-align: center; line-height: 1.25; }
.tpl-vis {
  width: 54px; height: 76px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  position: relative; overflow: hidden; display: block; flex: 0 0 auto;
}
.tpl-vis i { position: absolute; display: block; }
/* classic — solid section bars */
.tv-classic i { left: 7px; right: 7px; height: 6px; background: #8A1538; border-radius: 1px; }
.tv-classic i:nth-child(1) { top: 10px; }
.tv-classic i:nth-child(2) { top: 32px; }
.tv-classic i:nth-child(3) { top: 54px; }
.tv-classic::after { content: ""; position: absolute; left: 7px; right: 7px; top: 22px; height: 1px; background: #D9D9D9; box-shadow: 0 8px 0 #D9D9D9, 0 30px 0 #D9D9D9; }
/* royal — double frame */
.tv-royal { background: #FFFDF7; }
.tv-royal i:nth-child(1) { inset: 4px; border: 2px double #7A5A1E; }
.tv-royal i:nth-child(2) { left: 12px; right: 12px; top: 34px; height: 2px; background: #7A5A1E; }
/* minimal — hairlines */
.tv-minimal i { left: 8px; right: 8px; height: 1px; background: #9AA7B6; }
.tv-minimal i:nth-child(1) { top: 16px; }
.tv-minimal i:nth-child(2) { top: 38px; }
.tv-minimal i:nth-child(3) { top: 58px; }
.tv-minimal::after { content: ""; position: absolute; left: 17px; top: 6px; width: 20px; height: 3px; background: #1F3B57; }
/* panel — rounded blocks */
.tv-panel i { left: 7px; right: 7px; height: 9px; background: #E6F0EC; border-radius: 3px; }
.tv-panel i:nth-child(1) { top: 22px; }
.tv-panel i:nth-child(2) { top: 36px; }
.tv-panel i:nth-child(3) { top: 50px; }
.tv-panel::after { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 11px; background: #0B7A5A; border-radius: 4px; }
/* traditional — corner motifs */
.tv-frame { background: #FFFBF3; }
.tv-frame i { inset: 6px; border: 1.5px solid #A33A2A; }
.tv-frame::before, .tv-frame::after {
  content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid #A33A2A;
}
.tv-frame::before { top: 3px; left: 3px; border-right: 0; border-bottom: 0; }
.tv-frame::after { bottom: 3px; right: 3px; border-left: 0; border-top: 0; }
/* sidebar + timeline template thumbnails */
.tv-side i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 18px; background: #0B7A5A; }
.tv-side i:nth-child(2) { left: 24px; right: 7px; top: 10px; height: 4px; background: #0B7A5A; }
.tv-side i:nth-child(3) { left: 24px; right: 7px; top: 24px; height: 1px; background: #C9D3DE; box-shadow: 0 8px 0 #C9D3DE, 0 16px 0 #C9D3DE, 0 24px 0 #C9D3DE; }
.tv-time i:nth-child(1) { left: 10px; top: 8px; bottom: 8px; width: 1.5px; background: #E0C3A8; }
.tv-time i:nth-child(2) { left: 7px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #B4530A; box-shadow: 0 22px 0 #B4530A; }
.tv-time i:nth-child(3) { left: 22px; right: 7px; top: 16px; height: 1px; background: #C9D3DE; box-shadow: 0 6px 0 #C9D3DE, 0 22px 0 #C9D3DE, 0 28px 0 #C9D3DE; }
