:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --danger: #e11d48;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #0b1220;
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.4 5.4v13.2'/%3E%3Cpath d='M17.2 5.4 9.9 12l7.3 6.6'/%3E%3C/svg%3E"),
    linear-gradient(140deg, #6366f1 0%, #4f46e5 48%, #0ea5e9 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 23px 23px, 100% 100%;
  display: grid; place-items: center;
  font-size: 0; letter-spacing: 0;
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .16s ease, box-shadow .16s ease;
}
.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 1), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.brand-name {
  display: block; font-weight: 800; font-size: 17px; line-height: 1.02;
  letter-spacing: -.02em; color: #fff;
}
.brand-accent { color: #7dd3fc; }
.brand-sub {
  display: block; margin-top: 5px;
  font-size: 9.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .17em; color: #8ea0b9;
}

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: #cbd5e1; font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { background: rgba(148, 163, 184, .14); color: #fff; text-decoration: none; }
.nav a.active { background: #fff; color: #0b1220; font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(99, 102, 241, .45), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(14, 165, 233, .35), transparent 55%),
    #0b1220;
  color: #fff;
  padding: 54px 0 58px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #a5b4fc; background: rgba(99, 102, 241, .16);
  border: 1px solid rgba(129, 140, 248, .35);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; max-width: 22ch; }
.hero h1 span { color: #818cf8; }
.hero p.lead { color: #cbd5e1; font-size: clamp(14.5px, 1.6vw, 17px); max-width: 62ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(79, 70, 229, .8); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1e293b; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { background: #047857; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover:not(:disabled) { background: #f8fafc; }
.btn-ghost { background: transparent; color: #e2e8f0; border-color: rgba(148, 163, 184, .4); }
.btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 184, .16); color: #fff; }
.btn-danger { background: #fff1f2; color: var(--danger); border-color: #fecdd3; }
.btn-sm { font-size: 12.5px; padding: 7px 12px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- cards / sections ---------- */
.section { padding: 42px 0; }
.section-head { max-width: 62ch; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card-tight { padding: 18px; }
.card h3 { font-size: 16.5px; font-weight: 700; }
.card .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- tool tiles ---------- */
.tile {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: inherit;
  box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.tile:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: #c7d2fe; box-shadow: 0 18px 36px -22px rgba(49, 46, 129, .55);
}
.tile-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: var(--brand-soft); margin-bottom: 12px;
}
.tile h3 { font-size: 16px; margin-bottom: 6px; }
.tile p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.tile .tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ok); background: var(--ok-soft);
  padding: 3px 8px; border-radius: 999px;
}

/* ---------- forms ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px;
}
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="search"], select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(129, 140, 248, .22);
}
textarea { resize: vertical; min-height: 90px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }
.row.tight > * { flex: 0 1 auto; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }

.drop {
  display: block; border: 2px dashed #cbd5e1; border-radius: var(--radius);
  background: #f8fafc; padding: 26px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.dragging { border-color: var(--brand); background: var(--brand-soft); }
.drop strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.drop span { font-size: 12.5px; color: var(--muted); }

/* ---------- pills / segmented ---------- */
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.segmented button:hover { background: #f8fafc; }
.segmented button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: #0b1220; border: 1px solid rgba(148, 163, 184, .22); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; color: #fff; }
.stat small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; }
.stat.amber b { color: #fbbf24; }
.stat.rose b { color: #fb7185; }
.stat.emerald b { color: #34d399; }

/* ---------- thumbs ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.thumb {
  position: relative; background: #f1f5f9; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.thumb img { display: block; width: 100%; height: 150px; object-fit: contain; }
.thumb-bar {
  display: flex; gap: 4px; padding: 6px; background: #fff; border-top: 1px solid var(--line);
  align-items: center; justify-content: space-between;
}
.thumb-bar .idx { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 7px;
  width: 26px; height: 24px; display: grid; place-items: center;
  font-size: 12px; cursor: pointer; color: var(--ink-soft); padding: 0;
}
.icon-btn:hover { background: #f1f5f9; color: var(--ink); }
.icon-btn.danger { color: var(--danger); }

/* ---------- text ---------- */
.note {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 13px; color: #3730a3;
}
.note.ok { border-color: var(--ok); background: var(--ok-soft); color: #065f46; }
.note.warn { border-color: var(--warn); background: #fffbeb; color: #92400e; }

/* ---------- toast ---------- */
#toast-host {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(92vw, 460px);
}
.toast {
  background: #0b1220; color: #f8fafc; font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(2, 6, 23, .9);
  animation: toast-in .18s ease; max-width: 100%;
}
.toast.ok { background: #065f46; }
.toast.err { background: #9f1239; }
.toast.warn { background: #92400e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 30px; padding: 34px 0; background: #0b1220; color: #94a3b8;
  font-size: 13px;
}
.site-footer a { color: #cbd5e1; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.footer-grid div { max-width: 340px; }
.made-by {
  margin-top: 26px; padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  text-align: center; font-size: 12px; letter-spacing: .02em; color: #7c8ba1;
}
.made-by strong { color: #e2e8f0; font-weight: 600; }


/* ---------- misc ---------- */
.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step-list li { position: relative; padding-left: 34px; font-size: 13.5px; }
.step-list li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 16px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.faq p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- ads ---------- */
.ad-slot { margin: 22px 0; min-height: 0; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- floating share ---------- */
.float-share {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #16a34a; color: #fff; border: 0; border-radius: 999px;
  padding: 11px 16px; font-family: inherit; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 26px -12px rgba(22, 163, 74, .9); cursor: pointer;
}
.float-share:hover { background: #15803d; }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
  display: inline-block; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   v3 additions — dashboard, image studio, calculators, resume builder
   ===================================================================== */

/* header nav scrolls on small screens instead of exploding the header */
.nav { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 780px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; margin-left: auto; }
  .nav a { white-space: nowrap; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { margin-top: 4px; font-size: 9px; letter-spacing: .13em; }
}

/* ---------- home dashboard ---------- */
.dash {
  position: relative; overflow: hidden; color: #fff; background: #070c18;
  padding: 48px 0 56px;
}
.dash::before, .dash::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  pointer-events: none;
}
.dash::before {
  width: 620px; height: 620px; top: -280px; left: -160px;
  background: radial-gradient(circle, #4f46e5, transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.dash::after {
  width: 520px; height: 520px; bottom: -300px; right: -120px;
  background: radial-gradient(circle, #0891b2, transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(50px, 30px, 0) scale(1.12); } }
.dash > .wrap { position: relative; z-index: 1; }
.dash-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 30px; align-items: center; }
.dash h1 {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.035em;
  max-width: 20ch; margin-bottom: 14px;
}
.dash h1 .grad {
  background: linear-gradient(100deg, #a5b4fc, #22d3ee 52%, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash .lead { color: #cbd5e1; font-size: clamp(14px, 1.5vw, 16.5px); max-width: 56ch; }
.dash .trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: 12px; color: #94a3b8; }
.dash .trust span { display: inline-flex; align-items: center; gap: 6px; }
.dash .trust b { color: #e2e8f0; font-weight: 600; }

.dash-panel {
  background: linear-gradient(165deg, rgba(30, 41, 59, .82), rgba(9, 14, 28, .92));
  border: 1px solid rgba(148, 163, 184, .2); border-radius: 22px; padding: 18px;
  box-shadow: 0 32px 70px -34px rgba(2, 6, 23, .95);
  backdrop-filter: blur(12px);
}
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fda4af;
}
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, .18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(251, 113, 133, 0); } }
.live-head .tz { font-size: 10.5px; color: #94a3b8; letter-spacing: .08em; text-transform: uppercase; }
.clock { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); }
.clock #clockTime { font-size: clamp(38px, 6.4vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.clock #clockAmpm { font-size: 14px; font-weight: 700; color: #818cf8; letter-spacing: .06em; }
.clock-date { margin-top: 6px; font-size: 12.5px; color: #94a3b8; }
.daybar { height: 5px; border-radius: 999px; background: rgba(148, 163, 184, .18); overflow: hidden; margin: 14px 0 16px; }
.daybar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #818cf8, #22d3ee); transition: width .4s ease; }
.daybar-cap { display: flex; justify-content: space-between; font-size: 10.5px; color: #64748b; margin-top: -10px; margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; }

.focus { border-top: 1px solid rgba(148, 163, 184, .16); padding-top: 16px; }
.focus-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.focus-head h2 { font-size: 14px; margin: 0; color: #e2e8f0; letter-spacing: .01em; }
.focus-head .sessions { font-size: 11px; color: #94a3b8; }
.focus-head .sessions b { color: #34d399; }

.focus-modes { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.focus-modes button {
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .26);
  background: rgba(148, 163, 184, .08); color: #cbd5e1;
}
.focus-modes button:hover { background: rgba(148, 163, 184, .18); }
.focus-modes button.on { background: #e0e7ff; border-color: #e0e7ff; color: #312e81; }

.focus-body { display: flex; align-items: center; gap: 16px; }
.ring-wrap { position: relative; width: 128px; height: 128px; flex: 0 0 128px; }
.ring-wrap svg { display: block; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(148, 163, 184, .18); }
.ring-fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.ring-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-label b { font-family: var(--mono); font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ring-label small { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .12em; }
.focus-side { flex: 1 1 auto; min-width: 0; }
.focus-side .state { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.focus-side .state b { color: #e2e8f0; }
.focus-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-actions .btn { padding: 9px 14px; font-size: 12.5px; border-radius: 10px; }
.focus-actions .btn-ring { background: #22d3ee; color: #06202a; }
.focus-actions .btn-ring:hover { background: #67e8f9; }
.focus-set { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.focus-set label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #94a3b8; }
.focus-set input {
  width: 56px; padding: 7px 6px; border-radius: 8px; text-align: center;
  border: 1px solid rgba(148, 163, 184, .32); background: rgba(15, 23, 42, .55);
  color: #e2e8f0; font-family: var(--mono); font-size: 12.5px;
}
.focus-set input:focus { outline: none; border-color: #22d3ee; }
.focus-set .btn { padding: 7px 12px; font-size: 12px; border-radius: 8px; background: #e0e7ff; color: #312e81; border-color: #e0e7ff; }
.focus-set .btn:hover { background: #fff; }
.focus-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.focus-quick button {
  background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .22);
  color: #cbd5e1; font-size: 11px; padding: 5px 9px; border-radius: 999px; cursor: pointer;
  font-family: inherit;
}
.focus-quick button:hover { background: rgba(148, 163, 184, .24); color: #fff; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -26px; position: relative; z-index: 2; }
.stat-strip .s {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px;
  text-align: center; box-shadow: var(--shadow);
}
.stat-strip .s b { display: block; font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; letter-spacing: -.03em; }
.stat-strip .s small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.stat-strip .s:nth-child(1) b { color: #4f46e5; }
.stat-strip .s:nth-child(2) b { color: #0e7490; }
.stat-strip .s:nth-child(3) b { color: #047857; }
.stat-strip .s:nth-child(4) b { color: #b45309; }

/* category filter + tool cards */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filters button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.filters button:hover { border-color: #c7d2fe; color: var(--brand-dark); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: 1fr; } }
.tile-grid .tile { display: flex; flex-direction: column; }
.tile-grid .tile .tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-grid .tile .go { font-size: 12px; font-weight: 700; color: var(--brand); }
.tile.cat-doc .tile-icon { background: #eef2ff; }
.tile.cat-img .tile-icon { background: #ecfeff; }
.tile.cat-calc .tile-icon { background: #ecfdf5; }
.tile.cat-career .tile-icon { background: #fff7ed; }
.tile.cat-study .tile-icon { background: #fdf2f8; }
.tile .tag.soft { background: #f1f5f9; color: #475569; }

/* ---------- image studio ---------- */
.studio-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.studio-tools button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 9px 13px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.studio-tools button:hover { border-color: #c7d2fe; }
.studio-tools button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -12px rgba(79, 70, 229, .9); }
.studio-split { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .studio-split { grid-template-columns: 1fr; } }
.stage {
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%, transparent 75%, #eef2f7 75%),
    linear-gradient(45deg, #eef2f7 25%, #fff 25%, #fff 75%, #eef2f7 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
  border: 1px solid var(--line); border-radius: 14px; min-height: 240px;
  display: grid; place-items: center; padding: 14px; overflow: hidden;
}
.stage canvas { max-width: 100%; max-height: 460px; border-radius: 8px; box-shadow: 0 14px 30px -18px rgba(2, 6, 23, .5); background: #fff; }
.stage .empty { font-size: 12.5px; color: var(--muted); }
.src-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; }
.src-thumb { position: relative; flex: 0 0 62px; }
.src-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }
.src-thumb button {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: #0f172a; color: #fff; font-size: 11px; cursor: pointer; line-height: 1;
}
.results { display: grid; gap: 8px; margin-top: 12px; }
.result-row {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; background: #fff;
}
.result-row img { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.result-row .meta { flex: 1 1 auto; min-width: 0; }
.result-row .meta b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-row .meta small { font-size: 11px; color: var(--muted); }

/* ---------- calculators ---------- */
.calc-shell { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-nav { position: sticky; top: 74px; }
@media (max-width: 860px) { .calc-nav { position: static; } }
.calc-nav input { margin-bottom: 10px; }
.calc-cat { margin: 10px 0 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc-list { display: grid; gap: 3px; max-height: 460px; overflow: auto; padding-right: 4px; }
.calc-list button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  font-family: inherit; font-size: 12.8px; font-weight: 500; cursor: pointer;
  padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-soft);
}
.calc-list button:hover { background: #f1f5f9; }
.calc-list button.on { background: var(--brand-soft); border-color: #c7d2fe; color: var(--brand-dark); font-weight: 600; }
.calc-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.calc-head .ci { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 20px; }
.calc-head h2 { font-size: 19px; margin: 0; }
.calc-head p { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.calc-form .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .calc-form { grid-template-columns: 1fr; } }
.calc-out {
  margin-top: 16px; border-radius: 16px; padding: 18px;
  background: linear-gradient(140deg, #0b1220, #1e1b4b); color: #fff;
}
.calc-out .big { font-family: var(--mono); font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.calc-out .big small { font-size: 12px; font-family: var(--font); color: #94a3b8; font-weight: 500; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; }
.kv span { color: #cbd5e1; }
.kv b { font-family: var(--mono); font-weight: 600; }
.calc-note { margin-top: 12px; font-size: 11.5px; color: #94a3b8; }
.slab-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.slab-table td { padding: 4px 0; border-top: 1px solid rgba(148, 163, 184, .18); }
.slab-table td:last-child { text-align: right; font-family: var(--mono); }

/* ---------- resume ---------- */
.resume-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .resume-layout { grid-template-columns: 1fr; } }
.resume-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.accent-dots { display: inline-flex; gap: 6px; }
.accent-dots button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.accent-dots button.on { box-shadow: 0 0 0 2px var(--ink); }
.repeat-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fbfcfe; }
.repeat-block .rb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.repeat-block .rb-head strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.repeat-block textarea { min-height: 64px; }
.preview-col { position: sticky; top: 74px; }
@media (max-width: 980px) { .preview-col { position: static; } }
.resume-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 50px -30px rgba(2, 6, 23, .5);
  padding: 28px; min-height: 620px; font-size: 11.6px; color: #1f2937; line-height: 1.5;
}
.resume-sheet h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 2px; }
.resume-sheet .role { font-size: 12.5px; font-weight: 600; color: var(--accent, #4f46e5); margin-bottom: 6px; }
.resume-sheet .contact-line { font-size: 10.8px; color: #475569; }
.rs-section { margin-top: 14px; }
.rs-section h2 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 6px;
  color: var(--accent, #4f46e5); border-bottom: 1px solid #e2e8f0; padding-bottom: 4px;
}
.rs-item { margin-bottom: 8px; }
.rs-item .top { display: flex; justify-content: space-between; gap: 10px; }
.rs-item .top b { font-size: 11.8px; }
.rs-item .top span { font-size: 10.5px; color: #64748b; white-space: nowrap; }
.rs-item .sub { font-size: 10.8px; color: #475569; }
.rs-item ul { margin: 4px 0 0; padding-left: 15px; }
.rs-item li { font-size: 10.9px; margin-bottom: 2px; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rs-tags span { background: #f1f5f9; border-radius: 4px; padding: 2px 7px; font-size: 10.2px; color: #334155; }
.resume-sheet.tpl-modern .rs-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-bottom: 2px solid var(--accent, #4f46e5); padding-bottom: 10px; }
.resume-sheet.tpl-modern .rs-photo { width: 64px; height: 78px; border-radius: 6px; object-fit: cover; background: #e2e8f0; display: grid; place-items: center; font-size: 9px; color: #94a3b8; text-align: center; }
.resume-sheet.tpl-classic h1 { text-align: center; }
.resume-sheet.tpl-classic .role, .resume-sheet.tpl-classic .contact-line { text-align: center; }
.resume-sheet.tpl-classic .rs-section h2 { text-align: center; border-bottom: 1px solid #cbd5e1; color: #0f172a; }
.resume-empty { color: #94a3b8; font-style: italic; font-size: 11px; }

/* ---------- print ---------- */
@media print {
  body { background: #fff !important; }
  .site-header, .site-footer, .no-print, .float-share, #toast-host, .ad-slot { display: none !important; }
  .section, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .resume-layout { display: block !important; }
  .form-col, .resume-toolbar { display: none !important; }
  .preview-col { position: static !important; }
  .resume-sheet {
    box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    width: 210mm; min-height: 296mm; margin: 0; padding: 14mm;
  }
  @page { size: A4; margin: 0; }
}
/* dashboard responsive fixes */
@media (max-width: 980px) {
  .dash { padding: 36px 0 40px; }
  .dash-grid { grid-template-columns: 1fr; gap: 26px; }
  .dash h1 { max-width: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .stat-strip .s b { font-size: 22px; }
}
@media (max-width: 560px) {
  .dash h1 { font-size: 31px; line-height: 1.18; }
  .dash .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .dash-panel { padding: 15px; }
  .focus-body { flex-direction: column; align-items: stretch; gap: 12px; }
  .ring-wrap { margin: 0 auto; }
  .focus-actions .btn { flex: 1 1 auto; }
  .clock #clockTime { font-size: 40px; }
  .daybar-cap { font-size: 9.5px; }
  .stat-strip .s { padding: 12px 8px; }
  .stat-strip .s b { font-size: 20px; }
  .stat-strip .s small { font-size: 9.5px; }
}
/* ---------- mobile quick dock ---------- */
.mobile-dock { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  .mobile-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(8, 13, 26, .96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(148, 163, 184, .22);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -20px rgba(2, 6, 23, .9);
  }
  .mobile-dock a {
    flex: 1 1 0; display: grid; justify-items: center; gap: 1px;
    font-size: 9.5px; font-weight: 600; color: #94a3b8; text-decoration: none;
    padding: 4px 0 3px; border-radius: 9px; line-height: 1.2;
  }
  .mobile-dock a span { font-size: 17px; line-height: 1; }
  .mobile-dock a.on { color: #fff; background: rgba(129, 140, 248, .18); }
  .mobile-dock a:hover { text-decoration: none; }
  .float-share { bottom: 78px; }
}
@media print { .mobile-dock { display: none !important; } }
