/* Efficio Tracker styles: same tokens and type as Efficio Education */
:root, [data-theme="light"] {
  --bg: #F4F5FA; --surface: #FFFFFF; --surface-2: #EDF0F7; --line: #E0E4EE; --line-2: #CBD1E0;
  --ink: #121628; --ink-2: #2C3248; --muted: #5C657B;
  --accent: #2F4BD8; --accent-2: #2440C4; --on-accent: #FFFFFF; --accent-soft: #E6EAFF; --hl: #FFE27A;
  --shadow: 0 1px 2px rgba(18,22,40,.05), 0 8px 24px -14px rgba(18,22,40,.22);
  --shadow-lg: 0 2px 4px rgba(18,22,40,.04), 0 24px 48px -24px rgba(18,22,40,.35);
  --g: #0B7A55; --gs: #DDF4E9; --w: #9A5B00; --ws: #FFF1D2; --h: #B42318; --hs: #FDE4E1; --s: #2440C4; --ss: #E6EAFF;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0F1E; --surface: #131A2D; --surface-2: #1A2137; --line: #242C46; --line-2: #333C5C;
  --ink: #E8EBF6; --ink-2: #C7CCDE; --muted: #96A0B9;
  --accent: #7F94FF; --accent-2: #97A8FF; --on-accent: #0B0F1E; --accent-soft: #1E2750;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 28px 56px -24px rgba(0,0,0,.8);
  --g: #6FE0B0; --gs: #0E2E22; --w: #FFD27A; --ws: #3A2A08; --h: #FF9B91; --hs: #3B1512; --s: #A9B6FF; --ss: #1A2150;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 11px; padding: 9px 16px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.link.del { color: var(--h); }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.navin { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.mark { background: var(--hl); color: #1A1A12; border-radius: 7px; padding: 1px 9px; transform: rotate(-3deg); font-weight: 800; }
.bn2 { font-weight: 500; color: var(--muted); }
.tabs { display: flex; gap: 2px; margin-left: 12px; }
.tabs a { text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover { background: var(--surface-2); }
.tabs a.on { background: var(--accent-soft); color: var(--accent); }
.tabs i { font-style: normal; font-size: 11.500px; font-weight: 800; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.tabs i:empty { display: none; }
.back { margin-left: auto; font-size: 13.500px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--accent); }
.icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; color: var(--ink-2); }
#acct.on { border-color: color-mix(in srgb, var(--g) 50%, var(--line)); color: var(--g); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 70px; min-height: 70vh; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

/* hero */
.hero { text-align: center; padding: 46px 0 26px; }
.eyebrow { font-size: 12.500px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 12px; }
h1 em { font-style: italic; color: var(--accent); }
.sub { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 0 auto; }
.stats, .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: 12px; margin-top: 24px; }
.stats div, .kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; }
.stats b, .kpis b { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.05; }
.stats span, .kpis span { font-size: 12.500px; color: var(--muted); }

