:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9edf2;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --border: #e4e7ec;
  --accent-base: #1d4ed8;
  --accent: var(--accent-base);
  --accent-ink: var(--accent-base);
  --accent-soft: color-mix(in srgb, var(--accent-base) 10%, white);
  --on-accent: #ffffff;
  --header: #ffffff;
  --header-text: #101828;
  --header-border: #e4e7ec;
  --error: #b42318;
  --ok: #067647;
  --warn: #b54708;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.05);
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 4px 12px rgb(16 24 40 / 0.06);
  --radius: 14px;
  --fde: #5925dc; --fde-bg: #f4f0ff;
  --sre: #067647; --sre-bg: #ecfdf3;
  --devops: #b93815; --devops-bg: #fef3ee;
  --platform: #1d4ed8; --platform-bg: #eaf0fd;
  --cloud: #0e7090; --cloud-bg: #ecfdff;
  --adjacent: #475467; --adjacent-bg: #f2f4f7;
  --salary: #067647; --salary-bg: #ecfdf3;
  --new: #b54708; --new-bg: #fffaeb;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #1a2232;
  --surface-3: #222c3f;
  --text: #e6e9ef;
  --text-2: #b8c0cc;
  --muted: #8a94a6;
  --border: #232d40;
  --accent: color-mix(in srgb, var(--accent-base) 70%, white);
  --accent-ink: color-mix(in srgb, var(--accent-base) 45%, white);
  --accent-soft: color-mix(in srgb, var(--accent-base) 22%, #121826);
  --on-accent: #ffffff;
  --header: #0f1420;
  --header-text: #e6e9ef;
  --header-border: #1d2636;
  --error: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.25);
  --fde: #b8a5ff; --fde-bg: #261f42;
  --sre: #6ee7b7; --sre-bg: #12312a;
  --devops: #fdba74; --devops-bg: #3a2616;
  --platform: #9dbcff; --platform-bg: #19253d;
  --cloud: #67e8f9; --cloud-bg: #10323a;
  --adjacent: #cbd5e1; --adjacent-bg: #232c3d;
  --salary: #86efac; --salary-bg: #133222;
  --new: #fde68a; --new-bg: #3a2c0b;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #1a2232;
  --surface-3: #222c3f;
  --text: #e6e9ef;
  --text-2: #b8c0cc;
  --muted: #8a94a6;
  --border: #232d40;
  --accent: color-mix(in srgb, var(--accent-base) 70%, white);
  --accent-ink: color-mix(in srgb, var(--accent-base) 45%, white);
  --accent-soft: color-mix(in srgb, var(--accent-base) 22%, #121826);
  --on-accent: #ffffff;
  --header: #0f1420;
  --header-text: #e6e9ef;
  --header-border: #1d2636;
  --error: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.25);
  --fde: #b8a5ff; --fde-bg: #261f42;
  --sre: #6ee7b7; --sre-bg: #12312a;
  --devops: #fdba74; --devops-bg: #3a2616;
  --platform: #9dbcff; --platform-bg: #19253d;
  --cloud: #67e8f9; --cloud-bg: #10323a;
  --adjacent: #cbd5e1; --adjacent-bg: #232c3d;
  --salary: #86efac; --salary-bg: #133222;
  --new: #fde68a; --new-bg: #3a2c0b;
  color-scheme: dark;
  }
}

