/* The document list. Borrows account.css for .wrap, .row, .stack and .faint. */

.res-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px;
}
.res-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; color: inherit;
}
.res-title { font-weight: 600; font-size: 15px; }
.res-main:hover .res-title { color: var(--accent); }

.tag {
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--good); border: 1px solid rgba(94,234,212,0.35);
  border-radius: 999px; padding: 3px 9px;
}

.empty, .locked {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px; text-align: center;
}
.empty h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.3px; }
.empty p { max-width: 46ch; margin: 0 auto 18px; }
.locked { margin-top: 12px; text-align: left; }
/* Left-aligned card, so the paragraph is left-aligned too: `margin: auto` on a
   max-width block inside it centres the text and leaves the heading hanging. */
.locked p { max-width: 52ch; margin: 0 0 18px; }
.locked strong { display: block; margin-bottom: 6px; }

.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------- import a resume */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(4,6,10,.74); backdrop-filter: blur(6px); padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  display: flex; flex-direction: column;
  width: min(520px, 100%); max-height: calc(100dvh - 60px); overflow: hidden;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(168deg, #151a23, #0d1016);
  box-shadow: 0 40px 90px -45px rgba(0,0,0,.92);
}
.modal-head { display: flex; align-items: flex-start; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 670; color: #fff; flex: 1; }
.modal-x { font: inherit; font-size: 22px; line-height: 1; color: var(--ink-faint);
           background: none; border: 0; cursor: pointer; }
.modal-sub { margin: 8px 0 0; line-height: 1.55; color: var(--ink-dim); font-size: 13.5px; }
.modal-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: 18px -26px 0; padding: 4px 26px 4px; display: grid; gap: 14px;
}
.f { display: grid; gap: 6px; }
.f > label { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
             color: var(--ink-faint); font-weight: 640; }
.f input, .f textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.f input:focus, .f textarea:focus { outline: none; border-color: rgba(143,185,255,.5); }
.f textarea { resize: vertical; font-family: inherit; }
.f .hint { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }
.f[hidden] { display: none; }
.seg { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line);
       border-radius: 11px; background: var(--panel); }
.seg button {
  flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-dim);
  background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer;
}
.seg button.on { color: #08090d; background: linear-gradient(135deg, #cfe2ff, #8fb9ff 60%, #c4b5fd); }
.modal-err { margin: 0; font-size: 13.5px; color: var(--bad); font-weight: 550; }
.modal-err[hidden] { display: none; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end;
              margin: 20px -26px -24px; padding: 18px 26px 24px;
              border-top: 1px solid var(--line-soft); }
