/* ==========================================================================
   GestIA · Vistas: solicitudes, asistente, personas, ingesta, administración y diálogo de solicitud
   ========================================================================== */

/* ---------- Solicitudes ---------- */
.req-list { display: grid; }
.req-row {
  display: grid;
  grid-template-columns: 50px minmax(150px, 1.2fr) minmax(170px, 1.3fr) 74px minmax(110px, .8fr) 136px 190px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
  transition: background-color .15s;
  animation: rise .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
.req-list.mine .req-row { grid-template-columns: 50px minmax(200px, 1.6fr) 90px minmax(130px, 1fr) 150px minmax(48px, auto); }
.req-row:hover { background: var(--surface-2); }
.req-row.req-head { animation: none; padding-top: 10px; padding-bottom: 10px; border-top: 0; background: var(--surface-2); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.req-row strong { display: block; font-weight: 700; }
.req-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ink-3); }
.c-days strong { font-size: 16px; }
.c-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.c-actions:empty { display: none; }
.request-action-hint { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.request-action-hint svg { width: 14px; height: 14px; color: var(--blue); }
@media (max-width: 1180px) {
  .req-row, .req-list.mine .req-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    grid-template-areas: "date main status" "date period days" "date entity entity" "actions actions actions";
    row-gap: 4px;
  }
  .req-list.mine .req-row { grid-template-areas: "date period status" "date entity days" "actions actions actions"; }
  .req-row.req-head { display: none; }
  .c-date { grid-area: date; align-self: start; }
  .c-person { grid-area: main; }
  .c-period { grid-area: period; min-width: 0; }
  .c-days { grid-area: days; text-align: right; }
  .c-entity { grid-area: entity; }
  .c-status { grid-area: status; justify-self: end; }
  .c-actions { grid-area: actions; justify-content: stretch; margin-top: 6px; }
  .c-actions .btn { flex: 1; }
  .c-days strong { display: inline; font-size: 14px; }
}

