/* PhotoSizeKaro — light, simple, big targets. */
:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #121826;
  --muted: #5d6779;
  --faint: #8a93a5;
  --line: #e3e7ef;
  --brand: #2b59ff;
  --brand-dark: #1d44d6;
  --brand-soft: #eaf0ff;
  --photo: #2b59ff;
  --sign: #7a3cff;
  --thumb: #e0457b;
  --decl: #0e9f6e;
  --compress: #ef7d00;
  --custom: #475569;
  --ok: #0f8a4a;
  --ok-bg: #e6f7ee;
  --warn: #9a5800;
  --warn-bg: #fff3dc;
  --shadow-sm: 0 1px 2px rgba(18, 24, 38, .06);
  --shadow: 0 6px 24px rgba(18, 24, 38, .08);
  --shadow-lg: 0 14px 40px rgba(43, 89, 255, .28);
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -.4px; flex: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 17px; }
.logo em { font-style: normal; color: var(--brand); }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 640px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; gap: 4px; }
  .nav { margin-left: -8px; width: calc(100% + 16px); padding-bottom: 2px; }
  .nav a { font-size: 14px; padding: 7px 10px; }
}

/* Hero / start screen */
.hero { text-align: center; padding-top: 48px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 12px; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); margin: 0 auto; max-width: 680px; }
.crumbs { font-size: 14px; color: var(--faint); margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.start { background: var(--surface); border-bottom: 1px solid var(--line); }
.start .hero { padding-bottom: 44px; }

.doc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 900px; }
.doc-card {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  min-width: 190px; flex: 0 1 auto; padding: 12px 16px 12px 12px; border-radius: 12px;
  background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.doc-card:hover { border-color: #c8d1e3; box-shadow: var(--shadow-sm); }
.doc-card:active { transform: scale(.98); }
.doc-card[aria-pressed="true"] { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.doc-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); flex: none; }
.doc-card b { display: block; font-size: 15px; line-height: 1.25; }
.doc-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.k-photo { --c: var(--photo); } .k-sign { --c: var(--sign); } .k-thumb { --c: var(--thumb); }
.k-decl { --c: var(--decl); } .k-custom { --c: var(--custom); } .k-compress { --c: var(--compress); }

.big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 30px; padding: 20px 44px; min-width: min(340px, 100%);
  font-family: inherit; font-weight: 700; font-size: 21px; line-height: 1; color: #fff; background: var(--brand);
  border: 0; border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.big-btn:hover { background: var(--brand-dark); box-shadow: 0 18px 44px rgba(43,89,255,.34); }
.big-btn:active { transform: translateY(1px); }
.big-btn svg.i { font-size: 26px; }
.drop-hint { color: var(--faint); font-size: 15px; margin: 14px 0 0; }
.trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 7px 14px; border-radius: 99px; }

