/* App-level pages built on Binish design tokens */

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.role-switch {
  margin: 0;
}

.role-switch select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  min-width: 118px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 34px 0 12px;
  font-family: var(--font-fa);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: 0.15s ease;
}

.role-switch select:hover {
  border-color: #bfdbfe;
  color: var(--primary);
}

.role-switch select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.role-switch select option {
  font-family: var(--font-fa);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.user-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--primary-soft);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-hero {
  background: linear-gradient(135deg, #0F2F63 0%, #123A78 42%, #1D4ED8 100%);
  color: #fff;
  padding: 32px 0 28px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.page-hero p {
  margin: 0;
  opacity: 0.88;
}

.page-hero-crumb {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero-crumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.page-hero-crumb a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.req-review-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 24px;
}

.req-review-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.req-review-hero .page-hero-row {
  position: relative;
  align-items: flex-start;
  gap: 20px;
}

.req-review-hero-main {
  min-width: 0;
  flex: 1;
}

.req-review-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.req-review-crumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.req-review-crumb a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.req-review-crumb-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  vertical-align: middle;
}

.req-review-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 8px;
}

.req-review-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.req-review-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.req-review-status-pill.status-pending {
  background: rgba(251, 146, 60, 0.22);
  border-color: rgba(253, 186, 116, 0.45);
}

.req-review-status-pill.status-approved {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(110, 231, 183, 0.45);
}

.req-review-status-pill.status-rejected {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(252, 165, 165, 0.45);
}

.req-review-hero-sub {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.req-review-hero-sub strong {
  color: #fff;
  font-weight: 600;
}

.req-review-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 120px;
}

.req-review-hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  text-align: center;
}

.req-review-hero-score span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.req-review-hero-score strong {
  font-size: 1.55rem;
  line-height: 1.15;
  color: #fff;
  margin: 2px 0;
}

.req-review-hero-score em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.req-review-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.req-review-hero-actions form {
  margin: 0;
}

.req-hero-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.req-hero-btn svg {
  flex-shrink: 0;
}

.req-hero-btn-approve {
  background: rgba(255, 255, 255, 0.95);
  color: #0f766e;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.req-hero-btn-approve:hover {
  background: #fff;
  color: #0d9488;
  transform: translateY(-1px);
}

.req-hero-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}

.req-hero-btn-reject:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fff;
}

.req-hero-btn:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .req-review-hero-aside {
    width: 100%;
    max-width: 200px;
    margin-inline-start: auto;
  }
}

.page-body {
  padding: 28px 0 48px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.panel-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
}

.list-item strong {
  font-size: 14px;
}

.list-item span {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  text-align: center;
  padding: 16px;
  background: var(--primary-soft);
  border-radius: 12px;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--primary-deep);
}

.stat span {
  font-size: 12px;
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.search-bar {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.search-bar input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.research-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  color: inherit;
}

.research-row h2 {
  margin: 8px 0;
  font-size: 18px;
}

.research-row h2 a {
  color: inherit;
  text-decoration: none;
}

.score-mini .btn {
  margin-top: 8px;
  white-space: nowrap;
}

.research-row p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.chips-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score-mini {
  min-width: 72px;
  text-align: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.score-mini strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  line-height: 1.15;
}

.score-mini span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.form-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.research-wizard {
  gap: 18px;
  position: relative;
}

.wizard-processing {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: inherit;
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: blur(2px);
}

.wizard-processing[hidden] {
  display: none !important;
}

.research-wizard.is-processing {
  pointer-events: none;
  min-height: 320px;
}

.wizard-processing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 280px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.wizard-processing-spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--primary, #0f766e) 18%, #e2e8f0);
  border-top-color: var(--primary, #0f766e);
  animation: wizard-spin 0.8s linear infinite;
}

.wizard-processing-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.wizard-processing-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes wizard-spin {
  to {
    transform: rotate(360deg);
  }
}

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-muted);
}

