:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e8ee;
  --surface: #fff;
  --soft: #f6f7fb;
  --brand: #5b5bd6;
  --brand-2: #7c6ee6;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 18px 46px rgba(24, 32, 51, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 0%, #eeeeff 0, transparent 28rem), var(--soft);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(230,232,238,.9);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(145deg,var(--brand),var(--brand-2)); box-shadow: 0 9px 24px rgba(91,91,214,.3); }
.toplinks { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 44px; text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); background: #fff; border: 1px solid #deddf8; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
h1 { margin: 19px 0 12px; font-size: clamp(36px, 6vw, 68px); letter-spacing: -.055em; line-height: 1.03; }
.hero p { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.searchbox { max-width: 760px; margin: 34px auto 0; background: #fff; border: 1px solid var(--line); padding: 9px; border-radius: 18px; box-shadow: var(--shadow); display: flex; gap: 10px; }
.searchbox input { flex: 1; border: 0; outline: 0; padding: 10px 14px; min-width: 0; }
.searchbox button, .primary { border: 0; color: #fff; background: var(--brand); border-radius: 12px; padding: 12px 18px; font-weight: 700; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.stats strong { color: var(--ink); }
.section { padding: 28px 0 54px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 13px; }
.filter.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; min-height: 174px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d4f4; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; margin-bottom: 19px; }
.card h3 { margin: 0 0 7px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card small { margin-top: auto; padding-top: 13px; color: #98a2b3; }
.empty { grid-column: 1/-1; padding: 60px 20px; text-align: center; color: var(--muted); }
.tool-layout { padding: 34px 0 70px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.tool-head h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 10px; }
.tool-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.privacy-badge { flex: 0 0 auto; color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(24,32,51,.04); }
.panel-title { margin: 0 0 17px; font-size: 17px; }
.fields { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8dbe4; background: #fff; border-radius: 12px; padding: 11px 12px; outline: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input[type=file] { background: var(--soft); padding: 18px; border-style: dashed; }
.field input[type=color] { height: 46px; padding: 5px; }
.form-actions { display: flex; gap: 10px; margin-top: 19px; }
.secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; border-radius: 12px; padding: 12px 16px; }
.primary[disabled] { opacity: .55; cursor: wait; }
.result { min-height: 250px; }
.result-placeholder { color: var(--muted); line-height: 1.8; }
.result-output { white-space: pre-wrap; word-break: break-word; background: #f8f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 15px; max-height: 480px; overflow: auto; line-height: 1.55; }
.result-output.success { border-color: #abefc6; background: #f6fef9; }
.result-output.error { color: var(--danger); border-color: #fecdca; background: #fffbfa; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.download { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c7c5f1; color: var(--brand); background: #f6f5ff; border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 13px; }
.preview-img { display: block; max-width: 100%; max-height: 440px; border-radius: 12px; margin: 0 auto; }
.preview-canvas { max-width: 100%; border: 1px solid var(--line); border-radius: 12px; cursor: crosshair; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 0 60px; }
.info article { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.info h3 { margin: 0 0 8px; font-size: 15px; }
.info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.notice { margin-top: 14px; color: #7a5d00; background: #fffaeb; border: 1px solid #fedf89; border-radius: 12px; padding: 11px 13px; font-size: 13px; line-height: 1.55; }
.diff-add { color: #067647; background: #ecfdf3; }
.diff-del { color: #b42318; background: #fef3f2; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2,1fr); } .workbench { grid-template-columns: 1fr; } .info { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .toplinks { display:none; } .hero { padding-top: 48px; } .grid { grid-template-columns: 1fr; } .searchbox button { display:none; } .tool-head { display:block; } .privacy-badge { display:inline-block; margin-top:14px; } .panel { padding:18px; } }

/* UI refresh */
:root {
  --page: #f7f8fc;
  --card: #ffffff;
  --card-strong: #ffffff;
  --ink: #171a2b;
  --muted: #697083;
  --line: #e5e7ef;
  --line-strong: #d9dce7;
  --brand: #635bff;
  --brand-2: #867bff;
  --brand-soft: #eeecff;
  --header: rgba(255,255,255,.82);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f111a;
  --card: #171a25;
  --card-strong: #1d2030;
  --ink: #f4f5fa;
  --muted: #9ba2b7;
  --line: #292d3d;
  --line-strong: #363b50;
  --brand-soft: #29264e;
  --header: rgba(15,17,26,.86);
  --soft: #121520;
  --surface: #171a25;
}
body { background: var(--page); color: var(--ink); }
.topbar { padding: 0; background: var(--header); border-color: var(--line); }
.topbar-inner { width: min(1240px, calc(100% - 32px)); height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; font-size: 18px; }
.brand-mark { width: 38px; height: 38px; background: linear-gradient(145deg,#6c63ff,#5146e5); font-size: 15px; }
.header-search { position: relative; width: min(420px,36vw); display: flex; align-items: center; gap: 9px; margin-left: auto; padding: 0 13px; border: 1px solid var(--line); background: color-mix(in srgb,var(--card) 78%, transparent); border-radius: 12px; }
.header-search input { width: 100%; height: 40px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
#header-results { display: none; position: absolute; top: 48px; left: 0; right: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
#header-results.open { display: grid; z-index: 40; }
#header-results>a { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; font-size:13px; }
#header-results>a:hover { background:var(--brand-soft); color:var(--brand); }
#header-results>a>span { display:grid; place-items:center; flex:0 0 auto; width:30px; height:30px; color:#fff; border-radius:8px; font-size:11px; font-weight:800; }
#header-results>a div { display:grid; gap:2px; min-width:0; } #header-results>a small{color:var(--muted);font-size:10px} #header-results>p{padding:10px;margin:0;color:var(--muted);font-size:12px}
.toplinks { align-items: center; gap: 18px; }
.toplinks a { font-weight: 600; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--card); }
.wrap { width: min(1240px, calc(100% - 32px)); }
.hero { padding: 74px 0 58px; text-align: left; background: radial-gradient(circle at 85% 30%,rgba(99,91,255,.13),transparent 30rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(350px,.85fr); align-items: center; gap: clamp(44px,8vw,100px); }
.hero-copy { max-width: 700px; }
.eyebrow { padding: 7px 13px; border-color: color-mix(in srgb,var(--brand) 25%,var(--line)); background: var(--brand-soft); }
.eyebrow i, .dashboard-head i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.12); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(44px,6vw,76px); line-height: 1.04; }
.hero h1 span { color: var(--brand); }
.hero p { max-width: 620px; margin: 0; font-size: 17px; }
.searchbox { max-width: 680px; margin: 30px 0 0; padding: 4px 14px; border-radius: 15px; gap: 9px; box-shadow: 0 18px 50px rgba(38,34,100,.09); }
.searchbox input { height: 50px; padding: 0 6px; color: var(--ink); background: transparent; }
.searchbox kbd { align-self: center; padding: 5px 8px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; white-space: nowrap; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.hero-links a:hover { color: var(--brand); }
.hero-dashboard { position: relative; overflow: hidden; padding: 26px; color: #fff; background: linear-gradient(150deg,#24213e,#181626); border-radius: 28px; box-shadow: 0 30px 70px rgba(31,28,72,.24); }
.hero-dashboard::after { content:""; position:absolute; width:240px; height:240px; right:-90px; top:-100px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025); }
.dashboard-head { position: relative; z-index: 1; display:flex; justify-content:space-between; color:#c5c4d4; font-size:12px; }
.dashboard-head strong { display:flex; align-items:center; gap:8px; color:#b7f7d2; }
.dashboard-number { position: relative; z-index:1; display:flex; align-items:end; gap:12px; margin:38px 0 22px; }
.dashboard-number b { font-size:64px; line-height:.85; letter-spacing:-.06em; }
.dashboard-number span { color:#c5c4d4; padding-bottom:5px; }
.dashboard-grid { position: relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.dashboard-grid div { display:grid; gap:6px; padding:13px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.07); border-radius:13px; }
.dashboard-grid span { color:#aaa8bd; font-size:11px; }.dashboard-grid b { font-size:16px; }
.dashboard-note { position:relative; z-index:1; display:flex; align-items:center; gap:11px; margin-top:18px; padding:13px 15px; background:rgba(99,91,255,.22); border-radius:13px; }
.dashboard-note p { margin:0; color:#c9c7df; font-size:11px; line-height:1.5; }.dashboard-note strong { color:#fff; font-size:13px; }
.category-section { padding-bottom: 42px; }
.category-overview { display: grid; grid-template-columns: repeat(9,1fr); gap: 10px; }
.category-overview button { display:grid; justify-items:center; gap:7px; min-width:0; padding:14px 6px; color:var(--muted); background:var(--card); border:1px solid var(--line); border-radius:15px; font-size:12px; transition:.2s; }
.category-overview button>span { display:grid; place-items:center; width:36px; height:36px; color:#fff; border-radius:11px; font-weight:800; }
.category-overview button b { overflow:hidden; width:100%; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.category-overview button small { color:#a2a8b7; }.category-overview button:hover { color:var(--ink); transform:translateY(-3px); box-shadow:var(--shadow); }
.recent-section { padding: 28px 0 8px; }
.recent-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.recent-card,.related-card { display:grid; grid-template-columns:auto 1fr; gap:6px 11px; align-items:center; padding:16px; background:var(--card); border:1px solid var(--line); border-radius:15px; }
.recent-card .card-icon,.related-card .card-icon{grid-row:1/3;width:36px;height:36px;margin:0;border-radius:10px}.recent-card h3,.related-card h3{margin:0;font-size:14px}.recent-card p,.related-card p{display:none}.recent-card small,.related-card small{grid-column:2;color:var(--muted);font-size:11px}
.section { padding-top: 52px; }
.section-kicker { display:block; margin-bottom:7px; color:var(--brand); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.section-head h2 { font-size: 29px; }
.filters { max-width: 680px; justify-content:flex-end; }
.filter { background:var(--card); border-color:var(--line); }
.grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap:15px; }
.card { position:relative; min-height:186px; padding:20px; background:var(--card); border-color:var(--line); }
.card::after { content:"→"; position:absolute; right:18px; top:21px; color:transparent; transform:translateX(-5px); transition:.2s; }
.card:hover::after { color:var(--brand); transform:none; }
.card-icon { margin-bottom:22px; box-shadow:0 7px 15px color-mix(in srgb,currentColor 18%,transparent); }
.card h3 { font-size:16px; }.card small { border-top:1px solid var(--line); }
.tool-layout { padding: 26px 0 76px; }
.tool-shell { display:grid; grid-template-columns:210px minmax(0,1fr); gap:32px; align-items:start; }
.tool-sidebar { position:sticky; top:92px; display:grid; gap:8px; }
.back-home { margin-bottom:18px; color:var(--muted); font-size:13px; }
.tool-sidebar>p { margin:0 0 5px; color:#9aa1b2; font-size:11px; font-weight:800; letter-spacing:.12em; }
#side-categories { display:grid; gap:4px; }
#side-categories a { display:flex; justify-content:space-between; align-items:center; padding:9px 10px; color:var(--muted); border-radius:9px; font-size:13px; }
#side-categories a:hover,#side-categories a.active { color:var(--brand); background:var(--brand-soft); }#side-categories a small{font-size:10px}
.side-safe { display:grid; gap:5px; margin-top:22px; padding:14px; color:#087a4c; background:#ecfdf3; border:1px solid #abefc6; border-radius:13px; font-size:12px; }.side-safe span{color:#4d8069;font-size:11px}
.tool-main { min-width:0; }
.crumbs { display:flex; gap:8px; margin:5px 0 24px; }
.tool-head { align-items:center; padding:0 0 24px; border-bottom:1px solid var(--line); }
.tool-title-row { display:flex; align-items:center; gap:17px; }
.tool-title-icon { flex:0 0 auto; display:grid; place-items:center; width:56px; height:56px; color:#fff; background:var(--tool-color); border-radius:17px; font-weight:800; font-size:18px; box-shadow:0 13px 25px color-mix(in srgb,var(--tool-color) 30%,transparent); }
.tool-head h1 { font-size:clamp(28px,4vw,42px); }.tool-head p{font-size:14px}
.tool-actions { display:flex; align-items:center; gap:9px; }
.privacy-badge { margin:0; }
.favorite-button { padding:8px 12px; color:var(--muted); background:var(--card); border:1px solid var(--line); border-radius:999px; font-size:12px; }
.favorite-button.selected { color:#a16207; background:#fffaeb; border-color:#fedf89; }
.workbench { margin-top:22px; grid-template-columns:minmax(0,1fr) minmax(340px,.84fr); gap:16px; }
.panel { padding:23px; background:var(--card); border-color:var(--line); box-shadow:none; }
.panel-heading { display:flex; align-items:center; gap:11px; margin-bottom:20px; padding-bottom:15px; border-bottom:1px solid var(--line); }
.panel-heading>span { display:grid; place-items:center; width:28px; height:28px; color:var(--brand); background:var(--brand-soft); border-radius:8px; font-size:10px; font-weight:800; }
.panel-heading h2 { margin:0 0 3px; }.panel-heading p { margin:0; color:var(--muted); font-size:11px; }
.field input,.field select,.field textarea { color:var(--ink); background:var(--card-strong); border-color:var(--line-strong); }
.field input[type=file] { min-height:82px; background:var(--soft); }
.file-field.dragging input[type=file] { border-color:var(--brand); background:var(--brand-soft); }
.form-actions .primary { display:flex; justify-content:space-between; align-items:center; min-width:160px; background:linear-gradient(135deg,var(--brand),#5148dd); box-shadow:0 9px 20px rgba(99,91,255,.25); }
.result { position:sticky; top:92px; min-height:330px; }
.result-placeholder { display:grid; justify-items:center; align-content:center; min-height:215px; text-align:center; }
.result-placeholder i { display:grid; place-items:center; width:48px; height:48px; color:var(--brand); background:var(--brand-soft); border-radius:15px; font-style:normal; }
.result-placeholder p { margin:13px 0 4px; color:var(--ink); font-weight:700; }.result-placeholder small{color:var(--muted)}
.result-output { background:var(--soft); border-color:var(--line); }
.result-image { display:block; max-width:100%; max-height:360px; margin:0 auto 16px; border:1px solid var(--line); border-radius:14px; object-fit:contain; }
.palette-result { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:9px; margin-top:12px; }
.palette-result>div { display:grid; gap:5px; min-width:0; padding:9px; background:var(--soft); border:1px solid var(--line); border-radius:11px; }
.palette-result span { display:block; height:48px; border:1px solid rgba(0,0,0,.08); border-radius:8px; }.palette-result b{font-size:12px}.palette-result small{color:var(--muted);font-size:10px}
.gradient-preview { height:120px; border:1px solid var(--line); border-radius:15px; }
.contrast-sample { display:grid; place-items:center; min-height:130px; margin-bottom:12px; border:1px solid var(--line); border-radius:14px; font-size:24px; font-weight:750; }
.batch-qr-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.batch-qr-grid>div { display:grid; justify-items:center; gap:6px; min-width:0; padding:12px; background:var(--soft); border:1px solid var(--line); border-radius:13px; }
.batch-qr-grid img { width:112px; height:112px; image-rendering:pixelated; }.batch-qr-grid small{overflow:hidden;width:100%;color:var(--muted);font-size:10px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.related-section { padding-top:48px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.info article { background:var(--card); border-color:var(--line); }
.footer { background:var(--card); border-color:var(--line); }
@media (max-width:1080px){.category-overview{grid-template-columns:repeat(5,1fr)}.tool-shell{grid-template-columns:1fr}.tool-sidebar{display:none}.workbench{grid-template-columns:1fr}.result{position:static}.grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:820px){.hero-grid{grid-template-columns:1fr}.hero-dashboard{max-width:560px}.header-search{display:none}.grid{grid-template-columns:repeat(2,1fr)}.recent-row{grid-template-columns:repeat(2,1fr)}.category-overview{grid-template-columns:repeat(3,1fr)}.tool-head{display:grid;gap:16px}.tool-actions{justify-content:flex-start}}
@media (max-width:580px){.topbar-inner{height:60px}.hero{padding:45px 0 34px}.hero h1{font-size:42px}.hero-dashboard{padding:20px;border-radius:22px}.dashboard-number b{font-size:52px}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid div:last-child{grid-column:1/-1}.searchbox kbd{display:none}.category-overview{grid-template-columns:repeat(3,1fr)}.grid,.related-grid{grid-template-columns:1fr}.recent-row{grid-template-columns:1fr}.section-head{display:grid}.filters{justify-content:flex-start}.tool-title-row{align-items:flex-start}.tool-title-icon{width:48px;height:48px}.tool-actions{flex-wrap:wrap}.panel{padding:17px}.form-actions{display:grid}.form-actions button{width:100%}}

/* Information architecture, tutorial and category pages */
:focus-visible { outline: 3px solid color-mix(in srgb,var(--brand) 42%,transparent); outline-offset: 3px; }
.category-heading { margin-bottom: 24px; }
.category-section { padding: 20px 0 64px; }
.category-overview { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.category-overview>a {
  position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: start; gap: 14px;
  min-height: 152px; padding: 20px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(23,26,43,.02); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.category-overview>a:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--brand) 32%,var(--line)); box-shadow: 0 18px 38px rgba(26,31,61,.08); }
.category-overview>a>span { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 15px; font-weight: 800; }
.category-overview>a>div { display: grid; gap: 7px; min-width: 0; }
.category-overview>a b { font-size: 16px; }
.category-overview>a p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-overview>a small { overflow: hidden; color: #9298aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.category-overview>a>i { color: var(--brand); font-style: normal; transition: transform .2s ease; }
.category-overview>a:hover>i { transform: translateX(3px); }
.info article { position: relative; overflow: hidden; min-height: 160px; padding: 24px; }
.info article>span { display: block; margin-bottom: 25px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.info h3 { font-size: 17px; }
.info p { font-size: 13px; }

.page-toc { display: grid; gap: 3px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.page-toc p { margin: 0 0 6px; color: #9aa1b2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.page-toc a { padding: 7px 10px; color: var(--muted); border-radius: 8px; font-size: 12px; }
.page-toc a:hover { color: var(--brand); background: var(--brand-soft); }
.tool-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: -6px 0 22px; }
.tool-facts span { display: grid; gap: 4px; padding: 13px 15px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 13px; font-size: 11px; }
.tool-facts b { color: var(--ink); font-size: 12px; }
.guide { margin-top: 68px; scroll-margin-top: 88px; }
.guide-intro { max-width: 760px; }
.guide-intro h2,.faq-section h2 { margin: 0 0 12px; font-size: clamp(27px,4vw,38px); letter-spacing: -.035em; }
.guide-intro p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.guide-steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 15px; min-height: 155px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 90px; }
.guide-steps li>span { display: grid; place-items: center; width: 40px; height: 40px; color: var(--brand); background: var(--brand-soft); border-radius: 12px; font-size: 11px; font-weight: 850; }
.guide-steps h3 { margin: 3px 0 8px; font-size: 16px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.guide-example { display: grid; grid-template-columns: minmax(180px,.55fr) minmax(0,1.45fr); align-items: center; gap: 28px; margin-top: 14px; padding: 25px 28px; color: #fff; background: linear-gradient(135deg,#25213f,#3a326f); border-radius: 20px; }
.guide-example span { color: #afa9ff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.guide-example h3 { margin: 8px 0 0; font-size: 18px; }
.guide-example p { margin: 0; color: #d7d4e7; font-size: 13px; line-height: 1.8; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; scroll-margin-top: 90px; }
.guide-grid>section { padding: 23px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.guide-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--success); background: #ecfdf3; border-radius: 11px; font-weight: 850; }
.guide-grid h3 { margin: 18px 0 8px; font-size: 16px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.caution-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-top: 14px; padding: 25px; background: #fffcf3; border: 1px solid #f4dfaa; border-radius: 18px; }
html[data-theme="dark"] .caution-card { background: #282318; border-color: #594a27; }
.caution-card>div { display: flex; align-items: center; gap: 12px; }
.caution-card>div span { display: grid; place-items: center; width: 36px; height: 36px; color: #a15c07; background: #fff0c7; border-radius: 11px; font-weight: 900; }
.caution-card h3 { margin: 0; font-size: 16px; }
.caution-card ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #725c32; font-size: 13px; line-height: 1.65; }
html[data-theme="dark"] .caution-card ul { color: #d8c99f; }
.faq-section { margin-top: 70px; scroll-margin-top: 88px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 15px; }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; cursor: pointer; font-size: 14px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 18px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.category-page { padding: 30px 0 80px; }
.category-hero { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 24px; align-items: start; margin-top: 18px; padding: 38px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 20px 50px rgba(26,31,61,.06); }
.category-hero-icon { display: grid; place-items: center; width: 78px; height: 78px; color: #fff; background: var(--category-color); border-radius: 22px; font-size: 25px; font-weight: 850; box-shadow: 0 16px 32px color-mix(in srgb,var(--category-color) 28%,transparent); }
.category-hero h1 { margin: 4px 0 12px; font-size: clamp(38px,5vw,58px); }
.category-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.category-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.category-meta span { padding: 7px 10px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.module-nav { display: flex; gap: 8px; overflow-x: auto; margin: 22px 0 10px; padding: 4px 0 8px; scrollbar-width: thin; }
.module-nav a { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.module-nav a:hover { color: var(--brand); border-color: color-mix(in srgb,var(--brand) 35%,var(--line)); }
.module-nav small { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: 10px; }
.module-sections { display: grid; gap: 18px; margin-top: 22px; }
.module-sections>section { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 90px; }
.module-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.module-heading>div { display: flex; align-items: center; gap: 11px; }
.module-heading span { color: var(--brand); font-size: 10px; font-weight: 850; }
.module-heading h2 { margin: 0; font-size: 21px; }
.module-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.category-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.category-tool-grid>a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; transition: .2s ease; }
.category-tool-grid>a:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--brand) 35%,var(--line)); box-shadow: 0 12px 24px rgba(26,31,61,.06); }
.category-tool-grid>a>span { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 11px; font-size: 12px; font-weight: 800; }
.category-tool-grid h3 { margin: 1px 0 5px; font-size: 13px; }
.category-tool-grid p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-tool-grid i { color: var(--brand); font-style: normal; }
.footer { padding: 38px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { font-size: 15px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.footer-grid p { margin: 9px 0 0; }
.footer-grid nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-grid nav a:hover { color: var(--brand); }

@media (max-width:1080px){.category-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.category-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.category-overview{grid-template-columns:1fr}.tool-facts{grid-template-columns:1fr}.guide-steps,.guide-grid{grid-template-columns:1fr}.guide-example,.caution-card{grid-template-columns:1fr}.category-hero{grid-template-columns:1fr;padding:26px}.category-hero-icon{width:62px;height:62px;border-radius:18px}.category-tool-grid{grid-template-columns:1fr}.footer-grid{display:grid}.footer-grid nav{justify-content:flex-start}}
@media (max-width:480px){.category-overview>a{grid-template-columns:42px minmax(0,1fr) auto;padding:16px;min-height:132px}.category-overview>a>span{width:42px;height:42px}.guide-steps li{grid-template-columns:34px 1fr;padding:17px}.guide-steps li>span{width:34px;height:34px}.module-sections>section{padding:17px}.category-hero{padding:21px}.footer-grid nav{display:grid;grid-template-columns:1fr 1fr}}

/* Visual file upload and local preview */
.upload-zone {
  position: relative; overflow: hidden; min-height: 178px; background:
    radial-gradient(circle at 14% 10%,color-mix(in srgb,var(--brand) 10%,transparent),transparent 34%),
    linear-gradient(145deg,var(--soft),var(--card));
  border: 1.5px dashed color-mix(in srgb,var(--brand) 34%,var(--line-strong)); border-radius: 18px;
  transition: border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.upload-zone:not(.has-files) { cursor: pointer; }
.upload-zone:not(.has-files):hover,.upload-zone.dragging {
  border-color: var(--brand); background: color-mix(in srgb,var(--brand-soft) 72%,var(--card));
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 8%,transparent),0 18px 36px rgba(35,35,80,.07);
}
.upload-zone.dragging { transform: translateY(-2px); }
.field .upload-input {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none;
}
.upload-empty { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 178px; padding: 24px; }
.upload-empty[hidden],.upload-selection[hidden] { display: none; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--brand); background: var(--card); border: 1px solid color-mix(in srgb,var(--brand) 18%,var(--line)); border-radius: 17px; box-shadow: 0 10px 24px rgba(34,35,83,.08); }
.upload-icon i { display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid currentColor; border-radius: 9px; font-size: 18px; font-style: normal; line-height: 1; }
.upload-copy { min-width: 0; }
.upload-copy strong { display: block; color: var(--ink); font-size: 15px; }
.upload-copy p { margin: 5px 0 8px; color: var(--muted); font-size: 12px; }
.upload-copy small { display: inline-flex; padding: 5px 8px; color: var(--brand); background: var(--brand-soft); border-radius: 7px; font-size: 10px; font-weight: 750; letter-spacing: .03em; }
.upload-browse,.upload-change { flex: 0 0 auto; color: var(--brand); background: var(--card); border: 1px solid color-mix(in srgb,var(--brand) 26%,var(--line)); border-radius: 10px; font-size: 12px; font-weight: 750; }
.upload-browse { padding: 10px 14px; }
.upload-change { padding: 8px 11px; }
.upload-browse:hover,.upload-change:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.upload-selection { padding: 14px; }
.upload-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 4px 14px; }
.upload-summary>div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.upload-summary p { display: grid; gap: 3px; min-width: 0; margin: 0; }
.upload-summary strong { color: var(--ink); font-size: 12px; }
.upload-summary small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-ready { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; color: #087a4c; background: #dcfae6; border-radius: 9px; font-size: 12px; font-weight: 900; }
html[data-theme="dark"] .upload-ready { color: #75e0a7; background: #153b2a; }
.upload-files { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 9px; }
.upload-file { position: relative; display: grid; grid-template-columns: 50px minmax(0,1fr) 25px; align-items: center; gap: 10px; min-width: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.upload-file-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.upload-thumb { position: relative; display: block; overflow: hidden; width: 50px; height: 50px; background: var(--soft); border-radius: 10px; }
.upload-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-dimensions { display: none; }
.upload-file-meta { display: grid; gap: 4px; min-width: 0; }
.upload-file-meta strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-meta span { color: var(--muted); font-size: 9px; }
.upload-remove { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; color: var(--muted); background: var(--soft); border: 0; border-radius: 8px; font-size: 17px; line-height: 1; }
.upload-remove:hover { color: #d92d20; background: #fef3f2; }
.upload-files.single .upload-file:has(.upload-thumb) { grid-template-columns: minmax(130px,42%) minmax(0,1fr) 25px; align-items: stretch; }
.upload-files.single .upload-thumb { width: 100%; height: 150px; }
.upload-files.single .upload-thumb img { object-fit: contain; }
.upload-files.single .upload-dimensions { position: absolute; right: 7px; bottom: 7px; display: block; padding: 4px 6px; color: #fff; background: rgba(15,18,31,.72); border-radius: 6px; font-size: 9px; }
.upload-files.single .upload-file:has(.upload-thumb) .upload-file-meta { align-content: center; }
.upload-files.single .upload-file:has(.upload-thumb) .upload-file-meta strong { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width:620px){
  .upload-empty{grid-template-columns:50px minmax(0,1fr);min-height:156px;padding:18px}.upload-icon{width:50px;height:50px}.upload-browse{grid-column:1/-1;width:100%}
  .upload-summary{align-items:flex-start}.upload-summary small{white-space:normal}.upload-files.single .upload-file:has(.upload-thumb){grid-template-columns:1fr 25px}.upload-files.single .upload-thumb{grid-column:1/-1;height:170px}.upload-files.single .upload-file-meta{grid-column:1}.upload-files.single .upload-remove{grid-column:2;grid-row:2}
}

/* Three-page premium template for acceptance */
.showcase-tool-page { background: linear-gradient(180deg,color-mix(in srgb,var(--brand-soft) 45%,var(--bg)) 0,transparent 360px); }
.showcase-tool-page .crumbs { margin-bottom: 18px; }
.showcase-head {
  position: relative; overflow: hidden; min-height: 210px; padding: 34px 36px; border: 0; border-radius: 25px;
  color: #fff; background: linear-gradient(135deg,#23213f 0%,#39336e 58%,#5d54d7 100%);
  box-shadow: 0 24px 55px rgba(40,34,92,.18);
}
.showcase-head::before,.showcase-head::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; pointer-events: none; }
.showcase-head::before { right: -75px; top: -135px; width: 330px; height: 330px; }
.showcase-head::after { right: 65px; bottom: -150px; width: 260px; height: 260px; }
.showcase-head .tool-title-row,.showcase-head .tool-actions { position: relative; z-index: 1; }
.showcase-head .tool-title-row { align-items: flex-start; max-width: 720px; }
.showcase-head .tool-title-icon { width: 66px; height: 66px; border: 1px solid rgba(255,255,255,.2); border-radius: 19px; box-shadow: 0 16px 30px rgba(0,0,0,.2); }
.showcase-head h1 { margin-top: 8px; color: #fff; font-size: clamp(32px,4.5vw,48px); }
.showcase-head p { max-width: 680px; color: #d9d7eb; font-size: 14px; line-height: 1.85; }
.showcase-label { display: inline-flex; align-items: center; gap: 7px; color: #b9b3ff; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.showcase-label::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.showcase-head .privacy-badge { color: #c9f6dc; background: rgba(24,178,105,.17); border-color: rgba(117,224,167,.28); }
.showcase-head .favorite-button { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.showcase-head .favorite-button:hover,.showcase-head .favorite-button.selected { color: #fff2bd; background: rgba(255,255,255,.17); }
.showcase-facts { grid-template-columns: repeat(4,1fr); margin: 16px 0 24px; }
.showcase-facts span { position: relative; overflow: hidden; min-height: 74px; padding: 15px 16px 14px 18px; background: linear-gradient(145deg,var(--card),var(--soft)); }
.showcase-facts span::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px; background: var(--brand); border-radius: 0 4px 4px 0; }
.showcase-facts b { font-size: 13px; }
.showcase-workbench { gap: 18px; }
.showcase-workbench .panel { border-radius: 21px; box-shadow: 0 18px 44px rgba(27,31,60,.07); }
.showcase-workbench .input-panel { border-top: 3px solid var(--brand); }
.showcase-workbench .result { border-top: 3px solid #12b76a; }
.showcase-tool-page .guide { padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 18px 44px rgba(27,31,60,.05); }
.showcase-tool-page .guide-intro { max-width: 880px; }
.showcase-tool-page .guide-steps li { min-height: 175px; background: linear-gradient(145deg,var(--card),var(--soft)); }
.showcase-tool-page .faq-section { padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 25px; }

.tool-directory { margin-top: 26px; padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 18px 44px rgba(27,31,60,.05); }
.tool-directory>header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tool-directory h2 { margin: 0 0 8px; font-size: clamp(25px,3.5vw,34px); letter-spacing: -.035em; }
.tool-directory header p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-directory>header>a { flex: 0 0 auto; padding: 9px 12px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; font-size: 11px; font-weight: 750; }
.directory-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.directory-group { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 15px; min-height: 148px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 17px; }
.directory-category { display: grid; grid-template-columns: 40px minmax(0,1fr); align-content: start; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid var(--line); }
.directory-category>span { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; border-radius: 11px; font-size: 12px; font-weight: 850; }
.directory-category>div { display: grid; gap: 2px; min-width: 0; }
.directory-category strong { color: var(--ink); font-size: 12px; }
.directory-category small { color: var(--muted); font-size: 9px; }
.directory-category i { grid-column: 1/-1; margin-top: 8px; color: var(--brand); font-style: normal; }
.directory-group nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 3px 9px; }
.directory-group nav a { overflow: hidden; padding: 6px 7px; color: var(--muted); border-radius: 7px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.directory-group nav a::before { content: "·"; margin-right: 6px; color: var(--brand); font-weight: 900; }
.directory-group nav a:hover { color: var(--brand); background: var(--card); }
@media (max-width:1080px){.showcase-facts{grid-template-columns:repeat(4,1fr)}}
@media (max-width:820px){
  .showcase-head{display:grid;min-height:0;padding:28px}.showcase-head .tool-actions{justify-content:flex-start}.showcase-facts{grid-template-columns:repeat(2,1fr)}
  .directory-groups{grid-template-columns:1fr}.tool-directory{padding:25px}.showcase-tool-page .guide,.showcase-tool-page .faq-section{padding:25px}
}
@media (max-width:560px){
  .showcase-head{padding:22px;border-radius:20px}.showcase-head .tool-title-row{display:grid}.showcase-head .tool-title-icon{width:54px;height:54px}.showcase-head h1{font-size:32px}.showcase-facts{grid-template-columns:1fr 1fr}
  .tool-directory>header{display:grid;align-items:start}.tool-directory>header>a{justify-self:start}.directory-group{grid-template-columns:1fr}.directory-category{grid-template-columns:40px minmax(0,1fr) auto;padding:0 0 12px;border-right:0;border-bottom:1px solid var(--line)}.directory-category i{grid-column:3;grid-row:1}.directory-group nav{grid-template-columns:1fr 1fr}.tool-directory,.showcase-tool-page .guide,.showcase-tool-page .faq-section{padding:19px;border-radius:20px}
}

/* Refined tool pages: calm, focused and product-like */
body[data-page="tool"] {
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-soft: #eff6ff;
  background: var(--page);
}
body[data-page="tool"] .topbar { background: color-mix(in srgb,var(--card) 92%,transparent); border-bottom-color: var(--line); }
body[data-page="tool"] .brand-mark { border-radius: 10px; background: linear-gradient(145deg,#2563eb,#3b82f6); box-shadow: 0 7px 18px rgba(37,99,235,.2); }
body[data-page="tool"] .header-search { max-width: 340px; }
.showcase-tool-page { padding: 12px 0 64px; background: none; }
.showcase-tool-page .tool-shell { display: block; width: min(940px,calc(100% - 32px)); }
.showcase-tool-page .tool-sidebar { display: none; }
.showcase-tool-page .tool-main { width: 100%; }
.showcase-tool-page .crumbs { margin: 4px 0 8px; color: #8a91a0; font-size: 12px; }

.showcase-head {
  display: block; width: 100%; min-height: 0; margin: 0; padding: 18px 20px 22px;
  color: var(--ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; text-align: center;
}
.showcase-head::before,.showcase-head::after { display: none; }
.showcase-head .tool-title-row { display: block; width: 100%; max-width: none; margin: 0 auto; }
.showcase-head .tool-title-row>div { width: 100%; text-align: center; }
.showcase-head .tool-title-icon {
  width: 44px; height: 44px; margin: 0 auto 10px; border: 0; border-radius: 13px;
  background: linear-gradient(145deg,var(--tool-color),color-mix(in srgb,var(--tool-color) 76%,#2563eb));
  box-shadow: 0 10px 24px color-mix(in srgb,var(--tool-color) 22%,transparent);
}
.showcase-label { color: var(--brand); font-size: 10px; letter-spacing: .07em; }
.showcase-label::before { width: 14px; }
.showcase-head h1 { margin: 7px 0 7px; color: #1d4ed8; font-size: clamp(29px,4vw,38px); letter-spacing: -.04em; }
.showcase-head p { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.showcase-head .tool-actions { justify-content: center; width: max-content; margin: 12px auto 0; }
.showcase-head .privacy-badge { color: #087a4c; background: #ecfdf3; border-color: #abefc6; }
.showcase-head .favorite-button { color: var(--muted); background: var(--card); border-color: var(--line); }
.showcase-head .favorite-button:hover,.showcase-head .favorite-button.selected { color: #a16207; background: #fffaeb; border-color: #fedf89; }

.showcase-facts { grid-template-columns: repeat(4,1fr); gap: 0; margin: 12px 0 0; padding: 0 14px; background: transparent; }
.showcase-facts span {
  min-height: 48px; padding: 7px 16px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  box-shadow: none; text-align: center;
}
.showcase-facts span:last-child { border-right: 0; }
.showcase-facts span::before { display: none; }
.showcase-facts b { font-size: 12px; }

.showcase-workbench {
  grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr); gap: 0; align-items: stretch;
  margin-top: 0; padding: 12px; background: var(--card); border: 1px solid #e4e8f0; border-radius: 22px;
  box-shadow: 0 14px 42px rgba(29,48,90,.09);
}
.showcase-workbench .panel { padding: 22px; border: 0; border-radius: 14px; box-shadow: none; }
.showcase-workbench .input-panel { border-top: 0; }
.showcase-workbench .result { position: static; min-height: 100%; border-top: 0; border-left: 1px dashed var(--line-strong); }
.showcase-workbench .panel-heading { margin-bottom: 17px; padding-bottom: 13px; }
.showcase-workbench .panel-heading>span { width: 27px; height: 27px; color: var(--brand); background: var(--brand-soft); border-radius: 8px; }
.showcase-workbench .panel-title { font-size: 15px; }
.showcase-workbench .field input,.showcase-workbench .field select,.showcase-workbench .field textarea { border-width: 1.5px; border-radius: 11px; box-shadow: inset 0 1px 2px rgba(16,24,40,.025); }
.showcase-workbench .field input:focus,.showcase-workbench .field select:focus,.showcase-workbench .field textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.1); }
.showcase-workbench .form-actions .primary { min-width: 150px; min-height: 44px; background: linear-gradient(135deg,#3b82f6,#2563eb); border-radius: 11px; box-shadow: 0 7px 18px rgba(37,99,235,.23); }
.showcase-workbench .form-actions .primary:hover { background: #1d4ed8; }
.showcase-workbench .secondary { border-radius: 10px; }
.showcase-workbench .result-placeholder { min-height: 210px; }
.showcase-workbench .result-placeholder i { color: var(--brand); background: var(--brand-soft); }

body[data-page="tool"] .upload-zone { min-height: 154px; background: #fbfdff; border-color: #cbd5e1; border-radius: 14px; }
body[data-page="tool"] .upload-empty { min-height: 154px; padding: 20px; }
body[data-page="tool"] .upload-icon { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 5px 14px rgba(37,99,235,.08); }
body[data-page="tool"] .upload-copy strong { font-size: 14px; }
body[data-page="tool"] .upload-browse { color: #2563eb; border-color: #bfdbfe; border-radius: 9px; }

.showcase-tool-page .guide,.showcase-tool-page .faq-section,.tool-directory {
  margin-top: 16px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(24,32,51,.035);
}
.showcase-tool-page .guide-intro,.showcase-tool-page .faq-section>.section-head,.tool-directory>header { padding-left: 12px; border-left: 3px solid var(--brand); }
.showcase-tool-page .guide-intro h2,.showcase-tool-page .faq-section h2,.tool-directory h2 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.025em; }
.showcase-tool-page .guide-intro p,.tool-directory header p { font-size: 13px; line-height: 1.75; }
.showcase-tool-page .guide-steps { grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 20px; }
.showcase-tool-page .guide-steps li { min-height: 135px; padding: 18px; background: var(--soft); border: 0; border-radius: 12px; }
.showcase-tool-page .guide-steps li>span { width: 34px; height: 34px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.showcase-tool-page .guide-steps h3 { font-size: 14px; }
.showcase-tool-page .guide-steps p { font-size: 12px; line-height: 1.7; }
.showcase-tool-page .guide-example { grid-template-columns: 175px 1fr; margin-top: 9px; padding: 20px; color: var(--ink); background: #f0f5ff; border-radius: 12px; }
.showcase-tool-page .guide-example span { color: var(--brand); }
.showcase-tool-page .guide-example h3 { color: var(--ink); font-size: 15px; }
.showcase-tool-page .guide-example p { color: #52617a; font-size: 12px; }
.showcase-tool-page .guide-grid { gap: 9px; margin-top: 9px; }
.showcase-tool-page .guide-grid>section { padding: 18px; background: var(--soft); border: 0; border-radius: 12px; }
.showcase-tool-page .guide-grid h3 { margin: 13px 0 6px; font-size: 14px; }
.showcase-tool-page .guide-grid p { font-size: 12px; }
.showcase-tool-page .caution-card { grid-template-columns: 180px 1fr; gap: 20px; margin-top: 9px; padding: 18px; border-radius: 12px; }
.showcase-tool-page .faq-section>.section-head { margin-bottom: 15px; border-left-color: #10b981; }
.showcase-tool-page .faq-list { gap: 0; }
.showcase-tool-page .faq-list details { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
.showcase-tool-page .faq-list details:last-child { border-bottom: 0; }
.showcase-tool-page .faq-list summary { padding: 15px 4px; font-size: 13px; }
.showcase-tool-page .faq-list p { padding: 0 4px 15px 12px; color: var(--muted); border-left: 2px solid var(--line); font-size: 12px; }

.tool-directory>header { align-items: center; margin-bottom: 18px; padding-bottom: 0; border-bottom: 0; }
.tool-directory>header>a { color: var(--brand); background: var(--brand-soft); border-radius: 9px; }
.directory-groups { gap: 9px; }
.directory-group { grid-template-columns: 135px minmax(0,1fr); min-height: 132px; padding: 14px; background: var(--soft); border: 0; border-radius: 12px; }
.directory-category { padding-right: 12px; }
.directory-category>span { width: 36px; height: 36px; border-radius: 10px; }
.directory-group nav a { padding: 5px 6px; font-size: 10px; }

@media (max-width:820px){
  .showcase-workbench{grid-template-columns:1fr}.showcase-workbench .result{border-left:0;border-top:1px dashed var(--line-strong)}
  .showcase-facts{grid-template-columns:repeat(2,1fr);gap:0}.showcase-facts span:nth-child(2){border-right:0}.showcase-facts span:nth-child(-n+2){border-bottom:1px solid var(--line)}.showcase-head{padding:16px 14px 18px}
}
@media (max-width:560px){
  .showcase-tool-page{padding-top:10px}.showcase-tool-page .tool-shell{width:min(100% - 22px,940px)}.showcase-tool-page .crumbs{overflow:auto;white-space:nowrap}
  .showcase-head{padding:13px 8px 16px}.showcase-head .tool-title-row{display:block}.showcase-head .tool-title-icon{width:40px;height:40px}.showcase-head h1{font-size:28px}.showcase-head p{font-size:12px}
  .showcase-facts{padding:0}.showcase-facts span{min-height:46px;padding:7px 8px}.showcase-workbench{padding:7px;border-radius:16px}.showcase-workbench .panel{padding:16px 12px}
  body[data-page="tool"] .upload-empty{grid-template-columns:46px minmax(0,1fr);padding:16px}.showcase-tool-page .guide,.showcase-tool-page .faq-section,.tool-directory{padding:18px 16px;border-radius:14px}
  .showcase-tool-page .guide-steps,.showcase-tool-page .guide-grid{grid-template-columns:1fr}.showcase-tool-page .guide-steps li{min-height:0}.showcase-tool-page .guide-example,.showcase-tool-page .caution-card{grid-template-columns:1fr}
  .directory-group{grid-template-columns:1fr}.directory-category{grid-template-columns:36px minmax(0,1fr) auto;padding:0 0 10px;border-right:0;border-bottom:1px solid var(--line)}.directory-category i{grid-column:3;grid-row:1}.directory-group nav{grid-template-columns:1fr 1fr}
}

/* Unified visual system: refined blue, softer surfaces and consistent states */
:root {
  --page: #f5f7fb;
  --card: #ffffff;
  --card-strong: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-soft: #eff6ff;
  --success: #067647;
  --danger: #b42318;
  --header: rgba(255,255,255,.9);
  --soft: #f8fafc;
  --surface: #ffffff;
  --shadow: 0 16px 40px rgba(16,24,40,.08);
}
html[data-theme="dark"] {
  --page: #0b1220;
  --card: #111b2e;
  --card-strong: #162238;
  --ink: #f3f6fc;
  --muted: #a3afc2;
  --line: #26344b;
  --line-strong: #364761;
  --brand: #60a5fa;
  --brand-2: #3b82f6;
  --brand-soft: #172b4b;
  --header: rgba(11,18,32,.9);
  --soft: #0e1829;
  --surface: #111b2e;
  --shadow: 0 18px 46px rgba(0,0,0,.28);
}
html { scrollbar-color: #c7d2e5 transparent; }
body { -webkit-font-smoothing: antialiased; background: linear-gradient(180deg,#f8faff 0,#f5f7fb 420px); }
html[data-theme="dark"] body { background: linear-gradient(180deg,#0d1728 0,#0b1220 420px); }
.topbar { box-shadow: 0 1px 0 rgba(16,24,40,.02); }
.brand-mark { background: linear-gradient(145deg,#3b82f6,#2563eb); box-shadow: 0 8px 20px rgba(37,99,235,.22); }
.toplinks a,.filter,.icon-button,.card,.category-overview>a,.category-tool-grid>a,.module-nav a,.recent-card,.related-card { transition: color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.toplinks a:hover { color: var(--brand); }
.icon-button:hover { color: var(--brand); border-color: #bfdbfe; background: var(--brand-soft); }

/* Home */
.hero { background: radial-gradient(circle at 82% 24%,rgba(59,130,246,.14),transparent 29rem); }
.eyebrow { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
html[data-theme="dark"] .eyebrow { color: #93c5fd; background: #172b4b; border-color: #31527d; }
.hero h1 span { color: #2563eb; }
html[data-theme="dark"] .hero h1 span { color: #60a5fa; }
.searchbox { border-color: #dbe3ef; box-shadow: 0 16px 44px rgba(37,99,235,.1); }
.searchbox:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(59,130,246,.1),0 16px 44px rgba(37,99,235,.1); }
.hero-dashboard { color: var(--ink); background: linear-gradient(145deg,var(--card),#f5f9ff); border: 1px solid #dce6f5; box-shadow: 0 24px 60px rgba(37,99,235,.13); }
.hero-dashboard::after { border-color: rgba(37,99,235,.11); box-shadow: 0 0 0 35px rgba(37,99,235,.035),0 0 0 70px rgba(37,99,235,.022); }
.dashboard-head { color: var(--muted); }
.dashboard-head strong { color: #067647; }
.dashboard-number span { color: var(--muted); }
.dashboard-grid div { background: rgba(239,246,255,.76); border-color: #dbeafe; }
.dashboard-grid span { color: var(--muted); }
.dashboard-note { background: #eff6ff; border: 1px solid #dbeafe; }
.dashboard-note p { color: #61708a; }
.dashboard-note strong { color: #1d4ed8; }
html[data-theme="dark"] .hero-dashboard { background: linear-gradient(145deg,#142138,#101a2c); border-color: #2b3d58; }
html[data-theme="dark"] .dashboard-grid div,html[data-theme="dark"] .dashboard-note { background: rgba(37,99,235,.12); border-color: rgba(96,165,250,.18); }
html[data-theme="dark"] .dashboard-note strong { color: #93c5fd; }
html[data-theme="dark"] .dashboard-note p { color: #a3afc2; }
.category-overview>a,.recent-card,.card { box-shadow: 0 1px 2px rgba(16,24,40,.025); }
.category-overview>a:hover,.recent-card:hover,.card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 14px 34px rgba(37,99,235,.09); }
.filter:hover { color: var(--brand); border-color: #bfdbfe; background: var(--brand-soft); }
.filter.active { color: #fff; border-color: #2563eb; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 6px 16px rgba(37,99,235,.2); }

/* Category pages */
.category-page[data-category="network"]>.wrap { width: min(1100px,calc(100% - 32px)); }
.category-page[data-category="network"] .category-hero { grid-template-columns: 48px minmax(0,1fr); gap: 16px; margin-top: 0; padding: 24px; border-radius: 10px; box-shadow: none; }
.category-page[data-category="network"] .category-hero-icon { width: 48px; height: 48px; border-radius: 10px; font-size: 20px; box-shadow: none; }
.category-page[data-category="network"] .category-hero h1 { margin: 2px 0 8px; font-size: 28px; line-height: 1.35; letter-spacing: -.025em; }
.category-page[data-category="network"] .category-hero p { font-size: 13px; line-height: 1.7; }
.category-page[data-category="network"] .category-meta { margin-top: 12px; font-size: 11px; }
.category-page[data-category="network"] .section-kicker { font-size: 10px; }
.category-page[data-category="network"] .module-nav { margin-top: 16px; }
.category-page[data-category="network"] .module-heading { margin-bottom: 14px; }
.category-page[data-category="network"] .module-heading h2 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.category-page[data-category="network"] .module-sections>section { padding: 20px; border-radius: 10px; }
.category-page[data-category="network"] .category-tool-grid>a { padding: 13px; border-radius: 8px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; }
.category-page[data-category="network"] .category-tool-grid>a>span { width: 32px; height: 32px; border-radius: 8px; }
.category-page[data-category="network"] .category-tool-grid h3 { font-size: 13px; line-height: 1.5; font-weight: 600; }
@media(max-width:560px){
  .category-page[data-category="network"] .category-hero { padding: 18px; gap: 12px; grid-template-columns: 40px minmax(0,1fr); }
  .category-page[data-category="network"] .category-hero-icon { width: 40px; height: 40px; font-size: 17px; }
  .category-page[data-category="network"] .category-hero h1 { font-size: 24px; }
  .category-page[data-category="network"] .category-meta { gap: 7px; }
  .category-page[data-category="network"] .module-sections>section { padding: 16px; }
}
.category-hero { border-color: #e1e7f0; box-shadow: 0 18px 50px rgba(16,24,40,.06); }
.category-hero-icon { box-shadow: 0 14px 30px color-mix(in srgb,var(--category-color) 22%,transparent); }
.category-meta span { background: #f8fafc; }
html[data-theme="dark"] .category-meta span { background: var(--soft); }
.module-nav a:hover { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.module-sections>section { border-color: #e1e7f0; box-shadow: 0 3px 14px rgba(16,24,40,.025); }
.category-tool-grid>a:hover { border-color: #bfdbfe; background: #fbfdff; box-shadow: 0 10px 24px rgba(37,99,235,.07); }
html[data-theme="dark"] .category-tool-grid>a:hover { background: var(--card-strong); }

/* Tool pages and controls */
body[data-page="tool"] { background: linear-gradient(180deg,#f7f9fd 0,#f5f7fb 520px); }
html[data-theme="dark"] body[data-page="tool"] { background: linear-gradient(180deg,#0d1728 0,#0b1220 520px); }
.showcase-head h1 { color: #1d4ed8; }
html[data-theme="dark"] .showcase-head h1 { color: #60a5fa; }
.showcase-workbench { border-color: #dfe5ee; box-shadow: 0 16px 46px rgba(29,48,90,.09); }
html[data-theme="dark"] .showcase-workbench { border-color: var(--line); box-shadow: 0 18px 46px rgba(0,0,0,.24); }
.field label { color: #344054; }
html[data-theme="dark"] .field label { color: #d8e0ee; }
.field input::placeholder,.field textarea::placeholder { color: #98a2b3; }
.showcase-workbench .field input,.showcase-workbench .field select,.showcase-workbench .field textarea { min-height: 44px; background: #fff; border-color: #d0d5dd; }
html[data-theme="dark"] .showcase-workbench .field input,html[data-theme="dark"] .showcase-workbench .field select,html[data-theme="dark"] .showcase-workbench .field textarea { background: var(--card-strong); border-color: var(--line-strong); }
.showcase-workbench .secondary:hover,.download:hover { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.result-output { background: #f8fafc; border-color: #e4e7ec; }
.result-output.success { color: #05603a; background: #ecfdf3; border-color: #abefc6; }
.result-output.error { color: #b42318; background: #fef3f2; border-color: #fecdca; }
html[data-theme="dark"] .result-output { background: var(--soft); border-color: var(--line); }
body[data-page="tool"] .upload-zone { background: linear-gradient(145deg,#fbfdff,#f7faff); border-color: #c8d5e6; }
body[data-page="tool"] .upload-zone:hover { background: #f0f7ff; border-color: #60a5fa; }
html[data-theme="dark"] body[data-page="tool"] .upload-zone { background: var(--soft); border-color: var(--line-strong); }
.showcase-tool-page .guide,.showcase-tool-page .faq-section,.tool-directory { border-color: #e1e7f0; box-shadow: 0 6px 24px rgba(16,24,40,.035); }
.showcase-tool-page .guide-steps li,.showcase-tool-page .guide-grid>section,.directory-group { background: #f8fafc; }
html[data-theme="dark"] .showcase-tool-page .guide-steps li,html[data-theme="dark"] .showcase-tool-page .guide-grid>section,html[data-theme="dark"] .directory-group { background: var(--soft); }
.showcase-tool-page .faq-list details:hover { background: #fbfdff; }
html[data-theme="dark"] .showcase-tool-page .faq-list details:hover { background: var(--card-strong); }
.tool-directory>header>a:hover { color: #fff; background: #2563eb; }
.directory-group nav a:hover { color: #1d4ed8; background: #eaf3ff; }
html[data-theme="dark"] .directory-group nav a:hover { color: #93c5fd; background: #172b4b; }

/* Shared polish */
button:active,.primary:active,.filter:active { transform: translateY(1px); }
.primary,.showcase-workbench .form-actions .primary { color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); }
.primary:hover,.showcase-workbench .form-actions .primary:hover { background: linear-gradient(135deg,#2563eb,#1d4ed8); box-shadow: 0 8px 20px rgba(37,99,235,.24); }
::selection { color: #fff; background: #3b82f6; }

/* Country time pages and global time directory */
body[data-tool="global-time"] .tool-shell { width: min(1180px,calc(100% - 32px)); }
.country-time-page .showcase-head .tool-title-icon { background: linear-gradient(145deg,#0ea5e9,#2563eb); }
.country-time-page .showcase-workbench { grid-template-columns: minmax(250px,.68fr) minmax(0,1.32fr); }
.country-time-page .showcase-workbench .input-panel { align-self: start; }
.country-time-page .showcase-workbench .result { min-height: 420px; }
.country-time-page .form-actions .primary { width: 100%; }
.country-time-page .field select,.country-time-page .field input { min-height: 48px; }
.country-clock { display: grid; justify-items: center; padding: 6px 0 2px; text-align: center; }
.country-clock>header { display: flex; align-items: center; gap: 12px; }
.country-clock>header>div { display: grid; gap: 3px; text-align: left; }
.country-clock>header b { font-size: 17px; }
.country-clock>header small { color: var(--muted); font-size: 11px; }
.country-flag { display: grid; place-items: center; width: 52px; height: 52px; background: #f8fafc; border: 1px solid var(--line); border-radius: 15px; font-size: 28px; box-shadow: 0 5px 15px rgba(16,24,40,.05); }
.country-clock-time { margin: 26px 0 4px; color: #1d4ed8; font-size: clamp(46px,7vw,72px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .country-clock-time { color: #60a5fa; }
.country-clock-date { color: var(--muted); font-size: 14px; }
.country-time-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; width: 100%; margin-top: 25px; }
.country-time-meta>div { display: grid; gap: 6px; min-width: 0; padding: 14px; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 12px; text-align: left; }
.country-time-meta span { color: var(--muted); font-size: 10px; }
.country-time-meta b { overflow-wrap: anywhere; font-size: 12px; }
html[data-theme="dark"] .country-time-meta>div,.country-flag { background: var(--soft); border-color: var(--line); }
.country-zone-note { margin: 14px 0 0; padding: 9px 12px; color: #526581; background: #eff6ff; border-radius: 9px; font-size: 11px; }
html[data-theme="dark"] .country-zone-note { color: #b8c8df; background: var(--brand-soft); }
.global-time-page .showcase-workbench { grid-template-columns: 265px minmax(0,1fr); }
.global-time-page .showcase-workbench .input-panel { position: sticky; top: 88px; }
.global-time-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px 16px; color: #1d4ed8; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 12px; }
.global-time-summary>div { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.global-time-summary b { font-size: 24px; }
.global-time-summary span,.global-time-summary p { font-size: 11px; }
.global-time-summary p { margin: 0; color: #61708a; }
html[data-theme="dark"] .global-time-summary { color: #93c5fd; background: var(--brand-soft); border-color: #31527d; }
html[data-theme="dark"] .global-time-summary p { color: var(--muted); }
.totp-page .showcase-workbench { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.totp-page textarea { overflow-wrap: anywhere; }
.totp-quick { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.totp-quick span,.totp-note,.totp-settings p { color:var(--muted); font-size:12px; line-height:1.8; }
.totp-settings { margin-top:18px; padding:14px; border:1px solid var(--line); border-radius:12px; }
.totp-settings summary { cursor:pointer; font-size:13px; font-weight:600; }
.totp-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.totp-settings-grid .field { min-width:0; }
.totp-card { display:grid; justify-items:center; gap:14px; padding:24px 10px; text-align:center; }
.totp-badge { border-radius:20px; padding:6px 12px; background:var(--brand-soft); color:var(--brand); font-size:12px; }
.totp-code { width:100%; padding:12px 0; border:0; border-radius:12px; background:transparent; color:var(--brand); font-size:clamp(30px,4vw,54px); font-weight:750; letter-spacing:.10em; font-variant-numeric:tabular-nums; cursor:pointer; user-select:text; }
.totp-code:focus-visible { outline:2px solid var(--brand); }
.totp-card p { margin:0; overflow-wrap:anywhere; }
#totp-countdown { font-weight:600; }
#totp-progress { width:100%; height:8px; accent-color:var(--brand); }
.totp-expiring #totp-countdown { color:#b45309; }
#totp-meta,#totp-status,#totp-qr p { font-size:12px; color:var(--muted); line-height:1.8; }
.totp-result-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:12px 0; }
#totp-qr { width:100%; border-top:1px solid var(--line); padding-top:18px; }
#totp-qr img { max-width:100%; height:auto; background:white; padding:8px; border-radius:12px; }
#totp-qr a { display:inline-block; margin-top:12px; }
.totp-error { color:#b91c1c; padding:20px; line-height:1.8; }
.totp-shortcut { display:grid; gap:10px; width:100%; padding:16px; border:1px solid var(--line); border-radius:12px; text-align:left; }
.totp-shortcut label { font-size:12px; font-weight:600; }
.totp-shortcut input { width:100%; min-width:0; padding:10px; color:var(--ink); background:var(--soft); border:1px solid var(--line); border-radius:8px; font-size:12px; }
.totp-shortcut small { color:var(--muted); line-height:1.8; }
@media(max-width:820px) { .totp-page .showcase-workbench { grid-template-columns:1fr; } .totp-page .input-panel { position:static; } }
@media(max-width:420px) { .totp-settings-grid { grid-template-columns:1fr; } }
.global-clock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.global-clock-card { display: grid; gap: 7px; min-width: 0; padding: 14px; background: #fff; border: 1px solid #e4e7ec; border-radius: 13px; transition: .18s ease; }
.global-clock-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 10px 24px rgba(37,99,235,.09); }
.global-clock-card header { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.global-clock-card header>span { font-size: 21px; }
.global-clock-card header>div { display: grid; min-width: 0; }
.global-clock-card header b,.global-clock-card header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-clock-card header b { font-size: 12px; }
.global-clock-card header small { color: var(--muted); font-size: 9px; }
.global-clock-card header i { color: var(--brand); font-style: normal; }
.global-clock-card>strong { margin-top: 7px; color: #1d4ed8; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.global-clock-card>p { overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.global-clock-card>small { overflow: hidden; color: #98a2b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .global-clock-card { background: var(--card-strong); border-color: var(--line); }
html[data-theme="dark"] .global-clock-card>strong { color: #60a5fa; }
.global-time-empty { grid-column: 1/-1; padding: 50px 20px; color: var(--muted); background: var(--soft); border-radius: 12px; text-align: center; }
@media (max-width:960px){
  .global-clock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .country-time-page .showcase-workbench,.global-time-page .showcase-workbench{grid-template-columns:1fr}
  .global-time-page .showcase-workbench .input-panel{position:static}
}
@media (max-width:560px){
  .country-time-meta,.global-clock-grid{grid-template-columns:1fr}
  .country-clock-time{font-size:46px}
  .global-time-summary{display:grid}
}