/* Full-page drop overlay */
.drop-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(43, 89, 255, .1); border: 4px dashed var(--brand); display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .15s; }
.drop-overlay div { background: var(--brand); color: #fff; font-weight: 700; font-size: 22px; padding: 18px 28px; border-radius: 14px; box-shadow: var(--shadow-lg); }
body.dragging .drop-overlay { opacity: 1; }

/* Workspace */
.workspace { padding-top: 20px; padding-bottom: 40px; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .ws-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.ws-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ws-bar .fname { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-bar .fname small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.stage {
  min-height: 420px; display: grid; place-items: center; padding: 28px; border-radius: 0 0 var(--r) var(--r);
  background: repeating-conic-gradient(#eef1f6 0% 25%, #f8f9fc 0% 50%) 50% / 22px 22px;
}
@media (max-width: 860px) { .stage { min-height: 280px; padding: 18px; } }
.stage img { display: block; max-height: 60vh; object-fit: contain; background: #fff; box-shadow: 0 10px 30px rgba(18,24,38,.18); border-radius: 2px; }
.busy { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.side { padding: 18px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
@media (max-width: 860px) { .side { position: static; } }
.side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 8px; }
.side .doc-cards { flex-direction: column; margin: 0; gap: 8px; }
.side .doc-card { min-width: 0; width: 100%; padding: 9px 12px 9px 9px; }
.side .doc-card .ico { width: 32px; height: 32px; font-size: 17px; }

.result-card { border-radius: 12px; padding: 14px; background: var(--bg); }
.result-card .nums { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.result-card .nums b { display: block; color: var(--text); font-size: 20px; letter-spacing: -.3px; }
.status { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.warn { background: var(--warn-bg); color: var(--warn); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 16px 18px; font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1; color: #fff; background: var(--brand);
  border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 8px 22px rgba(43,89,255,.25);
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn svg.i { font-size: 22px; }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
}
.ghost:hover { border-color: #c8d1e3; background: var(--bg); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px; }

details.adjust { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.adjust summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.adjust summary::-webkit-details-marker { display: none; }
details.adjust summary::after { content: "+"; font-size: 20px; color: var(--faint); }
details.adjust[open] summary::after { content: "–"; }
details.adjust .body { padding-bottom: 12px; }
.ctrl { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.ctrl input[type="range"] { width: 100%; accent-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.seg { display: flex; gap: 6px; margin: 4px 0 8px; }
.seg label { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row4 label { font-size: 13px; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid #d3d9e5; border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 12px; border-radius: 99px; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; }
.chip:hover { border-color: #c8d1e3; }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Sticky mobile download bar */
.mbar { display: none; }
@media (max-width: 860px) {
  body.has-mbar .mbar { display: flex; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(18,24,38,.08); }
  .mbar .info { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
  .mbar .info b { display: block; color: var(--text); font-size: 16px; }
  .mbar .btn { width: auto; padding: 14px 18px; font-size: 16px; }
  body.has-mbar { padding-bottom: 84px; }
}

/* Home hub */
.search-box { position: relative; max-width: 620px; margin: 28px auto 0; }
.search-box svg.i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 20px; }
.search-box input { padding: 17px 18px 17px 50px; font-size: 17px; border-radius: 14px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.search-box input:focus { border-color: var(--brand); outline: none; }
.section { padding-top: 36px; padding-bottom: 8px; }
.section > h2 { font-size: 24px; letter-spacing: -.4px; margin: 0 0 6px; }
.section > p.sub { color: var(--muted); margin: 0 0 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tool-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.tool-card b { font-size: 18px; }
.tool-card span { color: var(--muted); font-size: 14.5px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.exam-card {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.exam-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.exam-card .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.3px; color: #fff; background: var(--c, var(--brand)); flex: none; }
.exam-card b { display: block; font-size: 16px; line-height: 1.2; }
.exam-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.g-banking { --c: #2b59ff; } .g-ssc { --c: #ef7d00; } .g-entrance { --c: #0e9f6e; } .g-upsc { --c: #7a3cff; }
.g-teaching { --c: #e0457b; } .g-state { --c: #0891b2; } .g-mba { --c: #b45309; } .g-abroad { --c: #475569; }
@media (max-width: 560px) {
  .tool-grid, .exam-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 14px; gap: 6px; }
  .tool-card .ico { width: 40px; height: 40px; font-size: 22px; }
  .tool-card b { font-size: 15.5px; line-height: 1.25; }
  .tool-card span { font-size: 13px; line-height: 1.35; }
  .exam-card { padding: 10px; gap: 9px; }
  .exam-card .badge { width: 36px; height: 36px; font-size: 12px; border-radius: 10px; }
  .exam-card b { font-size: 14.5px; }
  .exam-card small { display: none; }
  .hero { padding-top: 32px; padding-bottom: 26px; }
  .big-btn { width: 100%; padding: 19px 20px; }
  .doc-cards { gap: 8px; }
  .start .doc-card { min-width: 0; flex: 1 1 calc(50% - 8px); padding: 10px; gap: 8px; }
  .start .doc-card .ico { width: 32px; height: 32px; font-size: 17px; }
  .start .doc-card b { font-size: 14px; }
  .start .doc-card small { font-size: 11.5px; }
}
.empty-search { text-align: center; color: var(--muted); padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .steps3 { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 8px; }
.step b { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14.5px; }

/* Article content */
.content { padding-top: 8px; padding-bottom: 30px; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-top: 26px; }
@media (max-width: 640px) { .article { padding: 18px; } }
.article h2 { font-size: 22px; letter-spacing: -.3px; margin: 30px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article li { margin: 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #f7f9fc; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td:first-child { font-weight: 600; }
blockquote { margin: 10px 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; font-style: italic; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.exam-links { columns: 2; padding-left: 18px; }
@media (max-width: 560px) { .exam-links { columns: 1; } }
.page-plain { max-width: 780px; }
.page-plain .hero { text-align: left; padding-bottom: 10px; }

.ad-slot { display: none; } /* turn on after AdSense approval */

footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }

/* ---------- New tools ---------- */
.tool-group { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 22px 0 10px; }
.tool-grid.mini { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tool-grid.mini .tool-card { padding: 14px; gap: 6px; }
.tool-grid.mini .tool-card .ico { width: 38px; height: 38px; font-size: 20px; }
.tool-grid.mini .tool-card b { font-size: 15px; }
.tool-grid.mini .tool-card span:last-child { font-size: 13px; }
.field-s { display: block; }
.field-s > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.ghost.wide { width: 100%; justify-content: center; padding: 12px; }

.stage-list { place-items: stretch; align-content: start; background: #f7f9fc; padding: 16px; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fitem { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.fnum { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.fitem img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.fpdf { width: 52px; height: 52px; border-radius: 8px; background: #fdeaf0; color: var(--thumb); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.finfo { flex: 1; min-width: 0; }
.finfo b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finfo small { color: var(--muted); font-size: 12.5px; }
.factions { display: flex; gap: 4px; flex: none; }
.ibtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; color: var(--text); }
.ibtn:hover:not(:disabled) { border-color: #c8d1e3; background: var(--bg); }
.ibtn:disabled { opacity: .35; cursor: default; }
.ibtn.del:hover { color: #c0262d; border-color: #f1c1c4; background: #fff5f5; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.chk .ci { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.chk.ok .ci { background: var(--ok); } .chk.warn .ci { background: #d98a00; } .chk.bad .ci { background: #d0343c; }
.chk b { display: block; font-size: 14.5px; }
.chk small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
a.btn { text-decoration: none; }

.slots { display: grid; gap: 8px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.slot b { display: block; font-size: 14.5px; }
.slot small { color: var(--muted); font-size: 12.5px; word-break: break-all; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-in, .calc-out { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.calc-out h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0; }
.big-out { font-size: 18px; color: var(--muted); }
.big-out b { font-size: 34px; color: var(--text); letter-spacing: -.5px; margin-right: 2px; }
.big-out.small b { font-size: 26px; }
.big-out small { display: block; font-size: 14px; color: var(--faint); margin-top: 4px; }
.range-out { margin: 0; font-size: 15px; }
input[type="date"] { width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid #d3d9e5; border-radius: 10px; }

/* Custom size units */
.custom-box .row4 { grid-template-columns: 1fr 1fr; }
.custom-box select { padding: 9px 10px; }

/* Exam page checklist */
ul.todo { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
ul.todo li { position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
ul.todo li::before { content: "✓"; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* Document scanner */
.scan-stage { padding: 18px; touch-action: none; }
.editor { position: relative; margin: 0 auto; max-width: 100%; user-select: none; -webkit-user-select: none; }
.editor canvas { display: block; max-width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(18,24,38,.18); }
.handles { position: absolute; inset: 0; }
.handle { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(43,89,255,.18); border: 3px solid var(--brand); box-shadow: 0 0 0 3px #fff; cursor: grab; touch-action: none; }
.handle:active { cursor: grabbing; background: rgba(43,89,255,.35); }
@media (pointer: coarse) { .handle { width: 36px; height: 36px; margin: -18px 0 0 -18px; } }
.res-thumb { background: repeating-conic-gradient(#eef1f6 0% 25%, #f8f9fc 0% 50%) 50% / 18px 18px; border-radius: 12px; padding: 10px; display: grid; place-items: center; min-height: 140px; }
.res-thumb img { max-width: 100%; max-height: 240px; box-shadow: 0 6px 18px rgba(18,24,38,.16); background: #fff; }
.res-thumb img:not([src]) { display: none; }

/* Calendar */
.cal { display: grid; gap: 10px; }
.cal-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cal-item b { display: block; font-size: 16px; } .cal-item small { color: var(--muted); }
.cal-tag { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.cal-tag.ok { background: var(--ok-bg); color: var(--ok); } .cal-tag.hot { background: #ffe8e8; color: #c0262d; }
.cal-tag.soon { background: var(--brand-soft); color: var(--brand); } .cal-tag.old { background: var(--bg); color: var(--faint); }
.cal-links { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.cal-links .ghost { text-decoration: none; }
@media (max-width: 560px) { th, td { padding: 8px 8px; font-size: 13px; } th { font-size: 11.5px; } }

/* Crop box */
.cropbox { position: absolute; border: 2px solid #fff; outline: 2px solid var(--brand); cursor: move; touch-action: none; box-sizing: border-box; }
.cropbox span { position: absolute; width: 22px; height: 22px; background: #fff; border: 3px solid var(--brand); border-radius: 50%; touch-action: none; }
.cropbox span[data-c="tl"] { left: -12px; top: -12px; cursor: nwse-resize; } .cropbox span[data-c="tr"] { right: -12px; top: -12px; cursor: nesw-resize; }
.cropbox span[data-c="bl"] { left: -12px; bottom: -12px; cursor: nesw-resize; } .cropbox span[data-c="br"] { right: -12px; bottom: -12px; cursor: nwse-resize; }
@media (pointer: coarse) { .cropbox span { width: 30px; height: 30px; } }

/* PDF page grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pcard.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pthumb { position: relative; display: grid; place-items: center; height: 150px; background: #f3f5f9; border: 0; border-radius: 8px; cursor: pointer; overflow: hidden; padding: 6px; }
.pthumb img { max-width: 100%; max-height: 138px; box-shadow: 0 2px 8px rgba(18,24,38,.15); transition: transform .2s; }
.pnum { position: absolute; left: 6px; bottom: 6px; background: rgba(18,24,38,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.pcheck { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: transparent; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pcard.sel .pcheck { background: var(--brand); border-color: var(--brand); color: #fff; }
.pacts { display: flex; justify-content: space-between; gap: 2px; }
.pacts .ibtn { width: 28px; height: 28px; font-size: 13px; }

/* Unconfirmed sizes */
.warn-box { background: var(--warn-bg); border: 1px solid #f3d29b; color: #6b4300; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.warn-box b { color: var(--warn); }
.tag-unconf { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--warn); background: var(--warn-bg); padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.g-docs { --c: #0f766e; }
.mini-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0; }

/* =====================================================================
   Redesign: tool families with their own colours, category tabs, cards
   ===================================================================== */
:root {
  --c-photo: #2b59ff; --c-photo-dark: #1d44d6; --c-photo-soft: #eaf0ff;
  --c-pdf: #e5322d;   --c-pdf-dark: #c4221d;   --c-pdf-soft: #fdecec;
  --c-print: #0e9f6e; --c-print-dark: #0b7f58; --c-print-soft: #e4f6ef;
  --c-calc: #7a3cff;  --c-calc-dark: #6229e0;  --c-calc-soft: #f1ebff;
}
.cat-photo { --c: var(--c-photo); --cs: var(--c-photo-soft); }
.cat-pdf   { --c: var(--c-pdf);   --cs: var(--c-pdf-soft); }
.cat-print { --c: var(--c-print); --cs: var(--c-print-soft); }
.cat-calc  { --c: var(--c-calc);  --cs: var(--c-calc-soft); }
/* A tool page takes its family colour for buttons and highlights. */
.page-cat-photo { --brand: var(--c-photo); --brand-dark: var(--c-photo-dark); --brand-soft: var(--c-photo-soft); }
.page-cat-pdf   { --brand: var(--c-pdf);   --brand-dark: var(--c-pdf-dark);   --brand-soft: var(--c-pdf-soft); --shadow-lg: 0 14px 40px rgba(229,50,45,.28); }
.page-cat-print { --brand: var(--c-print); --brand-dark: var(--c-print-dark); --brand-soft: var(--c-print-soft); --shadow-lg: 0 14px 40px rgba(14,159,110,.28); }
.page-cat-calc  { --brand: var(--c-calc);  --brand-dark: var(--c-calc-dark);  --brand-soft: var(--c-calc-soft); --shadow-lg: 0 14px 40px rgba(122,60,255,.28); }
.page-cat-pdf .btn { box-shadow: 0 8px 22px rgba(229,50,45,.25); }
.page-cat-print .btn { box-shadow: 0 8px 22px rgba(14,159,110,.25); }
.page-cat-calc .btn { box-shadow: 0 8px 22px rgba(122,60,255,.25); }
.logo-mark { background: #2b59ff !important; }
.logo em { color: #2b59ff; }

/* Home hero */
.home-hero { background: radial-gradient(1200px 400px at 50% -120px, #e8eeff 0%, rgba(232,238,255,0) 70%), var(--surface); border-bottom: 1px solid var(--line); }
.home-hero .hero { padding-top: 56px; padding-bottom: 40px; }
.home-hero h1 { font-size: clamp(30px, 5.2vw, 48px); letter-spacing: -1.2px; }
.home-hero h1 + .lead { max-width: 720px; }

/* Category tabs */
.tools-sec { padding-top: 28px; }
.cat-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 22px; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; transition: background .15s, border-color .15s, color .15s;
}
.cat-tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat-tab span { font-size: 12px; font-weight: 700; color: var(--faint); background: var(--bg); padding: 3px 7px; border-radius: 99px; }
.cat-tab:hover { border-color: #c8d1e3; }
.cat-tab.on { background: #121826; border-color: #121826; color: #fff; }
.cat-tab.on span { background: rgba(255,255,255,.16); color: #fff; }
.cat-tab.on i { box-shadow: 0 0 0 2px #121826, 0 0 0 4px rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .cat-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: none; padding: 9px 14px; font-size: 14px; }
}

/* Tool cards */
.tool-grid.big { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tool-card {
  position: relative; gap: 8px; padding: 22px 22px 20px; border-radius: 16px; min-height: 170px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(18,24,38,.05);
}
.tool-card .ico { width: 46px; height: 46px; border-radius: 12px; font-size: 24px; margin-bottom: 6px; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent); }
.tool-card b { font-size: 17px; line-height: 1.25; letter-spacing: -.2px; }
.tool-card span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tool-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 14px 32px color-mix(in srgb, var(--c) 16%, transparent); }
.tool-card::after { content: "→"; position: absolute; right: 18px; top: 22px; color: var(--c); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.tool-card:hover::after { opacity: 1; transform: none; }
.tool-card[hidden] { display: none !important; }
.tool-grid.mini .tool-card { min-height: 0; padding: 16px; }
.tool-grid.mini .tool-card .ico { width: 38px; height: 38px; font-size: 20px; margin-bottom: 2px; }
@media (max-width: 560px) {
  .tool-grid.big { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { min-height: 0; padding: 14px; gap: 5px; border-radius: 14px; }
  .tool-card .ico { width: 40px; height: 40px; font-size: 21px; margin-bottom: 4px; }
  .tool-card b { font-size: 15px; }
  .tool-card span:last-child { font-size: 12.5px; }
  .tool-card::after { display: none; }
}

/* Tool page header icon */
.hero-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 32px; color: #fff; background: var(--c); margin: 2px 0 16px; box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); }
.start .crumbs a { color: var(--brand); font-weight: 600; }
.start { background: radial-gradient(1000px 360px at 50% -140px, var(--brand-soft) 0%, rgba(255,255,255,0) 70%), var(--surface); }

/* Exams section on home */
#exams > h2 { text-align: center; } #exams > .sub { text-align: center; } #exams .filters { justify-content: center; }
.section > h2 { font-size: 26px; }

/* =====================  Exams page & exam cards  ===================== */
.exam-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.exam-card { position: relative; align-items: center; gap: 14px; min-height: 76px; padding: 14px 40px 14px 14px; border-radius: 14px; box-shadow: 0 1px 2px rgba(18,24,38,.05); }
.exam-card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 14%, transparent); }
.exam-card .badge { width: 48px; height: 48px; font-size: 15px; border-radius: 12px; box-shadow: 0 5px 12px color-mix(in srgb, var(--c) 28%, transparent); }
.exam-card .badge.long { font-size: 12px; letter-spacing: -.4px; }
.ec-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ec-body b { font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body small { display: block; margin: 0 !important; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body .tag-unconf { align-self: flex-start; margin: 3px 0 0; }
.ec-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--faint); transition: color .15s, transform .15s; }
.exam-card:hover .ec-go { color: var(--c); transform: translate(3px, -50%); }
.exam-card[hidden] { display: none !important; }
@media (max-width: 560px) {
  .exam-grid { grid-template-columns: 1fr; gap: 8px; }
  .exam-card { min-height: 64px; padding: 10px 36px 10px 10px; gap: 12px; }
  .exam-card .badge { width: 42px; height: 42px; font-size: 13px; }
  .exam-card .badge.long { font-size: 11px; }
  .exam-card small { display: block !important; }
  .ec-body b { font-size: 15px; }
}
.exam-group { margin-bottom: 30px; }
.eg-title { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.3px; margin: 0 0 12px; }
.eg-title i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.eg-title span { font-size: 13px; font-weight: 700; color: var(--faint); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.cat-tab[class*=" g-"] i { background: var(--c); }
.g-banking { --c: #2b59ff; } .g-ssc { --c: #ef7d00; } .g-entrance { --c: #0e9f6e; } .g-upsc { --c: #7a3cff; }
.g-teaching { --c: #e0457b; } .g-state { --c: #0891b2; } .g-mba { --c: #b45309; } .g-abroad { --c: #475569; } .g-docs { --c: #0f766e; }
.not-listed { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
.not-listed h2 { margin-top: 0 !important; }
.nl-actions { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
@media (max-width: 720px) { .not-listed { grid-template-columns: 1fr; } }

/* Exam page header badge */
.badge-ico { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.badge-ico.long { font-size: 16px; }

/* Document picker on exam / resizer start screens: even grid instead of ragged rows */
.start .doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 240px)); justify-content: center; }
.start .doc-card { min-width: 0; width: 100%; }
@media (max-width: 560px) { .start .doc-cards { grid-template-columns: 1fr 1fr; } }

/* Plain pages (About, Privacy) */
.page-plain { max-width: 820px; padding-top: 28px; }
.page-plain .article { margin-top: 0; }
.home-hero .hero-ico { margin-bottom: 14px; }

/* Footer in columns */
footer { padding: 40px 0 0; }
.foot-grid { display: grid !important; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; align-items: start !important; }
.foot-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 280px; }
footer nav { display: flex; flex-direction: column; gap: 9px; }
footer h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
footer nav a { font-size: 14px; }
.foot-bottom { display: block !important; border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 16px 24px; font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Calculator result panels: friendlier empty state */
.calc-out { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 160px); }
/* Document picker: equal-width cards, every row centred (incl. the last one). */
.start .doc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.start .doc-card { flex: 0 0 236px; width: auto; }
@media (max-width: 560px) { .start .doc-card { flex: 0 0 calc(50% - 5px); } }