.wizard-step.is-active {
  background: #fff;
  border-color: color-mix(in srgb, var(--primary, #0f766e) 45%, var(--border));
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.wizard-step.is-done {
  color: var(--text-secondary);
}

.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #e2e8f0;
  color: inherit;
  flex-shrink: 0;
}

.wizard-step.is-active .wizard-step-num {
  background: var(--primary, #0f766e);
  color: #fff;
}

.wizard-step.is-done .wizard-step-num {
  background: color-mix(in srgb, var(--primary, #0f766e) 18%, #fff);
  color: var(--primary, #0f766e);
}

.wizard-step-label {
  font-size: 13px;
  font-weight: 600;
}

.ingest-step,
.ingest-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wizard-panel[hidden] {
  display: none !important;
}

.file-dropzone {
  position: relative;
  border: 1.5px dashed color-mix(in srgb, var(--primary, #0f766e) 35%, var(--border));
  border-radius: 16px;
  background:
    linear-gradient(180deg, #f8fffd 0%, #f8fafc 100%);
  min-height: 168px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
  border-color: var(--primary, #0f766e);
  background: color-mix(in srgb, var(--primary, #0f766e) 6%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary, #0f766e) 12%, transparent);
}

.file-dropzone.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--primary, #0f766e) 55%, var(--border));
}

.file-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-dropzone-body {
  pointer-events: none;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
}

.file-dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary, #0f766e);
  border: 1px solid var(--border);
}

.file-dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  max-width: 90%;
  word-break: break-word;
}

.file-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.edit-file-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.edit-file-block .form-section-title {
  margin: 0;
}

.ingest-status {
  margin: 0;
  font-size: 13px;
}

.ingest-status.is-error {
  color: #b42318;
}

.ingest-fields.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.upload-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
}

.upload-summary-label {
  color: var(--text-muted);
}

.btn-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary, #0f766e);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-inline-start: auto;
}

.btn-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: 1fr;
  }
}

html:has(.login-page),
body.login-page {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

.login-page {
  position: fixed;
  inset: 0;
  isolation: isolate;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #F8FBFF 0%, #EEF5FF 45%, #F7FAFC 100%);
  color: var(--text);
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(ellipse 45% 35% at 15% 80%, rgba(20, 184, 166, 0.05), transparent 60%);
}

.login-bg-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.42;
}

.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

.login-bg-orb-1 {
  width: 280px;
  height: 280px;
  top: -60px;
  left: 20%;
  background: rgba(147, 197, 253, 0.22);
}

.login-bg-orb-2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: 5%;
  background: rgba(191, 219, 254, 0.25);
}

.login-ai-badge {
  position: absolute;
  top: auto;
  bottom: 14%;
  left: auto;
  right: 7%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(239, 246, 255, 0.22));
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow: none;
  backdrop-filter: blur(6px);
  opacity: 0.45;
}

.login-topbar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 28px 0;
}

.login-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.login-topbar-link:hover {
  color: var(--primary);
  border-color: #BFDBFE;
  background: #fff;
}

.login-topbar-link svg {
  width: 16px;
  height: 16px;
}

.login-shell {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
  padding-bottom: 12px;
}

.login-card {
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px;
  box-shadow: 0 20px 50px rgba(15, 47, 99, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.login-hero {
  color: var(--text);
  padding: 4px 8px;
  max-width: min(620px, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  max-height: calc(100dvh - 56px);
  box-sizing: border-box;
}

.login-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.login-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.login-hero-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.login-hero-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.1;
}

.login-hero-slogan {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.login-hero-eyebrow {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.login-hero-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.45;
  max-width: none;
  white-space: normal;
}

.login-desc {
  margin: 0 0 20px;
  max-width: 48ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.login-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.04);
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.login-feature-icon svg {
  width: 17px;
  height: 17px;
}

.login-feature-icon.purple {
  background: var(--purple-soft);
  color: #7C3AED;
}

.login-feature-icon.green {
  background: var(--green-soft);
  color: #059669;
}

.login-feature-icon.orange {
  background: var(--orange-soft);
  color: #EA580C;
}

.login-feature-icon.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.login-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.login-features strong {
  font-size: 13.5px;
  color: var(--text);
}

.login-features span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.login-hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 12px;
}

.login-illustration {
  margin: 0;
  width: 100%;
  max-width: 420px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
}

.login-illustration svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.login-hero-foot {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
  letter-spacing: 0.01em;
}

.login-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.login-card-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  animation: login-mark-float 4.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes login-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card-mark {
    animation: none;
  }
}

.login-card h1 {
  margin: 0 0 18px;
  font-size: 20px;
  text-align: center;
  color: var(--primary-deep);
}

.login-form {
  gap: 12px;
}

.login-field {
  position: relative;
  display: block;
}

.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 44px 0 42px;
  font: inherit;
  font-size: 12.5px;
  background: #F8FAFC;
  color: var(--text);
  box-sizing: border-box;
}

.login-field input::placeholder {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 1;
}

.login-field input:focus {
  outline: none;
  border-color: #93C5FD;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-field-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.login-field-icon svg,
.login-eye svg {
  width: 18px;
  height: 18px;
}

.login-eye {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.login-eye:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.login-submit {
  width: 100%;
  height: 46px;
  gap: 8px;
  background: linear-gradient(90deg, #1D4ED8, #2563EB);
  border: 0;
}

.login-submit svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-national {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.72;
}

.login-national svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.demo-users {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.demo-users-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
  padding: 4px 0;
}

.demo-users-summary::-webkit-details-marker {
  display: none;
}

.demo-users-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.demo-users[open] .demo-users-chevron {
  transform: rotate(180deg);
}

.demo-users-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.demo-users-list li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.demo-user-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  font: inherit;
  font-size: 12px;
  padding: 8px 10px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: right;
  transition: 0.15s ease;
  min-height: 0;
}

.demo-user-btn:hover,
.demo-user-btn.is-selected {
  border-color: #bfdbfe;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.demo-user-btn strong {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
}

.demo-user-btn .en {
  font-size: 10px;
  color: var(--text-muted);
  direction: ltr;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-card-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.alert-error {
  background: #FEF2F2;
  color: #B91C1C;
}

.job-status {
  font-size: 13px;
  min-height: 20px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.decision-answer {
  margin-top: 20px;
  padding: 16px;
  background: var(--primary-soft);
  border-radius: 12px;
  white-space: pre-wrap;
  line-height: 1.9;
}

.decision-cites {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .login-hero-title {
    white-space: normal;
    font-size: clamp(18px, 2.4vw, 24px);
  }
}

@media (max-width: 900px) {
  .dash-grid,
  .problem-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  html:has(.login-page),
  body.login-page {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .login-page {
    position: relative;
    inset: auto;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
    width: min(520px, calc(100% - 24px));
    overflow: visible;
    padding-bottom: 24px;
  }

  .login-hero {
    padding: 0;
    order: -1;
    max-width: none;
    max-height: none;
  }

  .login-hero-title {
    white-space: normal;
    font-size: 20px;
    line-height: 1.5;
  }

  .login-desc {
    max-width: none;
  }

  .login-features {
    grid-template-columns: 1fr;
  }

  .login-card {
    max-height: none;
    width: 100%;
  }

  .login-hero-top {
    flex-wrap: wrap;
  }

  .login-ai-badge {
    display: none;
  }

  .login-topbar {
    justify-content: flex-end;
  }

  .main-nav {
    display: none;
  }

  .research-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .login-shell {
    width: calc(100% - 20px);
  }

  .login-illustration {
    display: none;
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .login-illustration {
    display: none;
  }

  .login-features {
    gap: 8px;
  }

  .login-features li {
    padding: 10px 12px;
  }

  .login-desc {
    margin-bottom: 12px;
  }
}

/* —— اولویت‌های پژوهشی —— */
.prio-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prio-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.prio-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 64px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prio-stat strong {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prio-stat span {
  font-size: 12px;
  color: var(--text-secondary);
}

a.prio-stat:hover,
.prio-stat.is-active {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.prio-stat.tone-green.is-active {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.prio-stat.tone-orange strong { color: #c2410c; }
.prio-stat.tone-teal strong { color: #0f766e; }
.prio-stat.tone-green strong { color: #047857; }

.prio-monitor {
  padding: 0;
  overflow: hidden;
}

.prio-monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.prio-monitor-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.prio-monitor-head .muted {
  margin: 0;
  font-size: 13px;
}

.prio-monitor-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prio-monitor-kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  color: var(--text-secondary);
}

.prio-monitor-kpi em {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.prio-band-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.prio-band-item {
  min-width: 0;
}

.prio-band-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.prio-band-meta strong {
  color: var(--text);
  font-size: 12px;
}

.prio-band-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.prio-band-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.prio-band-item.band-strong .prio-band-track i { background: #059669; }
.prio-band-item.band-ok .prio-band-track i { background: #0d9488; }
.prio-band-item.band-revise .prio-band-track i { background: #d97706; }
.prio-band-item.band-weak .prio-band-track i { background: #dc2626; }

.prio-queue-list {
  display: flex;
  flex-direction: column;
}

.prio-queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.prio-queue-row:last-child {
  border-bottom: 0;
}

.prio-queue-row:hover {
  background: #f8fafc;
}

.prio-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
}

.prio-queue-row:nth-child(-n+3) .prio-rank {
  background: #ecfeff;
  color: #0f766e;
}

.prio-queue-main {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.prio-queue-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
}

.prio-queue-top time {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.prio-queue-title {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prio-queue-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prio-score-bar {
  flex: 1;
  max-width: 160px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.prio-score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.prio-score-bar i.band-strong { background: #059669; }
.prio-score-bar i.band-ok { background: #0d9488; }
.prio-score-bar i.band-revise { background: #d97706; }
.prio-score-bar i.band-weak { background: #dc2626; }

.prio-score-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 2.5rem;
  color: var(--text);
}

.prio-score-band {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.prio-score-band.band-strong { background: #ecfdf5; color: #047857; }
.prio-score-band.band-ok { background: #f0fdfa; color: #0f766e; }
.prio-score-band.band-revise { background: #fffbeb; color: #b45309; }
.prio-score-band.band-weak { background: #fef2f2; color: #b91c1c; }

.prio-queue-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.prio-queue-actions form {
  margin: 0;
}

.prio-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prio-act-approve {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.prio-act-approve:hover {
  background: #d1fae5;
}

.prio-act-reject {
  background: #fff;
  color: #64748b;
  border-color: var(--border);
}

.prio-act-reject:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.prio-monitor-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.prio-monitor-empty p {
  margin: 0;
}

a.prio-monitor-priority {
  color: inherit;
  text-decoration: none;
}

a.prio-monitor-priority:hover {
  background: #f0fdfa;
}

.prio-monitor-priority .prio-queue-main {
  pointer-events: none;
}

.prio-monitor-priority .prio-queue-top strong {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prio-monitor-priority-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  text-align: left;
}

.prio-pending-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.prio-pending-count em {
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  color: #c2410c;
}

.prio-monitor-go {
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
}

@media (max-width: 800px) {
  .prio-monitor-priority-meta {
    align-items: flex-start;
    width: 100%;
  }
}

.my-request-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
}

.my-request-score .prio-score-bar {
  max-width: 80px;
}

.prio-list-row {
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prio-list-index {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
}

.prio-list-row:hover {
  border-color: color-mix(in srgb, #0d9488 30%, var(--border));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.prio-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.prio-list-meta .is-open { color: #047857; font-weight: 600; }
.prio-list-meta .is-closed { color: #c2410c; font-weight: 600; }

.prio-list-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.prio-list-signals {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.prio-list-best {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  border-radius: 10px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.15;
}

.prio-list-best em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.priority-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.priority-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 72px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.priority-metric strong {
  font-size: 22px;
  line-height: 1.1;
}

.priority-metric span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.priority-metric:hover,
.priority-metric.is-active {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.priority-metric.tone-green.is-active {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.priority-metric.tone-orange.is-active {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.priority-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.priority-toolbar.has-prio-tabs {
  padding: 6px 8px 6px 10px;
}

.priority-toolbar .prio-tabs {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  gap: 2px;
}

.priority-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.priority-toolbar-actions[hidden] {
  display: none !important;
}

.priority-sort {
  position: relative;
}

.priority-sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.priority-sort-toggle .icon,
.priority-sort-caret {
  flex: 0 0 auto;
  opacity: 0.85;
}

.priority-sort-caret {
  transition: transform 0.15s ease;
}

.priority-sort.is-open .priority-sort-caret {
  transform: rotate(180deg);
}

.priority-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 40;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.priority-sort-dropdown[hidden] {
  display: none !important;
}

.priority-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.priority-sort-option:hover {
  background: #f1f5f9;
}

.priority-sort-option.is-active {
  background: #ecfeff;
  color: #0f766e;
  font-weight: 600;
}

.priority-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.priority-filter-toggle .icon {
  flex: 0 0 auto;
  opacity: 0.85;
}

.priority-filter-toggle.is-active {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  background: color-mix(in srgb, var(--primary, #2563eb) 8%, #fff);
}

.priority-filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 18%, transparent);
}

.priority-filter-panel {
  margin-bottom: 20px;
}

/* —— تب‌های پژوهشگر: لیست / درخواست‌ها —— */
.prio-tabs {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.95)),
    #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(15, 23, 42, 0.04);
  width: fit-content;
  max-width: 100%;
}

.prio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.prio-tab-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: inherit;
  opacity: 0.78;
}

.prio-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
}

.prio-tab-count.is-pending {
  background: #fff7ed;
  color: #c2410c;
}

.prio-tab-btn:hover {
  color: var(--text, #1e293b);
  background: rgba(255, 255, 255, 0.7);
}

.prio-tab-btn.active {
  background: #fff;
  color: var(--primary-deep, #123a78);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 6px 16px rgba(18, 58, 120, 0.08);
}

.prio-tab-btn.active .prio-tab-ico {
  opacity: 1;
  color: var(--primary, #3b82f6);
}

.prio-tab-btn.active .prio-tab-count:not(.is-pending) {
  background: var(--primary-soft, #eff6ff);
  color: var(--primary, #3b82f6);
}

.prio-tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.prio-tab-panel.active {
  display: flex;
}

.prio-tab-panel[hidden] {
  display: none !important;
}

.prio-tab-panel .prio-monitor {
  margin: 0;
}

/* —— درخواست‌های پژوهشگر —— */
.my-requests-panel {
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.my-requests-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.my-requests-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.my-requests-head .muted {
  margin: 0;
  font-size: 13px;
}

.my-requests-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.my-requests-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}

.my-request-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafbfc;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.my-request-card:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.my-request-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.my-request-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.my-request-card-top time {
  font-size: 12px;
  color: var(--text-secondary);
}

.my-request-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.my-request-status-pill.status-pending,
.req-status-hero.status-pending .req-status-hero-icon {
  background: #fff7ed;
  color: #c2410c;
}

.my-request-status-pill.status-approved,
.req-status-hero.status-approved .req-status-hero-icon {
  background: #ecfdf5;
  color: #047857;
}

.my-request-status-pill.status-rejected,
.req-status-hero.status-rejected .req-status-hero-icon {
  background: #fef2f2;
  color: #b91c1c;
}

.my-request-card-meta {
  font-size: 12px;
}

.my-request-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-requests-empty {
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.my-requests-empty p {
  margin: 0;
}

.my-requests-empty .btn {
  margin-top: 10px;
}

.researcher-request-panel {
  padding: 0;
  overflow: hidden;
}

.req-status-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.req-status-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.req-status-kicker {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.req-status-hero-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.req-status-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.req-status-hero-meta {
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto auto;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  direction: ltr;
}

.req-status-hero-meta span {
  color: #94a3b8;
}

.req-status-hero-meta time {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.req-note-block {
  margin: 0;
  padding: 14px 18px 18px;
  border: 0;
}

.req-note-block span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.req-note-block p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  line-height: 1.8;
  font-size: 14px;
}

.req-apply-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.req-apply-intro h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.req-apply-intro p {
  margin: 0;
}

.req-apply-form {
  padding: 14px 18px 18px;
}

.req-closed-box {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.req-closed-box strong {
  font-size: 16px;
}

.req-closed-box p {
  margin: 0 0 4px;
}

@media (max-width: 720px) {
  .req-status-hero {
    grid-template-columns: auto 1fr;
  }

  .req-status-hero-meta {
    grid-column: 1 / -1;
    text-align: right;
    direction: rtl;
    grid-template-columns: auto 1fr;
  }

  .my-requests-head {
    flex-direction: column;
  }

  .my-requests-head-badges {
    justify-content: flex-start;
  }

  .prio-tabs {
    width: 100%;
  }

  .priority-toolbar.has-prio-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .priority-toolbar .prio-tabs {
    width: 100%;
  }

  .prio-tab-btn {
    flex: 1;
    justify-content: center;
  }

  .priority-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .prio-band-strip {
    grid-template-columns: 1fr 1fr;
  }

  .prio-queue-row {
    flex-wrap: wrap;
  }

  .prio-queue-actions {
    width: 100%;
    justify-content: flex-end;
    padding-inline-start: 40px;
  }
}

@media (max-width: 560px) {
  .prio-band-strip {
    grid-template-columns: 1fr;
  }

  .prio-queue-score {
    flex-wrap: wrap;
  }

  .prio-score-bar {
    max-width: none;
    width: 100%;
  }
}

.priority-filter-panel[hidden] {
  display: none !important;
}

.priority-filters {
  margin-bottom: 0;
  padding: 16px 18px;
}

.priority-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.priority-filters label,
.priority-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.priority-filters select,
.priority-filters input,
.priority-form input,
.priority-form select,
.priority-form textarea {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}

.priority-form textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.priority-filter-search {
  grid-column: 1 / -1;
}

.priority-filters-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.priority-category-block {
  margin-bottom: 28px;
}

.priority-category-title {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.priority-row {
  align-items: center;
}

.priority-row-main {
  flex: 1;
  min-width: 0;
}

.priority-pending-badge {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.manager-requests-ico {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.manager-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manager-request-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafbfc;
}

.manager-request-main {
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.manager-request-main:hover .manager-request-title {
  color: var(--primary, #2563eb);
}

.manager-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.manager-request-top time {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.manager-request-title {
  display: block;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.manager-request-title:hover {
  color: var(--primary, #2563eb);
}

.manager-request-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.priority-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.priority-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.priority-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.priority-page-num.is-active {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
}

.priority-page-ellipsis {
  padding: 0 4px;
  color: var(--text-secondary);
}

.priority-pagination [aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.priority-row h3 {
  margin: 8px 0 4px;
  font-size: 17px;
}

.priority-code {
  color: var(--text-secondary);
  font-weight: 600;
}

.priority-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prio-detail-page {
  gap: 16px;
}

.prio-detail-hero .req-review-hero-aside {
  align-items: flex-end;
}

.prio-detail-hero .btn-iconed {
  white-space: nowrap;
}

.prio-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prio-brief-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.prio-criteria-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prio-criteria-hint {
  margin: -4px 0 12px;
  font-size: 12.5px;
}

.prio-criteria-compact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafbfc;
  font-size: 13px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.prio-criteria-compact-item::-webkit-details-marker {
  display: none;
}

.prio-crit-expand {
  border-radius: 12px;
}

.prio-crit-expand[open] > .prio-criteria-compact-item {
  border-color: #99f6e4;
  background: #f0fdfa;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.prio-crit-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.prio-crit-summary-main strong {
  font-size: 13px;
}

.prio-crit-hint {
  font-style: normal;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.prio-crit-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.prio-crit-weight {
  font-weight: 700;
  color: #0e7490;
  white-space: nowrap;
}

.prio-crit-chevron {
  display: grid;
  place-items: center;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.prio-crit-expand[open] .prio-crit-chevron {
  transform: rotate(180deg);
  color: #0f766e;
}

.prio-crit-leaders {
  border: 1px solid #99f6e4;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #f0fdfa, #fff);
  padding: 8px 10px 10px;
}

.prio-crit-leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prio-crit-leader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.prio-crit-leader-row:hover {
  border-color: #5eead4;
  background: #f8fffd;
}

.prio-crit-rank {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
}

.prio-crit-rank.rank-1 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.prio-crit-rank.rank-2 {
  background: #e2e8f0;
  color: #475569;
}

.prio-crit-rank.rank-3 {
  background: #ffedd5;
  color: #9a3412;
}

.prio-crit-leader-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prio-crit-leader-main strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prio-crit-leader-main small {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prio-crit-leader-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.prio-crit-leader-score em {
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.prio-crit-empty {
  margin: 4px 2px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px;
}

.prio-history {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.prio-history h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.prio-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prio-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.prio-history-row:hover {
  border-color: #99f6e4;
}

.prio-history-row strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.prio-history-row .muted {
  font-size: 12px;
}

.prio-history-row time {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.prio-history-row.status-approved {
  border-inline-start: 3px solid #059669;
}

.prio-history-row.status-rejected {
  border-inline-start: 3px solid #dc2626;
}

@media (max-width: 800px) {
  .prio-detail-grid {
    grid-template-columns: 1fr;
  }
}


.priority-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.priority-field em {
  color: #dc2626;
  font-style: normal;
  margin-inline-start: 2px;
}

.priority-custom-field[hidden] {
  display: none !important;
}

.priority-edit-form .priority-field span,
.priority-dialog-body .priority-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.priority-meta-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.priority-meta-dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.priority-meta-dl dt {
  color: var(--text-secondary);
  font-size: 13px;
}

.priority-meta-dl dd {
  margin: 0;
}

.priority-requests {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-request-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.priority-request-row:last-child {
  border-bottom: 0;
}

.priority-request-link {
  display: block;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.priority-request-link:hover strong {
  color: var(--primary, #2563eb);
}

.priority-request-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.priority-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  background: transparent;
  box-shadow: none;
}

.priority-dialog-wide {
  max-width: 720px;
}

.priority-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.priority-dialog-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.priority-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.priority-dialog-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.priority-dialog-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.priority-dialog-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.priority-dialog-close:hover {
  background: #f8fafc;
  color: var(--text);
}

.priority-dialog-body {
  padding: 16px 20px 8px;
}

.priority-dialog-body .stack-form {
  gap: 12px;
}

.priority-dialog-body textarea {
  min-height: 72px;
  line-height: 1.7;
}

.priority-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

@media (max-width: 720px) {
  .priority-filters-grid {
    grid-template-columns: 1fr;
  }

  .priority-meta-dl div {
    grid-template-columns: 1fr;
  }

  .priority-request-row {
    flex-direction: column;
  }

  .priority-dialog-foot {
    flex-direction: column-reverse;
  }

  .priority-dialog-foot .btn {
    width: 100%;
  }
}

.priority-dialog-body {
  max-height: min(70vh, 640px);
  overflow: auto;
}

.criteria-editor {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.criteria-editor-head strong {
  display: block;
  margin-bottom: 2px;
}

.criteria-weight-sum {
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}

.criteria-weight-sum.is-ok {
  background: #d1fae5;
  color: #047857;
}

.criteria-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.criteria-row textarea {
  grid-column: 1 / -1;
}

.criteria-row input,
.criteria-row textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.criteria-row [data-remove-criterion] {
  grid-column: 1 / -1;
  justify-self: start;
}

.priority-rich-detail {
  padding: 0;
  overflow: hidden;
}

.priority-rich-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.priority-rich-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.priority-rich-head .muted {
  margin: 0;
  font-size: 13px;
}

.priority-rich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 18px;
}

.priority-rich-block {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.priority-rich-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.priority-rich-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.priority-rich-block h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.priority-rich-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.priority-rich-block.tone-desc {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.priority-rich-block.tone-desc .priority-rich-ico {
  background: #eff6ff;
  color: #1d4ed8;
}

.priority-rich-block.tone-goals {
  border-color: #ccfbf1;
  background: linear-gradient(180deg, #f6fffd, #fff);
}
.priority-rich-block.tone-goals .priority-rich-ico {
  background: #f0fdfa;
  color: #0f766e;
}

.priority-rich-block.tone-output {
  border-color: #d1fae5;
  background: linear-gradient(180deg, #f6fef9, #fff);
}
.priority-rich-block.tone-output .priority-rich-ico {
  background: #ecfdf5;
  color: #047857;
}

.priority-rich-block.tone-notes {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.priority-rich-block.tone-notes .priority-rich-ico {
  background: #fffbeb;
  color: #b45309;
}

@media (max-width: 800px) {
  .priority-rich-grid {
    grid-template-columns: 1fr;
  }
}

.priority-criteria-title {
  margin: 18px 0 10px;
  font-size: 15px;
}

.priority-criteria-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.priority-criteria-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
}

.priority-criteria-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.priority-criteria-item p {
  margin: 0;
  line-height: 1.7;
}

.proposal-upload-zone {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-upload-zone .file-dropzone {
  width: 100%;
}

.proposal-upload-zone.is-analyzing .file-dropzone {
  pointer-events: none;
  opacity: 0.72;
}

.proposal-analyze-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary, #0f766e) 22%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary, #0f766e) 7%, #fff) 0%, #f8fafc 100%);
  overflow: hidden;
}

.proposal-analyze-status[hidden] {
  display: none !important;
}

.proposal-analyze-status-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proposal-analyze-icon {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primary, #0f766e) 18%, var(--border));
  color: var(--primary, #0f766e);
}

.proposal-analyze-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2.5px solid color-mix(in srgb, var(--primary, #0f766e) 18%, #e2e8f0);
  border-top-color: var(--primary, #0f766e);
  animation: proposal-analyze-spin 0.75s linear infinite;
}

.proposal-analyze-check,
.proposal-analyze-error-ico {
  display: none;
}

.proposal-analyze-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.proposal-analyze-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.proposal-analyze-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.proposal-analyze-bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #0f766e) 12%, #e2e8f0);
  overflow: hidden;
}

.proposal-analyze-bar > span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary, #0f766e), color-mix(in srgb, var(--primary, #0f766e) 55%, #67e8f9));
  animation: proposal-analyze-bar 1.35s ease-in-out infinite;
}

@keyframes proposal-analyze-spin {
  to { transform: rotate(360deg); }
}

@keyframes proposal-analyze-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.proposal-analyze-status.is-success {
  border-color: color-mix(in srgb, #059669 28%, var(--border));
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
}

.proposal-analyze-status.is-success .proposal-analyze-icon {
  border-color: color-mix(in srgb, #059669 30%, var(--border));
  color: #059669;
  background: #ecfdf5;
}

.proposal-analyze-status.is-success .proposal-analyze-spinner,
.proposal-analyze-status.is-error .proposal-analyze-spinner,
.proposal-analyze-status.is-success .proposal-analyze-bar,
.proposal-analyze-status.is-error .proposal-analyze-bar {
  display: none;
}

.proposal-analyze-status.is-success .proposal-analyze-check {
  display: block;
}

.proposal-analyze-status.is-error {
  border-color: color-mix(in srgb, #dc2626 28%, var(--border));
  background: linear-gradient(135deg, #fef2f2 0%, #f8fafc 100%);
}

.proposal-analyze-status.is-error .proposal-analyze-icon {
  border-color: color-mix(in srgb, #dc2626 30%, var(--border));
  color: #dc2626;
  background: #fef2f2;
}

.proposal-analyze-status.is-error .proposal-analyze-error-ico {
  display: block;
}

.proposal-score-card {
  margin: 0 18px 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.proposal-score-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.proposal-score-head .muted {
  display: block;
  margin-top: 2px;
}

.proposal-score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.proposal-score-row .muted {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.proposal-warnings {
  margin: 14px 0 0;
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
  line-height: 1.7;
}

.req-review-page .panel > h2,
.req-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.req-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.req-section-head .muted {
  margin: 0;
  font-size: 13px;
}

.req-identity-card {
  padding-bottom: 16px;
}

.req-identity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.req-identity-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.req-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}

.req-avatar svg {
  display: block;
}

.req-identity-kicker {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.req-identity-copy h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.req-identity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.req-identity-score {
  text-align: center;
  min-width: 96px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f0fdfa, #ecfeff);
  border: 1px solid #99f6e4;
}

.req-identity-score .muted {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.req-identity-score strong {
  font-size: 1.75rem;
  line-height: 1.1;
  color: #0f766e;
}

.req-identity-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  padding: 16px 0;
}

.req-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.req-meta-item span {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.req-meta-item strong,
.req-meta-item a {
  font-size: 13.5px;
  line-height: 1.55;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.req-meta-item a:hover {
  color: var(--primary, #2563eb);
}

.req-identity-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.req-note-inline {
  margin: 0;
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.req-note-inline span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.req-note-inline p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.req-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.eval-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.eval-metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafbfc;
  min-height: 118px;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

button.eval-metric-card {
  appearance: none;
  -webkit-appearance: none;
}

.eval-metric-card:hover {
  border-color: color-mix(in srgb, #0d9488 35%, var(--border));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.eval-metric-card.is-active {
  border-color: #5eead4;
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 75%);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.eval-metric-primary {
  background: linear-gradient(165deg, #f0fdfa 0%, #f8fafc 70%);
  border-color: #99f6e4;
}

.eval-metric-card strong {
  font-size: 1.5rem;
  line-height: 1.15;
}

.eval-meter {
  margin-top: auto;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.eval-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #0891b2);
}

.eval-fact-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.eval-fact-panel[hidden] {
  display: none !important;
}

.eval-fact-pane {
  padding: 16px 18px 18px;
}

.eval-fact-pane[hidden] {
  display: none !important;
}

.eval-fact-head {
  margin-bottom: 14px;
}

.eval-fact-kicker {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.eval-fact-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.eval-fact-head .muted {
  margin: 4px 0 0;
  font-size: 13px;
}

.eval-ai-block {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fafbfc;
}

.eval-ai-why {
  background: linear-gradient(165deg, #ecfeff 0%, #f8fafc 80%);
  border-color: #a5f3fc;
}

.eval-ai-portrait {
  background: #fff;
}

.eval-ai-block h4,
.eval-ai-facts h4,
.eval-ai-criteria-notes h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}

.eval-ai-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}

.eval-ai-facts {
  margin-bottom: 12px;
}

.eval-ai-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eval-ai-facts li {
  position: relative;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-inline-start: 3px solid #14b8a6;
  font-size: 13px;
  line-height: 1.75;
}

.eval-ai-criteria-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.eval-ai-criterion-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.eval-ai-criterion-note-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.eval-ai-criterion-note-top span {
  font-weight: 700;
  color: #0e7490;
}

.eval-ai-criterion-note > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.eval-ai-criterion-note blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  border-inline-start: 3px solid #94a3b8;
  background: #f1f5f9;
}

.eval-ai-criterion-note blockquote span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.eval-ai-criterion-note blockquote p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.eval-structure-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eval-structure-box {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafbfc;
  min-height: 120px;
}

.eval-structure-box h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.eval-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eval-structure-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.eval-structure-stats > div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eval-structure-stats span {
  font-size: 11px;
  color: var(--text-secondary);
}

.eval-structure-stats strong {
  font-size: 1.1rem;
}

.eval-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-criteria-section .req-section-head {
  align-items: center;
}

.req-criteria-count {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  white-space: nowrap;
}

.eval-criterion-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eval-criterion-card:hover {
  border-color: color-mix(in srgb, #0d9488 28%, var(--border));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.eval-criterion-card[open] {
  border-color: #99f6e4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.eval-criterion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.eval-criterion-summary::-webkit-details-marker {
  display: none;
}

.eval-criterion-summary::marker {
  content: "";
}

.eval-criterion-index {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.eval-criterion-summary-main {
  min-width: 0;
  flex: 1;
}

.eval-criterion-summary-main strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

.eval-criterion-summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.eval-criterion-weight {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
}

.eval-criterion-mini-meter {
  flex: 1;
  min-width: 72px;
  max-width: 140px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.eval-criterion-mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #0891b2);
}

.eval-criterion-summary-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.eval-criterion-score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ecfeff, #f0fdfa);
  border: 1px solid #99f6e4;
  color: #0f766e;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
}

.eval-criterion-score em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.eval-criterion-chevron {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--text-secondary);
  transition: transform 0.18s ease, background 0.15s ease, color 0.15s ease;
}

.eval-criterion-card[open] .eval-criterion-chevron {
  transform: rotate(180deg);
  background: #ccfbf1;
  color: #0f766e;
}

.eval-criterion-summary:hover .eval-criterion-chevron {
  background: #e2e8f0;
}

.eval-criterion-body {
  padding: 0 16px 16px 58px;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

.eval-criterion-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.eval-criterion-score-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.eval-criterion-score-pill em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-secondary);
}

.eval-criterion-score-pill strong {
  font-size: 1.05rem;
  color: #0e7490;
}

.eval-criterion-rationale-block {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.eval-criterion-rationale-block h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #0f766e;
}

.eval-criterion-rationale-block p,
.eval-criterion-rationale {
  margin: 0;
  line-height: 1.8;
  font-size: 13.5px;
  color: var(--text);
}

.eval-criterion-evidence {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-inline-start: 3px solid #14b8a6;
  background: #f0fdfa;
  border-radius: 0 12px 12px 0;
}

.eval-criterion-evidence span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  margin-bottom: 4px;
}

.eval-criterion-evidence p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .eval-criterion-body {
    padding-inline-start: 16px;
  }

  .eval-criterion-scores {
    grid-template-columns: 1fr;
  }

  .eval-criterion-mini-meter {
    display: none;
  }
}

.req-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.req-review-footer h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.req-review-footer .muted {
  margin: 0;
}

.alert-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .eval-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .eval-structure-cols,
  .eval-structure-stats,
  .eval-fact-chips-grid,
  .eval-fact-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .eval-summary-grid {
    grid-template-columns: 1fr;
  }

  .req-identity-score {
    width: 100%;
  }

  .req-identity-footer {
    flex-direction: column;
  }

  .req-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* —— اسناد راهبردی —— */
.sdoc-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
}

.sdoc-filters {
  margin-bottom: 0;
  padding: 16px 18px;
}

.sdoc-filters-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: end;
}

.sdoc-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sdoc-filters label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

.sdoc-filters select,
.sdoc-filters input[type="search"],
.sdoc-filters input {
  display: block;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface, #fff);
  color: var(--text, inherit);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
}

.sdoc-filters select {
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  cursor: pointer;
}

.sdoc-filters select:focus,
.sdoc-filters input:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.sdoc-filters-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 1px;
}

.sdoc-filter-search {
  min-width: 0;
}

.sdoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sdoc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, #ecfdf5 0%, transparent 40%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  min-height: 180px;
}

.sdoc-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.sdoc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sdoc-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 8px;
  padding: 4px 9px;
}

.sdoc-cat.inline {
  margin-inline-end: 8px;
  vertical-align: middle;
}

.sdoc-cat-muted {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.sdoc-file-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px 9px;
}

.sdoc-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #0f172a;
}

.sdoc-card p {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
}

.sdoc-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  color: #94a3b8;
}

.sdoc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sdoc-empty-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  margin-bottom: 6px;
}

.sdoc-empty h3 {
  margin: 0;
}

.sdoc-empty .muted {
  max-width: 420px;
  margin: 0 0 8px;
}

.sdoc-dropzone {
  position: relative;
  border: 1.5px dashed rgba(13, 148, 136, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.55), rgba(248, 250, 252, 0.4));
  min-height: 128px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sdoc-dropzone.is-drag,
.sdoc-dropzone.has-file {
  border-color: #0d9488;
  background: rgba(204, 251, 241, 0.45);
}

.sdoc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.sdoc-dropzone-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  text-align: center;
  color: #0f766e;
}

.sdoc-dropzone-inner strong {
  font-size: 14px;
  color: #134e4a;
}

.sdoc-dropzone-inner span {
  font-size: 12.5px;
  color: #64748b;
}

.sdoc-dropzone-inner em {
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sdoc-manual-text {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 14px;
  background: #f8fafc;
}

.sdoc-manual-text summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  user-select: none;
}

.sdoc-manual-text[open] summary {
  margin-bottom: 10px;
}

.sdoc-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sdoc-hero-actions form {
  margin: 0;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
}

.btn-danger:hover {
  background: #b91c1c;
}

.sdoc-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sdoc-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.sdoc-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.sdoc-detail-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.sdoc-summary {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.7), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.sdoc-summary h3,
.sdoc-body-preview h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
}

.sdoc-summary p {
  margin: 0;
  line-height: 1.85;
  color: #334155;
}

.sdoc-prose {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 14.5px;
  color: #1e293b;
  max-height: 62vh;
  overflow: auto;
  padding: 4px 2px;
}

.sdoc-detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sdoc-detail-side h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sdoc-meta-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdoc-meta-list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sdoc-meta-list dt {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.sdoc-meta-list dd {
  margin: 0;
  font-size: 13.5px;
  color: #0f172a;
}

.sdoc-usage-note ul {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 900px) {
  .sdoc-detail-grid {
    grid-template-columns: 1fr;
  }

  .sdoc-filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sdoc-grid {
    grid-template-columns: 1fr;
  }

  .sdoc-hero-actions {
    width: 100%;
  }

  .sdoc-hero-actions .btn,
  .sdoc-hero-actions form {
    flex: 1;
  }

  .sdoc-hero-actions form .btn {
    width: 100%;
  }
}

/* ===== World Research Radar ===== */
.radar-hero {
  position: relative;
  overflow: hidden;
}

.radar-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.radar-hero .page-hero-row {
  position: relative;
  align-items: center;
  gap: 1.5rem;
}

.radar-hero-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.radar-hero-copy .eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.radar-hero-copy h1 {
  margin: 0 0 10px;
}

.radar-hero-copy > p:last-child {
  max-width: 38rem;
  line-height: 1.75;
  opacity: 0.9;
}

.radar-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  width: min(248px, 100%);
  padding: 10px;
  border-radius: 18px;
  background: rgba(8, 24, 56, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 32px rgba(6, 20, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.radar-action-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.radar-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 20, 48, 0.18);
}

.radar-action-btn:active {
  transform: translateY(0);
}

.radar-action-btn--primary {
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border-color: transparent;
  color: #0f2f63;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 22px rgba(6, 20, 48, 0.2);
}

.radar-action-btn--primary:hover {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-color: transparent;
  color: #0c2d5a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 26px rgba(6, 20, 48, 0.24);
}

.radar-action-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.radar-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.radar-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  flex-shrink: 0;
}

.radar-action-btn--primary .radar-action-ico {
  background: rgba(18, 58, 120, 0.1);
  color: #123a78;
}

.radar-action-ico svg {
  width: 17px;
  height: 17px;
}

.radar-action-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}

.radar-action-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.radar-action-text small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.72;
}

.radar-action-btn--primary .radar-action-text small {
  color: #4b6285;
  opacity: 1;
}

.radar-action-btn:disabled,
.radar-action-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.radar-page {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 2.75rem;
}

.radar-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.05rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 47, 99, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(15, 47, 99, 0.05);
}

.radar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.radar-period-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #eef3f9;
  border: 1px solid rgba(15, 47, 99, 0.06);
}

.radar-cat-tabs,
.radar-dash-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.radar-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.48rem 1rem;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.radar-tab:hover {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.7);
}

.radar-tab.active {
  background: #fff;
  color: #0f2f63;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 12px rgba(15, 47, 99, 0.1);
}

.radar-chip,
.radar-dash-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.radar-chip:hover,
.radar-dash-period:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  background: #f8fbff;
}

.radar-chip.active,
.radar-dash-period.active {
  background: linear-gradient(145deg, #123a78 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.radar-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 47, 99, 0.04);
  border: 1px solid rgba(15, 47, 99, 0.06);
  line-height: 1.35;
}

.radar-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
}

.radar-meta-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.radar-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.radar-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 47, 99, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 47, 99, 0.045);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.radar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #1d4ed8 0%, #93c5fd 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.radar-card:hover {
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 14px 34px rgba(15, 47, 99, 0.08);
  transform: translateY(-1px);
}

.radar-card:hover::before,
.radar-card.is-open::before {
  opacity: 1;
}

.radar-card.is-open {
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 16px 36px rgba(15, 47, 99, 0.09);
}

.radar-card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1rem;
}

.radar-card-rank {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.radar-card-body {
  min-width: 0;
}

.radar-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
}

.radar-source-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f2f63;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.radar-card-date {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.radar-score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.14);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
}

.radar-score-label {
  font-weight: 600;
  opacity: 0.85;
}

.radar-score strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.radar-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.55;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.radar-card:hover .radar-card-title {
  color: #123a78;
}

.radar-card-summary {
  margin: 0 0 0.75rem;
  color: #475569;
  line-height: 1.8;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-card.is-open .radar-card-summary {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.radar-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.radar-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.2rem 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.radar-expand-btn:hover {
  color: #123a78;
}

.radar-expand-btn .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  transition: transform 0.18s ease;
}

.radar-card.is-open .radar-expand-btn .icon {
  transform: rotate(180deg);
}

.radar-card-detail {
  padding: 0 1.25rem 1.2rem 3.95rem;
  border-top: 1px solid rgba(15, 47, 99, 0.06);
  margin-top: 0;
  padding-top: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.radar-detail-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.radar-detail-block {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 47, 99, 0.07);
}

.radar-detail-block--accent {
  background: #f8fbff;
  border-color: rgba(29, 78, 216, 0.16);
  border-right: 3px solid #1d4ed8;
}

.radar-detail-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 750;
}

.radar-detail-grid p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
  font-size: 0.92rem;
}

.radar-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: #fff;
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.radar-source-link svg {
  width: 14px;
  height: 14px;
}

.radar-source-link:hover {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.35);
  color: #123a78;
}

.radar-empty {
  padding: 2.8rem 1.25rem;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed rgba(15, 47, 99, 0.14);
}

.radar-empty-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #64748b;
}

.radar-empty-ico svg {
  width: 24px;
  height: 24px;
}

.radar-empty p {
  margin: 0.25rem 0;
  color: #334155;
  font-weight: 650;
}

.radar-empty .muted-sm {
  font-weight: 500;
  color: #94a3b8;
}

/* Dashboard teaser panel */
.radar-dash-section {
  width: 100%;
}

.radar-dash-panel {
  margin-top: 0;
}

.radar-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.radar-dash-period {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.radar-dash-list.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.radar-dash-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
}

.radar-dash-item:last-child {
  border-bottom: 0;
}

.radar-dash-item:hover .radar-dash-item-title {
  color: #1d4ed8;
}

.radar-dash-item-rank {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.radar-dash-item-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 650;
}

.radar-dash-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.radar-dash-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .radar-card-detail {
    padding-inline-start: 1.25rem;
  }

  .radar-card-main {
    gap: 0.75rem;
    padding: 1rem;
  }

  .radar-filters {
    padding: 0.85rem;
  }

  .radar-score {
    margin-inline-start: 0;
  }

  .radar-hero .page-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-hero-actions {
    width: 100%;
  }
}

/* ===== Radar bulletin dialog ===== */
.radar-bulletin-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 720px;
  width: calc(100% - 32px);
  background: transparent;
  box-shadow: none;
}

.radar-bulletin-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.radar-bulletin-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.radar-bulletin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.radar-bulletin-head h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #0f172a;
}

.radar-bulletin-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.radar-bulletin-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.radar-bulletin-close:hover {
  background: #f8fafc;
  color: var(--text);
}

.radar-bulletin-body {
  padding: 14px 20px 8px;
  max-height: min(62vh, 560px);
  overflow: auto;
}

.radar-bulletin-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 12px;
}

.radar-bulletin-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.radar-bulletin-period:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.radar-bulletin-period.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.radar-bulletin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.radar-bulletin-count {
  font-size: 0.84rem;
  font-weight: 650;
  color: #475569;
}

.radar-bulletin-select-actions {
  display: flex;
  gap: 12px;
}

.radar-bulletin-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-bulletin-loading,
.radar-bulletin-empty {
  padding: 1.6rem 1rem;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  font-size: 0.92rem;
}

.radar-bulletin-pick {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radar-bulletin-pick:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f8fbff;
}

.radar-bulletin-pick:has(input:checked) {
  border-color: rgba(29, 78, 216, 0.45);
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}

.radar-bulletin-pick input {
  margin-top: 0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #1d4ed8;
  cursor: pointer;
}

.radar-bulletin-pick-rank {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.1rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.radar-bulletin-pick:has(input:checked) .radar-bulletin-pick-rank {
  background: #dbeafe;
  color: #1d4ed8;
}

.radar-bulletin-pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.radar-bulletin-pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.radar-bulletin-pick-score {
  font-size: 0.78rem;
  color: #0f766e;
  font-weight: 600;
}

.radar-bulletin-pick-title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
  color: #0f172a;
}

.radar-bulletin-pick-summary {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.65;
}

.radar-bulletin-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

@media (max-width: 720px) {
  .radar-bulletin-foot {
    flex-direction: column-reverse;
  }

  .radar-bulletin-foot .btn {
    width: 100%;
  }

  .radar-bulletin-pick {
    grid-template-columns: auto 1fr;
  }

  .radar-bulletin-pick-rank {
    display: none;
  }
}

