[hidden] { display: none !important; }
:root {
  --navy: #14284b; --navy-2: #1d3a6b; --teal: #0f9d8a; --teal-2: #0b7f70; --teal-soft: #e3f5f2;
  --ink: #142033; --text: #263345; --muted: #657186; --line: #e1e6ee; --bg: #f3f5f8; --white: #fff;
  --red: #c4392f; --radius: 16px; --shadow: 0 1px 2px rgba(20, 32, 51, .05), 0 14px 32px -20px rgba(20, 32, 51, .35);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", Inter, sans-serif; color: var(--ink); margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; } h3 { font-size: 1.25rem; } h4 { font-size: .95rem; margin-top: 18px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.err { color: var(--red); font-size: .9rem; margin: 6px 0; }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--teal); color: #fff; } .btn.primary:hover { background: var(--teal-2); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--navy); }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f1cbc7; }
.btn.small { padding: 7px 12px; font-size: .88rem; } .btn.wide { width: 100%; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 157, 138, .15); }
label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(160deg, rgba(20, 40, 75, .82), rgba(15, 157, 138, .55)), url("img/grads-1920.jpg") center/cover no-repeat; }
.login-card { width: 100%; max-width: 400px; background: rgba(255, 255, 255, .96); border-radius: 22px; padding: 30px 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.login-card h1 { font-size: 1.5rem; margin-top: 22px; }

/* header + hero */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.hero { color: #fff; background: linear-gradient(100deg, rgba(20, 40, 75, .9) 10%, rgba(20, 40, 75, .55) 55%, rgba(15, 157, 138, .25)), url("img/grads-1920.jpg") center 40%/cover no-repeat; }
.hero .wrap { padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(76px, 10vw, 112px); }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 800; }
.hero p { color: #dbe6f3; max-width: 34em; margin: 0; font-size: 1.05rem; }

/* journey strip = summary by stage */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -54px; position: relative; z-index: 2; }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 150px; box-shadow: var(--shadow); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background-size: cover; background-position: center; cursor: pointer; border: 0; text-align: left; font: inherit; }
.stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 40, 75, .92), rgba(20, 40, 75, .25)); }
.stage > * { position: relative; }
.stage b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.1rem; line-height: 1; }
.stage span { font-weight: 600; } .stage small { color: #c8d6e8; font-size: .78rem; }
.stage:not(:last-child)::after { content: "›"; position: absolute; right: 10px; top: 8px; font-size: 1.6rem; color: rgba(255, 255, 255, .7); }
.s1 { background-image: url("img/campus-900.jpg"); } .s2 { background-image: url("img/interns-900.jpg"); }
.s3 { background-image: url("img/team-900.jpg"); } .s4 { background-image: url("img/towers-900.jpg"); }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.wrapflex { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .card { margin-top: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; }
.tile b { display: block; font-size: 1.4rem; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.tile.zero { opacity: .5; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.feed li:last-child { border-bottom: 0; }
.feed .d { flex: 0 0 64px; color: var(--muted); font-size: .82rem; padding-top: 2px; }
.feed .t b { color: var(--ink); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input { width: 220px; } .filters select { width: 170px; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; width: 100%; }
.item:hover { border-color: var(--teal); }
.item .mob { display: none; }
.item .co { font-weight: 700; color: var(--ink); } .item .ro { color: var(--muted); font-size: .88rem; }
.item .up { font-size: .9rem; } .item .up small { display: block; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; border: 1px dashed var(--line); border-radius: 12px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.b-planning { background: #eef0f4; color: #4c566a; } .b-applied { background: #e6efff; color: #1f55c4; }
.b-online-assessment { background: #efe8ff; color: #6337c4; } .b-interview { background: #fff1d6; color: #9a5b00; }
.b-offer { background: #dcf5e7; color: #127a44; } .b-accepted { background: #127a44; color: #fff; }
.b-rejected { background: #fde7e5; color: #b0352b; } .b-withdrawn { background: #eef0f4; color: #6b7280; }
.b-no-response { background: #f1f3f6; color: #5b6576; }

/* dialogs */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(20, 32, 51, .5); }
dialog form, .det { padding: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.det-head { display: flex; justify-content: space-between; gap: 10px; }
.det-head h3 { margin-bottom: 2px; }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: .92rem; margin: 10px 0; }
.info dt { color: var(--muted); } .info dd { margin: 0; word-break: break-word; }
.upd { background: var(--teal-soft); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.upd h4 { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.timeline .when { color: var(--muted); font-size: .82rem; }
.timeline .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 0 4px; }
.det-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.foot { text-align: center; margin: 26px 0; }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { grid-template-columns: 1fr auto; }
  .item .up { grid-column: 1 / -1; } .item .ap { display: none; } .item .mob { display: block; }
}
@media (max-width: 520px) {
  .top-row .brand span { display: none; }
  #addBtn { padding: 9px 12px; }
  .filters input, .filters select { width: 100%; } .filters { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2, .row3 { grid-template-columns: 1fr; }
  .stage { min-height: 120px; } .stage b { font-size: 1.7rem; }
}
@media (max-width: 860px) { .item .mob { grid-row: 1; grid-column: 2; align-self: start; } }
@media (max-width: 520px) { .hide-sm { display: none; } .top-row { gap: 8px; } .top-actions { gap: 6px; } .brand strong { font-size: 1.05rem; } }
.det-head .btn { align-self: flex-start; }

/* menu + quick add page */
.menu { display: flex; gap: 4px; margin-right: auto; margin-left: 18px; }
.menu a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 9px; }
.menu a:hover { background: var(--bg); }
.menu a.on { background: var(--teal-soft); color: var(--teal-2); }
.hero-sm .wrap { padding-bottom: clamp(70px, 9vw, 96px); }
.narrow { max-width: 620px; }
.lift { margin-top: -54px; position: relative; z-index: 2; }
.quick .btn { width: 100%; padding: 12px; font-size: 1rem; }
.ok { color: var(--teal-2); font-weight: 600; margin: 10px 0 0; }
@media (max-width: 680px) {
  .top-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; }
  .menu { order: 3; width: 100%; margin: 4px 0 0; }
  .menu a { flex: 1; text-align: center; background: var(--bg); }
}
.qnote { margin: 10px 0 0; }