.vacation-current { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface-2); }
.vacation-current span, .vacation-current small { color: var(--ink-3); font-size: 12px; }
.vacation-current strong { font-size: 16px; }
.vacation-impact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 13px; }
.request-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.request-history li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); animation: rise .35s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); }
.request-history li > div { min-width: 0; }
.request-history p { margin: 3px 0; color: var(--ink-2); font-size: 13px; }
.request-history small { color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
.request-delta { align-self: center; white-space: nowrap; color: var(--tone-ink); }
@media (max-width: 620px) {
  .vacation-impact { display: grid; }
  .request-history li { grid-template-columns: auto minmax(0, 1fr); }
  .request-delta { grid-column: 2; justify-self: start; }
}

/* ---------- Asistente ---------- */
.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  height: calc(100dvh - var(--topbar) - 44px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.agent-id { display: flex; align-items: center; gap: 12px; }
.agent-id h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.agent-id p { font-size: 12.5px; color: var(--ink-3); }
.chat-context { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 750; background: var(--canvas); color: var(--ink-3); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ready { background: #dbf5e9; color: #0b7349; }
.status-pill.ready i { --pulse: currentColor; }
.status-pill.offline { background: #fde4e5; color: #b42330; }

.orb { --s: 42px; position: relative; isolation: isolate; display: grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; color: #fff; }
.orb::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 50%; background: var(--grad-ai); animation: spin 5s linear infinite; }
.orb::after { content: ""; position: absolute; inset: 2.5px; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #5b82ff 0%, #1c3486 72%); }
.orb .i { width: 46%; height: 46%; }
.orb.busy::before { animation-duration: .9s; }
.orb-sm { --s: 30px; }
.orb-xl { --s: 88px; }
.orb-xl::after { inset: 4px; }
.orb-halo { position: relative; display: grid; place-items: center; }
.orb-halo::before, .orb-halo::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(124, 92, 250, .28); animation: halo 3s ease-out infinite; }
.orb-halo::after { animation-delay: 1.5s; }
@keyframes halo { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

.thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 24px clamp(14px, 4vw, 56px);
  background: radial-gradient(circle at 0% 0%, #f2f5ff 0%, transparent 45%), radial-gradient(circle at 100% 100%, #fbf2ff 0%, transparent 45%), #fff;
}
.chat-welcome { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 760px; margin: auto; padding: 16px 0; text-align: center; }
.chat-welcome h3 { margin-top: 16px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; animation: rise .5s var(--ease) both .08s; }
.chat-welcome > p { max-width: 540px; font-size: 14.5px; color: var(--ink-3); animation: rise .5s var(--ease) both .14s; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 14px; }
.prompt-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 180ms);
}
.prompt-card:hover { transform: translateY(-3px); border-color: var(--tone); box-shadow: 0 16px 30px -18px var(--tone); }
.prompt-card .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.prompt-card strong { display: block; font-size: 13.5px; font-weight: 750; }
.prompt-card span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .prompt-grid { grid-template-columns: 1fr; } }

.msg { display: flex; align-items: flex-start; gap: 10px; max-width: min(780px, 100%); animation: rise .4s var(--ease) both; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-body { display: grid; gap: 8px; min-width: 0; }
.msg.user .msg-body { justify-items: end; }
.bubble { padding: 12px 16px; border-radius: 6px 18px 18px 18px; font-size: 14.5px; line-height: 1.6; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); overflow-wrap: anywhere; }
.msg.user .bubble { border-radius: 18px 6px 18px 18px; border: 0; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-blue); }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 8px; }
.bubble ul { margin: 0; padding-left: 20px; }
.bubble li + li { margin-top: 3px; }
.bubble.error { display: flex; gap: 10px; background: #fff5f5; border-color: #f7c5c8; color: #8e1f2a; }
.bubble.error .i { margin-top: 3px; }
.msg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 8px; width: 100%; }
.person-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; animation: pop .35s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms); }
.pc-main { flex: 1; min-width: 0; }
.person-card strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.person-card small { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.pc-days { flex: none; text-align: right; }
.pc-days b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.pc-days small { justify-content: flex-end; }
.pc-hold { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: #fef0d3; color: #8f5600; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-4); }
.msg-meta .i { width: 13px; height: 13px; }
.source-list {
  width: 100%;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .82);
  overflow: hidden;
}
.source-list summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.source-list summary::-webkit-details-marker { display: none; }
.source-list summary:hover { color: var(--ink); background: var(--surface-2); }
.source-list summary:focus-visible { outline: 2px solid var(--blue-600); outline-offset: -3px; }
.source-summary-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.source-summary-label .i { width: 15px; height: 15px; flex: none; }
.source-count { margin-left: auto; padding: 3px 8px; border-radius: 99px; color: var(--violet-700); background: var(--violet-100); white-space: nowrap; }
.source-list summary > .i { width: 15px; height: 15px; flex: none; transition: transform .22s var(--ease); }
.source-list[open] summary > .i { transform: rotate(180deg); }
.source-items { display: grid; gap: 6px; max-height: 220px; padding: 4px 8px 8px; overflow-y: auto; }
.source-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.source-card span, .source-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.source-card span { font-size: 12.5px; font-weight: 700; }
.source-card small { color: var(--ink-3); font-size: 11px; }
.source-card:hover, .source-card:focus-visible { border-color: var(--violet-500); background: var(--violet-50); transform: translateY(-1px); }
.source-card:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: var(--cyan-500); }
.typing i:nth-child(3) { animation-delay: .3s; background: var(--violet-500); }
.typing span { margin-left: 6px; font-size: 12.5px; color: var(--ink-3); }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