/* Outlook-style theme colours */
:root[data-accent="teal"] { --accent-base: #0f766e; }
:root[data-accent="purple"] { --accent-base: #6d28d9; }
:root[data-accent="green"] { --accent-base: #15803d; }
:root[data-accent="orange"] { --accent-base: #c2410c; }
:root[data-accent="rose"] { --accent-base: #be123c; }
:root[data-accent="graphite"] { --accent-base: #374151; }
:root[data-header="color"] { --header: var(--accent-base); --header-text: #ffffff; --header-border: transparent; }
:root[data-header="color"] .topbar .avatar { background: rgb(255 255 255 / 0.2); }
:root[data-header="color"] .install-chip { background: rgb(255 255 255 / 0.12); color: #fff; border-color: rgb(255 255 255 / 0.3); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent-ink); }
h1 { font-size: 1.35rem; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 20px 2px 8px; font-weight: 700; }
p { margin: 0; }
code { font-size: 0.85em; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- icons ---------- */
.ico, .feat-icon::before {
  display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.i-refresh { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E"); }
.i-play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5z'/%3E%3C/svg%3E"); }
.i-stop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
.i-brief { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M12 12l5-5'/%3E%3C/svg%3E"); }
.i-bookmark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E"); }
.i-bookmark-fill { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E"); }
.i-history { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.i-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
.i-external { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 1 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.i-trash { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E"); }
.i-chevron { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-share { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E"); }
.i-jobs { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V4h8v3M3 12h18'/%3E%3C/svg%3E"); }
.i-news { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h10M7 13h10M7 17h6'/%3E%3C/svg%3E"); }
.i-learn { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.i-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.i-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-money { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.i-source { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E"); }
.i-alarm { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M5 3L2 6M19 3l3 3'/%3E%3C/svg%3E"); }


/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--header); color: var(--header-text); border-bottom: 1px solid var(--header-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.install-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.8rem; font-weight: 650; cursor: pointer;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #fff; background: var(--accent);
}
.avatar.big { width: 44px; height: 44px; font-size: 1rem; cursor: default; }
.offline { background: var(--new-bg); color: var(--new); text-align: center; font-size: 0.82rem; font-weight: 600; padding: 7px 16px; }

main { max-width: 720px; margin: 0 auto; padding: 14px 14px 8px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.page-head { margin: 4px 2px 14px; }
.page-head p { margin-top: 2px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 650; cursor: pointer; min-height: 42px;
  transition: background 0.15s ease, transform 0.08s ease; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.ghost { background: var(--surface-2); border-color: transparent; }
.btn.block { width: 100%; }
.btn.icon { width: 38px; min-height: 38px; padding: 0; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.saved, .btn.saved:disabled { color: var(--accent-ink); opacity: 1; cursor: default; }
.btn.busy .ico { animation: spin 0.9s linear infinite; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 9px; border: 0; display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer;
}
.iconbtn:active { background: var(--surface-2); }
.iconbtn.on { color: var(--accent-ink); }

/* ---------- sign-in ---------- */
.signin { max-width: 420px; margin: 3vh auto 0; text-align: center; padding: 8px 4px; }
.signin-logo { border-radius: 22px; box-shadow: var(--shadow); }
.signin h1 { margin-top: 16px; font-size: 1.7rem; }
.lead { color: var(--muted); margin-top: 6px; }
.slots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.slot { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; }
.slot b { color: var(--accent-ink); }
.muted-slot { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 18px 0; text-align: left; display: grid; gap: 8px; }
.features li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.features b { display: block; }
.features span:not(.feat-icon) { color: var(--muted); font-size: 0.88rem; }
.feat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.feat-icon.i-jobs { background: var(--fde-bg); color: var(--fde); }
.feat-icon.i-news { background: var(--platform-bg); color: var(--platform); }
.feat-icon.i-learn { background: var(--sre-bg); color: var(--sre); }
.feat-icon::before { content: ""; }
.gsi { display: flex; justify-content: center; margin: 20px 0 10px; min-height: 44px; }
.fine { color: var(--muted); font-size: 0.78rem; margin-top: 10px; }

/* ---------- brief header ---------- */
.hero { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 14px 12px; box-shadow: var(--shadow-sm); }
.hero-kicker { font-size: 0.85rem; color: var(--muted); }
.hero h1 { margin-top: 2px; }
.hero-sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 1.1rem; line-height: 1.2; }
.stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head h3 { margin-bottom: 8px; }
.section-head span { font-size: 0.75rem; color: var(--muted); }

/* ---------- compact job card ---------- */
.job {
  display: block; padding: 12px 12px 8px; cursor: pointer; position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.job:hover { border-color: var(--surface-3); box-shadow: var(--shadow); }
.job-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: start; }
.logo-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: #fff; }
.logo-wrap { position: relative; width: 40px; height: 40px; }
.logo-wrap .logo-tile { position: absolute; inset: 0; }
.logo-img { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--border); object-fit: contain; }
.job-main { min-width: 0; }
.job-title {
  font-weight: 650; font-size: 0.97rem; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-sub { color: var(--text-2); font-size: 0.83rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-sub b { font-weight: 600; color: var(--text); }
.fit { font-size: 0.66rem; font-weight: 750; letter-spacing: 0.02em; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.fit-top { background: var(--accent); color: #fff; }
.fit-strong { background: var(--sre-bg); color: var(--sre); }
.fit-good { background: var(--platform-bg); color: var(--platform); }
.chips { display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; min-width: 0; }
.chip { border-radius: 6px; padding: 2px 8px; font-size: 0.72rem; font-weight: 650; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.t-FDE { background: var(--fde-bg); color: var(--fde); }
.chip.t-SRE { background: var(--sre-bg); color: var(--sre); }
.chip.t-DevOps { background: var(--devops-bg); color: var(--devops); }
.chip.t-Platform { background: var(--platform-bg); color: var(--platform); }
.chip.t-Cloud { background: var(--cloud-bg); color: var(--cloud); }
.chip.t-Adjacent { background: var(--adjacent-bg); color: var(--adjacent); }
.chip.salary { background: var(--salary-bg); color: var(--salary); }
.chip.new { background: var(--new-bg); color: var(--new); }
.job-why {
  margin: 7px 0 0 51px; font-size: 0.8rem; color: var(--text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px -6px -4px 51px; }
.job-foot .acts { display: flex; gap: 0; align-items: center; flex: none; }
.job-foot select.btn { min-height: 32px; padding: 4px 10px; width: auto; }
.detail-section .chip, .skill-chips .chip { font-size: 0.78rem; }
.job.t-FDE .logo-wrap, .job.t-FDE > .job-row { --track: var(--fde); }

/* ---------- news / learning ---------- */
.news { padding: 2px 14px; }
.news-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.news-item:last-child { border-bottom: 0; }
.news-num { font-size: 0.8rem; font-weight: 750; color: var(--muted); padding-top: 1px; }
.news-title { font-weight: 600; font-size: 0.92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 0.75rem; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.topic { font-weight: 700; }
.topic.n-indian-it { color: var(--devops); }
.topic.n-ai-companies { color: var(--fde); }
.topic.n-jobs-pay { color: var(--sre); }
.topic.n-cloud-sre { color: var(--platform); }
.topic.n-ai-engineering { color: var(--cloud); }
.learn .learn-skill { color: var(--sre); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.learn a { display: block; margin-top: 4px; font-weight: 650; color: var(--text); text-decoration: none; }
.progress { height: 5px; background: var(--surface-3); border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sre); border-radius: 999px; }
.learn p { font-size: 0.83rem; color: var(--text-2); margin-top: 6px; }
details.card summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: " ▾"; }
details.card p { margin-top: 8px; }

/* ---------- job details page ---------- */
.detail-top { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px -6px; }
.detail-top button { background: none; border: 0; color: var(--text); display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; cursor: pointer; padding: 6px; border-radius: 8px; }
.detail-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.detail-head .logo-tile, .detail-head .logo-wrap, .detail-head .logo-img { width: 52px; height: 52px; border-radius: 12px; font-size: 1.2rem; }
.detail-head h1 { font-size: 1.2rem; }
.detail-head .company { color: var(--text-2); font-weight: 600; margin-top: 2px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.fact { background: var(--surface); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.fact .ico { color: var(--muted); margin-top: 2px; }
.fact small { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; }
.fact span { font-size: 0.88rem; font-weight: 600; word-break: break-word; }
.detail-section h3 { margin-top: 18px; }
.detail-section .card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-actions .btn.primary { white-space: nowrap; }
.detail-actions {
  position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4;
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; padding: 10px; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}

/* ---------- lists / misc ---------- */
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.list-item .ico { color: var(--muted); }
.slot-badge { display: inline-block; font-size: 0.66rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 5px; padding: 2px 6px; margin-right: 6px; }
.slot-badge.morning { background: var(--devops-bg); color: var(--devops); }
.slot-badge.evening { background: var(--fde-bg); color: var(--fde); }
.slot-badge.manual { background: var(--surface-2); color: var(--muted); }
.meta { color: var(--muted); font-size: 0.8rem; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.error { color: var(--error); font-size: 0.88rem; margin-top: 8px; }
.empty { text-align: center; padding: 24px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.filters button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.filters button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.form-title { margin: 0 0 12px; }
.form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.form input:not([type="radio"]), .form select, .form textarea, select.btn {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid transparent; border-radius: 10px;
}
select.btn { margin-top: 0; font-weight: 600; font-size: 0.85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > label { flex: 1 1 130px; }
.row > .btn { flex: 1; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 9px; color: var(--text-2); font-weight: 650; font-size: 0.84rem; cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.form .btn.block { margin-bottom: 10px; }
.push-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgb(22 163 74 / 0.15); }
.dot.off { background: var(--warn); }
.account { display: flex; align-items: center; gap: 14px; }

.scan { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 10px 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.scan b { display: block; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: var(--radius); margin-bottom: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.hero-skel { height: 170px; }
.card-skel { height: 118px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card.job { animation: rise 0.3s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- bottom tabs ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 0.7rem; font-weight: 650; border-radius: 10px; }
.tabs a .ico { width: 21px; height: 21px; }
.tabs a.active { color: var(--accent-ink); }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 9px 15px; border-radius: 10px; font-size: 0.86rem; font-weight: 600;
  max-width: calc(100% - 32px); z-index: 10; box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) { .card.job, .spinner, .btn.busy .ico, .skeleton { animation: none; } .btn { transition: none; } }
@media (min-width: 640px) { main { padding: 20px; } }

/* ---------- appearance controls ---------- */
.form > label:not(:has(input, textarea, select)) { margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.swatches label { margin: 0; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.35); }
.swatches input:checked + span { outline: 3px solid var(--sw); outline-offset: 3px; }
.swatches input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 3px; }

/* compact density */
:root[data-density="compact"] body { font-size: 14px; }
:root[data-density="compact"] .card { padding: 10px 12px; margin-bottom: 8px; }
:root[data-density="compact"] .job { padding: 10px 10px 6px; }
:root[data-density="compact"] .job-why { -webkit-line-clamp: 1; }
:root[data-density="compact"] .news-item { padding: 8px 0; }
:root[data-density="compact"] .hero { padding: 12px; }

/* ---------- news reader ---------- */
.news-item.read .news-title { color: var(--muted); font-weight: 500; }
.news-head .topic { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.news-head h1 { font-size: 1.25rem; margin-top: 6px; }
.news-head .meta { margin-top: 6px; }
.insight ul { margin: 0; padding-left: 18px; }
.insight li { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.5; color: var(--text); }
.insight .why-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--text); font-size: 0.9rem; }
.insight .why-box b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); margin-bottom: 2px; }
.badge-line { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--muted); }
.loading-line { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.88rem; }
.loading-line .spinner { width: 18px; height: 18px; border-width: 2px; }

/* ---------- apply assistant ---------- */
.step { display: flex; align-items: center; gap: 10px; margin: 18px 2px 8px; }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 800; flex: none; }
.step b { font-size: 0.95rem; }
.pitch textarea {
  width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font: inherit; font-size: 0.9rem; line-height: 1.5; color: var(--text); background: var(--surface-2);
}
.pitch textarea.short { min-height: 84px; }
.pitch .row-between { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; }
.pitch .row-between:first-child { margin-top: 0; }
.pitch .row-between b { font-size: 0.82rem; color: var(--text-2); }
.copy-list { padding: 0 12px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.copy-row:last-child { border-bottom: 0; }
.copy-row small { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 650; }
.copy-row span { font-size: 0.9rem; word-break: break-word; }
.copy-row .missing { color: var(--muted); font-style: italic; }
.submit-card p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 10px; }
.submit-card .btn { margin-bottom: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--text-2); margin: 4px 0 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.done-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--salary-bg); color: var(--salary); font-weight: 650; font-size: 0.9rem; }
.fact a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* ---------- voice assistant ---------- */
.mic-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center;
  background: var(--surface); color: var(--text); cursor: pointer;
}
:root[data-header="color"] .mic-btn { background: rgb(255 255 255 / 0.14); color: #fff; border-color: rgb(255 255 255 / 0.3); }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgb(16 24 40 / 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel {
  width: 100%; max-width: 560px; background: var(--surface); color: var(--text); border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgb(0 0 0 / 0.2);
  animation: sheet-up 0.22s ease both; text-align: center;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.voice-orb {
  width: 84px; height: 84px; border-radius: 50%; border: 0; margin: 14px auto 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); cursor: pointer; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-base) 35%, transparent);
}
.sheet[data-mode="listening"] .voice-orb { animation: pulse 1.2s ease-in-out infinite; }
.sheet[data-mode="thinking"] .voice-orb { opacity: 0.7; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-base) 45%, transparent); } 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent-base) 0%, transparent); } }
.voice-status { font-weight: 650; min-height: 1.5em; }
.sheet[data-mode="error"] .voice-status { color: var(--error); }
.voice-transcript { color: var(--text-2); font-size: 0.92rem; min-height: 1.4em; margin: 6px 0 12px; font-style: italic; }
.voice-form { display: flex; gap: 8px; }
.voice-form input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.voice-examples { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.voice-examples button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet[data-mode="listening"] .voice-orb { animation: none; } }
