/* Rolevion — Focused Minimal (design decided 2026-11-28)
   bg #f7f7f5 · cards #fff · hairlines #e7e7e3 · accent violet #6d5cff */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  background: #f7f7f5; color: #17171c; font-size: 14px; line-height: 1.45;
}
a { color: #4b3fd6; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: #17171c; background: #fff;
  border: 1px solid #dcdcd6; border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cfc8ff; border-color: #6d5cff; }
label { display: block; font-size: 12px; font-weight: 600; color: #55555e; margin: 10px 0 4px; }
label:first-child { margin-top: 0; }

.layout { display: flex; min-height: 100vh; }
.rail {
  width: 208px; flex: 0 0 208px; background: #fbfbfa; border-right: 1px solid #e7e7e3;
  padding: 16px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; padding: 2px 8px 14px; }
.logo .mark { color: #6d5cff; }
.nav a {
  display: block; padding: 7px 9px; border-radius: 7px; color: #55555e; font-size: 13px; margin-bottom: 2px;
}
.nav a:hover { text-decoration: none; background: #f1f1ee; }
.nav a.on { background: #efeeff; color: #4b3fd6; font-weight: 600; }
.rail .spacer { flex: 1; }
.rail .meta { border-top: 1px solid #e7e7e3; padding-top: 10px; font-size: 12px; color: #55555e; }
.credits-chip {
  display: inline-block; background: #17171c; color: #f4f4f2; border-radius: 7px;
  padding: 4px 9px; font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.mode-badge {
  display: block; font-size: 11px; color: #8a6d00; background: #fff7dd;
  border: 1px solid #eedd9a; border-radius: 7px; padding: 6px 8px; margin-top: 8px; line-height: 1.35;
}
.main { flex: 1; min-width: 0; padding: 22px 26px 60px; max-width: 1080px; }
h1 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 22px 0 10px; }
.sub { color: #8a8a93; font-size: 12.5px; margin-bottom: 14px; }

.card { background: #fff; border: 1px solid #e7e7e3; border-radius: 12px; padding: 16px; }
.grid { display: grid; gap: 12px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr 1fr; } .rail { display: none; } }
.stat .k { font-size: 10.5px; color: #8a8a93; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; }

.btn {
  display: inline-block; border: 1px solid #dcdcd6; background: #fff; color: #17171c;
  border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: #bdbdb4; }
.btn.primary { background: #6d5cff; border-color: #6d5cff; color: #fff; }
.btn.dark { background: #17171c; border-color: #17171c; color: #f4f4f2; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: default; }

.job { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job .t { font-weight: 700; font-size: 14.5px; }
.job .c { color: #55555e; font-size: 12.5px; }
.match { font-size: 11.5px; font-weight: 700; color: #4b3fd6; white-space: nowrap; }
.tag {
  display: inline-block; font-size: 11px; color: #55555e; background: #f4f4f1;
  border: 1px solid #e7e7e3; border-radius: 20px; padding: 2px 8px; margin: 4px 4px 0 0;
}
.salary { font-size: 12px; color: #1d7a3a; font-weight: 600; }

table.fields { width: 100%; border-collapse: collapse; }
table.fields td, table.fields th { border-bottom: 1px solid #f0f0ec; padding: 8px 6px; text-align: left; font-size: 13px; }
table.fields th { color: #8a8a93; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.ok { color: #1d7a3a; font-weight: 600; }
.refuse { background: #fdf1f1; border: 1px solid #f0caca; border-radius: 10px; padding: 12px 14px; }
.refuse .h { font-weight: 700; color: #8f1d1d; font-size: 13px; margin-bottom: 4px; }
.refuse li { color: #6d2b2b; font-size: 13px; }
.notice { background: #f4f2ff; border: 1px solid #ddd8ff; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.notice.warn { background: #fff7dd; border-color: #eedd9a; }
.error { background: #fdf1f1; border: 1px solid #f0caca; color: #8f1d1d; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; } }
.board .col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #55555e; margin: 0 0 8px; }
.app-card { background: #fff; border: 1px solid #e7e7e3; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.app-card .t { font-weight: 600; font-size: 13px; }
.app-card .c { color: #8a8a93; font-size: 12px; }
.app-card select { margin-top: 8px; padding: 4px 6px; font-size: 12px; }

.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; }
.msg.q { background: #efeeff; align-self: flex-start; }
.msg.a { background: #fff; border: 1px solid #e7e7e3; align-self: flex-end; }

.resume-preview { background: #fff; border: 1px solid #e7e7e3; border-radius: 6px; padding: 28px 32px; }
.resume-preview h1 { font-size: 24px; margin-bottom: 2px; }
.resume-preview h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #6d5cff; border-bottom: 1px solid #e7e7e3; padding-bottom: 4px; margin: 16px 0 8px; }
.resume-preview .row { display: flex; justify-content: space-between; }
.resume-preview ul { margin: 4px 0 8px 16px; padding: 0; }
.template-modern h1 { color: #17171c; }
.template-modern h3 { color: #17171c; border-bottom: 2px solid #17171c; }

.partner { border: 1px dashed #cfcfc8; background: #fff; border-radius: 12px; padding: 14px 16px; }
.partner .disc { font-size: 11px; color: #8a8a93; margin-top: 6px; }
.auth-wrap { max-width: 380px; margin: 8vh auto; }
.flex { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.small { font-size: 12px; color: #8a8a93; }