.composer { padding: 12px clamp(14px, 4vw, 56px) 14px; border-top: 1px solid var(--line-soft); background: #fff; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chip-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s; }
.chip-btn:hover:not(:disabled) { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
.chip-btn .i { width: 14px; height: 14px; }
.composer-box { display: flex; align-items: flex-end; gap: 10px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.composer-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 91, 234, .12); }
.composer-box textarea { flex: 1; min-height: 42px; max-height: 160px; padding: 10px 0; border: 0; outline: 0; resize: none; overflow-y: hidden; background: transparent; font-size: 14.5px; line-height: 1.5; }
.send-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-blue); transition: transform .25s var(--spring); }
.send-btn:hover:not(:disabled) { transform: scale(1.06) rotate(-8deg); }
.send-btn:disabled { color: var(--ink-4); background: var(--line); box-shadow: none; }
.composer-note { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--ink-4); }
@media (max-width: 640px) {
  .chat { height: calc(100dvh - var(--topbar) - 36px); border-radius: 18px; }
  .chat-context .chip:not(.balance-chip) { display: none; }
  .composer-note { display: none; }
}

/* ---------- Personas ---------- */
.mini-balance { display: grid; gap: 6px; min-width: 150px; }
.mini-top { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; }
.mini-top b { font-size: 16px; font-weight: 800; }
.mini-top span { font-size: 12px; color: var(--ink-3); }
.mini-hold { padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #8f5600; background: #fef0d3; }
.level-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; font-weight: 750; letter-spacing: .03em; color: var(--tone-ink); }
.level-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.row-go { color: var(--ink-4); transition: transform .2s var(--ease), color .2s; }
tr:hover .row-go { color: var(--blue-600); transform: translateX(3px); }

