:root {
  --ink: #15151d;
  --muted: #696976;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e5e2dc;
  --soft: #f2f0eb;
  --violet: #7157ff;
  --coral: #ff6847;
  --mint: #c8f1df;
  --shadow: 0 18px 50px rgba(31, 28, 45, 0.07);
}

html { scroll-behavior: smooth; }
html.dark {
  --ink: #f6f3ec;
  --muted: #aaa8b5;
  --paper: #111118;
  --surface: #191921;
  --line: #30303a;
  --soft: #202029;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.icon { width: 20px; height: 20px; display: block; }

.site-header {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 900; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: 90px; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.menu-button { display: none; }
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; padding: 13px 18px; font-weight: 800; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { padding: 11px 16px; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-coral { background: var(--coral); color: white; box-shadow: 0 10px 24px rgba(255,104,71,.2); }

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px) center/72px 72px,
    linear-gradient(color-mix(in srgb, var(--line) 36%, transparent) 1px, transparent 1px) center/72px 72px;
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 20%, var(--paper) 72%); }
.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 92px 0 48px; }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(1px); z-index: 1; }
.hero-orb-one { width: 290px; height: 290px; background: rgba(113,87,255,.13); top: 60px; left: -120px; }
.hero-orb-two { width: 340px; height: 340px; background: rgba(255,104,71,.11); right: -130px; bottom: -100px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 12px; font-weight: 750; box-shadow: 0 5px 18px rgba(0,0,0,.03); }
.eyebrow span { color: var(--violet); }
.hero h1 { margin: 27px 0 17px; max-width: 830px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(53px, 7.2vw, 88px); line-height: .94; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--violet); font-weight: 500; }
.hero-copy { max-width: 650px; margin: 0 0 27px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-search { width: min(650px, 100%); height: 66px; display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 7px 8px 7px 20px; box-shadow: 0 18px 50px rgba(31, 28, 45, .1); }
.hero-search > .icon { color: var(--muted); width: 23px; height: 23px; flex: 0 0 auto; }
.hero-search input { border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; flex: 1; font-size: 16px; }
.hero-search input::placeholder, .inline-search input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.search-button { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 12px; background: var(--violet); color: white; }
.popular-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.popular-row button { border: 0; background: transparent; color: var(--muted); padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.popular-row button:hover { color: var(--ink); }
.hero-proof { display: flex; align-items: center; gap: 25px; margin-top: 42px; color: var(--muted); font-size: 12px; }
.hero-proof strong { color: var(--ink); font-size: 15px; margin-right: 4px; }
.hero-proof i { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }

.section { padding: 90px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .explorer-head h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.035em; font-weight: 500; margin: 9px 0 0; }
.section-kicker { color: var(--violet); font-size: 11px; letter-spacing: .18em; font-weight: 900; }
.section-kicker.light { color: #b8aaff; }
.section-aside { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.featured-section { background: var(--surface); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured-wrap { position: relative; }
.pick-number { position: absolute; right: 22px; top: 16px; z-index: 1; color: color-mix(in srgb, var(--muted) 30%, transparent); font-family: Georgia, serif; font-size: 25px; }

.tool-card { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 23px; box-shadow: 0 1px 0 rgba(0,0,0,.01); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--violet) 25%, var(--line)); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.tool-logo { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: white; font-size: 20px; font-weight: 900; box-shadow: inset 0 -3px 8px rgba(0,0,0,.1); }
.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.rating .icon { width: 13px; height: 13px; color: #f1b31c; }
.tool-title-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.tool-title-row h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.tool-card-body p { min-height: 62px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.type-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.type-free { color: #087755; background: #dff6ed; }
.type-premium { color: #5a45d4; background: #ece8ff; }
.type-paid { color: #9b5520; background: #fff0d9; }
html.dark .type-free { color: #83e9c4; background: #154638; }
html.dark .type-premium { color: #c4b9ff; background: #342b63; }
html.dark .type-paid { color: #ffc98f; background: #54361f; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; color: var(--muted); font-size: 12px; }
.tool-card-foot > a:first-child:hover { color: var(--violet); }
.view-link { color: var(--ink); font-weight: 800; }
.view-link span { color: var(--violet); margin-left: 4px; }
.tool-card.compact { min-height: 290px; padding-top: 28px; }
.tool-card.compact .tool-card-body p { min-height: 68px; }

.category-section { background: var(--paper); }
.align-end { align-items: flex-end; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { min-height: 108px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 21px; font-weight: 900; background: var(--soft); }
.category-card.lilac .category-icon { background: #ece7ff; color: #654fe0; }
.category-card.coral .category-icon { background: #ffe5de; color: #e45d3f; }
.category-card.mint .category-icon { background: #ddf5ea; color: #078462; }
.category-card.blue .category-icon { background: #e1e9ff; color: #315dd2; }
.category-card.yellow .category-icon { background: #fff2ca; color: #a77100; }
.category-card.rose .category-icon { background: #f7e3ed; color: #a63f73; }
html.dark .category-icon { filter: saturate(.7) brightness(.75); }
.category-card strong, .category-card small { display: block; }
.category-card strong { font-size: 15px; margin-bottom: 5px; }
.category-card small { color: var(--muted); font-size: 11px; }
.category-arrow { margin-left: auto; color: var(--muted); font-size: 17px; }

.explorer-section { background: var(--surface); border-top: 1px solid var(--line); }
.explorer-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.result-count { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.result-count .icon { width: 15px; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px auto; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 15px; padding: 9px; margin-bottom: 26px; }
.inline-search { display: flex; align-items: center; gap: 9px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.inline-search .icon { width: 17px; color: var(--muted); }
.inline-search input { min-width: 0; width: 100%; height: 41px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-bar select { height: 43px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 0 13px; outline: 0; }
.segmented { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.segmented button { border: 0; background: transparent; color: var(--muted); text-transform: capitalize; border-radius: 7px; padding: 0 12px; font-size: 11px; font-weight: 800; }
.segmented button.active { background: var(--ink); color: var(--paper); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; color: var(--muted); font-size: 12px; }
.pagination button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 10px 13px; font-size: 12px; font-weight: 700; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.empty-state { padding: 72px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state > span { color: var(--violet); font-size: 35px; }
.empty-state h3 { font-family: Georgia, serif; font-size: 28px; margin: 12px 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

.newsletter { padding: 74px 0; background: #1b1924; color: white; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.newsletter h2 { margin: 12px 0 0; font-family: Georgia, serif; font-weight: 500; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.newsletter-form { width: min(440px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter-form input { min-width: 0; border: 1px solid #3e3a4a; background: #262330; color: white; border-radius: 10px; padding: 0 15px; outline: 0; }
.newsletter-form .button { white-space: nowrap; }
.newsletter-form .icon { width: 16px; }
.newsletter-form small { grid-column: 1 / -1; color: #9b97aa; margin-top: 4px; font-size: 10px; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 52px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-note { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--muted); font-size: 11px; }

/* Inner pages */
.page-hero { padding: 86px 0 54px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(49px, 7vw, 78px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.page-hero p { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.crumb { color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.crumb a:hover { color: var(--violet); }
.inner-section { padding: 64px 0 90px; min-height: 480px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 360px; gap: 54px; }
.detail-brand { display: flex; align-items: center; gap: 19px; margin-bottom: 30px; }
.detail-brand .tool-logo { width: 70px; height: 70px; font-size: 28px; }
.detail-brand h1 { font-family: Georgia, serif; font-size: 52px; font-weight: 500; letter-spacing: -.04em; margin: 0 0 9px; }
.detail-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.detail-copy { font-family: Georgia, serif; font-size: 22px; line-height: 1.65; color: var(--ink); }
.detail-copy + p { color: var(--muted); line-height: 1.8; }
.detail-panel { position: sticky; top: 96px; align-self: start; border: 1px solid var(--line); border-radius: 18px; padding: 25px; background: var(--surface); box-shadow: var(--shadow); }
.detail-panel h3 { margin: 0 0 18px; font-size: 14px; }
.detail-list { margin: 0 0 22px; padding: 0; list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 12px; color: var(--muted); }
.detail-list strong { color: var(--ink); text-transform: capitalize; }
.detail-panel .button { width: 100%; }

.news-feature { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 380px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); margin-bottom: 22px; }
.news-art { position: relative; overflow: hidden; min-height: 330px; background: #ddd; }
.news-art::before, .news-art::after { content: ""; position: absolute; border-radius: 999px; filter: blur(1px); }
.news-art::before { width: 360px; height: 360px; left: 10%; top: -100px; background: rgba(255,255,255,.34); }
.news-art::after { width: 260px; height: 260px; right: -80px; bottom: -100px; background: rgba(10,10,20,.16); }
.news-art.violet { background: linear-gradient(135deg, #6e54ff, #c2b8ff); }
.news-art.yellow { background: linear-gradient(135deg, #ffb927, #fff1a8); }
.news-art-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: Georgia, serif; font-size: 120px; color: rgba(255,255,255,.9); font-style: italic; transform: rotate(-8deg); }
.news-feature-copy { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.news-feature-copy h2 { font-family: Georgia, serif; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; font-weight: 500; margin: 14px 0 16px; }
.news-feature-copy p { color: var(--muted); line-height: 1.7; margin: 0 0 25px; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; }
.story-thumb { min-height: 122px; border-radius: 11px; background: var(--soft); position: relative; overflow: hidden; }
.story-thumb::after { content: "N"; position: absolute; inset: 0; display: grid; place-items: center; font-family: Georgia, serif; font-size: 46px; font-style: italic; color: rgba(255,255,255,.9); }
.story-thumb.violet { background: linear-gradient(145deg,#765bff,#b9acff); }
.story-thumb.orange { background: linear-gradient(145deg,#ff744e,#ffc2a8); }
.story-thumb.mint { background: linear-gradient(145deg,#00a77e,#b8f2dd); }
.story-thumb.blue { background: linear-gradient(145deg,#246bfd,#aac4ff); }
.story-thumb.yellow { background: linear-gradient(145deg,#ffb826,#ffeaaa); }
.story-thumb.rose { background: linear-gradient(145deg,#d94f91,#f7bfd8); }
.story-card .section-kicker { font-size: 9px; }
.story-card h3 { margin: 8px 0 9px; font-family: Georgia, serif; font-size: 20px; line-height: 1.1; font-weight: 500; }
.story-card p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.55; }
.story-meta { display: block; color: var(--muted); margin-top: 10px; font-size: 10px; }

/* Admin */
.admin-page { min-height: 100vh; background: var(--soft); }
.login-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: min(430px, 100%); border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.login-card h1 { font-family: Georgia, serif; font-size: 37px; font-weight: 500; margin: 25px 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 26px; font-size: 13px; line-height: 1.6; }
.form-stack { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 11px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 9px; padding: 12px 13px; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); }
.demo-note { margin-top: 18px; padding: 12px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-error { color: #cc432a; font-size: 11px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 235px 1fr; }
.admin-sidebar { background: #17161f; color: white; padding: 27px 20px; display: flex; flex-direction: column; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 48px; }
.admin-sidebar nav button { text-align: left; border: 0; color: #aaa7b7; background: transparent; border-radius: 9px; padding: 12px 13px; font-weight: 700; font-size: 12px; }
.admin-sidebar nav button.active { background: #2a2835; color: white; }
.admin-user { margin-top: auto; border-top: 1px solid #34313e; padding-top: 18px; }
.admin-user strong, .admin-user span { display: block; }
.admin-user strong { font-size: 12px; }
.admin-user span { color: #898596; font-size: 10px; margin-top: 4px; }
.admin-user button { margin-top: 13px; background: transparent; color: #c7c4ce; border: 0; padding: 0; font-size: 11px; }
.admin-main { min-width: 0; padding: 38px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.admin-head p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.stat-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 21px; }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; font-family: Georgia, serif; font-size: 35px; font-weight: 500; margin-top: 8px; }
.admin-panel { margin-top: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 15px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 20px; font-size: 11px; }
.admin-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.admin-table td:first-child { font-weight: 800; }
.table-actions { display: flex; gap: 7px; }
.table-actions button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 6px 8px; font-size: 10px; }
.table-actions button.danger { color: #c14632; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-form-actions { grid-column: 1 / -1; display: flex; align-items:center; justify-content: flex-end; flex-wrap:wrap; gap: 9px; padding-top: 5px; }
.admin-asset-summary { margin-right:auto; color:var(--muted); font-size:10px; line-height:1.5; }
.admin-assets { margin:0; padding:18px; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb,var(--soft) 55%,var(--surface)); }
.admin-assets legend { padding:0 8px; color:var(--ink); font-size:11px; font-weight:850; }
.admin-assets > p { margin:0 0 13px; color:var(--muted); font-size:10px; line-height:1.5; }
.admin-asset-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-asset-picker { position:relative; min-width:0; min-height:104px; display:grid; grid-template-columns:34px minmax(0,1fr); align-content:center; column-gap:10px; padding:14px; overflow:hidden; border:1px dashed color-mix(in srgb,var(--violet) 42%,var(--line)); border-radius:10px; background:var(--surface); cursor:pointer; transition:border-color .2s,background .2s,box-shadow .2s,transform .2s; }
.admin-asset-picker:hover,.admin-asset-picker:focus-within { border-color:var(--violet); background:color-mix(in srgb,var(--violet) 6%,var(--surface)); box-shadow:0 10px 24px color-mix(in srgb,var(--violet) 10%,transparent); transform:translateY(-2px); }
.admin-asset-picker input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.admin-asset-picker > span { grid-row:1 / span 2; width:34px; height:34px; display:grid; place-items:center; align-self:center; border-radius:9px; background:linear-gradient(135deg,var(--violet),var(--cobalt)); color:#fff; font-size:17px; }
.admin-asset-picker strong { min-width:0; align-self:end; color:var(--ink); font-size:11px; }
.admin-asset-picker small { min-width:0; overflow:hidden; align-self:start; color:var(--muted); font-size:9px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.notice { border-radius: 9px; padding: 11px 13px; background: #ddf5ea; color: #087755; font-size: 11px; margin: 0 22px 5px; }
.category-notice { margin: 0 0 16px; }
.category-editor { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:14px; padding:18px 20px; border-bottom:1px solid var(--line); background:var(--paper); }
.category-editor-actions { display:flex; gap:8px; }
.category-editor-actions .button { min-height:42px; white-space:nowrap; }
.download-strip { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: 14px; background: #ece8ff; color: #2b2352; }
.download-strip strong, .download-strip span { display: block; }
.download-strip strong { font-size: 13px; margin-bottom: 4px; }
.download-strip span { font-size: 11px; color: #625b80; }

@media (max-width: 920px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 20px; display: none; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 20px; }
  .main-nav.is-open { display: flex; }
  .menu-button { display: grid; }
  .nav-actions .button { display: none; }
  .featured-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-wrap:last-child { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 180px; }
  .segmented { grid-column: 1 / -1; height: 43px; }
  .segmented button { flex: 1; }
  .newsletter-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .story-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 190px 1fr; }
  .admin-main { padding: 28px 22px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { height: 65px; }
  .main-nav { top: 65px; }
  .hero { min-height: 590px; }
  .hero-inner { padding-top: 75px; }
  .hero h1 { font-size: 54px; }
  .hero-copy { font-size: 15px; }
  .popular-row { flex-wrap: wrap; justify-content: center; }
  .hero-proof { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .hero-proof i { display: none; }
  .section { padding: 65px 0; }
  .section-heading, .explorer-head { align-items: flex-start; flex-direction: column; }
  .featured-grid, .tools-grid, .category-grid { grid-template-columns: 1fr; }
  .featured-wrap:last-child { display: block; }
  .filter-bar { grid-template-columns: 1fr; }
  .segmented { grid-column: auto; overflow-x: auto; }
  .newsletter { padding: 60px 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form input { height: 48px; }
  .newsletter-form small { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-meta { grid-column: auto; }
  .page-hero { padding: 64px 0 42px; }
  .news-feature { grid-template-columns: 1fr; }
  .news-art { min-height: 210px; }
  .news-feature-copy { padding: 30px; }
  .story-card { grid-template-columns: 95px 1fr; gap: 16px; }
  .detail-brand { align-items: flex-start; }
  .detail-brand h1 { font-size: 42px; }
  .admin-shell { display: block; }
  .admin-sidebar { padding: 18px; flex-direction: row; align-items: center; position: sticky; top: 0; z-index: 10; }
  .admin-sidebar nav { margin: 0 0 0 auto; display: flex; }
  .admin-sidebar nav button { padding: 9px; }
  .admin-user { display: none; }
  .admin-main { padding: 24px 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full, .admin-form-actions { grid-column: auto; }
  .admin-asset-grid { grid-template-columns:1fr; }
  .admin-asset-summary { width:100%; margin:0; }
  .admin-form-actions .button { flex:1; }
  .category-editor { grid-template-columns:1fr; }
  .category-editor-actions { justify-content:flex-end; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2) { display: none; }
  .download-strip { align-items: flex-start; flex-direction: column; }
}

/* TOOLSAURA discovery system */
:root {
  --ink: #10212b;
  --muted: #657680;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #dfe9e5;
  --soft: #eef5f2;
  --violet: #176f64;
  --coral: #ffad42;
  --mint: #c9f2df;
  --teal: #08796c;
  --teal-dark: #075b54;
  --cobalt: #315fdf;
  --amber: #ffb548;
  --shadow: 0 18px 48px rgba(20, 56, 52, .09);
}
html.dark {
  --ink: #edf7f3;
  --muted: #9eb1aa;
  --paper: #0c1818;
  --surface: #122221;
  --line: #29403d;
  --soft: #172b29;
  --shadow: 0 18px 50px rgba(0,0,0,.25);
}
body { font-family: var(--font-geist-sans), Arial, sans-serif; }
.shell { width: min(1240px, calc(100% - 40px)); }
.site-header { height: 68px; background: color-mix(in srgb, var(--surface) 94%, transparent); }
.brand { letter-spacing: -.035em; font-size: 20px; gap: 9px; }
.brand-accent { color: var(--teal); }
.main-nav { margin-left: 40px; gap: 26px; }
.main-nav a, .browse-menu summary { font-size: 13px; font-weight: 750; color: var(--muted); }
.browse-menu { position: relative; }
.browse-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.browse-menu summary::-webkit-details-marker { display:none; }
.browse-panel { position: absolute; top: 30px; left: -15px; width: 290px; padding: 10px; display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.browse-panel a { display: grid; padding: 11px 12px; border-radius: 9px; }
.browse-panel a:hover { background: var(--soft); }
.browse-panel b { color: var(--ink); font-size: 12px; }
.browse-panel small { margin-top: 3px; font-size: 10px; color: var(--muted); }
.nav-search { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.button-primary { background: var(--teal); color: white; }
.button-amber { background: var(--amber); color: #18251f; }

.directory-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.directory-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(color-mix(in srgb,var(--teal) 15%,transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom,black,transparent 82%); }
.directory-hero-inner { position:relative; z-index:2; padding: 82px 0 58px; text-align:center; display:flex; align-items:center; flex-direction:column; }
.hero-glow { position:absolute; border-radius:999px; filter:blur(5px); opacity:.17; }
.hero-glow-left { width:420px; height:420px; background:var(--teal); left:-230px; top:-120px; }
.hero-glow-right { width:380px; height:380px; background:var(--cobalt); right:-200px; bottom:-200px; }
.hero-label { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:var(--surface); padding:7px 12px; border-radius:999px; color:var(--muted); font-size:11px; font-weight:750; }
.hero-label i { width:7px; height:7px; border-radius:50%; background:#20b177; box-shadow:0 0 0 4px rgba(32,177,119,.12); }
.directory-hero h1 { margin:24px 0 16px; max-width:850px; font-size:clamp(50px,6vw,78px); line-height:.98; letter-spacing:-.058em; font-weight:850; }
.directory-hero h1 span { color:var(--teal); }
.directory-hero > .shell > p, .directory-hero-inner > p { max-width:670px; margin:0; color:var(--muted); font-size:17px; line-height:1.65; }
.task-search { width:min(760px,100%); min-height:70px; display:flex; align-items:center; gap:12px; margin-top:28px; padding:8px 8px 8px 20px; background:var(--surface); border:1px solid color-mix(in srgb,var(--teal) 35%,var(--line)); border-radius:16px; box-shadow:0 20px 45px rgba(8,121,108,.12); }
.task-search > .icon { color:var(--teal); width:23px; height:23px; }
.task-search input { flex:1; min-width:0; border:0; background:transparent; outline:0; color:var(--ink); font-size:16px; }
.task-search a { display:inline-flex; align-items:center; gap:8px; min-height:52px; padding:0 20px; background:var(--teal); border-radius:11px; color:#fff; font-size:13px; font-weight:850; white-space:nowrap; }
.task-search a .icon { width:16px; }
.search-examples { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin-top:13px; color:var(--muted); font-size:10px; }
.search-examples button { border:0; padding:4px 8px; border-radius:999px; background:var(--soft); color:var(--muted); font-size:10px; }
.directory-stats { display:flex; align-items:center; gap:34px; margin-top:34px; color:var(--muted); font-size:11px; }
.directory-stats strong { color:var(--ink); font-size:15px; margin-right:4px; }

.shortcut-section { padding:20px 0; background:var(--surface); border-bottom:1px solid var(--line); }
.shortcut-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; }
.shortcut-grid a { min-width:0; display:flex; align-items:center; gap:8px; padding:12px 13px; background:var(--paper); border:1px solid var(--line); border-radius:10px; color:var(--ink); font-size:11px; font-weight:750; transition:.2s; }
.shortcut-grid a:hover { border-color:var(--teal); transform:translateY(-2px); }
.shortcut-grid a > span { font-size:15px; }
.shortcut-grid a b { margin-left:auto; color:var(--teal); }

.directory-main { padding:52px 0 78px; background:var(--paper); }
.discovery-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:25px; align-items:start; }
.feed-heading, .section-title-line { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.mini-kicker { color:var(--teal); font-size:9px; letter-spacing:.17em; font-weight:900; }
.feed-heading h2, .section-title-line h2 { margin:7px 0 5px; font-size:27px; letter-spacing:-.035em; }
.feed-heading p, .section-title-line p { margin:0; color:var(--muted); font-size:12px; }
.feed-heading > a, .section-title-line > a { color:var(--teal); font-size:11px; font-weight:850; white-space:nowrap; }
.filter-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) 175px 155px; gap:8px; padding:9px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.feed-search { display:flex; align-items:center; gap:8px; padding:0 10px; background:var(--paper); border:1px solid var(--line); border-radius:8px; }
.feed-search .icon { width:16px; color:var(--muted); }
.feed-search input { width:100%; height:38px; border:0; outline:0; color:var(--ink); background:transparent; font-size:11px; }
.filter-toolbar select { min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); padding:0 10px; font-size:10px; font-weight:700; }
.pricing-tabs { display:flex; align-items:center; gap:5px; margin:10px 0 13px; }
.pricing-tabs button { border:1px solid var(--line); background:var(--surface); color:var(--muted); padding:7px 11px; border-radius:7px; font-size:10px; font-weight:800; text-transform:capitalize; }
.pricing-tabs button.active { color:#fff; background:var(--teal); border-color:var(--teal); }
.pricing-tabs > span { margin-left:auto; display:inline-flex; gap:6px; align-items:center; color:var(--muted); font-size:10px; }
.pricing-tabs > span .icon { width:13px; }
.feed-list { display:grid; gap:10px; }

.tool-card, .tool-card.compact { min-height:0; padding:17px; border-radius:13px; box-shadow:none; }
.tool-card:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(20,56,52,.07); border-color:color-mix(in srgb,var(--teal) 38%,var(--line)); }
.tool-card-top { display:grid; grid-template-columns:46px 1fr 34px; align-items:center; gap:12px; margin:0; }
.tool-logo { width:46px; height:46px; border-radius:11px; font-size:16px; }
.tool-card-heading { min-width:0; }
.tool-title-row { margin:0 0 4px; gap:7px; }
.tool-title-row h3 { font-size:15px; }
.verified-badge { width:16px; height:16px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--cobalt); font-size:9px; }
.rating { font-size:9px; }
.rating .icon { width:11px; height:11px; }
.rating span { color:var(--muted); }
.bookmark-button { width:32px; height:32px; border:1px solid var(--line); background:var(--paper); color:var(--muted); border-radius:8px; font-size:17px; }
.bookmark-button:hover { color:var(--teal); border-color:var(--teal); }
.tool-card-body p, .tool-card.compact .tool-card-body p { min-height:0; margin:13px 0 14px 58px; color:var(--muted); font-size:11px; line-height:1.55; }
.tool-card-foot { margin:0 0 0 58px; padding-top:12px; font-size:10px; }
.tool-tags { display:flex; align-items:center; gap:7px; }
.tool-tags > a { color:var(--teal); background:color-mix(in srgb,var(--teal) 9%,transparent); padding:5px 7px; border-radius:6px; }
.type-badge { height:21px; font-size:8px; }
.view-link { font-size:10px; }
.pagination { margin-top:16px; }

.rank-sidebar { position:sticky; top:92px; display:grid; gap:14px; }
.rank-card, .submit-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.rank-heading { display:flex; justify-content:space-between; align-items:flex-end; padding:19px 19px 0; }
.rank-heading span { color:var(--teal); font-size:8px; letter-spacing:.15em; font-weight:900; }
.rank-heading h2 { margin:5px 0 0; font-size:18px; letter-spacing:-.03em; }
.rank-heading a { color:var(--teal); font-size:9px; font-weight:850; }
.rank-copy { margin:6px 19px 11px; color:var(--muted); font-size:10px; }
.rank-card ol { list-style:none; margin:0; padding:0 14px; }
.rank-card li { display:grid; grid-template-columns:21px 34px minmax(0,1fr) auto; align-items:center; gap:8px; padding:9px 2px; border-top:1px solid var(--line); }
.rank-number { color:var(--muted); font-size:10px; font-weight:850; text-align:center; }
.rank-logo { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; color:#fff; font-size:10px; font-weight:900; }
.rank-card li > span:nth-child(3) { min-width:0; }
.rank-card li a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:800; }
.rank-card li small { display:block; margin-top:2px; color:var(--muted); font-size:8px; }
.rank-card li > b { display:flex; align-items:center; gap:3px; color:var(--muted); font-size:9px; }
.rank-card li > b .icon { width:9px; color:#f2aa21; }
.rank-cta { margin:12px 14px 14px; min-height:38px; display:flex; align-items:center; justify-content:center; gap:7px; border-radius:8px; background:var(--teal); color:#fff; font-size:10px; font-weight:850; }
.rank-cta .icon { width:13px; }
.submit-card { padding:20px; background:linear-gradient(135deg,#e8f7f1,#eaf0ff); color:#17302c; }
.submit-card > span { font-size:24px; }
.submit-card h3 { margin:9px 0 5px; font-size:16px; }
.submit-card p { margin:0 0 12px; color:#60736f; font-size:10px; line-height:1.5; }
.submit-card a { color:var(--teal-dark); font-size:10px; font-weight:900; }

.playbook-section, .shelves-section, .category-cloud-section, .faq-section { padding:72px 0; border-top:1px solid var(--line); }
.playbook-section { background:var(--surface); }
.playbook-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.playbook-card { position:relative; padding:22px; border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.playbook-card.peach { background:#fff8ed; }
.playbook-card.aqua { background:#edfbf6; }
.playbook-card.blue { background:#f0f4ff; }
html.dark .playbook-card { background:var(--surface); }
.playbook-icon { font-size:27px; }
.playbook-time { position:absolute; right:18px; top:18px; color:var(--muted); font-size:9px; }
.playbook-card h3 { margin:17px 0 8px; font-size:18px; letter-spacing:-.025em; }
.playbook-card p { min-height:55px; margin:0 0 15px; color:var(--muted); font-size:11px; line-height:1.6; }
.playbook-card small { display:block; color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.12em; }
.playbook-card strong { display:block; margin-top:4px; font-size:10px; }
.playbook-card a { display:inline-block; margin-top:16px; color:var(--teal); font-size:10px; font-weight:900; }

.shelves-section { background:var(--paper); }
.tool-shelves { display:grid; gap:14px; }
.tool-shelf { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px; }
.shelf-head { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.shelf-head .category-icon { width:42px; height:42px; border-radius:10px; }
.shelf-head h3 { margin:0 0 4px; font-size:15px; }
.shelf-head p { margin:0; color:var(--muted); font-size:9px; }
.shelf-head > a { color:var(--teal); font-size:9px; font-weight:850; }
.shelf-tools { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding-top:13px; }
.shelf-tools > a { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr); gap:8px; align-items:center; padding:8px; border-radius:9px; }
.shelf-tools > a:hover { background:var(--soft); }
.shelf-tools > a > span:nth-child(2) { min-width:0; }
.shelf-tools strong, .shelf-tools small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shelf-tools strong { font-size:10px; }
.shelf-tools small { margin-top:3px; color:var(--muted); font-size:8px; }
.shelf-tools b { grid-column:2; color:var(--teal); font-size:8px; text-transform:capitalize; }

.category-cloud-section { background:var(--surface); }
.category-cloud { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.category-cloud a { display:grid; grid-template-columns:34px 1fr auto auto; align-items:center; gap:10px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.category-cloud a:hover { border-color:var(--teal); }
.category-cloud a > span { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; background:var(--soft); }
.category-cloud strong { font-size:11px; }
.category-cloud small { color:var(--muted); font-size:9px; }
.category-cloud b { color:var(--teal); font-size:11px; }

.faq-section { background:var(--paper); }
.faq-grid { display:grid; grid-template-columns:330px 1fr; gap:80px; align-items:start; }
.faq-grid h2 { margin:9px 0; font-size:30px; letter-spacing:-.04em; }
.faq-grid > div:first-child p { color:var(--muted); font-size:11px; }
.faq-list { border-top:1px solid var(--line); }
.faq-list details { border-bottom:1px solid var(--line); }
.faq-list summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:20px; padding:17px 0; font-size:12px; font-weight:800; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary span { color:var(--teal); font-size:16px; }
.faq-list details p { margin:-4px 0 18px; color:var(--muted); font-size:11px; line-height:1.7; }

.newsletter { background:#0c2221; }
.newsletter-form .button-amber { white-space:nowrap; }
.site-footer { padding:58px 0 0; }
.footer-grid { grid-template-columns:1.4fr repeat(3,1fr); gap:50px; }
.footer-note { max-width:270px; line-height:1.7; }
.footer-socials { display:flex; gap:7px; margin-top:16px; }
.footer-socials span { width:29px; height:29px; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; color:var(--muted); font-size:10px; font-weight:800; }
.footer-column { display:grid; align-content:start; gap:10px; }
.footer-column strong { margin-bottom:4px; font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.footer-column a { color:var(--muted); font-size:10px; }
.footer-column a:hover { color:var(--teal); }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:42px; padding:18px 0; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }

@media (max-width: 980px) {
  .shortcut-grid { grid-template-columns:repeat(3,1fr); }
  .discovery-layout { grid-template-columns:1fr; }
  .rank-sidebar { position:static; grid-template-columns:1fr 1fr; }
  .shelf-tools { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1.3fr repeat(2,1fr); }
  .footer-column:last-child { display:none; }
}
@media (max-width: 720px) {
  .directory-hero-inner { padding:68px 0 45px; }
  .directory-hero h1 { font-size:48px; }
  .task-search { min-height:62px; }
  .task-search a { width:48px; padding:0; font-size:0; }
  .task-search a .icon { width:18px; }
  .directory-stats { gap:12px; flex-wrap:wrap; justify-content:center; }
  .shortcut-grid { grid-template-columns:1fr 1fr; }
  .filter-toolbar { grid-template-columns:1fr 1fr; }
  .feed-search { grid-column:1 / -1; }
  .playbook-grid, .category-cloud { grid-template-columns:1fr; }
  .rank-sidebar { grid-template-columns:1fr; }
  .shelf-tools { grid-template-columns:1fr; }
  .faq-grid { grid-template-columns:1fr; gap:35px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1 / -1; }
  .browse-menu { width:100%; }
  .browse-panel { position:static; width:100%; margin-top:10px; box-shadow:none; }
}
@media (max-width: 480px) {
  .shortcut-grid, .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:first-child { grid-column:auto; }
  .directory-hero h1 { font-size:42px; }
  .filter-toolbar { grid-template-columns:1fr; }
  .feed-search { grid-column:auto; }
  .pricing-tabs { flex-wrap:wrap; }
  .pricing-tabs > span { width:100%; margin:5px 0 0; }
  .tool-card-body p, .tool-card.compact .tool-card-body p, .tool-card-foot { margin-left:0; }
  .footer-bottom { flex-direction:column; }
}

/* SEO landing pages */
.page-hero em { color:var(--teal); }
.route-hero { padding:92px 0 76px; background:
  radial-gradient(circle at 86% 18%,color-mix(in srgb,var(--cobalt) 16%,transparent),transparent 30%),
  linear-gradient(135deg,var(--surface),var(--paper)); border-bottom:1px solid var(--line); }
.route-hero .shell { max-width:920px; margin-left:max(calc((100% - 1180px)/2),24px); }
.route-hero h1 { max-width:780px; margin:16px 0 18px; font-size:clamp(44px,6vw,72px); line-height:1; letter-spacing:-.055em; }
.route-hero p { max-width:650px; margin:0; color:var(--muted); font-size:16px; line-height:1.7; }
.free-route-hero { background:
  radial-gradient(circle at 82% 10%,rgba(244,180,0,.15),transparent 26%),
  linear-gradient(135deg,#ecfbf5,var(--paper)); }
html.dark .free-route-hero { background:linear-gradient(135deg,var(--surface),var(--paper)); }
.category-route-hero { background:
  radial-gradient(circle at 82% 10%,rgba(38,92,205,.14),transparent 28%),
  linear-gradient(135deg,#eef4ff,var(--paper)); }
html.dark .category-route-hero { background:linear-gradient(135deg,var(--surface),var(--paper)); }
.route-section { padding:72px 0 90px; background:var(--paper); }
.route-category-grid { margin-top:65px; }
.listing-head { display:flex; justify-content:space-between; margin-bottom:24px; }
.listing-head span { color:var(--teal); font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.listing-head h2 { margin:8px 0 0; font-size:30px; letter-spacing:-.04em; }
.seo-copy { max-width:760px; margin:60px auto 0; padding:32px; border-left:3px solid var(--teal); background:var(--surface); border-radius:0 14px 14px 0; }
.seo-copy h2 { margin:0 0 10px; font-size:24px; letter-spacing:-.035em; }
.seo-copy p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }

.full-ranking { display:grid; background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.full-ranking article { display:grid; grid-template-columns:44px 48px minmax(0,1fr) 120px 80px 60px; gap:14px; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line); }
.full-ranking article:last-child { border-bottom:0; }
.full-ranking article:hover { background:color-mix(in srgb,var(--teal) 4%,var(--surface)); }
.full-ranking .rank-number { font-size:13px; }
.full-ranking .rank-copy { margin:0; min-width:0; }
.full-ranking h2 { margin:0 0 4px; font-size:15px; }
.full-ranking p { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; }
.rank-category { color:var(--teal); font-size:10px; font-weight:800; }

.category-index { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.category-index-card { position:relative; min-height:142px; display:grid; grid-template-columns:40px 50px 1fr; grid-template-rows:1fr auto; align-items:center; gap:0 16px; padding:24px; border:1px solid var(--line); border-radius:15px; background:var(--surface); overflow:hidden; transition:.2s; }
.category-index-card::after { content:""; position:absolute; width:120px; height:120px; right:-50px; top:-55px; border-radius:50%; background:var(--category-hue,#d8f4ec); opacity:.45; }
.category-index-card:hover { transform:translateY(-3px); border-color:var(--teal); }
.category-index-card.lilac { --category-hue:#dcd5ff; }
.category-index-card.coral { --category-hue:#ffcfbf; }
.category-index-card.mint { --category-hue:#bdeedd; }
.category-index-card.blue { --category-hue:#c7d9ff; }
.category-index-card.yellow { --category-hue:#ffe7a8; }
.category-index-card.rose { --category-hue:#ffd0df; }
.category-index-card.aqua { --category-hue:#bdeee7; }
.category-index-card.peach { --category-hue:#ffd8c6; }
.category-index-card.plum { --category-hue:#e8c9f2; }
.category-index-number { color:var(--muted); font-size:10px; font-weight:900; }
.category-index-card .category-icon { width:48px; height:48px; }
.category-index-copy { min-width:0; }
.category-index-copy strong { display:block; margin-bottom:6px; font-size:18px; }
.category-index-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; }
.category-index-card > b { grid-column:3; color:var(--teal); font-size:10px; }

.prompt-family-nav { position:sticky; z-index:5; top:88px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:44px; padding:12px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb,var(--surface) 91%,transparent); box-shadow:0 14px 38px rgba(31,28,45,.08); backdrop-filter:blur(18px); }
.prompt-family-nav > span { padding:0 8px; color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.prompt-family-nav a { padding:9px 12px; border:1px solid color-mix(in srgb,#9b4fbd 18%,var(--line)); border-radius:999px; background:color-mix(in srgb,#9b4fbd 7%,var(--paper)); color:var(--ink); font-size:10px; font-weight:850; transition:.2s; }
.prompt-family-nav a:hover { transform:translateY(-2px); border-color:#9b4fbd; color:#8340a2; }
.prompt-family-sections { display:grid; gap:66px; }
.prompt-family-section { scroll-margin-top:175px; }
.prompt-family-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.prompt-family-heading h2 { margin:8px 0 0; font-size:31px; letter-spacing:-.045em; }
.prompt-family-heading p { max-width:360px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; text-align:right; }
.prompt-family-section .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

.submit-page { padding-top:92px; }
.submit-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:72px; align-items:start; }
.submit-intro { position:sticky; top:110px; }
.submit-intro h1 { margin:16px 0; font-size:clamp(42px,5vw,64px); line-height:1; letter-spacing:-.055em; }
.submit-intro > p { max-width:520px; margin:0; color:var(--muted); font-size:15px; line-height:1.7; }
.submit-intro ul { list-style:none; margin:38px 0 0; padding:0; display:grid; gap:19px; }
.submit-intro li { display:grid; grid-template-columns:38px 1fr; gap:13px; align-items:start; }
.submit-intro li > b { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:color-mix(in srgb,var(--teal) 10%,transparent); color:var(--teal); font-size:9px; }
.submit-intro li strong,.submit-intro li small { display:block; }
.submit-intro li strong { margin-bottom:4px; font-size:12px; }
.submit-intro li small { color:var(--muted); font-size:10px; line-height:1.5; }
.submit-form,.submit-success { padding:30px; background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.submit-form { display:grid; gap:18px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.submit-form label { display:grid; gap:7px; color:var(--ink); font-size:10px; font-weight:850; }
.submit-form input,.submit-form select,.submit-form textarea { width:100%; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--ink); padding:12px 13px; outline:0; font:inherit; font-size:11px; font-weight:500; }
.submit-form input:focus,.submit-form select:focus,.submit-form textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 12%,transparent); }
.submit-form textarea { resize:vertical; line-height:1.6; }
.form-check { grid-template-columns:18px 1fr!important; align-items:start; font-weight:600!important; color:var(--muted)!important; }
.form-check input { width:16px; height:16px; padding:0; accent-color:var(--teal); }
.submit-button { min-height:50px; border:0; font-size:11px; font-weight:900; }
.form-note { color:var(--muted); font-size:9px; text-align:center; }
.submit-success { text-align:center; padding:65px 35px; }
.submit-success > span { width:58px; height:58px; display:grid; place-items:center; margin:0 auto; border-radius:50%; background:color-mix(in srgb,var(--teal) 12%,transparent); color:var(--teal); font-size:24px; }
.submit-success h2 { margin:20px 0 8px; font-size:30px; }
.submit-success p { max-width:420px; margin:0 auto 24px; color:var(--muted); font-size:12px; line-height:1.7; }
.submit-success button { border:0; }

@media (max-width: 900px) {
  .full-ranking article { grid-template-columns:36px 46px minmax(0,1fr) 70px 55px; }
  .full-ranking .rank-category { display:none; }
  .category-index,.submit-layout { grid-template-columns:1fr; }
  .submit-intro { position:static; }
}
@media (max-width: 620px) {
  .route-hero { padding:70px 0 58px; }
  .route-hero h1 { font-size:44px; }
  .full-ranking article { grid-template-columns:30px 42px 1fr auto; padding:14px; gap:10px; }
  .full-ranking article > .type-badge { display:none; }
  .full-ranking p { max-width:180px; }
  .category-index { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .submit-form { padding:21px; }
  .prompt-family-nav { position:static; }
  .prompt-family-nav > span { width:100%; }
  .prompt-family-heading { align-items:start; flex-direction:column; gap:8px; }
  .prompt-family-heading p { text-align:left; }
  .prompt-family-section .tools-grid { grid-template-columns:1fr; }
}

/* TOOLSAURA refined navigation and collection layers */
.brand { letter-spacing:.105em; white-space:nowrap; }
.nav-search { width:auto; padding:0 9px; gap:6px; font-size:10px; font-weight:800; }
.nav-search .icon { width:16px; }
.sign-in-link { padding:9px 4px; color:var(--ink); font-size:11px; font-weight:850; white-space:nowrap; }
.sign-in-link:hover { color:var(--teal); }
.browse-panel { width:310px; grid-template-columns:1fr 1fr; }
.browse-panel a:first-child { grid-column:1 / -1; }

.member-strip { padding:25px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); }
.member-strip-inner { display:grid; grid-template-columns:48px 1.1fr 1fr auto; align-items:center; gap:20px; padding:22px 24px; border:1px solid color-mix(in srgb,var(--cobalt) 20%,var(--line)); border-radius:16px; background:
  radial-gradient(circle at 78% 0,rgba(49,95,223,.11),transparent 28%),
  linear-gradient(135deg,#eff9f5,#f3f6ff); }
html.dark .member-strip-inner { background:linear-gradient(135deg,var(--surface),var(--paper)); }
.member-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(135deg,var(--teal),var(--cobalt)); color:#fff; font-size:20px; }
.member-strip-inner > div:nth-child(2) > span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.14em; }
.member-strip h2 { margin:6px 0 0; font-size:17px; letter-spacing:-.025em; }
.member-strip ul { list-style:none; margin:0; padding:0; display:grid; gap:5px; color:var(--muted); font-size:9px; }
.member-strip li::first-letter { color:var(--teal); }
.member-strip .button { min-height:42px; white-space:nowrap; font-size:10px; }

.editor-picks-section { padding:72px 0; border-top:1px solid var(--line); background:var(--paper); }
.editor-picks-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.editor-pick { min-width:0; display:grid; grid-template-columns:32px 1fr; grid-template-rows:auto auto auto; gap:10px; padding:16px; border:1px solid var(--line); border-radius:13px; background:var(--surface); transition:.2s; }
.editor-pick:hover { transform:translateY(-3px); border-color:var(--teal); box-shadow:0 12px 30px rgba(20,56,52,.07); }
.editor-pick .pick-index { justify-self:end; color:var(--muted); font-size:8px; font-weight:900; }
.editor-pick .rank-logo { grid-row:1 / span 2; width:32px; height:32px; }
.editor-pick > span:nth-child(3) { grid-column:1 / -1; min-width:0; }
.editor-pick strong,.editor-pick small { display:block; }
.editor-pick strong { margin-bottom:5px; font-size:12px; }
.editor-pick small { display:-webkit-box; overflow:hidden; color:var(--muted); font-size:9px; line-height:1.5; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.editor-pick > b { grid-column:1 / -1; display:flex; align-items:center; gap:4px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); font-size:9px; }
.editor-pick > b .icon { width:10px; color:#f2aa21; }

@media (max-width: 1100px) {
  .main-nav { gap:16px; margin-left:20px; }
  .nav-search span,.sign-in-link { display:none; }
  .nav-search { width:36px; padding:0; }
  .editor-picks-grid { grid-template-columns:repeat(3,1fr); }
  .editor-pick:nth-child(n+4) { display:none; }
}
@media (max-width: 900px) {
  .member-strip-inner { grid-template-columns:46px 1fr auto; }
  .member-strip ul { display:none; }
}
@media (max-width: 720px) {
  .member-strip-inner { grid-template-columns:46px 1fr; }
  .member-strip .button { grid-column:1 / -1; }
  .editor-picks-grid { grid-template-columns:1fr; }
  .editor-pick:nth-child(n+4) { display:grid; }
  .browse-panel { grid-template-columns:1fr; }
  .browse-panel a:first-child { grid-column:auto; }
}

/* Premium hero and interaction audit refinements */
::selection { background:color-mix(in srgb,var(--teal) 24%,transparent); color:var(--ink); }
a,button,input,select,textarea { outline-offset:3px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--cobalt); }
.directory-hero { min-height:710px; isolation:isolate; background:
  radial-gradient(circle at 15% 14%,rgba(43,196,168,.18),transparent 28%),
  radial-gradient(circle at 88% 24%,rgba(49,95,223,.16),transparent 30%),
  linear-gradient(180deg,#f6fbf8 0%,#f8faf9 58%,#f2f7f5 100%); }
html.dark .directory-hero { background:
  radial-gradient(circle at 14% 10%,rgba(27,148,132,.2),transparent 30%),
  radial-gradient(circle at 88% 25%,rgba(49,95,223,.2),transparent 30%),
  linear-gradient(180deg,#0c1719,#111c1e); }
.directory-hero::before { opacity:.72; background-image:
  linear-gradient(color-mix(in srgb,var(--teal) 5%,transparent) 1px,transparent 1px),
  linear-gradient(90deg,color-mix(in srgb,var(--teal) 5%,transparent) 1px,transparent 1px);
  background-size:48px 48px; mask-image:linear-gradient(to bottom,black,transparent 88%); }
.directory-hero::after { content:""; position:absolute; z-index:0; width:780px; height:380px; left:50%; top:120px; transform:translateX(-50%); border-radius:50%; background:rgba(255,255,255,.72); filter:blur(70px); pointer-events:none; }
html.dark .directory-hero::after { background:rgba(10,28,29,.58); }
.directory-hero-inner { padding:78px 0 58px; }
.hero-label { position:relative; padding:8px 14px 8px 11px; border-color:color-mix(in srgb,var(--teal) 24%,var(--line)); box-shadow:0 8px 26px rgba(8,121,108,.06); }
.hero-label::after { content:""; position:absolute; inset:-1px; border-radius:inherit; background:linear-gradient(110deg,transparent 28%,rgba(255,255,255,.75) 50%,transparent 72%); transform:translateX(-120%); animation:heroShine 5s ease-in-out infinite; pointer-events:none; }
.directory-hero h1 { max-width:960px; margin:22px 0 17px; font-size:clamp(56px,6.8vw,88px); line-height:.94; letter-spacing:-.064em; }
.directory-hero h1 span { display:inline-block; color:transparent; background:linear-gradient(92deg,var(--teal) 4%,#0d9b88 46%,var(--cobalt) 100%); background-clip:text; -webkit-background-clip:text; }
.directory-hero-inner > p { max-width:700px; font-size:17px; }
.hero-search-frame { width:min(800px,100%); margin-top:29px; padding:8px; border:1px solid color-mix(in srgb,var(--teal) 20%,var(--line)); border-radius:20px; background:color-mix(in srgb,var(--surface) 92%,transparent); box-shadow:0 28px 70px rgba(13,82,73,.14),0 2px 0 rgba(255,255,255,.9) inset; backdrop-filter:blur(20px); }
.task-search { width:100%; min-height:64px; margin:0; padding:6px 7px 6px 16px; border:0; border-radius:14px; box-shadow:none; background:var(--surface); }
.search-glyph { width:37px; height:37px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:color-mix(in srgb,var(--teal) 9%,transparent); color:var(--teal); }
.search-glyph .icon { width:19px; }
.task-search button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:0 20px; border:0; border-radius:11px; background:linear-gradient(135deg,var(--teal),var(--teal-dark)); color:#fff; font-size:12px; font-weight:900; white-space:nowrap; box-shadow:0 10px 24px rgba(8,121,108,.22); transition:transform .2s,box-shadow .2s; }
.task-search button:hover { transform:translateY(-1px); box-shadow:0 13px 30px rgba(8,121,108,.28); }
.task-search button .icon { width:15px; }
.hero-match-preview { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; margin:7px 6px 0; padding:10px 12px; border-radius:11px; background:linear-gradient(90deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),color-mix(in srgb,var(--cobalt) 5%,var(--paper))); text-align:left; }
.match-spark { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; background:var(--surface); color:var(--teal); box-shadow:0 3px 12px rgba(20,56,52,.08); }
.hero-match-preview b,.hero-match-preview small { display:inline; font-size:9px; }
.hero-match-preview b { font-weight:900; }
.hero-match-preview small { margin-left:4px; color:var(--muted); }
.match-logos { display:flex; padding-left:8px; }
.match-logos i { width:24px; height:24px; display:grid; place-items:center; margin-left:-6px; border:2px solid var(--surface); border-radius:7px; color:white; font-size:7px; font-style:normal; font-weight:900; }
.search-examples { margin-top:15px; }
.search-examples button { border:1px solid transparent; transition:.2s; }
.search-examples button:hover { border-color:color-mix(in srgb,var(--teal) 30%,var(--line)); color:var(--teal); background:var(--surface); }
.directory-stats { gap:22px; margin-top:28px; padding:10px 18px; border:1px solid color-mix(in srgb,var(--line) 70%,transparent); border-radius:999px; background:color-mix(in srgb,var(--surface) 66%,transparent); backdrop-filter:blur(12px); }
.directory-stats span { display:flex; align-items:baseline; gap:5px; }
.directory-stats strong { font-size:13px; }
.directory-stats small { color:var(--muted); font-size:9px; }
.directory-stats > i { width:3px; height:3px; border-radius:50%; background:var(--teal); opacity:.55; }
.floating-insight { position:absolute; z-index:3; display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid color-mix(in srgb,var(--line) 78%,transparent); border-radius:13px; background:color-mix(in srgb,var(--surface) 86%,transparent); box-shadow:0 16px 40px rgba(20,56,52,.1); backdrop-filter:blur(16px); animation:floatInsight 5s ease-in-out infinite; }
.floating-insight > span { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; color:#fff; background:linear-gradient(135deg,var(--teal),var(--cobalt)); font-size:12px; }
.floating-insight b,.floating-insight small { display:block; white-space:nowrap; }
.floating-insight b { font-size:9px; }
.floating-insight small { margin-top:3px; color:var(--muted); font-size:7px; }
.insight-left { left:max(calc((100% - 1280px)/2),20px); top:250px; transform:rotate(-3deg); }
.insight-right { right:max(calc((100% - 1280px)/2),20px); top:330px; transform:rotate(3deg); animation-delay:-2.2s; }

.bookmark-button.saved { border-color:color-mix(in srgb,var(--teal) 38%,var(--line)); background:color-mix(in srgb,var(--teal) 9%,var(--surface)); color:var(--teal); }
.newsletter-success { grid-column:1 / -1; min-height:64px; display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:12px; padding:10px; border:1px solid rgba(255,255,255,.15); border-radius:12px; background:rgba(255,255,255,.07); }
.newsletter-success > span { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--teal); color:#fff; font-weight:900; }
.newsletter-success strong,.newsletter-success small { display:block; }
.newsletter-success strong { color:#fff; font-size:11px; }
.newsletter-success small { margin-top:4px; color:#a9c2bf; font-size:8px; }
.newsletter-success button { border:0; background:transparent; color:var(--amber); font-size:9px; font-weight:900; }
.tool-card,.playbook-card,.tool-shelf,.rank-card,.category-cloud a,.editor-pick { transition:transform .22s,border-color .22s,box-shadow .22s; }

@keyframes floatInsight {
  0%,100% { translate:0 0; }
  50% { translate:0 -9px; }
}
@keyframes heroShine {
  0%,55% { transform:translateX(-120%); }
  82%,100% { transform:translateX(120%); }
}
@media (prefers-reduced-motion:reduce) {
  .floating-insight,.hero-label::after { animation:none; }
  html { scroll-behavior:auto; }
}
@media (max-width:1120px) {
  .floating-insight { display:none; }
}
@media (max-width:720px) {
  .directory-hero { min-height:670px; }
  .directory-hero-inner { padding-top:62px; }
  .directory-hero h1 { font-size:50px; }
  .hero-search-frame { padding:6px; }
  .task-search { min-height:58px; padding-left:10px; }
  .task-search button { width:50px; padding:0; font-size:0; }
  .task-search button .icon { width:18px; }
  .hero-match-preview { grid-template-columns:28px 1fr; }
  .match-logos { display:none; }
  .directory-stats { border-radius:15px; gap:10px; flex-wrap:wrap; justify-content:center; }
  .directory-stats > i { display:none; }
  .newsletter-success { grid-template-columns:36px 1fr; }
  .newsletter-success button { grid-column:1 / -1; justify-self:start; padding-left:0; }
}
@media (max-width:460px) {
  .directory-hero h1 { font-size:42px; }
  .directory-hero-inner > p { font-size:14px; }
  .search-glyph { display:none; }
  .task-search input { font-size:13px; }
  .hero-match-preview b,.hero-match-preview small { display:block; margin:0; }
}

/* Company, contact and legal pages */
.footer-grid { grid-template-columns:1.35fr repeat(4,1fr); gap:34px; }
.footer-socials { flex-wrap:wrap; max-width:260px; gap:8px; }
.footer-socials .social-link { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--muted); transition:transform .22s,color .22s,background .22s,border-color .22s,box-shadow .22s; }
.footer-socials .social-link svg { width:16px; height:16px; }
.footer-socials .social-link:hover { transform:translateY(-3px) scale(1.16); color:var(--social-color); border-color:color-mix(in srgb,var(--social-color) 55%,var(--line)); background:color-mix(in srgb,var(--social-color) 10%,var(--surface)); box-shadow:0 9px 22px color-mix(in srgb,var(--social-color) 18%,transparent); }
.social-facebook { --social-color:#1877f2; }
.social-x { --social-color:#000000; }
.social-youtube { --social-color:#ff0000; }
.social-tiktok { --social-color:#111111; }
.social-pinterest { --social-color:#e60023; }
.social-instagram { --social-color:#e1306c; }
.social-medium { --social-color:#000000; }
.social-reddit { --social-color:#ff4500; }
html.dark .social-x:hover,html.dark .social-medium:hover { background:#fff!important; color:#000!important; }
.social-tiktok:hover { background:#111!important; color:#fff!important; border-color:#25f4ee!important; }
.social-tiktok:hover svg { filter:drop-shadow(-1px 0 #25f4ee) drop-shadow(1px 0 #fe2c55); }
.footer-legal { display:flex; gap:18px; }
.footer-legal a:hover { color:var(--teal); }

.content-hero { position:relative; overflow:hidden; padding:94px 0 82px; border-bottom:1px solid var(--line); background:
  radial-gradient(circle at 12% 15%,rgba(31,181,154,.16),transparent 28%),
  radial-gradient(circle at 88% 18%,rgba(49,95,223,.15),transparent 28%),
  linear-gradient(145deg,var(--surface),var(--paper)); }
.content-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(color-mix(in srgb,var(--teal) 12%,transparent) 1px,transparent 1px); background-size:25px 25px; mask-image:linear-gradient(90deg,black,transparent 65%); opacity:.5; }
.content-hero > .shell,.content-hero-grid { position:relative; z-index:2; }
.content-hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:70px; align-items:center; }
.content-hero h1 { max-width:830px; margin:17px 0 20px; font-size:clamp(50px,6.2vw,78px); line-height:.97; letter-spacing:-.06em; }
.content-hero p { max-width:670px; margin:0; color:var(--muted); font-size:16px; line-height:1.75; }
.content-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.content-button-secondary { border:1px solid var(--line); background:var(--surface); color:var(--ink); }
.about-manifesto { padding:30px; border:1px solid color-mix(in srgb,var(--teal) 22%,var(--line)); border-radius:18px; background:color-mix(in srgb,var(--surface) 88%,transparent); box-shadow:0 28px 70px rgba(20,56,52,.11); backdrop-filter:blur(14px); transform:rotate(1deg); }
.about-manifesto > span { color:var(--teal); font-size:9px; font-weight:900; letter-spacing:.15em; }
.about-manifesto blockquote { margin:24px 0; font-size:22px; line-height:1.5; letter-spacing:-.025em; font-weight:750; }
.about-manifesto > div { display:flex; flex-wrap:wrap; gap:7px; }
.about-manifesto b { padding:7px 9px; border-radius:7px; background:var(--soft); color:var(--muted); font-size:8px; }
.content-section { padding:85px 0; background:var(--paper); }
.story-grid-layout { display:grid; grid-template-columns:330px 1fr; gap:100px; align-items:start; }
.story-sticky { position:sticky; top:110px; }
.story-sticky h2 { margin:10px 0 0; font-size:38px; line-height:1.08; letter-spacing:-.045em; }
.rich-copy { max-width:720px; }
.rich-copy p { margin:0 0 20px; color:var(--muted); font-size:14px; line-height:1.9; }
.rich-copy .lead-copy { color:var(--ink); font-size:20px; line-height:1.65; letter-spacing:-.018em; }
.principles-section { padding:78px 0; border-top:1px solid var(--line); background:var(--surface); }
.principles-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.principles-grid article { position:relative; min-height:250px; padding:22px; border:1px solid var(--line); border-radius:15px; background:var(--paper); transition:.22s; }
.principles-grid article:hover { transform:translateY(-4px); border-color:var(--teal); box-shadow:0 14px 35px rgba(20,56,52,.08); }
.principles-grid article > span { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 14%,var(--surface)),color-mix(in srgb,var(--cobalt) 10%,var(--surface))); color:var(--teal); font-size:18px; }
.principles-grid article > small { position:absolute; right:19px; top:20px; color:var(--muted); font-size:8px; font-weight:900; }
.principles-grid h3 { margin:34px 0 10px; font-size:17px; }
.principles-grid p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.review-process-section { padding:85px 0; background:linear-gradient(135deg,#063d38,#183f73); color:#fff; }
.review-process-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:85px; align-items:start; }
.review-process-grid h2 { margin:12px 0; font-size:42px; line-height:1; letter-spacing:-.05em; }
.review-process-grid > div p { color:#bcd6d2; font-size:13px; line-height:1.8; }
.review-process-grid ol { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.review-process-grid li { display:grid; grid-template-columns:35px 1fr; gap:11px; padding:17px; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.05); }
.review-process-grid li > b { color:#7ee1ce; font-size:9px; }
.review-process-grid strong,.review-process-grid small { display:block; }
.review-process-grid strong { margin-bottom:6px; font-size:11px; }
.review-process-grid small { color:#bcd6d2; font-size:9px; line-height:1.6; }
.content-cta { padding:35px 0; background:var(--surface); border-top:1px solid var(--line); }
.content-cta .shell { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.content-cta span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.15em; }
.content-cta h2 { margin:7px 0 0; font-size:26px; letter-spacing:-.035em; }

.contact-content-hero { padding-bottom:70px; text-align:center; }
.contact-content-hero .shell { display:flex; flex-direction:column; align-items:center; }
.content-breadcrumb { display:flex; align-items:center; gap:9px; margin-bottom:24px; color:var(--muted); font-size:9px; }
.content-breadcrumb a:hover { color:var(--teal); }
.content-breadcrumb b { color:var(--ink); }
.contact-content-hero h1 { margin-bottom:15px; }
.contact-section { padding:75px 0 90px; background:var(--paper); }
.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:65px; align-items:start; }
.contact-sidebar { position:sticky; top:100px; }
.contact-sidebar h2 { margin:10px 0 10px; font-size:34px; letter-spacing:-.045em; }
.contact-sidebar > div:first-child > p { max-width:430px; color:var(--muted); font-size:12px; line-height:1.75; }
.contact-options { display:grid; gap:9px; margin-top:28px; }
.contact-options article { display:grid; grid-template-columns:39px 1fr; gap:12px; padding:13px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.contact-options article > span { width:37px; height:37px; display:grid; place-items:center; border-radius:9px; background:var(--soft); color:var(--teal); }
.contact-options h3 { margin:1px 0 4px; font-size:11px; }
.contact-options p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.response-note { margin-top:14px; padding:14px; border-left:3px solid var(--teal); border-radius:0 9px 9px 0; background:color-mix(in srgb,var(--teal) 6%,var(--surface)); }
.response-note b,.response-note span { display:block; }
.response-note b { font-size:9px; }
.response-note span { margin-top:4px; color:var(--muted); font-size:8px; line-height:1.5; }
.contact-form,.contact-success { padding:30px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:0 22px 60px rgba(20,56,52,.09); }
.contact-form { display:grid; gap:18px; }
.contact-form-head { padding-bottom:20px; border-bottom:1px solid var(--line); }
.contact-form-head h2 { margin:8px 0 6px; font-size:27px; letter-spacing:-.04em; }
.contact-form-head p { margin:0; color:var(--muted); font-size:10px; }
.contact-form label { display:grid; gap:7px; color:var(--ink); font-size:10px; font-weight:850; }
.contact-form input,.contact-form select,.contact-form textarea { width:100%; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); padding:13px 14px; outline:0; font:inherit; font-size:11px; font-weight:500; }
.contact-form textarea { resize:vertical; line-height:1.65; }
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 12%,transparent); }
.contact-form label > small { justify-self:end; color:var(--muted); font-size:8px; font-weight:600; }
.contact-consent { grid-template-columns:18px 1fr!important; }
.contact-submit { min-height:51px; border:0; }
.contact-form-note { margin:0; color:var(--muted); font-size:8px; text-align:center; }
.contact-success { min-height:510px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.contact-success > span { width:62px; height:62px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--teal) 12%,transparent); color:var(--teal); font-size:25px; }
.contact-success > .mini-kicker { margin:20px 0 0; color:var(--teal); }
.contact-success h2 { margin:8px 0; font-size:35px; letter-spacing:-.045em; }
.contact-success > p:not(.mini-kicker) { max-width:480px; margin:0 0 24px; color:var(--muted); font-size:11px; line-height:1.7; }
.contact-success button { border:0; }
.contact-faq-section { padding:75px 0; border-top:1px solid var(--line); background:var(--surface); }
.contact-faq-grid { display:grid; grid-template-columns:300px 1fr; gap:80px; }
.contact-faq-grid h2 { margin:9px 0 0; font-size:31px; letter-spacing:-.04em; }
.contact-faq-grid .faq-list a { color:var(--teal); font-weight:800; }

.legal-hero { padding:78px 0 60px; border-bottom:1px solid var(--line); background:
  radial-gradient(circle at 85% 10%,rgba(49,95,223,.12),transparent 28%),
  linear-gradient(145deg,var(--surface),var(--paper)); }
.terms-legal-hero { background:
  radial-gradient(circle at 85% 10%,rgba(8,121,108,.14),transparent 28%),
  linear-gradient(145deg,var(--surface),var(--paper)); }
.legal-hero h1 { margin:15px 0 12px; font-size:clamp(48px,6vw,72px); letter-spacing:-.055em; }
.legal-hero > .shell > p { margin:0; color:var(--muted); font-size:10px; }
.legal-section { padding:70px 0 100px; background:var(--paper); }
.legal-layout { display:grid; grid-template-columns:230px 1fr; gap:70px; align-items:start; }
.legal-layout > aside { position:sticky; top:100px; display:grid; gap:4px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.legal-layout > aside strong { margin:4px 8px 9px; font-size:9px; text-transform:uppercase; letter-spacing:.12em; }
.legal-layout > aside a { padding:8px; border-radius:7px; color:var(--muted); font-size:9px; }
.legal-layout > aside a:hover { background:var(--soft); color:var(--teal); }
.legal-copy { max-width:780px; }
.legal-copy section { scroll-margin-top:100px; padding:0 0 38px; margin:0 0 38px; border-bottom:1px solid var(--line); }
.legal-copy section:last-child { border-bottom:0; }
.legal-copy section > span { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:7px; background:color-mix(in srgb,var(--teal) 9%,transparent); color:var(--teal); font-size:8px; font-weight:900; }
.legal-copy h2 { margin:13px 0 16px; font-size:28px; letter-spacing:-.04em; }
.legal-copy h3 { margin:24px 0 8px; font-size:13px; }
.legal-copy p,.legal-copy li { color:var(--muted); font-size:12px; line-height:1.85; }
.legal-copy p { margin:0 0 13px; }
.legal-copy ul { margin:6px 0 0; padding-left:19px; }
.legal-copy a { color:var(--teal); font-weight:800; text-decoration:underline; text-underline-offset:3px; }

@media (max-width:1050px) {
  .footer-grid { grid-template-columns:1.3fr repeat(3,1fr); }
  .footer-grid .footer-column:last-child { display:none; }
  .principles-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:850px) {
  .content-hero-grid,.contact-layout,.review-process-grid { grid-template-columns:1fr; }
  .about-manifesto { transform:none; }
  .story-grid-layout { grid-template-columns:1fr; gap:35px; }
  .story-sticky,.contact-sidebar { position:static; }
  .legal-layout { grid-template-columns:1fr; gap:35px; }
  .legal-layout > aside { position:static; grid-template-columns:1fr 1fr; }
  .legal-layout > aside strong { grid-column:1 / -1; }
}
@media (max-width:640px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1 / -1; }
  .content-hero { padding:70px 0 58px; }
  .content-hero h1 { font-size:48px; }
  .principles-grid,.review-process-grid ol { grid-template-columns:1fr; }
  .content-cta .shell { align-items:flex-start; flex-direction:column; }
  .contact-section { padding:55px 0 70px; }
  .contact-form,.contact-success { padding:21px; }
  .contact-faq-grid { grid-template-columns:1fr; gap:28px; }
  .legal-layout > aside { grid-template-columns:1fr; }
  .legal-layout > aside strong { grid-column:auto; }
  .footer-bottom,.footer-legal { align-items:flex-start; flex-direction:column; }
}
@media (max-width:430px) {
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:first-child { grid-column:auto; }
  .form-row { grid-template-columns:1fr; }
}

/* Reference-led navigation and ambient 3D depth */
.site-header {
  height:74px;
  border-bottom:1px solid color-mix(in srgb,var(--teal) 12%,var(--line));
  background:color-mix(in srgb,var(--surface) 91%,transparent);
  box-shadow:0 8px 28px rgba(19,61,56,.035);
  backdrop-filter:blur(22px) saturate(1.12);
}
.header-shell {
  width:min(1760px,calc(100% - 28px));
  height:100%;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
}
.site-header .brand {
  justify-self:start;
  gap:9px;
  font-size:24px;
  letter-spacing:-.055em;
  text-transform:none;
}
.site-header .main-nav {
  position:static;
  justify-self:end;
  margin:0;
  gap:18px;
  transform:none;
}
.site-header .main-nav > a,
.site-header .browse-menu > summary {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  letter-spacing:.115em;
  text-transform:uppercase;
  white-space:nowrap;
  padding:0 5px;
  border-radius:9px;
  transition:
    color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    transform .22s cubic-bezier(.2,.8,.2,1);
}
.site-header .main-nav > a { position:relative; }
.site-header .main-nav > a:hover {
  color:var(--teal);
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--teal) 12%,transparent),
    color-mix(in srgb,var(--cobalt) 10%,transparent)
  );
  box-shadow:0 9px 24px color-mix(in srgb,var(--cobalt) 13%,transparent);
  transform:translateY(-2px) scale(1.08);
}
.site-header .main-nav > a:hover svg {
  color:var(--cobalt);
  transform:scale(1.12) rotate(-4deg);
}
.site-header .main-nav > a::after {
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:5px;
  height:1px;
  background:var(--teal);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .22s ease;
}
.site-header .main-nav > a:hover::after,
.site-header .main-nav > a.active::after { transform:scaleX(1); }
.site-header .main-nav > a svg,
.site-header .browse-menu summary > .icon {
  width:15px;
  height:15px;
  flex:0 0 auto;
  color:color-mix(in srgb,var(--teal) 78%,var(--muted));
  transition:color .22s ease,transform .22s ease;
}
.site-header .browse-panel {
  top:49px;
  left:50%;
  transform:translateX(-50%);
  border-color:color-mix(in srgb,var(--teal) 15%,var(--line));
  box-shadow:0 24px 65px rgba(11,72,65,.15);
}
.site-header .nav-actions {
  justify-self:end;
  gap:6px;
}
.site-header .nav-search,
.site-header .sign-in-link {
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.site-header .nav-search:hover,
.site-header .sign-in-link:hover { color:var(--teal); }
.site-header .nav-search .icon { width:17px; height:17px; }
.site-header .sign-in-link { color:var(--teal); }
.site-header .sign-in-link > span { font-size:15px; }
.site-header .button-primary {
  min-height:40px;
  padding:0 17px;
  border:1px solid color-mix(in srgb,var(--teal) 78%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  color:var(--teal);
  box-shadow:none;
  font-size:10px;
  font-weight:750;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.site-header .button-primary:hover {
  transform:translateY(-2px);
  background:var(--teal);
  color:white;
  box-shadow:0 10px 25px rgba(8,121,108,.18);
}
.site-header .button-primary > span { font-size:15px; line-height:1; }
.site-header .theme-button {
  width:36px;
  height:36px;
  border-color:transparent;
  background:transparent;
  color:var(--muted);
}
.site-header .theme-button:hover {
  border-color:var(--line);
  background:var(--soft);
  color:var(--teal);
}

.site-3d-world {
  position:fixed;
  z-index:6;
  inset:74px 0 0;
  overflow:hidden;
  pointer-events:none;
  perspective:1100px;
  transform-style:preserve-3d;
}
.depth-grid {
  position:absolute;
  left:50%;
  bottom:-27vh;
  width:min(1180px,92vw);
  height:55vh;
  opacity:.17;
  background-image:
    linear-gradient(color-mix(in srgb,var(--teal) 22%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--cobalt) 18%,transparent) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to top,black,transparent 78%);
  transform:translateX(-50%) rotateX(72deg) translateZ(-150px);
  transform-origin:center bottom;
  animation:depthGridDrift 16s linear infinite;
}
.depth-shape {
  position:absolute;
  display:block;
  transform-style:preserve-3d;
  opacity:.2;
  filter:drop-shadow(0 25px 30px rgba(8,121,108,.16));
}
.depth-cube {
  width:104px;
  height:104px;
  left:-38px;
  top:15%;
  border:1px solid color-mix(in srgb,var(--teal) 68%,transparent);
  background:linear-gradient(145deg,color-mix(in srgb,var(--teal) 9%,transparent),transparent);
  animation:depthCube 18s ease-in-out infinite;
}
.depth-cube::before,
.depth-cube::after,
.depth-cube i {
  content:"";
  position:absolute;
  inset:0;
  border:1px solid color-mix(in srgb,var(--teal) 52%,transparent);
}
.depth-cube::before { transform:translateZ(-36px) translate(25px,25px); }
.depth-cube::after { clip-path:polygon(0 0,100% 0,75% 25%,25% 25%,25% 100%,0 100%); opacity:.42; }
.depth-cube i:nth-child(1) { transform:rotateY(90deg) translateZ(52px); }
.depth-cube i:nth-child(2) { transform:rotateX(90deg) translateZ(52px); }
.depth-cube i:nth-child(3) { border-color:color-mix(in srgb,var(--cobalt) 52%,transparent); transform:translateZ(34px) scale(.52); }
.depth-ring {
  width:118px;
  height:118px;
  right:-35px;
  top:33%;
  border:13px solid color-mix(in srgb,var(--cobalt) 38%,transparent);
  border-radius:50%;
  box-shadow:
    0 0 0 1px color-mix(in srgb,var(--cobalt) 68%,transparent),
    inset 0 0 22px color-mix(in srgb,var(--teal) 20%,transparent),
    0 25px 45px rgba(49,95,223,.12);
  animation:depthRing 14s ease-in-out infinite;
}
.depth-ring::after {
  content:"";
  position:absolute;
  inset:18px;
  border:1px dashed color-mix(in srgb,var(--teal) 60%,transparent);
  border-radius:50%;
}
.depth-diamond {
  width:76px;
  height:76px;
  left:7%;
  bottom:8%;
  border:1px solid color-mix(in srgb,var(--cobalt) 56%,transparent);
  background:linear-gradient(135deg,color-mix(in srgb,var(--cobalt) 14%,transparent),color-mix(in srgb,var(--teal) 8%,transparent));
  animation:depthDiamond 13s ease-in-out infinite;
}
.depth-diamond::before,
.depth-diamond::after {
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid color-mix(in srgb,var(--teal) 52%,transparent);
}
.depth-diamond::after { inset:25px; background:color-mix(in srgb,var(--teal) 16%,transparent); }
.depth-diamond i {
  position:absolute;
  inset:-14px;
  border:1px dashed color-mix(in srgb,var(--cobalt) 35%,transparent);
}
.depth-particle {
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--teal);
  opacity:.24;
  box-shadow:0 0 20px 7px color-mix(in srgb,var(--teal) 24%,transparent);
  animation:depthParticle 9s ease-in-out infinite;
}
.particle-one { left:13%; top:58%; }
.particle-two { right:16%; top:15%; animation-delay:-3s; background:var(--cobalt); }
.particle-three { right:9%; bottom:13%; animation-delay:-6s; }

.tool-card,
.category-card,
.rank-card,
.playbook-card,
.editor-pick,
.tool-shelf,
.principles-grid article,
.contact-form,
.about-manifesto {
  transform-style:preserve-3d;
  backface-visibility:hidden;
  will-change:transform;
}
.tool-card:hover,
.category-card:hover,
.playbook-card:hover,
.editor-pick:hover,
.principles-grid article:hover {
  transform:perspective(900px) translateY(-6px) rotateX(2deg) rotateY(-1.2deg);
  box-shadow:0 22px 48px rgba(14,74,67,.12);
}

@keyframes depthGridDrift {
  0% { background-position:0 0,0 0; }
  100% { background-position:0 52px,52px 0; }
}
@keyframes depthCube {
  0%,100% { transform:rotateX(55deg) rotateY(-24deg) rotateZ(8deg) translate3d(0,0,0); }
  50% { transform:rotateX(20deg) rotateY(42deg) rotateZ(-6deg) translate3d(22px,-35px,70px); }
}
@keyframes depthRing {
  0%,100% { transform:rotateX(64deg) rotateY(13deg) rotateZ(0) translate3d(0,0,0); }
  50% { transform:rotateX(32deg) rotateY(-34deg) rotateZ(180deg) translate3d(-30px,-42px,85px); }
}
@keyframes depthDiamond {
  0%,100% { transform:rotateX(61deg) rotateY(5deg) rotateZ(45deg) translate3d(0,0,0); }
  50% { transform:rotateX(22deg) rotateY(49deg) rotateZ(220deg) translate3d(34px,-32px,65px); }
}
@keyframes depthParticle {
  0%,100% { transform:translate3d(0,0,0) scale(.8); opacity:.12; }
  50% { transform:translate3d(18px,-45px,90px) scale(1.45); opacity:.42; }
}

@media (max-width:1280px) {
  .header-shell { grid-template-columns:auto 1fr auto; }
  .site-header .main-nav { gap:10px; }
  .site-header .main-nav > a,
  .site-header .browse-menu > summary { font-size:9px; letter-spacing:.055em; }
}
@media (max-width:1100px) {
  .header-shell { gap:12px; }
  .site-header .main-nav { gap:9px; }
  .site-header .main-nav > a svg { display:none; }
  .site-header .theme-button { display:none; }
  .site-header .nav-search,
  .site-header .sign-in-link { padding-inline:5px; }
  .site-header .nav-search span { display:inline; }
  .site-header .sign-in-link { display:inline-flex; }
  .site-header .button-primary { padding-inline:12px; }
}
@media (min-width:821px) and (max-width:920px) {
  .site-header .main-nav {
    display:flex;
    flex-direction:row;
    align-items:center;
    padding:0;
    border-bottom:0;
    background:transparent;
  }
  .site-header .main-nav > a:nth-of-type(2),
  .site-header .nav-search span { display:inline; }
  .site-header .sign-in-link,
  .site-header .nav-actions .button { display:inline-flex; }
  .site-header .menu-button { display:none; }
}
@media (max-width:820px) {
  .site-header { height:68px; }
  .header-shell { width:min(100% - 24px,1240px); display:flex; }
  .site-header .brand { font-size:20px; }
  .site-header .main-nav {
    position:absolute;
    top:68px;
    left:0;
    right:0;
    margin:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:14px;
    border-bottom:1px solid var(--line);
    background:color-mix(in srgb,var(--surface) 96%,transparent);
    box-shadow:0 20px 40px rgba(12,54,49,.1);
    backdrop-filter:blur(22px);
  }
  .site-header .main-nav.is-open { display:flex; }
  .site-header .main-nav > a,
  .site-header .browse-menu > summary {
    width:100%;
    min-height:44px;
    padding:0 10px;
    border-radius:8px;
    font-size:10px;
  }
  .site-header .main-nav > a:nth-of-type(2) { display:inline-flex; }
  .site-header .main-nav > a:hover,
  .site-header .browse-menu > summary:hover { background:var(--soft); }
  .site-header .main-nav > a:hover {
    color:var(--teal);
    transform:translateX(3px) scale(1.01);
    box-shadow:none;
  }
  .site-header .main-nav > a::after { display:none; }
  .site-header .browse-panel {
    position:static;
    width:100%;
    transform:none;
    margin-top:4px;
  }
  .site-header .nav-actions { margin-left:auto; }
  .site-header .nav-search,
  .site-header .sign-in-link { display:none; }
  .site-header .menu-button { display:grid; }
  .site-3d-world { inset:68px 0 0; }
}
@media (max-width:560px) {
  .site-header .button-primary { display:none; }
  .depth-cube { left:-65px; }
  .depth-ring { right:-68px; }
  .depth-diamond { opacity:.11; }
}
@media (prefers-reduced-motion:reduce) {
  .depth-grid,
  .depth-shape,
  .depth-particle { animation:none!important; }
  .tool-card,
  .category-card,
  .rank-card,
  .playbook-card,
  .editor-pick,
  .tool-shelf,
  .principles-grid article,
  .contact-form,
  .about-manifesto { will-change:auto; }
}

/* TOOLSAURA image lockup */
.brand {
  display:inline-flex;
  align-items:center;
  color:var(--ink);
  line-height:0;
  transition:transform .22s ease,filter .22s ease;
}
.brand:hover {
  transform:translateY(-1px) scale(1.015);
  filter:drop-shadow(0 8px 15px rgba(49,95,223,.16));
}
.brand-picture,
.brand-logo {
  display:block;
}
.brand-logo {
  width:auto;
  height:46px;
  object-fit:contain;
}
.site-footer .brand-logo {
  height:50px;
}
.site-footer .brand-mark-logo {
  height:52px;
}
.admin-page .brand-logo {
  height:70px;
}

@media (max-width:920px) {
  .site-header .brand-logo { height:42px; }
}
@media (max-width:430px) {
  .site-header .brand-logo { height:39px; }
  .site-footer .brand-logo { height:46px; }
  .site-footer .brand-mark-logo { height:46px; }
}

/* Footer layout: exact social rows and two-column category links */
.footer-grid {
  grid-template-columns:1.3fr .78fr .9fr .78fr 1.65fr;
  gap:30px;
}
.footer-socials {
  width:max-content;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(4,32px);
  gap:8px;
}
.footer-popular {
  display:grid;
  grid-template-columns:repeat(2,minmax(100px,1fr));
  column-gap:10px;
  row-gap:10px;
}
.footer-popular > strong { grid-column:1 / -1; }

@media (max-width:1050px) {
  .footer-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .footer-grid > div:first-child { grid-column:1 / -1; }
  .footer-grid .footer-popular {
    display:grid;
    grid-column:1 / -1;
  }
}
@media (max-width:640px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid .footer-popular { grid-column:1 / -1; }
}
@media (max-width:430px) {
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:first-child,
  .footer-grid .footer-popular { grid-column:auto; }
}

/* Enhanced dimensional scene */
.site-3d-world::before,
.site-3d-world::after {
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(75px);
  opacity:.09;
  transform:translateZ(-220px);
}
.site-3d-world::before {
  width:440px;
  height:440px;
  left:-180px;
  top:28%;
  background:var(--teal);
}
.site-3d-world::after {
  width:520px;
  height:520px;
  right:-230px;
  top:3%;
  background:var(--cobalt);
}
.depth-aurora {
  position:absolute;
  width:48vw;
  height:190px;
  border-radius:50%;
  opacity:.07;
  filter:blur(58px);
  mix-blend-mode:multiply;
  animation:depthAurora 16s ease-in-out infinite;
}
html.dark .depth-aurora { opacity:.12; mix-blend-mode:screen; }
.depth-aurora-one { left:9%; top:18%; background:linear-gradient(90deg,var(--teal),transparent); transform:rotate(-14deg) translateZ(-120px); }
.depth-aurora-two { right:2%; bottom:12%; background:linear-gradient(90deg,transparent,var(--cobalt)); transform:rotate(12deg) translateZ(-170px); animation-delay:-7s; }
.depth-prism {
  width:86px;
  height:104px;
  right:8%;
  bottom:9%;
  opacity:.16;
  clip-path:polygon(50% 0,100% 30%,84% 100%,16% 100%,0 30%);
  border:1px solid color-mix(in srgb,var(--teal) 60%,transparent);
  background:linear-gradient(145deg,color-mix(in srgb,var(--cobalt) 14%,transparent),color-mix(in srgb,var(--teal) 10%,transparent));
  animation:depthPrism 17s ease-in-out infinite;
}
.depth-prism::before,
.depth-prism::after,
.depth-prism i {
  content:"";
  position:absolute;
  inset:12px;
  clip-path:inherit;
  border:1px solid color-mix(in srgb,var(--cobalt) 46%,transparent);
}
.depth-prism::after { inset:27px; background:color-mix(in srgb,var(--teal) 10%,transparent); }
.depth-prism i:nth-child(1) { transform:translateZ(22px); }
.depth-prism i:nth-child(2) { transform:translateZ(-22px); }
.depth-prism i:nth-child(3) { inset:-12px; border-style:dashed; }
.depth-orbit {
  position:absolute;
  right:19%;
  top:54%;
  width:150px;
  height:54px;
  border:1px solid color-mix(in srgb,var(--cobalt) 32%,transparent);
  border-radius:50%;
  opacity:.16;
  transform-style:preserve-3d;
  animation:depthOrbit 19s linear infinite;
}
.depth-orbit::before,
.depth-orbit::after {
  content:"";
  position:absolute;
  inset:-18px 12px;
  border:1px dashed color-mix(in srgb,var(--teal) 34%,transparent);
  border-radius:50%;
  transform:rotateX(58deg);
}
.depth-orbit::after { inset:10px -20px; transform:rotateY(64deg); }
.depth-orbit i {
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 18px color-mix(in srgb,var(--teal) 65%,transparent);
}
.depth-orbit i:nth-child(1) { left:4px; top:21px; }
.depth-orbit i:nth-child(2) { right:13px; top:-4px; background:var(--cobalt); }
.depth-orbit i:nth-child(3) { right:48px; bottom:-7px; }
.particle-four { left:42%; top:12%; width:5px; height:5px; animation-delay:-2s; }
.particle-five { left:66%; bottom:9%; width:6px; height:6px; animation-delay:-5s; background:var(--cobalt); }
.tool-card,
.category-card,
.rank-card,
.playbook-card,
.editor-pick,
.tool-shelf,
.category-cloud a,
.prompt-platform-card,
.playbook-index-card,
.playbook-detail {
  transform-style:preserve-3d;
  transform-origin:center 70%;
}
.tool-card:hover .tool-logo,
.playbook-card:hover .playbook-icon,
.category-cloud a:hover > span,
.prompt-platform-card:hover .platform-mark {
  transform:translateZ(28px) scale(1.04);
  filter:drop-shadow(0 12px 14px rgba(8,121,108,.2));
}
.tool-logo,
.playbook-icon,
.category-cloud a > span,
.platform-mark { transition:transform .28s ease,filter .28s ease; }

@keyframes depthPrism {
  0%,100% { transform:rotateX(58deg) rotateY(-24deg) rotateZ(-8deg) translate3d(0,0,0); }
  50% { transform:rotateX(18deg) rotateY(46deg) rotateZ(16deg) translate3d(-28px,-42px,85px); }
}
@keyframes depthOrbit {
  from { transform:rotateX(66deg) rotateZ(0) translateZ(-30px); }
  to { transform:rotateX(66deg) rotateZ(360deg) translateZ(80px); }
}
@keyframes depthAurora {
  0%,100% { translate:0 0; scale:.92; }
  50% { translate:40px -28px; scale:1.08; }
}

/* Homepage category index */
.home-category-showcase {
  position:relative;
  z-index:7;
  padding:58px 0;
  background:
    radial-gradient(circle at 92% 8%,color-mix(in srgb,var(--cobalt) 8%,transparent),transparent 28%),
    var(--surface);
}
.home-category-showcase .section-title-line { margin-bottom:22px; }
.home-category-showcase .category-cloud a {
  min-height:68px;
  box-shadow:0 8px 22px rgba(19,61,56,.035);
}

/* Prompt library page */
.prompt-page-hero {
  position:relative;
  overflow:hidden;
  padding:94px 0 88px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 82% 24%,rgba(155,79,189,.18),transparent 29%),
    radial-gradient(circle at 14% 10%,rgba(8,121,108,.14),transparent 28%),
    linear-gradient(145deg,var(--surface),var(--paper));
}
.prompt-page-hero::after {
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(color-mix(in srgb,#9b4fbd 14%,transparent) 1px,transparent 1px);
  background-size:25px 25px;
  mask-image:linear-gradient(90deg,transparent,black);
  opacity:.55;
}
.prompt-hero-grid { position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:70px; align-items:center; }
.prompt-page-hero h1 { margin:18px 0 20px; font-size:clamp(54px,6.4vw,82px); line-height:.94; letter-spacing:-.065em; }
.prompt-page-hero h1 em { color:#9b4fbd; font-style:normal; }
.prompt-page-hero p { max-width:650px; margin:0; color:var(--muted); font-size:16px; line-height:1.75; }
.prompt-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.prompt-hero-object { position:relative; width:min(420px,38vw); aspect-ratio:1; justify-self:center; perspective:900px; transform-style:preserve-3d; animation:promptObjectFloat 8s ease-in-out infinite; }
.prompt-core { position:absolute; z-index:3; inset:50% auto auto 50%; width:94px; height:94px; display:grid; place-items:center; transform:translate(-50%,-50%) translateZ(50px); border:1px solid rgba(255,255,255,.6); border-radius:28px; background:linear-gradient(145deg,#9b4fbd,#315fdf); color:white; font-size:38px; box-shadow:0 32px 65px rgba(84,55,145,.25),inset 0 1px rgba(255,255,255,.45); }
.prompt-orbit { position:absolute; inset:16%; border:1px solid color-mix(in srgb,#9b4fbd 42%,var(--line)); border-radius:50%; transform:rotateX(66deg) rotateZ(14deg); }
.prompt-orbit.orbit-two { inset:25% 8%; border-style:dashed; transform:rotateY(66deg) rotateZ(-18deg); }
.prompt-node { position:absolute; z-index:4; width:44px; height:44px; display:grid; place-items:center; border:3px solid var(--surface); border-radius:13px; color:white; font-size:11px; font-style:normal; font-weight:900; box-shadow:0 15px 30px rgba(20,40,60,.18); }
.prompt-node-1 { left:8%; top:18%; transform:translateZ(28px) rotate(-7deg); }
.prompt-node-2 { right:11%; top:10%; transform:translateZ(62px) rotate(8deg); }
.prompt-node-3 { right:2%; top:49%; transform:translateZ(20px) rotate(-5deg); }
.prompt-node-4 { right:20%; bottom:4%; transform:translateZ(76px) rotate(5deg); }
.prompt-node-5 { left:16%; bottom:7%; transform:translateZ(42px) rotate(-8deg); }
.prompt-node-6 { left:0; top:51%; transform:translateZ(70px) rotate(7deg); }
.prompt-platform-section,.prompt-library-section { position:relative; z-index:7; padding:76px 0; background:var(--paper); }
.prompt-platform-section { background:var(--surface); }
.prompt-platform-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.prompt-platform-card { position:relative; min-height:245px; padding:23px; overflow:hidden; border:1px solid var(--line); border-radius:17px; background:var(--paper); transition:.25s; }
.prompt-platform-card::after { content:""; position:absolute; width:130px; height:130px; right:-60px; top:-55px; border-radius:50%; background:color-mix(in srgb,#9b4fbd 11%,transparent); }
.prompt-platform-card:hover { transform:perspective(900px) translateY(-7px) rotateX(2deg); border-color:#9b4fbd; box-shadow:0 24px 55px rgba(75,50,105,.13); }
.platform-index { position:absolute; right:18px; top:18px; color:var(--muted); font-size:9px; font-weight:900; }
.platform-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:13px; color:white; font-size:12px; font-weight:950; }
.platform-mark.small { width:42px; height:42px; flex:0 0 42px; }
.prompt-platform-card h2 { margin:22px 0 10px; font-size:20px; letter-spacing:-.035em; }
.prompt-platform-card p { min-height:62px; margin:0 0 18px; color:var(--muted); font-size:11px; line-height:1.65; }
.prompt-platform-card b { color:#8b47aa; font-size:10px; }
.prompt-library-section .prompt-family-heading > div { display:flex; align-items:center; gap:13px; }
.prompt-library-section .prompt-family-heading h2 { margin:4px 0 0; }

/* Playbooks page */
.playbooks-page-hero {
  position:relative;
  overflow:hidden;
  padding:94px 0 88px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%,rgba(224,154,19,.18),transparent 27%),
    radial-gradient(circle at 8% 12%,rgba(8,121,108,.15),transparent 28%),
    linear-gradient(145deg,var(--surface),var(--paper));
}
.playbooks-page-hero::after { content:""; position:absolute; width:520px; height:520px; right:-170px; bottom:-340px; border:1px solid color-mix(in srgb,var(--teal) 22%,transparent); border-radius:50%; box-shadow:0 0 0 65px color-mix(in srgb,var(--teal) 3%,transparent),0 0 0 130px color-mix(in srgb,var(--cobalt) 3%,transparent); }
.playbooks-page-hero .shell { position:relative; z-index:2; }
.playbooks-page-hero h1 { max-width:900px; margin:18px 0 20px; font-size:clamp(54px,6.4vw,82px); line-height:.94; letter-spacing:-.065em; }
.playbooks-page-hero h1 em { color:var(--teal); font-style:normal; }
.playbooks-page-hero p { max-width:680px; margin:0; color:var(--muted); font-size:16px; line-height:1.75; }
.playbook-proof { width:max-content; display:flex; align-items:center; gap:22px; margin-top:32px; padding:14px 18px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb,var(--surface) 86%,transparent); box-shadow:0 18px 40px rgba(17,60,55,.08); backdrop-filter:blur(15px); }
.playbook-proof span { display:flex; align-items:baseline; gap:7px; }
.playbook-proof b { font-size:19px; }
.playbook-proof small { color:var(--muted); font-size:9px; }
.playbook-proof i { width:3px; height:3px; border-radius:50%; background:var(--teal); }
.playbook-index-section,.playbook-detail-section { position:relative; z-index:7; padding:76px 0; background:var(--paper); }
.playbook-index-section { background:var(--surface); }
.playbook-index-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.playbook-index-card { position:relative; min-height:278px; padding:24px; overflow:hidden; border:1px solid var(--line); border-radius:17px; background:var(--paper); transition:.25s; }
.playbook-index-card::after { content:""; position:absolute; width:150px; height:150px; right:-70px; top:-70px; border-radius:50%; background:color-mix(in srgb,var(--teal) 8%,transparent); }
.playbook-index-card:hover { transform:perspective(900px) translateY(-7px) rotateX(2deg); border-color:var(--teal); box-shadow:0 24px 55px rgba(14,74,67,.12); }
.playbook-index-number { position:absolute; right:20px; top:18px; color:var(--muted); font-size:9px; font-weight:900; }
.playbook-index-card h2 { margin:20px 0 10px; font-size:20px; line-height:1.15; letter-spacing:-.035em; }
.playbook-index-card p { min-height:70px; margin:0 0 15px; color:var(--muted); font-size:11px; line-height:1.65; }
.playbook-index-meta { display:block; color:var(--muted); font-size:9px; }
.playbook-index-card > b { display:block; margin-top:15px; color:var(--teal); font-size:10px; }
.playbook-detail-list { display:grid; gap:42px; }
.playbook-detail { scroll-margin-top:100px; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:0 26px 70px rgba(19,61,56,.08); }
.playbook-detail > header { display:grid; grid-template-columns:58px minmax(0,1fr) 310px; gap:18px; align-items:start; padding:28px; border-bottom:1px solid var(--line); background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 4%,var(--surface)),var(--surface)); }
.playbook-detail-mark { width:54px; height:54px; display:grid; place-items:center; border-radius:15px; background:var(--soft); font-size:22px; }
.playbook-detail h2 { margin:6px 0 7px; font-size:30px; letter-spacing:-.045em; }
.playbook-detail header p { max-width:610px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; }
.playbook-detail dl { display:grid; grid-template-columns:70px 80px 1fr; gap:10px; margin:0; }
.playbook-detail dl div { padding:10px; border-left:1px solid var(--line); }
.playbook-detail dt { color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; }
.playbook-detail dd { margin:5px 0 0; font-size:10px; font-weight:850; }
.playbook-steps { list-style:none; display:grid; grid-template-columns:repeat(3,1fr); margin:0; padding:28px; gap:14px; }
.playbook-steps li { scroll-margin-top:100px; display:grid; grid-template-columns:34px 1fr; gap:12px; min-height:225px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.playbook-steps li > span { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:color-mix(in srgb,var(--teal) 9%,transparent); color:var(--teal); font-size:9px; font-weight:900; }
.playbook-steps small { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.12em; }
.playbook-steps h3 { margin:8px 0; font-size:15px; }
.playbook-steps p { margin:0 0 14px; color:var(--muted); font-size:10px; line-height:1.65; }
.playbook-steps a { color:var(--teal); font-size:9px; font-weight:900; }
.playbook-detail > footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 28px; border-top:1px solid var(--line); background:var(--paper); }
.playbook-detail > footer span small,.playbook-detail > footer span b { display:block; }
.playbook-detail > footer small { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.12em; }
.playbook-detail > footer b { margin-top:4px; font-size:11px; }

/* Contact Form 7-inspired presentation */
.contact-form7 {
  position:relative;
  border-top:4px solid var(--teal);
  box-shadow:0 30px 75px rgba(20,56,52,.13);
}
.contact-form7::before { content:""; position:absolute; z-index:-1; inset:15px -14px -16px 14px; border:1px solid color-mix(in srgb,var(--teal) 13%,var(--line)); border-radius:18px; background:color-mix(in srgb,var(--teal) 3%,transparent); transform:translateZ(-30px); }
.contact-form7 .contact-form-head p b,
.contact-form7 label > span > b { color:#d74444; }
.contact-form7 label > span { font-size:10px; font-weight:850; }
.contact-form7 input,.contact-form7 textarea { min-height:48px; border-radius:6px; background:var(--surface); }
.contact-form7 textarea { min-height:180px; }
.contact-form7 .contact-consent > span { color:var(--muted); font-size:9px; font-weight:600; line-height:1.55; }
.contact-form7 .contact-submit { width:max-content; min-width:150px; border-radius:6px; }

@keyframes promptObjectFloat {
  0%,100% { transform:rotateX(2deg) rotateY(-4deg) translateY(0); }
  50% { transform:rotateX(-3deg) rotateY(5deg) translateY(-14px); }
}

@media (max-width:980px) {
  .prompt-hero-grid { grid-template-columns:1fr; }
  .prompt-hero-object { width:min(420px,72vw); }
  .prompt-platform-grid,.playbook-index-grid { grid-template-columns:1fr 1fr; }
  .playbook-detail > header { grid-template-columns:58px 1fr; }
  .playbook-detail dl { grid-column:2; }
  .playbook-steps { grid-template-columns:1fr; }
}
@media (max-width:720px) {
  .home-category-showcase .category-cloud { grid-template-columns:1fr; }
  .prompt-page-hero,.playbooks-page-hero { padding:70px 0 62px; }
  .prompt-page-hero h1,.playbooks-page-hero h1 { font-size:48px; }
  .prompt-platform-grid,.playbook-index-grid { grid-template-columns:1fr; }
  .playbook-proof { width:100%; flex-wrap:wrap; }
  .playbook-detail > header { grid-template-columns:1fr; }
  .playbook-detail dl { grid-column:auto; grid-template-columns:1fr; }
  .playbook-detail dl div { border-left:0; border-top:1px solid var(--line); }
  .playbook-detail > footer { align-items:flex-start; flex-direction:column; }
  .prompt-family-heading { align-items:flex-start; }
}
@media (max-width:560px) {
  .prompt-hero-object { width:88vw; margin-left:-6vw; }
  .prompt-node { width:38px; height:38px; }
  .contact-form7 .contact-submit { width:100%; }
  .depth-prism,.depth-orbit { opacity:.08; }
}
@media (prefers-reduced-motion:reduce) {
  .depth-aurora,
  .depth-prism,
  .depth-orbit,
  .prompt-hero-object { animation:none!important; }
}

/* Keep the first paint focused on the hero; below-fold HTML remains crawlable. */
@supports (content-visibility:auto) {
  .shortcut-section,
  .home-category-showcase,
  .directory-main,
  .member-strip,
  .playbook-section,
  .editor-picks-section,
  .shelves-section,
  .faq-section,
  .newsletter,
  .site-footer {
    content-visibility:auto;
    contain-intrinsic-size:auto 720px;
  }
  .shortcut-section,
  .member-strip,
  .newsletter,
  .site-footer {
    contain-intrinsic-size:auto 280px;
  }
}

/* Finance calculators */
.finance-hero {
  position:relative;
  z-index:7;
  overflow:hidden;
  min-height:560px;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--line) 23%,transparent) 1px,transparent 1px) center/54px 54px,
    linear-gradient(color-mix(in srgb,var(--line) 23%,transparent) 1px,transparent 1px) center/54px 54px,
    radial-gradient(circle at 86% 20%,color-mix(in srgb,var(--cobalt) 16%,transparent),transparent 32%),
    radial-gradient(circle at 10% 82%,color-mix(in srgb,var(--teal) 13%,transparent),transparent 30%),
    linear-gradient(145deg,var(--surface),var(--paper));
}
.finance-hero::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at center,transparent 20%,color-mix(in srgb,var(--paper) 68%,transparent) 90%);
}
.finance-hero-glow {
  position:absolute;
  width:460px;
  height:460px;
  right:-130px;
  bottom:-250px;
  border:1px solid color-mix(in srgb,var(--teal) 20%,transparent);
  border-radius:50%;
  box-shadow:
    0 0 0 70px color-mix(in srgb,var(--teal) 3%,transparent),
    0 0 0 140px color-mix(in srgb,var(--cobalt) 3%,transparent);
  animation:financeGlow 10s ease-in-out infinite;
}
.finance-hero-grid {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);
  gap:80px;
  align-items:center;
  min-height:560px;
  padding-top:68px;
  padding-bottom:68px;
}
.finance-hero-copy h1 {
  margin:18px 0 20px;
  font-size:clamp(56px,7vw,88px);
  line-height:.91;
  letter-spacing:-.068em;
}
.finance-hero-copy h1 em {
  display:block;
  color:var(--teal);
  font-style:normal;
}
.finance-hero-copy > p {
  max-width:650px;
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
}
.finance-hero-proof {
  width:max-content;
  display:flex;
  align-items:center;
  gap:20px;
  margin-top:30px;
  padding:13px 17px;
  border:1px solid var(--line);
  border-radius:13px;
  background:color-mix(in srgb,var(--surface) 86%,transparent);
  box-shadow:0 18px 40px rgba(17,60,55,.07);
  backdrop-filter:blur(14px);
}
.finance-hero-proof span { display:flex; align-items:baseline; gap:6px; }
.finance-hero-proof b { font-size:18px; }
.finance-hero-proof small { color:var(--muted); font-size:9px; }
.finance-hero-proof i { width:3px; height:3px; border-radius:50%; background:var(--teal); }
.finance-hero-object {
  position:relative;
  width:min(430px,38vw);
  aspect-ratio:1;
  justify-self:center;
  perspective:1000px;
  transform-style:preserve-3d;
  animation:financeObjectFloat 8s ease-in-out infinite;
}
.finance-hero-panel {
  position:absolute;
  z-index:4;
  inset:20% 3% 16% 8%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:34px;
  border:1px solid color-mix(in srgb,var(--line) 75%,white);
  border-radius:26px;
  background:color-mix(in srgb,var(--surface) 86%,transparent);
  box-shadow:0 42px 90px rgba(31,66,63,.18),inset 0 1px rgba(255,255,255,.7);
  backdrop-filter:blur(18px);
  transform:rotateX(7deg) rotateY(-10deg) translateZ(48px);
}
.finance-hero-panel > span {
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}
.finance-hero-panel > strong {
  margin:16px 0 5px;
  font-size:clamp(32px,4vw,50px);
  letter-spacing:-.055em;
}
.finance-hero-panel > small { color:var(--muted); font-size:10px; }
.finance-hero-panel > div { display:grid; gap:8px; margin-top:30px; }
.finance-hero-panel > div i {
  display:block;
  height:7px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--teal),var(--cobalt));
  box-shadow:0 6px 12px color-mix(in srgb,var(--teal) 14%,transparent);
}
.finance-orbit {
  position:absolute;
  inset:2%;
  border:1px dashed color-mix(in srgb,var(--teal) 30%,transparent);
  border-radius:50%;
  transform:rotateX(68deg) rotateZ(-14deg) translateZ(-20px);
  animation:financeOrbit 14s linear infinite;
}
.finance-float-symbol {
  position:absolute;
  z-index:6;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:3px solid var(--surface);
  border-radius:15px;
  background:linear-gradient(145deg,var(--teal),var(--cobalt));
  color:white;
  font-size:20px;
  font-weight:900;
  box-shadow:0 18px 35px rgba(20,70,66,.2);
}
.finance-float-symbol.symbol-one { left:0; top:12%; transform:rotate(-8deg) translateZ(70px); }
.finance-float-symbol.symbol-two { right:0; top:28%; transform:rotate(8deg) translateZ(90px); background:linear-gradient(145deg,#9b4fbd,var(--cobalt)); }
.finance-float-symbol.symbol-three { left:20%; bottom:4%; transform:rotate(6deg) translateZ(55px); background:linear-gradient(145deg,#e0a114,var(--coral)); }

.finance-calculators-section {
  position:relative;
  z-index:8;
  padding:78px 0 94px;
  background:var(--paper);
}
.finance-listing-head { margin-bottom:25px; }
.finance-toolbar {
  position:sticky;
  top:84px;
  z-index:12;
  display:grid;
  gap:11px;
  margin-bottom:18px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--surface) 91%,transparent);
  box-shadow:0 16px 38px rgba(20,56,52,.07);
  backdrop-filter:blur(18px);
}
.finance-search {
  display:flex;
  align-items:center;
  gap:10px;
  height:50px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper);
}
.finance-search > span:first-child { color:var(--teal); font-size:23px; transform:rotate(-12deg); }
.finance-search input {
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:12px;
}
.finance-category-tabs { display:flex; flex-wrap:wrap; gap:7px; }
.finance-category-tabs button {
  min-height:34px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:0 12px;
  background:var(--surface);
  color:var(--muted);
  font-size:9px;
  font-weight:850;
}
.finance-category-tabs button:hover { color:var(--teal); border-color:var(--teal); }
.finance-category-tabs button.active { border-color:var(--teal); background:var(--teal); color:white; }
.finance-results-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 2px 15px;
  color:var(--muted);
  font-size:10px;
}
.finance-results-head strong { color:var(--ink); }
.finance-results-head small { color:var(--teal); font-weight:800; }
.finance-calculator-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.finance-calculator-card {
  scroll-margin-top:190px;
  min-height:268px;
  display:flex;
  flex-direction:column;
  padding:21px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 8px 25px rgba(17,60,55,.035);
  transform-style:preserve-3d;
  transition:transform .25s,border-color .25s,box-shadow .25s;
}
.finance-calculator-card:hover {
  transform:perspective(900px) translateY(-6px) rotateX(1.5deg);
  border-color:color-mix(in srgb,var(--teal) 55%,var(--line));
  box-shadow:0 24px 55px rgba(17,60,55,.1);
}
.finance-card-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:20px; }
.finance-card-top > small { color:var(--muted); font-size:8px; font-weight:900; }
.finance-card-icon {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--teal) 13%,var(--surface)),color-mix(in srgb,var(--cobalt) 13%,var(--surface)));
  color:var(--teal);
  font-size:20px;
  font-weight:900;
  transition:transform .25s;
}
.finance-calculator-card:hover .finance-card-icon { transform:translateZ(30px) scale(1.06) rotate(-3deg); }
.finance-card-category {
  color:var(--teal);
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.finance-calculator-card h2 { margin:9px 0 9px; font-size:18px; letter-spacing:-.035em; }
.finance-calculator-card p { margin:0 0 18px; color:var(--muted); font-size:10px; line-height:1.65; }
.finance-calculator-card > button {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding:13px 0 0;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  font-size:9px;
  font-weight:900;
}
.finance-calculator-card > button span { color:var(--teal); font-size:15px; transition:transform .2s; }
.finance-calculator-card > button:hover span { transform:translate(2px,-2px); }
.finance-empty { padding:75px 20px; text-align:center; border:1px dashed var(--line); border-radius:18px; background:var(--surface); }
.finance-empty > span { color:var(--teal); font-size:38px; }
.finance-empty h2 { margin:8px 0; font-size:25px; }
.finance-empty p { margin:0 0 20px; color:var(--muted); font-size:11px; }

.calculator-modal-backdrop {
  position:fixed;
  z-index:100;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(8,18,21,.68);
  backdrop-filter:blur(12px);
}
.calculator-modal-backdrop[hidden] { display:none; }
body.calculator-modal-open { overflow:hidden; }
.calculator-modal {
  width:min(860px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  border:1px solid color-mix(in srgb,var(--line) 70%,white);
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 45px 120px rgba(0,0,0,.3);
}
.calculator-modal > header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:25px;
  padding:26px 28px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 5%,var(--surface)),var(--surface));
}
.calculator-modal header h2 { margin:8px 0 7px; font-size:29px; letter-spacing:-.045em; }
.calculator-modal header p { max-width:620px; margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.calculator-modal-close {
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  font-size:22px;
}
.calculator-modal-grid { display:grid; grid-template-columns:1fr 310px; }
.calculator-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:28px; }
.calculator-fields { display:contents; }
.calculator-form label { display:grid; gap:7px; }
.calculator-form label span { color:var(--muted); font-size:9px; font-weight:850; }
.calculator-form input {
  width:100%;
  height:47px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:0 12px;
  outline:0;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
}
.calculator-form input:focus { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 9%,transparent); }
.calculator-note { grid-column:1 / -1; margin:0; padding:10px 12px; border-radius:8px; background:color-mix(in srgb,var(--cobalt) 7%,var(--paper)); color:var(--muted); font-size:9px; line-height:1.6; }
.calculator-form .button { grid-column:1 / -1; width:max-content; margin-top:4px; }
.calculator-result {
  display:flex;
  flex-direction:column;
  min-height:330px;
  padding:29px;
  border-left:1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%,color-mix(in srgb,var(--cobalt) 12%,transparent),transparent 34%),
    color-mix(in srgb,var(--teal) 4%,var(--paper));
}
.calculator-result > span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.18em; }
.calculator-result > small { margin-top:35px; color:var(--muted); font-size:9px; }
.calculator-result > strong { margin:8px 0 6px; font-size:32px; letter-spacing:-.05em; overflow-wrap:anywhere; }
.calculator-result-placeholder { margin-top:52px!important; color:var(--muted); }
.calculator-result > p { margin:0; color:var(--muted); font-size:10px; line-height:1.6; }
.calculator-result > em { margin-top:auto; padding-top:24px; color:var(--muted); font-size:8px; line-height:1.5; font-style:normal; }
.calculator-result .calculator-error { margin-top:14px; padding:10px; border:1px solid #efb7ad; border-radius:8px; background:#fff1ee; color:#b42318; }
html.dark .calculator-result .calculator-error { border-color:#693c35; background:#321e1b; color:#ffb2a5; }

.finance-trust-section { position:relative; z-index:7; padding:72px 0; border-top:1px solid var(--line); background:#0c2221; color:white; }
.finance-trust-grid { display:grid; grid-template-columns:1fr .9fr; gap:90px; align-items:center; }
.finance-trust-grid h2 { max-width:600px; margin:12px 0 15px; font-size:clamp(34px,4vw,50px); line-height:1; letter-spacing:-.045em; }
.finance-trust-grid > div > p { max-width:620px; margin:0; color:#a7bdb9; font-size:11px; line-height:1.75; }
.finance-trust-grid ul { list-style:none; display:grid; gap:0; margin:0; padding:0; border-top:1px solid #29423f; }
.finance-trust-grid li { display:grid; grid-template-columns:40px 1fr; gap:15px; padding:17px 0; border-bottom:1px solid #29423f; align-items:center; }
.finance-trust-grid li span { color:#77c7bb; font-size:9px; font-weight:900; }
.finance-trust-grid li b { font-size:11px; }
.finance-faq { position:relative; z-index:7; }

@keyframes financeObjectFloat {
  0%,100% { transform:rotateX(2deg) rotateY(-3deg) translateY(0); }
  50% { transform:rotateX(-3deg) rotateY(5deg) translateY(-14px); }
}
@keyframes financeOrbit {
  from { transform:rotateX(68deg) rotateZ(-14deg) translateZ(-20px); }
  to { transform:rotateX(68deg) rotateZ(346deg) translateZ(50px); }
}
@keyframes financeGlow {
  0%,100% { transform:scale(.94) translate3d(0,0,0); }
  50% { transform:scale(1.05) translate3d(-30px,-20px,0); }
}
@media (max-width:980px) {
  .finance-hero-grid { grid-template-columns:1fr; gap:24px; padding-top:72px; }
  .finance-hero-object { width:min(420px,70vw); }
  .finance-calculator-grid { grid-template-columns:1fr 1fr; }
  .finance-trust-grid { gap:45px; }
}
@media (max-width:720px) {
  .finance-hero-grid { min-height:auto; padding-top:66px; padding-bottom:55px; }
  .finance-hero-copy h1 { font-size:52px; }
  .finance-hero-proof { width:100%; flex-wrap:wrap; }
  .finance-hero-object { width:min(390px,86vw); }
  .finance-toolbar { position:static; }
  .finance-category-tabs { display:grid; grid-template-columns:1fr 1fr; }
  .finance-calculator-grid { grid-template-columns:1fr; }
  .finance-calculator-card { min-height:240px; }
  .calculator-modal-backdrop { align-items:end; padding:0; }
  .calculator-modal { max-height:92vh; border-radius:22px 22px 0 0; }
  .calculator-modal-grid { grid-template-columns:1fr; }
  .calculator-result { min-height:250px; border-left:0; border-top:1px solid var(--line); }
  .finance-trust-grid { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .finance-hero-copy h1 { font-size:45px; }
  .finance-hero-proof i { display:none; }
  .finance-hero-proof span { width:calc(50% - 10px); }
  .finance-hero-object { width:94vw; margin-left:-8vw; }
  .finance-category-tabs { grid-template-columns:1fr; }
  .finance-results-head { align-items:flex-start; flex-direction:column; gap:6px; }
  .calculator-modal > header { padding:22px 20px; }
  .calculator-form { grid-template-columns:1fr; padding:22px 20px; }
  .calculator-form .button,.calculator-note { grid-column:auto; width:100%; }
  .calculator-result { padding:24px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .finance-hero-object,
  .finance-orbit,
  .finance-hero-glow { animation:none!important; }
}


/* PHP/MySQL package parity helpers */
.pricing-tabs a {
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--muted);
  padding:7px 11px;
  border-radius:7px;
  font-size:10px;
  font-weight:800;
  text-transform:capitalize;
}
.pricing-tabs a:hover,
.pricing-tabs a.active {
  color:#fff;
  background:var(--teal);
  border-color:var(--teal);
}
.tool-logo-image { object-fit:cover; }
.tool-tags { display:flex; align-items:center; gap:7px; }
.tool-tags > a { color:var(--muted); }
.tool-tags > a:hover { color:var(--teal); }
.pagination a {
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  border-radius:9px;
  padding:10px 13px;
  font-size:12px;
  font-weight:700;
}
.pagination a.is-disabled { opacity:.35; pointer-events:none; }
.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.site-3d-world { opacity:1; }
.depth-shape { opacity:.28; }
.depth-prism,.depth-orbit { opacity:.24; }
.depth-grid { opacity:.23; }
.depth-particle { opacity:.34; }


/* Calculator accessibility and progressive-enhancement fixes */
.finance-calculator-card > button { cursor:pointer; }
.finance-calculator-card > button:focus-visible,
.finance-category-tabs button:focus-visible,
.calculator-modal-close:focus-visible,
.calculator-form .button:focus-visible {
  outline:3px solid color-mix(in srgb,var(--teal) 45%,transparent);
  outline-offset:3px;
}
.finance-noscript {
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid #d6a54c;
  border-radius:12px;
  background:#fff8e7;
  color:#6f4b00;
  font-size:12px;
  line-height:1.6;
}
html.dark .finance-noscript {
  border-color:#755b27;
  background:#2f2718;
  color:#ffd98a;
}

/* Calculator directory clarity and health category enhancements */
.calculator-directory-hero .finance-hero-copy > p { max-width:720px; }
.calculator-hero-panel > strong { font-size:clamp(54px,7vw,82px); line-height:.9; }
.health-calculator-card {
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,#a34ecb 8%,transparent),transparent 34%),
    var(--surface);
}
.health-calculator-card .finance-card-icon {
  background:linear-gradient(145deg,color-mix(in srgb,#a34ecb 15%,var(--surface)),color-mix(in srgb,var(--coral) 12%,var(--surface)));
  color:#8f3eb6;
}
.health-calculator-card .finance-card-category { color:#8f3eb6; }
.calculator-card-clarity {
  display:block;
  margin:-7px 0 16px;
  color:var(--teal);
  font-size:8px;
  font-weight:850;
  letter-spacing:.04em;
}
.health-calculator-card .calculator-card-clarity { color:#8f3eb6; }
.calculator-field { min-width:0; }
.calculator-field-title {
  display:block;
  color:var(--ink)!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.015em;
}
.calculator-field-control {
  position:relative;
  display:flex!important;
  align-items:center;
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  transition:border-color .2s,box-shadow .2s;
}
.calculator-field-control:focus-within {
  border-color:var(--teal);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 9%,transparent);
}
.calculator-form .calculator-field-control input,
.calculator-form .calculator-field-control select {
  min-width:0;
  width:100%;
  height:47px;
  border:0;
  border-radius:9px;
  padding:0 12px;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:12px;
}
.calculator-form .calculator-field-control select {
  padding-right:34px;
  cursor:pointer;
}
.calculator-form .calculator-field-control input:focus { box-shadow:none; }
.calculator-field-suffix {
  flex:0 0 auto;
  max-width:46%;
  padding:0 11px 0 7px;
  color:var(--muted)!important;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1.25;
  text-align:right;
}
.calculator-field-hint {
  color:var(--muted);
  font-size:8px;
  font-weight:500;
  line-height:1.45;
}
.calculator-field[hidden] { display:none!important; }
.calculator-assumption {
  grid-column:1 / -1;
  display:grid;
  gap:5px;
  margin:2px 0 0;
  padding:12px 13px;
  border:1px solid color-mix(in srgb,var(--cobalt) 18%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--cobalt) 6%,var(--paper));
}
.calculator-assumption[hidden] { display:none; }
.calculator-assumption b {
  color:var(--ink);
  font-size:8px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.calculator-assumption p {
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.6;
}
.calculator-modal[data-calculator-domain="health"] > header {
  background:linear-gradient(135deg,color-mix(in srgb,#a34ecb 7%,var(--surface)),var(--surface));
}
.calculator-modal[data-calculator-domain="health"] .finance-card-category,
.calculator-modal[data-calculator-domain="health"] .calculator-result > span { color:#8f3eb6; }
.calculator-modal[data-calculator-domain="health"] .calculator-result {
  background:
    radial-gradient(circle at 90% 10%,color-mix(in srgb,#a34ecb 11%,transparent),transparent 34%),
    color-mix(in srgb,#a34ecb 3%,var(--paper));
}
.calculator-result > strong { line-height:1.08; }
.calculator-result > strong:not(.calculator-result-placeholder) { font-size:clamp(24px,3vw,32px); }
@media (max-width:480px) {
  .calculator-assumption { grid-column:auto; }
  .calculator-field-suffix { max-width:42%; }
}

/* Pregnancy and baby calculator category */
.pregnancy-calculator-card {
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,#e45d83 10%,transparent),transparent 35%),
    var(--surface);
}
.pregnancy-calculator-card .finance-card-icon {
  background:linear-gradient(145deg,color-mix(in srgb,#e45d83 16%,var(--surface)),color-mix(in srgb,#f0a15a 12%,var(--surface)));
  color:#bd3e68;
}
.pregnancy-calculator-card .finance-card-category,
.pregnancy-calculator-card .calculator-card-clarity { color:#bd3e68; }
.calculator-modal[data-calculator-domain="pregnancy"] > header {
  background:linear-gradient(135deg,color-mix(in srgb,#e45d83 8%,var(--surface)),var(--surface));
}
.calculator-modal[data-calculator-domain="pregnancy"] .finance-card-category,
.calculator-modal[data-calculator-domain="pregnancy"] .calculator-result > span { color:#bd3e68; }
.calculator-modal[data-calculator-domain="pregnancy"] .calculator-result {
  background:
    radial-gradient(circle at 90% 10%,color-mix(in srgb,#e45d83 12%,transparent),transparent 35%),
    color-mix(in srgb,#e45d83 3%,var(--paper));
}
.calculator-form input[type="date"] {
  min-width:0;
  color-scheme:light;
}
html.dark .calculator-form input[type="date"] { color-scheme:dark; }

/* Calculator group hierarchy: Finance parent with four finance subcategories */
.calculator-group-overview {
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr;
  gap:12px;
  margin:0 0 16px;
}
.calculator-group-card {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.calculator-group-card > span {
  display:grid;
  place-items:center;
  flex:0 0 39px;
  width:39px;
  height:39px;
  border-radius:11px;
  background:color-mix(in srgb,var(--teal) 11%,var(--paper));
  color:var(--teal);
  font-size:17px;
  font-weight:900;
}
.calculator-group-card div { min-width:0; }
.calculator-group-card strong,
.calculator-group-card small { display:block; }
.calculator-group-card strong {
  color:var(--ink);
  font-size:11px;
  font-weight:900;
}
.calculator-group-card small {
  margin-top:3px;
  color:var(--muted);
  font-size:8px;
  line-height:1.45;
}
.finance-group-card {
  border-color:color-mix(in srgb,var(--teal) 35%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 7%,var(--surface)),var(--surface));
}
.health-group-card > span {
  background:color-mix(in srgb,#a34ecb 11%,var(--paper));
  color:#8f3eb6;
}
.pregnancy-group-card > span {
  background:color-mix(in srgb,#e45d83 12%,var(--paper));
  color:#bd3e68;
}
.calculator-filter-panel {
  display:grid;
  grid-template-columns:minmax(240px,.8fr) minmax(0,1.8fr);
  align-items:start;
  gap:12px 16px;
}
.calculator-filter-panel .finance-search { width:100%; }
.calculator-domain-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.calculator-domain-tabs button,
.finance-category-tabs button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  text-align:center;
  cursor:pointer;
}
.calculator-domain-tabs button {
  min-height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:7px 10px;
  background:var(--surface);
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  line-height:1.25;
}
.calculator-domain-tabs button small,
.finance-category-tabs button small {
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  min-width:20px;
  min-height:20px;
  padding:0 5px;
  border-radius:999px;
  background:color-mix(in srgb,var(--ink) 7%,transparent);
  color:inherit;
  font-size:7px;
  font-weight:900;
}
.calculator-domain-tabs button:hover,
.calculator-domain-tabs button:focus-visible {
  color:var(--teal);
  border-color:var(--teal);
}
.calculator-domain-tabs button.active {
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}
.calculator-domain-tabs button.active small,
.finance-category-tabs button.active small {
  background:rgba(255,255,255,.18);
}
.finance-subcategory-wrap {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px 14px;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--teal) 28%,var(--line));
  border-radius:12px;
  background:color-mix(in srgb,var(--teal) 4%,var(--paper));
}
.finance-subcategory-wrap[hidden] { display:none!important; }
.finance-subcategory-label {
  color:var(--ink);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.finance-subcategory-wrap .finance-category-tabs {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
}
.finance-calculator-card:not(.health-calculator-card) .finance-card-category {
  color:var(--teal);
}
@media (max-width:980px) {
  .calculator-group-overview { grid-template-columns:1fr 1fr 1fr; }
  .calculator-filter-panel { grid-template-columns:1fr; }
  .calculator-domain-tabs { grid-template-columns:1fr 1fr; }
  .finance-subcategory-wrap { grid-column:auto; grid-template-columns:1fr; }
  .finance-subcategory-wrap .finance-category-tabs { grid-template-columns:1fr 1fr 1fr; }
}
@media (max-width:720px) {
  .calculator-group-overview { grid-template-columns:1fr; }
  .calculator-domain-tabs { grid-template-columns:1fr 1fr; }
  .finance-subcategory-wrap .finance-category-tabs { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
  .calculator-domain-tabs,
  .finance-subcategory-wrap .finance-category-tabs { grid-template-columns:1fr; }
  .calculator-domain-tabs button,
  .finance-subcategory-wrap .finance-category-tabs button { justify-content:space-between; text-align:left; }
}
.finance-calculator-card[hidden] { display:none!important; }

/* Layout refinement for calculator directory: restore simpler, clearer filtering UI */
.calculator-directory-head {
  align-items:end;
  gap:18px 28px;
  flex-wrap:wrap;
}
.calculator-directory-head > div {
  max-width:720px;
}
.calculator-head-note {
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  max-width:660px;
}
.calculator-toolbar-stack {
  position:static;
  top:auto;
  padding:16px;
  gap:14px;
}
.calculator-toolbar-stack.calculator-filter-panel {
  grid-template-columns:1fr;
}
.calculator-filter-note {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.calculator-domain-tabs,
.finance-subcategory-wrap .finance-category-tabs {
  display:grid;
  gap:9px;
}
.calculator-domain-tabs {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.calculator-domain-tabs button,
.finance-category-tabs button {
  min-height:48px;
  padding:10px 14px;
  border-radius:12px;
  font-size:10px;
  justify-content:space-between;
  text-align:left;
}
.calculator-domain-tabs button span,
.finance-category-tabs button span {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.finance-subcategory-wrap {
  grid-template-columns:1fr;
  align-items:start;
  gap:11px;
  padding:15px;
  border-radius:14px;
}
.finance-subcategory-wrap .finance-category-tabs {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.finance-subcategory-label {
  font-size:9px;
}
.finance-results-head {
  margin:12px 0 16px;
}
@media (max-width:980px) {
  .calculator-domain-tabs {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:720px) {
  .calculator-directory-head {
    align-items:start;
  }
  .calculator-directory-head .section-aside {
    max-width:none;
  }
}
@media (max-width:560px) {
  .calculator-domain-tabs,
  .finance-subcategory-wrap .finance-category-tabs {
    grid-template-columns:1fr;
  }
}

/* Simple category-row layout for calculators page */
.calculator-simple-toolbar {
  position:static;
  top:auto;
  padding:14px;
  gap:14px;
}
.calculator-simple-toolbar .finance-search {
  width:100%;
}
.calculator-category-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.calculator-category-row button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--muted);
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}
.calculator-category-row button span {
  display:block;
}
.calculator-category-row button small {
  min-width:20px;
}
.calculator-category-row button.active {
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}
.calculator-category-row button.active small {
  background:rgba(255,255,255,.18);
}
@media (max-width:720px) {
  .calculator-category-row {
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
  .calculator-category-row button {
    flex:0 0 auto;
  }
}

/* Final calculator hierarchy: four main categories, finance subcategories below */
.calculator-simple-toolbar {
  display:grid;
  grid-template-columns:1fr;
  position:static;
  top:auto;
  gap:14px;
  padding:14px;
}
.calculator-simple-toolbar > .calculator-domain-tabs.calculator-category-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.calculator-simple-toolbar > .calculator-domain-tabs.calculator-category-row button {
  flex:0 1 auto;
  min-height:42px;
  padding:0 15px;
}
.calculator-finance-subcategories {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--teal) 28%,var(--line));
  border-radius:13px;
  background:color-mix(in srgb,var(--teal) 4%,var(--paper));
}
.calculator-finance-subcategories[hidden] {
  display:none!important;
}
.calculator-finance-subcategories .calculator-category-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.calculator-finance-subcategories .calculator-category-row button {
  flex:0 1 auto;
  min-height:38px;
  padding:0 13px;
  background:var(--surface);
}
.calculator-finance-subcategories .calculator-category-row button.active {
  background:var(--teal);
  color:#fff;
}
@media (max-width:720px) {
  .calculator-simple-toolbar > .calculator-domain-tabs.calculator-category-row,
  .calculator-finance-subcategories .calculator-category-row {
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
  .calculator-simple-toolbar > .calculator-domain-tabs.calculator-category-row button,
  .calculator-finance-subcategories .calculator-category-row button {
    flex:0 0 auto;
  }
}

/* Date & Time main category and calculator card styling */
.date-time-calculator-card {
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,#4472c4 10%,transparent),transparent 36%),
    var(--surface);
}
.date-time-calculator-card .finance-card-icon {
  background:linear-gradient(145deg,color-mix(in srgb,#4472c4 15%,var(--surface)),color-mix(in srgb,#22a6a1 10%,var(--surface)));
  color:#3564b2;
}
.date-time-calculator-card .finance-card-category,
.date-time-calculator-card .calculator-card-clarity {
  color:#3564b2;
}
.calculator-modal[data-calculator-domain="datetime"] > header {
  background:linear-gradient(135deg,color-mix(in srgb,#4472c4 8%,var(--surface)),var(--surface));
}
.calculator-modal[data-calculator-domain="datetime"] .finance-card-category,
.calculator-modal[data-calculator-domain="datetime"] .calculator-result > span {
  color:#3564b2;
}
@media (min-width:1100px) {
  .calculator-simple-toolbar > .calculator-domain-tabs.calculator-category-row button {
    min-width:0;
  }
}

/* Education parent category: match the Finance subcategory panel */
.calculator-education-subcategories {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--teal) 28%,var(--line));
  border-radius:13px;
  background:color-mix(in srgb,var(--teal) 4%,var(--paper));
}
.calculator-education-subcategories[hidden] {
  display:none!important;
}
.calculator-education-subcategories .calculator-category-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.calculator-education-subcategories .calculator-category-row button {
  flex:0 1 auto;
  min-height:38px;
  padding:0 13px;
  background:var(--surface);
}
.calculator-education-subcategories .calculator-category-row button.active {
  background:var(--teal);
  color:#fff;
}
.education-calculator-card {
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,#5b67c8 10%,transparent),transparent 36%),
    var(--surface);
}
.education-calculator-card .finance-card-icon {
  background:linear-gradient(145deg,color-mix(in srgb,#5b67c8 15%,var(--surface)),color-mix(in srgb,#22a6a1 10%,var(--surface)));
  color:#4b56b4;
}
.education-calculator-card .finance-card-category,
.education-calculator-card .calculator-card-clarity {
  color:#4b56b4;
}
@media (max-width:720px) {
  .calculator-education-subcategories .calculator-category-row {
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
  .calculator-education-subcategories .calculator-category-row button {
    flex:0 0 auto;
  }
}


/* Finance and Education subcategory panels share one layout */
.calculator-subcategory-panel{display:grid;grid-template-columns:1fr;gap:12px;width:100%;padding:16px;border:1px solid color-mix(in srgb,var(--teal) 36%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--teal) 5%,var(--paper));}
.calculator-subcategory-panel[hidden]{display:none!important;}
.calculator-subcategory-panel .finance-subcategory-label{display:block;color:var(--ink);font-size:9px;font-weight:900;letter-spacing:.09em;line-height:1.4;text-transform:uppercase;}
.calculator-subcategory-panel .calculator-category-row{display:flex;flex-wrap:wrap;gap:10px;}
.calculator-subcategory-panel .calculator-category-row button{flex:0 1 auto;min-height:46px;padding:0 16px;border-radius:12px;}
.calculator-subcategory-panel .calculator-category-row button.active{border-color:var(--teal);background:var(--teal);color:#fff;}
@media(max-width:720px){.calculator-subcategory-panel .calculator-category-row{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.calculator-subcategory-panel .calculator-category-row button{flex:0 0 auto}}

/* Tech News newsroom, self-published five-story hero slider */
.tech-news-page-hero {
  position:relative;
  z-index:5;
  padding:72px 0 84px;
  background:
    radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--teal) 13%,transparent),transparent 31%),
    var(--paper);
  border-bottom:1px solid var(--line);
}
.tech-news-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,430px);
  align-items:end;
  gap:28px;
  margin-bottom:30px;
}
.tech-news-heading h1 {
  margin:9px 0 0;
  color:var(--ink);
  font-family:Georgia,serif;
  font-size:clamp(46px,6.2vw,82px);
  font-weight:500;
  line-height:.96;
  letter-spacing:-.055em;
}
.tech-news-heading h1 em { color:var(--teal); font-weight:500; }
.tech-news-heading > p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}
.tech-news-slider {
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--teal) 25%,var(--line));
  border-radius:26px;
  background:var(--surface);
  box-shadow:0 28px 70px rgba(18,52,49,.13);
}
.tech-news-slides { position:relative; min-height:510px; }
.tech-news-slide {
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(360px,.78fr);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(25px);
  transition:opacity .46s ease,transform .46s ease,visibility .46s;
}
.tech-news-slide.is-active {
  position:relative;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
.tech-news-slide-media {
  position:relative;
  min-height:510px;
  overflow:hidden;
  background:#102b29;
}
.tech-news-slide-media img {
  width:100%;
  height:100%;
  min-height:510px;
  object-fit:cover;
  transition:transform 7s ease;
}
.tech-news-slide.is-active .tech-news-slide-media img { transform:scale(1.035); }
.tech-news-image-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent 54%,rgba(8,29,27,.18));
}
.tech-news-slide-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:52px 48px 76px;
  background:
    linear-gradient(155deg,color-mix(in srgb,var(--teal) 7%,var(--surface)),var(--surface) 55%);
}
.tech-news-slide-meta,
.tech-news-card-meta,
.tech-news-article-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px 13px;
  color:var(--muted);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.tech-news-slide-meta span,
.tech-news-card-meta span,
.tech-news-article-meta span {
  color:var(--teal);
}
.tech-news-slide-meta time::before,
.tech-news-card-meta time::before,
.tech-news-article-meta time::before {
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 11px 2px 0;
  border-radius:50%;
  background:var(--amber);
}
.tech-news-slide-copy h2 {
  margin:17px 0 15px;
  font-family:Georgia,serif;
  font-size:clamp(31px,3.4vw,50px);
  font-weight:500;
  line-height:1.04;
  letter-spacing:-.045em;
}
.tech-news-slide-copy h2 a { color:var(--ink); text-decoration:none; }
.tech-news-slide-copy h2 a:hover { color:var(--teal); }
.tech-news-slide-copy > p {
  display:-webkit-box;
  overflow:hidden;
  max-width:560px;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
}
.tech-news-read-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  align-self:flex-start;
  margin-top:25px;
  color:var(--ink);
  font-size:11px;
  font-weight:900;
  text-decoration:none;
}
.tech-news-read-link span {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--teal);
  color:#fff;
}
.tech-news-slider-bar {
  position:absolute;
  right:0;
  bottom:0;
  z-index:4;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  width:min(620px,48%);
  min-height:58px;
  padding:8px 12px 8px 22px;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter:blur(16px);
}
.tech-news-slider-count { display:flex; align-items:baseline; gap:6px; }
.tech-news-slider-count strong { color:var(--teal); font-family:Georgia,serif; font-size:21px; }
.tech-news-slider-count span,.tech-news-slider-count small { color:var(--muted); font-size:9px; }
.tech-news-slider-dots { display:flex; align-items:center; gap:7px; }
.tech-news-slider-dots button {
  width:29px;
  height:16px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.tech-news-slider-dots button span {
  display:block;
  width:100%;
  height:3px;
  overflow:hidden;
  border-radius:999px;
  background:color-mix(in srgb,var(--ink) 15%,transparent);
}
.tech-news-slider-dots button.is-active span { background:var(--teal); }
.tech-news-slider-controls { display:flex; gap:7px; }
.tech-news-slider-controls button {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  cursor:pointer;
  font-size:16px;
}
.tech-news-slider-controls button:hover { border-color:var(--teal); color:var(--teal); }
.tech-news-empty-hero {
  display:flex;
  align-items:center;
  gap:22px;
  min-height:250px;
  padding:42px;
  border:1px dashed color-mix(in srgb,var(--teal) 45%,var(--line));
  border-radius:24px;
  background:color-mix(in srgb,var(--teal) 4%,var(--surface));
}
.tech-news-empty-hero > span {
  display:grid;
  place-items:center;
  flex:0 0 68px;
  width:68px;
  height:68px;
  border-radius:18px;
  background:var(--teal);
  color:#fff;
  font-size:25px;
}
.tech-news-empty-hero h2 { margin:0; color:var(--ink); font-family:Georgia,serif; font-size:34px; font-weight:500; }
.tech-news-empty-hero p { max-width:690px; margin:9px 0 0; color:var(--muted); line-height:1.75; }
.tech-news-archive { position:relative; z-index:5; padding:82px 0 100px; background:var(--paper); }
.tech-news-listing-head { align-items:end; }
.tech-news-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.tech-news-card {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:19px;
  background:var(--surface);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.tech-news-card:hover { transform:translateY(-5px); border-color:color-mix(in srgb,var(--teal) 45%,var(--line)); box-shadow:0 20px 45px rgba(19,51,48,.1); }
.tech-news-card-image { display:block; aspect-ratio:16/10; overflow:hidden; background:#dce8e6; }
.tech-news-card-image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.tech-news-card:hover .tech-news-card-image img { transform:scale(1.04); }
.tech-news-card-body { padding:24px; }
.tech-news-card-body h2 { margin:13px 0 11px; font-family:Georgia,serif; font-size:25px; line-height:1.12; font-weight:500; letter-spacing:-.025em; }
.tech-news-card-body h2 a { color:var(--ink); text-decoration:none; }
.tech-news-card-body > p { display:-webkit-box; overflow:hidden; margin:0; color:var(--muted); font-size:12px; line-height:1.7; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.tech-news-card-body > a { display:inline-flex; gap:9px; margin-top:18px; color:var(--teal); font-size:10px; font-weight:900; text-decoration:none; }

/* Individual self-published tech-news article */
.tech-news-article { position:relative; z-index:5; background:var(--paper); }
.tech-news-article-header { padding:70px 0 58px; border-bottom:1px solid var(--line); }
.tech-news-article-header-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr); align-items:center; gap:54px; }
.tech-news-back { display:inline-block; margin-bottom:30px; color:var(--teal); font-size:10px; font-weight:900; text-decoration:none; }
.tech-news-article-copy h1 { margin:16px 0 18px; color:var(--ink); font-family:Georgia,serif; font-size:clamp(43px,5vw,68px); font-weight:500; line-height:1.02; letter-spacing:-.05em; }
.tech-news-article-copy > p { margin:0; color:var(--muted); font-size:16px; line-height:1.75; }
.tech-news-byline { display:block; margin-top:26px; color:var(--ink); font-size:10px; font-weight:900; }
.tech-news-article-image { overflow:hidden; margin:0; aspect-ratio:16/10; border-radius:24px; background:#dce8e6; box-shadow:0 25px 60px rgba(16,46,43,.14); }
.tech-news-article-image img { width:100%; height:100%; object-fit:cover; }
.tech-news-article-layout { display:grid; grid-template-columns:minmax(0,740px) minmax(230px,310px); justify-content:center; gap:70px; padding-top:70px; padding-bottom:105px; }
.tech-news-article-body { color:var(--ink); font-size:16px; line-height:1.85; }
.tech-news-article-body p { margin:0 0 25px; }
.tech-news-article-body h2 { margin:48px 0 17px; font-family:Georgia,serif; font-size:36px; font-weight:500; letter-spacing:-.035em; }
.tech-news-article-body h3 { margin:36px 0 14px; font-size:22px; }
.tech-news-article-body ul { margin:0 0 27px; padding-left:22px; }
.tech-news-article-body li { margin:8px 0; }
.tech-news-article-aside { align-self:start; position:sticky; top:100px; padding:24px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.tech-news-article-aside > span { color:var(--teal); font-size:9px; font-weight:900; letter-spacing:.1em; }
.tech-news-article-aside p { margin:13px 0 17px; color:var(--muted); font-size:11px; line-height:1.7; }
.tech-news-article-aside a { color:var(--ink); font-size:10px; font-weight:900; text-decoration:none; }
.tech-news-not-found { position:relative; z-index:5; min-height:66vh; display:grid; align-items:center; padding:70px 0; background:var(--paper); text-align:center; }
.tech-news-not-found span { color:var(--teal); font-size:11px; font-weight:900; letter-spacing:.15em; }
.tech-news-not-found h1 { margin:12px 0; font-family:Georgia,serif; font-size:55px; font-weight:500; }
.tech-news-not-found p { margin:0 auto 25px; max-width:560px; color:var(--muted); }
@media (max-width:1020px) {
  .tech-news-slide { grid-template-columns:1fr 1fr; }
  .tech-news-slide-copy { padding:42px 34px 76px; }
  .tech-news-slider-bar { width:50%; }
  .tech-news-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tech-news-article-header-grid { grid-template-columns:1fr; gap:34px; }
  .tech-news-article-image { max-width:820px; }
}
@media (max-width:760px) {
  .tech-news-page-hero { padding:54px 0 65px; }
  .tech-news-heading { grid-template-columns:1fr; align-items:start; }
  .tech-news-slide { grid-template-columns:1fr; }
  .tech-news-slides { min-height:700px; }
  .tech-news-slide-media,.tech-news-slide-media img { min-height:310px; height:310px; }
  .tech-news-slide-copy { justify-content:flex-start; min-height:390px; padding:31px 25px 78px; }
  .tech-news-slider-bar { left:0; right:0; width:100%; padding-left:17px; }
  .tech-news-slider-dots { justify-content:center; }
  .tech-news-card-grid { grid-template-columns:1fr; }
  .tech-news-article-layout { grid-template-columns:1fr; gap:35px; padding-top:50px; }
  .tech-news-article-aside { position:static; }
}
@media (max-width:480px) {
  .tech-news-slides { min-height:735px; }
  .tech-news-slide-copy h2 { font-size:32px; }
  .tech-news-slider-bar { grid-template-columns:auto 1fr; }
  .tech-news-slider-dots { display:none; }
  .tech-news-slider-controls { justify-self:end; }
  .tech-news-empty-hero { align-items:flex-start; flex-direction:column; padding:28px; }
}
@media (prefers-reduced-motion:reduce) {
  .tech-news-slide,.tech-news-slide-media img,.tech-news-card,.tech-news-card-image img { transition:none!important; }
}

/* Tech-news E-E-A-T, multi-image and editorial policy enhancements */
.tech-news-byline-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:20px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}
.tech-news-byline-row span {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.tech-news-reviewed::before {
  content:"✓";
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:color-mix(in srgb,var(--teal) 14%,var(--surface));
  color:var(--teal);
  font-size:10px;
}
.tech-news-article-image figcaption,
.tech-news-inline-image figcaption {
  margin-top:8px;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}
.tech-news-inline-image {
  margin:32px 0;
}
.tech-news-inline-image img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1200/760;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(20,56,52,.10);
}
.tech-news-disclosure,
.tech-news-fact-check,
.tech-news-author-box,
.tech-news-sources {
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
}
.tech-news-disclosure {
  margin:0 0 28px;
  padding:16px 18px;
  border-left:4px solid var(--teal);
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}
.tech-news-disclosure strong { color:var(--ink); }
.tech-news-fact-check,
.tech-news-author-box,
.tech-news-sources {
  margin-top:34px;
  padding:22px;
}
.tech-news-fact-check > span,
.tech-news-author-box > span,
.tech-news-sources > span {
  display:block;
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
}
.tech-news-fact-check p,
.tech-news-author-box p {
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}
.tech-news-author-box h2,
.tech-news-sources h2 {
  margin:8px 0 0;
  color:var(--ink);
  font-size:23px;
}
.tech-news-author-box a {
  display:inline-block;
  margin-top:14px;
  color:var(--teal);
  font-size:11px;
  font-weight:850;
}
.tech-news-sources ol {
  display:grid;
  gap:9px;
  margin:17px 0 0;
  padding-left:20px;
}
.tech-news-sources li {
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}
.tech-news-sources a {
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:color-mix(in srgb,var(--teal) 40%,transparent);
  text-underline-offset:3px;
}
.tech-news-article-aside a + a {
  display:block;
  margin-top:10px;
}
.tech-news-related {
  padding:72px 0 92px;
  background:color-mix(in srgb,var(--paper) 93%,var(--teal));
  border-top:1px solid var(--line);
}
.policy-hero {
  padding:92px 0 54px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 9%,var(--paper)),var(--paper));
  border-bottom:1px solid var(--line);
}
.policy-hero h1 {
  max-width:850px;
  margin:14px 0 0;
  color:var(--ink);
  font-size:clamp(38px,6vw,70px);
  line-height:1;
  letter-spacing:-.055em;
}
.policy-hero p {
  max-width:720px;
  margin:22px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.75;
}
.policy-content { padding:70px 0 96px; }
.tech-news-policy-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.tech-news-policy-grid article {
  padding:25px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.tech-news-policy-grid h2 {
  margin:0;
  color:var(--ink);
  font-size:22px;
}
.tech-news-policy-grid p {
  margin:12px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}
.tech-news-policy-grid a { color:var(--teal); font-weight:800; }
@media (max-width:760px) {
  .tech-news-policy-grid { grid-template-columns:1fr; }
  .tech-news-inline-image { margin:24px 0; }
  .tech-news-fact-check,.tech-news-author-box,.tech-news-sources { padding:18px; }
}

/* Templates library: calculator-inspired category system */
.template-library-hero .finance-hero-copy > p {
  max-width:740px;
}
.template-hero-panel > strong {
  color:var(--teal);
}
.template-listing-head {
  align-items:end;
  gap:24px;
}
.template-category-toolbar {
  position:static;
}
.template-main-category-row {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  overflow:visible!important;
}
.template-main-category-row button {
  width:100%;
  min-width:0;
  min-height:48px!important;
  padding:10px 14px!important;
  justify-content:space-between;
  text-align:left;
  white-space:normal;
}
.template-main-category-row button span {
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  line-height:1.35;
}
.template-category-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.template-category-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:285px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:17px;
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--teal) 9%,transparent),transparent 36%),
    var(--surface);
  box-shadow:0 15px 34px rgba(20,56,52,.05);
}
.template-category-card[hidden] {
  display:none!important;
}
.template-category-card .finance-card-icon {
  background:color-mix(in srgb,var(--teal) 11%,var(--paper));
  color:var(--teal);
}
.template-category-card .finance-card-category {
  margin-top:24px;
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.template-category-card h2 {
  margin:9px 0 10px;
  color:var(--ink);
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.template-category-card > p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}
.template-category-status {
  display:block;
  margin-top:auto;
  padding-top:22px;
  color:var(--teal);
  font-size:9px;
  font-weight:850;
  letter-spacing:.02em;
}
.template-standards-section {
  border-top:1px solid var(--line);
}
@media (max-width:980px) {
  .template-main-category-row {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .template-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px) {
  .template-listing-head {
    align-items:start;
  }
  .template-main-category-row {
    grid-template-columns:1fr;
  }
  .template-main-category-row button {
    flex:initial!important;
  }
  .template-category-grid {
    grid-template-columns:1fr;
  }
  .template-category-card {
    min-height:245px;
  }
}

/* Canva digital-product ecosystem */
.template-library-section .template-category-toolbar { gap:14px; padding:15px; }
.template-main-category-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
.template-main-category-row button small,
.template-subcategory-grid button small,
.template-subcategory-all-row button small {
  display:inline-grid;
  place-items:center;
  min-width:22px;
  min-height:22px;
  padding:0 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--ink) 8%,transparent);
  color:inherit;
  font-size:8px;
  font-weight:900;
}
.template-main-category-row button.active small,
.template-subcategory-grid button.active small,
.template-subcategory-all-row button.active small { background:rgba(255,255,255,.2); }
.template-subcategory-panel { margin-top:0; }
.template-subcategory-panel[hidden] { display:none!important; }
.template-subcategory-all-row { display:flex; }
.template-subcategory-all-row button,
.template-subcategory-grid button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 11px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
  font-size:9px;
  font-weight:850;
  text-align:left;
}
.template-subcategory-all-row button { min-width:210px; border-color:color-mix(in srgb,var(--teal) 30%,var(--line)); }
.template-subcategory-all-row button:hover,
.template-subcategory-grid button:hover,
.template-subcategory-all-row button:focus-visible,
.template-subcategory-grid button:focus-visible { border-color:var(--teal); color:var(--teal); }
.template-subcategory-all-row button.active,
.template-subcategory-grid button.active { border-color:var(--teal); background:var(--teal); color:#fff; }
.template-subcategory-accordions { display:grid; gap:8px; }
.template-subcategory-accordions details { border:1px solid var(--line); border-radius:11px; background:var(--surface); overflow:hidden; }
.template-subcategory-accordions summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  min-height:44px;
  padding:10px 13px;
  color:var(--ink);
  cursor:pointer;
  list-style:none;
  font-size:10px;
  font-weight:900;
}
.template-subcategory-accordions summary::-webkit-details-marker { display:none; }
.template-subcategory-accordions summary small { color:var(--muted); font-size:8px; font-weight:800; }
.template-subcategory-accordions details[open] summary { border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--teal) 4%,var(--paper)); }
.template-subcategory-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:11px; }
.template-sort-row { display:flex; align-items:end; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.template-sort-row label { display:grid; gap:6px; color:var(--muted); font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.template-sort-row select {
  min-width:225px;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:0 36px 0 12px;
  background:var(--surface);
  color:var(--ink);
  font-size:10px;
  font-weight:750;
}
.template-catalog-download {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:0 14px;
  border:1px solid color-mix(in srgb,var(--teal) 34%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--teal) 5%,var(--surface));
  color:var(--teal);
  font-size:9px;
  font-weight:900;
}
.template-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.template-product-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 16px 40px rgba(20,56,52,.055);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.template-product-card:hover { transform:translateY(-4px); border-color:color-mix(in srgb,var(--teal) 38%,var(--line)); box-shadow:0 22px 50px rgba(20,56,52,.095); }
.template-product-card[hidden] { display:none!important; }
.template-product-preview { display:block; aspect-ratio:4/3; overflow:hidden; background:color-mix(in srgb,var(--teal) 5%,var(--paper)); }
.template-product-preview img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.template-product-card:hover .template-product-preview img { transform:scale(1.025); }
.template-product-body { display:flex; flex:1; flex-direction:column; padding:18px; }
.template-product-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.055em; text-transform:uppercase; }
.template-product-meta small { color:var(--muted); font-size:8px; white-space:nowrap; }
.template-product-card h2 { margin:10px 0 9px; color:var(--ink); font-size:18px; line-height:1.25; letter-spacing:-.03em; }
.template-product-card h2 a { color:inherit; }
.template-product-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.template-product-specs { display:flex; flex-wrap:wrap; gap:6px; margin:15px 0; }
.template-product-specs span { padding:6px 8px; border-radius:999px; background:color-mix(in srgb,var(--teal) 7%,var(--paper)); color:var(--ink); font-size:8px; font-weight:800; }
.template-product-link { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:14px; border-top:1px solid var(--line); color:var(--teal); font-size:9px; font-weight:900; }
.template-bundle-section { padding:90px 0; border-top:1px solid var(--line); background:color-mix(in srgb,var(--teal) 2%,var(--paper)); }
.template-bundle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.template-bundle-card { padding:22px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.template-bundle-card > div { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.template-bundle-card > div span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.08em; }
.template-bundle-card > div strong { color:var(--ink); font-size:20px; }
.template-bundle-card h2 { margin:14px 0 8px; color:var(--ink); font-size:20px; letter-spacing:-.03em; }
.template-bundle-card > p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.template-bundle-card > small { display:block; margin-top:10px; color:var(--ink); font-size:9px; font-weight:800; }
.template-bundle-card details { margin-top:16px; border-top:1px solid var(--line); }
.template-bundle-card summary { display:flex; justify-content:space-between; padding:14px 0 0; color:var(--teal); cursor:pointer; font-size:9px; font-weight:900; }
.template-bundle-card ol { margin:12px 0 0; padding-left:20px; color:var(--muted); font-size:10px; line-height:1.8; }
.template-source-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.template-source-links a { padding:7px 9px; border:1px solid #2d4b47; border-radius:8px; color:#d9f4ef; font-size:8px; font-weight:850; }
.template-faq-section { border-top:1px solid var(--line); }

/* Template blueprint detail page */
.template-detail-page { position:relative; z-index:5; }
.template-detail-hero { padding:80px 0 70px; background:linear-gradient(150deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--paper) 58%); border-bottom:1px solid var(--line); }
.template-detail-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,.88fr); gap:60px; align-items:center; }
.template-breadcrumbs { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:24px; color:var(--muted); font-size:9px; }
.template-breadcrumbs a { color:var(--teal); font-weight:800; }
.template-detail-copy h1 { max-width:780px; margin:12px 0 16px; color:var(--ink); font-size:clamp(38px,5.2vw,68px); line-height:.98; letter-spacing:-.055em; }
.template-detail-lead { max-width:760px; margin:0; color:var(--muted); font-size:15px; line-height:1.75; }
.template-detail-badges { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.template-detail-badges span { padding:8px 11px; border:1px solid color-mix(in srgb,var(--teal) 22%,var(--line)); border-radius:999px; background:var(--surface); color:var(--ink); font-size:9px; font-weight:800; }
.template-detail-actions { display:flex; flex-wrap:wrap; gap:10px; }
.template-blueprint-disclaimer { max-width:760px; margin:18px 0 0; padding:12px 14px; border-left:3px solid var(--teal); background:color-mix(in srgb,var(--teal) 5%,var(--surface)); color:var(--muted); font-size:10px; line-height:1.65; }
.template-detail-preview { margin:0; }
.template-detail-preview img { display:block; width:100%; border:1px solid var(--line); border-radius:24px; box-shadow:0 30px 80px rgba(20,56,52,.14); }
.template-detail-preview figcaption { margin-top:10px; color:var(--muted); font-size:8px; line-height:1.5; }
.template-detail-content { padding:76px 0 100px; background:var(--paper); }
.template-detail-layout { display:grid; grid-template-columns:minmax(0,780px) minmax(250px,320px); justify-content:center; gap:64px; align-items:start; }
.template-detail-main { display:grid; gap:20px; }
.template-detail-section { padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.template-detail-eyebrow { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.09em; }
.template-detail-section > h2 { margin:8px 0 22px; color:var(--ink); font-size:27px; line-height:1.16; letter-spacing:-.04em; }
.template-strategy-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.template-strategy-grid > div { padding:15px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.template-strategy-grid small,.template-strategy-grid strong { display:block; }
.template-strategy-grid small { color:var(--teal); font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.template-strategy-grid strong { margin-top:7px; color:var(--ink); font-size:11px; line-height:1.55; }
.template-two-column-lists { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.template-two-column-lists > div { padding:17px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.template-two-column-lists h3 { margin:0 0 12px; color:var(--ink); font-size:14px; }
.template-two-column-lists ul { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.template-two-column-lists li { position:relative; padding-left:17px; color:var(--muted); font-size:10px; line-height:1.55; }
.template-two-column-lists li::before { content:'✓'; position:absolute; left:0; color:var(--teal); font-weight:900; }
.template-spec-table { margin:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.template-spec-table > div { display:grid; grid-template-columns:160px 1fr; gap:18px; padding:14px 16px; border-bottom:1px solid var(--line); }
.template-spec-table > div:last-child { border-bottom:0; }
.template-spec-table dt { color:var(--teal); font-size:9px; font-weight:900; }
.template-spec-table dd { margin:0; color:var(--ink); font-size:10px; line-height:1.55; }
.template-copy-block { margin-top:12px; border:1px solid var(--line); border-radius:13px; overflow:hidden; }
.template-copy-block > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; background:color-mix(in srgb,var(--teal) 5%,var(--paper)); border-bottom:1px solid var(--line); }
.template-copy-block > div span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-copy-block button,.template-list-heading button { border:0; background:transparent; color:var(--teal); cursor:pointer; font-size:8px; font-weight:900; }
.template-copy-block > p { margin:0; padding:16px; color:var(--ink); font-size:11px; line-height:1.75; }
.template-description-copy > p { color:var(--muted); }
.template-keyword-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.template-keyword-columns > div { min-width:0; padding:16px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.template-list-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.template-list-heading h3 { margin:0; color:var(--ink); font-size:13px; }
.template-chip-list { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.template-chip-list li { padding:6px 8px; border-radius:8px; background:var(--surface); color:var(--muted); font-size:8px; line-height:1.35; }
.template-tag-list li { border:1px solid color-mix(in srgb,var(--teal) 20%,var(--line)); color:var(--teal); }
.template-workflow-list { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.template-workflow-list li { display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:start; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.template-workflow-list span { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:var(--teal); color:#fff; font-size:9px; font-weight:900; }
.template-workflow-list p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.template-bundle-callout { background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 8%,var(--surface)),var(--surface)); }
.template-bundle-callout > p { color:var(--muted); font-size:11px; line-height:1.7; }
.template-bundle-callout > a { display:inline-flex; margin-top:13px; color:var(--teal); font-size:9px; font-weight:900; }
.template-detail-aside { position:sticky; top:100px; display:grid; gap:12px; }
.template-aside-card { padding:19px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.template-aside-card > span { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.08em; }
.template-aside-card > strong { display:block; margin-top:8px; color:var(--ink); font-size:28px; }
.template-aside-card > p { margin:9px 0 0; color:var(--muted); font-size:9px; line-height:1.65; }
.template-aside-card dl { display:grid; gap:10px; margin:14px 0 0; }
.template-aside-card dl div { padding-bottom:9px; border-bottom:1px solid var(--line); }
.template-aside-card dt { color:var(--muted); font-size:8px; }
.template-aside-card dd { margin:4px 0 0; color:var(--ink); font-size:9px; font-weight:800; }
.template-licence-card a { display:inline-flex; margin-top:12px; color:var(--teal); font-size:8px; font-weight:900; }
.template-related-section { padding:80px 0 100px; border-top:1px solid var(--line); background:color-mix(in srgb,var(--teal) 2%,var(--paper)); }
.template-related-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.template-view-all { color:var(--teal)!important; font-weight:850; }

@media (max-width:1100px) {
  .template-subcategory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .template-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-detail-hero-grid { grid-template-columns:1fr 420px; gap:36px; }
}
@media (max-width:900px) {
  .template-main-category-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-subcategory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-detail-hero-grid,.template-detail-layout { grid-template-columns:1fr; }
  .template-detail-preview { max-width:650px; }
  .template-detail-aside { position:static; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .template-product-grid,.template-related-grid,.template-bundle-grid { grid-template-columns:1fr; }
  .template-subcategory-grid { grid-template-columns:1fr; }
  .template-sort-row,.template-detail-actions { align-items:stretch; flex-direction:column; }
  .template-sort-row label,.template-sort-row select,.template-catalog-download { width:100%; }
  .template-strategy-grid,.template-two-column-lists,.template-keyword-columns,.template-detail-aside { grid-template-columns:1fr; }
  .template-spec-table > div { grid-template-columns:1fr; gap:6px; }
  .template-detail-section { padding:21px 18px; }
}
@media (max-width:520px) {
  .template-main-category-row { grid-template-columns:1fr; }
  .template-detail-hero { padding-top:58px; }
  .template-detail-copy h1 { font-size:38px; }
  .template-subcategory-all-row button { width:100%; min-width:0; }
}
.template-catalog-table-wrap { margin-top:28px; border:1px solid var(--line); border-radius:15px; background:var(--surface); overflow:hidden; }
.template-catalog-table-wrap > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; color:var(--teal); cursor:pointer; list-style:none; font-size:10px; font-weight:900; }
.template-catalog-table-wrap > summary::-webkit-details-marker { display:none; }
.template-catalog-table-wrap[open] > summary { border-bottom:1px solid var(--line); }
.template-catalog-table-scroll { overflow:auto; max-height:720px; }
.template-catalog-table { width:100%; min-width:1250px; border-collapse:collapse; }
.template-catalog-table th,.template-catalog-table td { padding:11px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.template-catalog-table th { position:sticky; top:0; z-index:2; background:var(--paper); color:var(--teal); font-size:8px; letter-spacing:.05em; text-transform:uppercase; }
.template-catalog-table td { color:var(--muted); font-size:8px; line-height:1.55; }
.template-catalog-table td a { color:var(--ink); font-weight:850; }

/* Template storefront: free/paid access, protected formats and on-site workspace */
.template-product-preview { position:relative; }
.template-access-badge {
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  box-shadow:0 8px 24px rgba(15,35,32,.14);
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
}
.template-access-badge.free { background:rgba(8,121,108,.9); }
.template-access-badge.paid { background:rgba(15,23,42,.9); }
.template-access-section {
  padding:54px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--paper));
}
.template-access-grid {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  gap:32px;
  align-items:center;
}
.template-access-copy h2 { max-width:760px; margin:10px 0 12px; font-size:36px; letter-spacing:-.045em; }
.template-access-copy > p { max-width:720px; color:var(--muted); font-size:14px; line-height:1.75; }
.template-access-price { display:flex; align-items:baseline; gap:14px; margin-top:22px; }
.template-access-price small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-access-price strong { color:var(--teal); font-size:34px; letter-spacing:-.04em; }
.template-access-card {
  padding:24px;
  border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line));
  border-radius:20px;
  background:var(--surface);
  box-shadow:0 24px 70px rgba(21,61,56,.12);
}
.template-format-label { display:block; margin-bottom:8px; color:var(--ink); font-size:10px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.template-format-select {
  width:100%;
  min-height:52px;
  margin-bottom:14px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  font-weight:750;
}
.template-access-card .button { width:100%; justify-content:center; }
.template-access-note { margin:12px 0 0; color:var(--muted); font-size:10px; line-height:1.6; }
.template-no-file { padding:18px; border:1px dashed var(--line); border-radius:14px; background:var(--paper); }
.template-no-file strong { display:block; color:var(--ink); font-size:16px; }
.template-no-file p { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.template-workspace-section { padding:78px 0; background:var(--paper); }
.template-workspace-grid { display:grid; grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr); gap:28px; align-items:stretch; }
.template-workspace-controls {
  display:grid;
  gap:14px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 18px 50px rgba(20,56,52,.07);
}
.template-workspace-controls label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.template-workspace-controls input[type="text"],
.template-workspace-controls textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  resize:vertical;
}
.template-workspace-colours { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.template-workspace-colours label { grid-template-columns:1fr auto; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:11px; }
.template-workspace-colours input { width:42px; height:32px; border:0; background:transparent; cursor:pointer; }
.template-workspace-actions { display:flex; flex-wrap:wrap; gap:9px; }
.template-live-preview {
  --workspace-accent:#08796c;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:560px;
  overflow:hidden;
  padding:78px 84px 78px 112px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#f2f0ea;
  box-shadow:0 28px 80px rgba(20,56,52,.12);
}
.template-live-preview::before { content:""; position:absolute; inset:48px auto 48px 58px; width:12px; border-radius:99px; background:var(--workspace-accent); }
.template-live-preview::after { content:""; position:absolute; right:-90px; top:-90px; width:280px; height:280px; border:48px solid color-mix(in srgb,var(--workspace-accent) 18%,transparent); border-radius:50%; }
.template-live-preview span { position:relative; z-index:1; color:var(--workspace-accent); font-size:16px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.template-live-preview strong { position:relative; z-index:1; display:block; max-width:760px; margin-top:30px; color:#10201e; font-size:54px; line-height:1.02; letter-spacing:-.055em; overflow-wrap:anywhere; }
.template-live-preview p { position:relative; z-index:1; max-width:680px; margin:28px 0 0; color:#4c5e5a; font-size:20px; line-height:1.55; }
.template-live-preview em { position:relative; z-index:1; align-self:flex-start; margin-top:38px; padding:15px 24px; border-radius:999px; background:var(--workspace-accent); color:#fff; font-size:12px; font-style:normal; font-weight:900; }
.template-checkout-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(5,18,17,.66);
  backdrop-filter:blur(12px);
}
.template-checkout-modal-backdrop[hidden] { display:none!important; }
.template-modal-open { overflow:hidden; }
.template-checkout-modal {
  position:relative;
  width:min(560px,100%);
  max-height:90vh;
  overflow:auto;
  padding:30px;
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 36px 120px rgba(0,0,0,.3);
}
.template-checkout-modal h2 { margin:10px 0 10px; font-size:30px; letter-spacing:-.04em; }
.template-checkout-modal > p { color:var(--muted); font-size:12px; line-height:1.7; }
.template-checkout-modal form { display:grid; gap:13px; margin-top:22px; }
.template-checkout-modal form label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.template-checkout-modal input { min-height:48px; padding:0 13px; border:1px solid var(--line); border-radius:11px; background:var(--paper); color:var(--ink); font-size:12px; font-weight:500; letter-spacing:0; text-transform:none; }
.template-checkout-modal > small { display:block; margin-top:14px; color:var(--muted); font-size:9px; line-height:1.55; }
.template-checkout-close { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--ink); font-size:22px; cursor:pointer; }
.template-checkout-page { min-height:70vh; }
.template-checkout-section { padding:100px 0; background:linear-gradient(140deg,color-mix(in srgb,var(--teal) 8%,var(--paper)),var(--paper)); }
.template-checkout-shell { max-width:860px; }
.template-checkout-card { padding:38px; border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:0 30px 90px rgba(20,56,52,.13); }
.template-checkout-card > span { color:var(--teal); font-size:9px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.template-checkout-card h1 { margin:12px 0; font-size:42px; letter-spacing:-.05em; }
.template-checkout-card > p { color:var(--muted); font-size:13px; line-height:1.75; }
.template-order-summary { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; margin:28px 0; border:1px solid var(--line); border-radius:14px; background:var(--line); }
.template-order-summary div { padding:16px; background:var(--paper); }
.template-order-summary dt { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-order-summary dd { margin:6px 0 0; color:var(--ink); font-size:13px; font-weight:850; overflow-wrap:anywhere; }
.template-payment-instructions,.template-status-link,.template-order-state { margin-top:20px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.template-payment-instructions strong,.template-status-link strong,.template-order-state strong { display:block; color:var(--ink); font-size:13px; }
.template-payment-instructions p,.template-status-link p,.template-order-state p { margin:7px 0 0; color:var(--muted); font-size:11px; line-height:1.65; }
.template-status-link a { display:block; margin-top:10px; color:var(--teal); font-size:10px; font-weight:800; overflow-wrap:anywhere; }
.template-checkout-note { margin-top:18px!important; font-size:10px!important; }
.template-pay-button { margin-top:2px; }
.template-order-paid { border-color:color-mix(in srgb,#0a9f6f 35%,var(--line)); background:color-mix(in srgb,#0a9f6f 5%,var(--paper)); }
.template-order-pending { border-color:color-mix(in srgb,#d29424 35%,var(--line)); background:color-mix(in srgb,#d29424 5%,var(--paper)); }
.template-order-cancelled,.template-checkout-error { border-color:color-mix(in srgb,#c94c4c 35%,var(--line)); }
.template-return-link { display:inline-block; margin-top:22px; color:var(--teal); font-size:11px; font-weight:850; }
@media (max-width:900px) {
  .template-access-grid,.template-workspace-grid { grid-template-columns:1fr; }
  .template-live-preview { min-height:500px; }
}
@media (max-width:620px) {
  .template-access-copy h2 { font-size:30px; }
  .template-live-preview { min-height:450px; padding:60px 42px 60px 72px; }
  .template-live-preview::before { left:32px; }
  .template-live-preview strong { font-size:38px; }
  .template-live-preview p { font-size:16px; }
  .template-order-summary { grid-template-columns:1fr; }
  .template-checkout-card { padding:24px; }
  .template-checkout-card h1 { font-size:32px; }
}

/* Premium template previews and calculator-style modal workspace */
.template-product-preview {
  position:relative;
  width:100%;
  padding:0;
  border:0;
  cursor:pointer;
  text-align:left;
}
.template-product-preview::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 52%,rgba(5,18,17,.68));
  opacity:0;
  transition:opacity .25s ease;
}
.template-preview-hover {
  position:absolute;
  left:18px;
  bottom:16px;
  z-index:3;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:rgba(8,25,23,.72);
  color:#fff;
  font-size:9px;
  font-weight:900;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease;
  backdrop-filter:blur(10px);
}
.template-product-card:hover .template-product-preview::after,
.template-product-preview:focus-visible::after,
.template-product-card:hover .template-preview-hover,
.template-product-preview:focus-visible .template-preview-hover { opacity:1; }
.template-product-card:hover .template-preview-hover,
.template-product-preview:focus-visible .template-preview-hover { transform:none; }
.template-product-card h2 button,
.template-product-link,
.template-table-product-button {
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
.template-product-card h2 button:hover,
.template-product-card h2 button:focus-visible,
.template-table-product-button:hover,
.template-table-product-button:focus-visible { color:var(--teal); }
.template-product-link { width:100%; }
.template-product-noscript { display:block; margin-top:10px; color:var(--teal); font-size:9px; font-weight:850; }
.template-table-product-button { color:var(--ink); font-weight:850; }

.template-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:1600;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(4,15,14,.76);
  backdrop-filter:blur(18px);
}
.template-modal-backdrop[hidden] { display:none!important; }
.template-modal {
  width:min(1440px,100%);
  max-height:94vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.14);
  border-radius:26px;
  background:var(--surface);
  box-shadow:0 44px 150px rgba(0,0,0,.42);
  outline:none;
}
.template-modal-header {
  position:sticky;
  top:0;
  z-index:7;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:22px 26px 18px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter:blur(18px);
}
.template-modal-header > div { min-width:0; }
.template-modal-header span {
  color:var(--teal);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.template-modal-header h2 {
  margin:6px 0 6px;
  color:var(--ink);
  font-size:clamp(24px,3vw,38px);
  line-height:1.05;
  letter-spacing:-.045em;
}
.template-modal-header p { max-width:850px; margin:0; color:var(--muted); font-size:11px; line-height:1.65; }
.template-modal-close {
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper);
  color:var(--ink);
  font-size:27px;
  cursor:pointer;
}
.template-modal-tabs {
  position:sticky;
  top:109px;
  z-index:6;
  display:flex;
  gap:8px;
  padding:12px 26px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 95%,transparent);
  backdrop-filter:blur(18px);
}
.template-modal-tabs button {
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}
.template-modal-tabs button.active {
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}
.template-modal-panel { padding:24px; }
.template-modal-panel[hidden] { display:none!important; }
.template-modal-editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(340px,.7fr);
  gap:24px;
  align-items:start;
}
.template-modal-preview-column { display:grid; gap:18px; min-width:0; }
.template-modal-composite {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--paper);
  box-shadow:0 22px 60px rgba(20,56,52,.1);
}
.template-modal-composite img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.template-modal-live-frame {
  display:grid;
  place-items:center;
  padding:26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:
    linear-gradient(45deg,color-mix(in srgb,var(--teal) 4%,transparent) 25%,transparent 25%) 0 0/24px 24px,
    linear-gradient(-45deg,color-mix(in srgb,var(--teal) 4%,transparent) 25%,transparent 25%) 0 12px/24px 24px,
    var(--paper);
}
.template-modal-live-canvas {
  --template-bg:#f7f4ee;
  --template-text:#111318;
  --template-accent:#c8a96b;
  --template-heading-font:"Cormorant Garamond",Georgia,serif;
  --template-body-font:"Manrope",Arial,sans-serif;
  --template-heading-size:66px;
  --template-body-size:20px;
  --template-align:left;
  position:relative;
  display:grid;
  width:min(100%,720px);
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:12px;
  background:var(--template-bg);
  color:var(--template-text);
  box-shadow:0 28px 80px rgba(8,22,20,.2);
  isolation:isolate;
}
.template-live-photo {
  position:relative;
  overflow:hidden;
  min-height:0;
  background:
    radial-gradient(circle at 68% 34%,color-mix(in srgb,var(--template-accent) 60%,transparent) 0 15%,transparent 16%),
    linear-gradient(145deg,color-mix(in srgb,var(--template-text) 7%,var(--template-bg)),color-mix(in srgb,var(--template-accent) 26%,var(--template-bg)));
  background-position:center;
  background-size:cover;
}
.template-live-photo::before {
  content:"";
  position:absolute;
  width:42%;
  aspect-ratio:1;
  left:29%;
  top:22%;
  border-radius:48% 52% 42% 58%;
  background:var(--template-text);
  opacity:.08;
  transform:rotate(-12deg);
}
.template-live-photo span {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:var(--template-text);
  font:800 12px/1 var(--template-body-font);
  letter-spacing:.12em;
  opacity:.45;
}
.template-live-photo.has-image span { display:none; }
.template-live-copy {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:8%;
  text-align:var(--template-align);
}
.template-live-copy small {
  display:block;
  color:var(--template-accent);
  font:800 13px/1.2 var(--template-body-font);
  letter-spacing:.13em;
}
.template-live-copy strong {
  display:block;
  margin-top:18px;
  color:var(--template-text);
  font-family:var(--template-heading-font);
  font-size:clamp(30px,var(--template-heading-size),78px);
  font-weight:700;
  line-height:.94;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
}
.template-live-copy p {
  max-width:620px;
  margin:22px 0 0;
  color:var(--template-text);
  font-family:var(--template-body-font);
  font-size:clamp(13px,var(--template-body-size),30px);
  line-height:1.45;
  opacity:.74;
}
.template-live-copy em {
  align-self:var(--template-align);
  display:inline-flex;
  margin-top:28px;
  padding:13px 20px;
  border-radius:999px;
  background:var(--template-accent);
  color:var(--template-text);
  font:800 11px/1 var(--template-body-font);
  font-style:normal;
  letter-spacing:.08em;
}
.template-live-ornament { position:absolute; z-index:1; pointer-events:none; }
.template-modal-live-canvas[data-layout="split"] { grid-template-rows:54% 46%; }
.template-modal-live-canvas[data-layout="split"] .template-live-photo { grid-row:1; }
.template-modal-live-canvas[data-layout="split"] .template-live-copy { grid-row:2; }
.template-modal-live-canvas[data-layout="poster"] { grid-template-columns:63% 37%; }
.template-modal-live-canvas[data-layout="poster"] .template-live-photo { grid-column:2; grid-row:1; }
.template-modal-live-canvas[data-layout="poster"] .template-live-copy { grid-column:1; grid-row:1; }
.template-modal-live-canvas[data-layout="poster"] .template-live-ornament { right:30%; top:0; width:7%; height:100%; background:var(--template-accent); }
.template-modal-live-canvas[data-layout="minimal"] { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:9%; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-photo { order:1; flex:0 0 43%; width:62%; min-height:0; border-radius:50%; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy { order:2; align-items:center; padding:8% 0 0; text-align:center; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy p { text-align:center; }
.template-modal-live-canvas[data-layout="minimal"] .template-live-copy em { align-self:center; }
.template-modal-live-canvas[data-layout="card"] { padding:7%; background:linear-gradient(145deg,var(--template-bg),color-mix(in srgb,var(--template-accent) 22%,var(--template-bg))); }
.template-modal-live-canvas[data-layout="card"] .template-live-photo { position:absolute; inset:7% 7% 46%; border-radius:26px; }
.template-modal-live-canvas[data-layout="card"] .template-live-copy { align-self:end; min-height:45%; padding:8%; border-radius:26px; background:color-mix(in srgb,var(--template-bg) 88%,transparent); backdrop-filter:blur(18px); }
.template-modal-live-canvas[data-family="notes-chic"] .template-live-ornament { left:6%; bottom:7%; width:38%; height:13px; background:var(--template-accent); transform:rotate(-3deg); }
.template-modal-live-canvas[data-family="bold-block"] .template-live-copy strong { text-transform:uppercase; font-weight:900; }
.template-modal-live-canvas[data-family="tactile-collage"]::after { content:""; position:absolute; inset:0; opacity:.11; background-image:radial-gradient(var(--template-text) .65px,transparent .65px); background-size:6px 6px; pointer-events:none; }
.template-modal-live-canvas[data-family="saas-ui"] { border-radius:30px; }
.template-modal-live-canvas[data-family="saas-ui"] .template-live-copy em { border-radius:12px; }
.template-modal-live-canvas[data-family="luxury-editorial"] .template-live-copy strong { font-weight:500; }

.template-modal-controls {
  position:sticky;
  top:177px;
  display:grid;
  gap:13px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  box-shadow:0 20px 60px rgba(20,56,52,.08);
}
.template-control-heading { padding-bottom:13px; border-bottom:1px solid var(--line); }
.template-control-heading span { display:block; color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.1em; }
.template-control-heading strong { display:block; margin-top:5px; color:var(--ink); font-size:17px; }
.template-modal-controls label {
  display:grid;
  gap:6px;
  color:var(--ink);
  font-size:8px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.template-modal-controls input[type="text"],
.template-modal-controls input[type="email"],
.template-modal-controls textarea,
.template-modal-controls select,
.template-modal-access-card input,
.template-modal-access-card select {
  width:100%;
  min-height:43px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 11px;
  background:var(--paper);
  color:var(--ink);
  font:500 11px/1.4 Arial,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
.template-modal-controls textarea { resize:vertical; }
.template-control-grid { display:grid; gap:9px; }
.template-control-grid.two { grid-template-columns:1fr 1fr; }
.template-control-grid.three { grid-template-columns:repeat(3,1fr); }
.template-control-grid input[type="color"] { width:100%; height:44px; padding:3px; border:1px solid var(--line); border-radius:10px; background:var(--paper); cursor:pointer; }
.template-control-grid input[type="range"] { width:100%; accent-color:var(--teal); }
.template-control-grid output { justify-self:end; margin-top:-17px; color:var(--muted); font-size:8px; }
.template-image-upload { padding:12px; border:1px dashed color-mix(in srgb,var(--teal) 42%,var(--line)); border-radius:11px; background:color-mix(in srgb,var(--teal) 4%,var(--paper)); }
.template-image-upload input { margin-top:4px; font-size:9px; }
.template-modal-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.template-editor-note { margin:0; color:var(--muted); font-size:8px; line-height:1.55; }

.template-modal-details-grid { display:grid; gap:18px; }
.template-modal-details-grid > section {
  padding:24px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.template-modal-eyebrow { color:var(--teal); font-size:8px; font-weight:900; letter-spacing:.1em; }
.template-modal-details-grid h3 { margin:7px 0 18px; color:var(--ink); font-size:23px; letter-spacing:-.035em; }
.template-modal-specs { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--line); }
.template-modal-specs div { padding:13px; background:var(--paper); }
.template-modal-specs dt { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-modal-specs dd { margin:5px 0 0; color:var(--ink); font-size:11px; font-weight:750; line-height:1.45; }
.template-modal-swatches { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.template-modal-swatches span { display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:8px; font-weight:800; }
.template-modal-swatches span::before { content:""; width:20px; height:20px; border:1px solid rgba(0,0,0,.1); border-radius:50%; background:var(--swatch); }
.template-modal-list-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.template-modal-list-columns > div { padding:16px; border-radius:13px; background:var(--paper); }
.template-modal-list-columns h4 { margin:0 0 10px; color:var(--ink); font-size:12px; }
.template-modal-list-columns ul { margin:0; padding-left:18px; color:var(--muted); font-size:10px; line-height:1.75; }
.template-modal-seo-section p { color:var(--muted); font-size:11px; line-height:1.75; }
.template-modal-chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.template-modal-chips span { padding:6px 9px; border-radius:999px; background:color-mix(in srgb,var(--teal) 7%,var(--paper)); color:var(--ink); font-size:8px; font-weight:800; }

.template-modal-download-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(350px,.8fr);
  gap:28px;
  align-items:center;
  min-height:480px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 7%,var(--paper)),var(--surface));
}
.template-modal-download-grid h3 { margin:8px 0 10px; color:var(--ink); font-size:34px; letter-spacing:-.045em; }
.template-modal-download-grid p { max-width:700px; color:var(--muted); font-size:12px; line-height:1.7; }
.template-modal-price { display:flex; align-items:baseline; gap:14px; margin-top:24px; }
.template-modal-price small { color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.template-modal-price strong { color:var(--teal); font-size:38px; letter-spacing:-.045em; }
.template-modal-access-card { display:grid; gap:13px; padding:22px; border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line)); border-radius:18px; background:var(--surface); box-shadow:0 22px 70px rgba(20,56,52,.12); }
.template-modal-access-card > label,
.template-modal-access-card form label { display:grid; gap:7px; color:var(--ink); font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.template-modal-access-card .button { width:100%; justify-content:center; }
.template-modal-access-card form { display:grid; gap:12px; }
.template-modal-no-files { padding:18px; border:1px dashed var(--line); border-radius:13px; background:var(--paper); }
.template-modal-no-files strong { display:block; color:var(--ink); }
.template-modal-no-files p { margin:7px 0 0; font-size:10px; }

@media (max-width:1100px) {
  .template-modal-editor-grid { grid-template-columns:1fr; }
  .template-modal-controls { position:static; }
  .template-modal-download-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .template-modal-backdrop { padding:0; align-items:end; }
  .template-modal { width:100%; max-height:96vh; border-radius:24px 24px 0 0; }
  .template-modal-header { padding:18px; }
  .template-modal-header p { display:none; }
  .template-modal-tabs { top:89px; overflow-x:auto; padding:10px 18px; }
  .template-modal-tabs button { flex:0 0 auto; }
  .template-modal-panel { padding:14px; }
  .template-modal-editor-grid { gap:14px; }
  .template-modal-live-frame { padding:12px; }
  .template-modal-controls { padding:15px; }
  .template-control-grid.two,.template-control-grid.three { grid-template-columns:1fr; }
  .template-modal-specs,.template-modal-list-columns { grid-template-columns:1fr; }
  .template-modal-download-grid { min-height:0; padding:18px; }
  .template-modal-download-grid h3 { font-size:27px; }
  .template-modal-composite img { aspect-ratio:4/3; }
}