/* search + filters */
.bar { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border: 1.500px solid var(--line-2); border-radius: 14px; color: var(--muted); background: var(--bg); }
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chips button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chips button:hover { border-color: var(--accent); }
.chips i { font-style: normal; font-size: 11.500px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips button.on i { background: rgba(255,255,255,.22); color: inherit; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.filters label, .lbl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filters span, .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
select, .dlg input, textarea { height: 42px; width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); padding: 0 10px; font-size: 14.500px; }
.barfoot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.count { font-size: 13.500px; color: var(--muted); margin-right: auto; }
.pill { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* rows */
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 230px 150px; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.row:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.row.saved { border-color: color-mix(in srgb, #E9A93A 60%, var(--line)); }
.row.closed { opacity: .58; }
.star { background: none; border: 0; padding: 4px; color: var(--line-2); border-radius: 8px; align-self: start; }
.star:hover, .saved .star { color: #E9A93A; }
.rmain { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.rtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rtop b { font-size: 16.500px; }
.rprog { color: var(--ink-2); font-size: 14.500px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.tg { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; }
.tg.ty { color: var(--accent); background: var(--accent-soft); }
.rnote { font-size: 13px; color: var(--muted); margin-top: 3px; }
.b { font-size: 11.500px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.b.open { color: var(--g); background: var(--gs); } .b.warm { color: var(--w); background: var(--ws); } .b.hot { color: var(--h); background: var(--hs); } .b.soon { color: var(--s); background: var(--ss); }
.b.closed, .b.tba { color: var(--muted); background: var(--surface-2); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.dates dt { font-size: 10.500px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dates dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dates dd.has { color: var(--ink); }
.dates i { font-style: normal; font-weight: 500; font-size: 11.500px; color: var(--muted); }
.ract { display: flex; flex-direction: column; gap: 7px; }
.ract select { height: 34px; font-size: 13.500px; }
.empty { text-align: center; padding: 46px 20px; border: 1.500px dashed var(--line-2); border-radius: 18px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty b { color: var(--ink); font-size: 17px; }
.empty.big { margin-top: 30px; padding: 70px 20px; }

/* my applications + dashboard */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 40px 0 22px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(34px, 5vw, 50px); margin: 0 0 4px; }
.phead .sub { margin: 0; font-size: 15.500px; }
.grp { margin-bottom: 26px; }
.grp h2, .card h2 { font-size: 15px; letter-spacing: .02em; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.grp h2 i { font-style: normal; font-size: 12px; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.card h2 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.mrow { margin-bottom: 10px; }
.mrow .row { border-radius: 16px 16px 0 0; }
.mrow textarea { display: block; height: auto; min-height: 40px; padding: 9px 14px; border-radius: 0 0 16px 16px; border-top: 0; resize: vertical; background: var(--bg); font-size: 14px; }
.mrow .del { margin: 6px 4px 0; }
.kpis { margin: 0 0 18px; grid-template-columns: repeat(4, 1fr); }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card .row { margin-bottom: 8px; box-shadow: none; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.drow:first-of-type { border-top: 0; }
.drow span { display: flex; flex-direction: column; min-width: 0; }
.drow small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warnline { margin: 12px 0 0; font-size: 13.500px; color: var(--h); }
.pbar { display: grid; grid-template-columns: 110px 1fr 26px; align-items: center; gap: 10px; font-size: 14px; margin: 9px 0; }
.pbar i { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar u { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.pbar b { text-align: right; }

/* dialog, toast, footer */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10,13,26,.5); display: grid; place-items: center; padding: 20px; }
.dlg { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.dlg h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; }
.dlg p { margin: 0 0 4px; font-size: 14.500px; }
.or { text-align: center; color: var(--muted); font-size: 13px; }
.err { color: var(--h); }
.drowb { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 95; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.ft { border-top: 1px solid var(--line); }
.ftin { max-width: 1160px; margin: 0 auto; padding: 22px 24px 34px; display: grid; gap: 6px; font-size: 12.500px; color: var(--muted); }

@media (max-width: 980px) {
  .row { grid-template-columns: 32px minmax(0, 1fr); }
  .dates, .ract { grid-column: 2; }
  .ract { flex-direction: row; } .ract > * { flex: 1; }
  .dgrid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .navin { padding: 0 14px; gap: 8px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; }
  .bn2, .back { display: none; }
  .tabs { order: 5; width: 100%; margin: 0; overflow-x: auto; }
  .tabs a { white-space: nowrap; font-size: 14px; }
  .icon { margin-left: auto; }
  .wrap { padding: 0 14px 50px; }
  .hero { padding-top: 30px; }
  .stats, .kpis { grid-template-columns: 1fr 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* alerts, notify, job finder */
.alert { margin: 18px 0 0; background: var(--gs); color: var(--ink); border: 1px solid color-mix(in srgb, var(--g) 35%, transparent); border-radius: 16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 14.500px; }
.alert p { margin: 0; } .alert a { font-weight: 700; } .alert .link { margin-left: auto; }
.jfrow { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.jf .count { margin: 0; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.site:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.site.off { opacity: .5; pointer-events: none; }
.site span:first-child { display: flex; flex-direction: column; min-width: 0; }
.site small { color: var(--muted); font-size: 13px; }
.site .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.jfnote { font-size: 13px; margin-top: 16px; }
.ract .btn { width: 100%; }
@media (max-width: 720px) { .jfrow { grid-template-columns: 1fr; } }