.drawer-hero { position: relative; isolation: isolate; overflow: hidden; padding: 22px 24px; color: #fff; background: var(--grad-deep); }
.drawer-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--brand-pattern); background-size: 56px 56px; opacity: .06; }
.drawer-hero .btn-icon { position: absolute; top: 14px; right: 14px; color: #fff; }
.drawer-hero .btn-icon:hover { background: rgba(255, 255, 255, .12); }
.drawer-person { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-right: 40px; }
.drawer-person h2 { font-size: 20px; font-weight: 800; }
.drawer-person p { font-size: 13px; color: rgba(255, 255, 255, .75); }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.drawer-chips .chip { color: #fff; background: rgba(255, 255, 255, .14); }
.drawer-body { display: grid; align-content: start; gap: 20px; padding: 20px 22px 28px; overflow-y: auto; flex: 1; }
.drawer-section h4 { margin-bottom: 10px; font-size: 13px; font-weight: 750; color: var(--ink-2); }
.balance-box { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.balance-box .big { display: flex; align-items: baseline; gap: 6px; }
.balance-box .big strong { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy-800); }
.balance-box .big span { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.legend-inline { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline b { font-weight: 800; color: var(--ink); }
.drawer-section .facts { padding: 0; }
.drawer-section .card .list-item:first-child { border-top: 0; }
dialog.drawer .drawer-body { min-height: 0; }
.drawer-section .list-item { padding: 10px 4px; }

/* ---------- Ingesta ---------- */
.import-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; }
@media (max-width: 1000px) { .import-grid { grid-template-columns: 1fr; } }
.dropzone {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 22px 22px;
  padding: 40px 24px;
  border-radius: 20px;
  text-align: center;
  border: 2px dashed var(--blue-200);
  background: linear-gradient(180deg, var(--blue-50), #fff);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.dropzone.drag { border-color: var(--blue-600); background: var(--blue-100); transform: scale(1.01); }
.dropzone.busy { pointer-events: none; opacity: .75; }
.upload-orb { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 6px; border-radius: 22px; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-blue); animation: float 3.5s ease-in-out infinite; }
.upload-orb .i { width: 32px; height: 32px; }
.dropzone.drag .upload-orb { animation: pop .4s var(--spring); }
.dropzone strong { font-size: 17px; font-weight: 800; }
.dropzone p { font-size: 13px; color: var(--ink-3); }
.file-types { display: flex; gap: 8px; margin: 4px 0 6px; }
.guide { display: grid; gap: 14px; padding: 18px 22px 22px; }
.guide-step { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.guide-step b { color: var(--ink); }
.guide-num { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--tone-ink); background: var(--tone-soft); }
.guide-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: #6b4300; background: #fffaf0; border: 1px solid #fde7b8; }
.guide-note .i { width: 16px; height: 16px; margin-top: 2px; }
.wizard { display: flex; align-items: center; padding: 16px 22px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.wz-step { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.wz-step i { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; font-size: 12.5px; font-style: normal; font-weight: 800; background: var(--canvas); border: 2px solid var(--line); }
.wz-step i .i { width: 15px; height: 15px; stroke-width: 2.8; }
.wz-step.done i { color: #fff; background: var(--green-500); border-color: var(--green-500); }
.wz-step.current { color: var(--ink); }
.wz-step.current i { --pulse: rgba(47, 91, 234, .45); color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.wz-line { flex: 1; min-width: 28px; height: 2px; margin: 0 12px; background: var(--line); }
.wz-line.done { background: var(--green-500); }
.map-section { display: grid; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.map-section h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; }
.map-section h4 small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.map-field { padding: 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface-2); transition: border-color .2s, background-color .2s; }
.map-field .field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-field.is-mapped { border-color: #bfe9d6; background: #f3fbf7; }
.req-star { color: var(--red-500); }
.detected { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #0b7349; }
.detected .i { width: 12px; height: 12px; stroke-width: 2.8; }
.summary-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; }
.summary-tiles .tile { box-shadow: none; }
.issue { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #b42330; }
.issue + .issue { margin-top: 4px; }
.issue.warn { color: #8f5600; }
.issue .i { width: 14px; height: 14px; margin-top: 2px; }
.apply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.apply-bar p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 560px) { .summary-tiles { grid-template-columns: 1fr; } }

/* ---------- Administración ---------- */
.admin-note { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid #dcd3ff; background: linear-gradient(135deg, #ece7ff 0%, #e4ebff 60%, #dcf2fb 100%); }
.admin-note strong { display: block; font-size: 14px; }
.admin-note p { font-size: 13px; color: var(--ink-2); }
.role-dist { display: flex; flex-wrap: wrap; gap: 8px; }
.role-select { width: auto; min-width: 196px; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 700; border-color: transparent; background-color: var(--tone-soft); color: var(--tone-ink); }
.role-select:hover:not(:disabled) { border-color: var(--tone); }

/* ---------- Diálogo de solicitud ---------- */
.rq-body { grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); align-items: start; gap: 22px; }
@media (max-width: 800px) { .rq-body { grid-template-columns: 1fr; } }
.rq-left { display: grid; gap: 14px; min-width: 0; }
.rq-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.rq-person strong { display: block; font-size: 14px; }
.rq-person small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.rq-emp { display: grid; gap: 8px; }
.rq-cal { padding: 14px; border-radius: 18px; border: 1px solid var(--line); }
.rq-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rq-cal-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rq-cal .cal-wrap { gap: 18px; }
.rq-cal .cal-day { height: 34px; }
.rq-cal .cal-legend { margin-top: 10px; padding-top: 10px; gap: 12px; font-size: 12px; }
.rq-side { display: grid; gap: 14px; }
.rq-summary { display: grid; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--blue-100); background: linear-gradient(160deg, #f2f5ff 0%, #fff 65%); }
.rq-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.rq-range > div { min-width: 0; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; }
.rq-range span { display: block; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rq-range strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 750; }
.rq-range > .i { color: var(--ink-4); }
.rq-days { display: flex; align-items: baseline; gap: 8px; }
.rq-days strong { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy-800); }
.rq-days span { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.rq-impact { display: grid; gap: 8px; }
.rq-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.rq-line b { font-variant-numeric: tabular-nums; }
.rq-line b.neg { color: #b42330; }
.rq-alert { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; animation: pop .3s var(--spring); }
.rq-alert .i { width: 16px; height: 16px; margin-top: 1px; }
.rq-alert.info { color: #6b4300; background: #fffaf0; border: 1px solid #fde7b8; }
.rq-alert.error { color: #8e1f2a; background: #fde4e5; border: 1px solid #f7c5c8; }
.rq-alert.hint { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-soft); }
