:root {
  background: #edf3fa;
  color: #162b46;
  --ink: #162b46;
  --muted: #52647b;
  --line: #d7e2ef;
  --soft: #f4f7fc;
  --green: #15375f;
  --green2: #35659b;
  --red: #365f91;
}

body { background: #f2f6fb; }
.client-page {
  background: radial-gradient(ellipse at 82% 3%, #e4edf9 0, transparent 50%), #f3f7fc;
}
.test-ribbon {
  position: static;
  background: #132e50;
  color: #edf4ff;
  padding: 9px 16px;
  font-weight: 650;
  letter-spacing: .025em;
}
.portal-shell { margin-top: 26px; }
.portal-header { gap: 16px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.portal-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 22px;
  row-gap: 4px;
}
.portal-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 208px;
  height: 56px;
}
.portal-brand img { display: block; width: 100%; min-width: 0; height: 48px; object-fit: contain; }
.portal-brand[data-brand="cg"] { width: 155px; }
.portal-brand[data-brand="cg"] img { max-width: 151px; object-fit: cover; }
.portal-brands[data-active-brand="miextranjeria"] [data-brand="miextranjeria"]::after,
.portal-brands[data-active-brand="cg"] [data-brand="cg"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: min(50%, 46px);
  height: 2px;
  border-radius: 2px;
  background: #6082ae;
}
.welcome-row { margin: 28px 0 20px; }
.login-card { box-shadow: 0 24px 60px #132e5014; }
.admin-page { background: #edf2f8; }
label { color: #304c6d; }
input, textarea, select { border-color: #c3d2e3; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px #35659b26; }
a:focus-visible, button:focus-visible { outline: 3px solid #5480b5; outline-offset: 3px; }
.primary:hover { background: #102d50; }
.quiet { background: #e9f0fa; }
.quiet:hover { background: #dce7f7; }
.case-hero { background: linear-gradient(125deg, #102949, #1c477a) !important; }
.case-hero span, .case-hero em { color: #dbe9fc; }
.panel { box-shadow: 0 8px 26px #19395f0c; }
.secure-pill, .document-icon { background: #dce9f8; }
.count-pill { background: #eaf0f8; color: #355373; }
.document-row, .status-row, .review-row { border-color: #e0e8f3; }
.upload-box { background: #f5f8fd; border-color: #aabed7; }
.empty { background: var(--soft); }
.status-row small, .review-row small { display: block; overflow-wrap: anywhere; }
.status-incorporated, .review-actions .accept { background: #e0eaf9; color: #16375e; }
.comment { overflow-wrap: anywhere; }
.comment.office { background: #e8f0fc; }
.comment.client, .toast { background: #15375f; }
.toast.error { background: #9e2f36; }
#loginFeedback { color: #405973; }

.requested-panel { margin-bottom: 16px; }
.request-list { display: grid; gap: 9px; }
.request-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.request-copy { min-width: 0; overflow-wrap: anywhere; }
.request-copy h3 { margin: 0; font-size: .97rem; }
.request-copy p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.request-copy .request-reason { color: #785119; font-weight: 650; }
.request-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.request-pending { color: #795921; background: #f6ecd8; }
.request-in_review { color: #254f7b; background: #e0ebfb; }
.request-accepted { color: #183959; background: #d9e7f7; }
.request-actions button { padding: 8px 12px; font-size: .84rem; }
.request-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; margin: 17px 0; }
.brand-form { margin-bottom: 0; }
.review-reason { margin-top: 10px; }
.whatsapp-form { display: grid; gap: 10px; margin-top: 13px; }
#whatsappSettings summary { cursor: pointer; font-weight: 700; }
#whatsappHelp { margin-top: 10px; }
#emailNoticeHelp { margin-top: 6px; }
.whatsapp-form button { justify-self: start; }
.check-label { display: flex; gap: 8px; align-items: flex-start; }
.check-label input { width: auto; margin: 2px 0 0; }

@media (max-width: 700px) {
  .request-form { grid-template-columns: 1fr; }
  .request-row { align-items: flex-start; flex-direction: column; }
  .request-actions { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .portal-shell { width: calc(100% - 28px); margin-top: 17px; }
  .portal-header { align-items: flex-start; flex-direction: column; gap: 10px; padding-bottom: 15px; }
  .portal-brands { width: 100%; flex-wrap: nowrap; column-gap: 14px; }
  .portal-brand { min-width: 0; flex-shrink: 1; height: 48px; }
  .portal-brand img { height: 40px; }
  .portal-brand[data-brand="cg"] img { max-width: 126px; }
  .portal-header button { margin-left: 0; }
  .welcome-row { gap: 9px; margin: 21px 0 15px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-grid article { min-height: 0; padding: 14px; gap: 6px; }
  .case-grid article:first-child, .case-grid article:last-child { grid-column: span 2; }
  .requested-panel .panel-head { gap: 3px; }
  .requested-panel .panel-head .section-note { margin-bottom: 3px; }
  .requested-panel .count-pill { margin-bottom: 12px; }
  .brand-form { grid-template-columns: 1fr; }
  .toast { left: 14px; right: 14px; bottom: 14px; }
}
