:root {
  --ink: #08080a;
  --ink-soft: #101013;
  --panel: rgba(19, 19, 22, 0.88);
  --panel-strong: #151518;
  --line: rgba(223, 188, 105, 0.18);
  --line-strong: rgba(223, 188, 105, 0.48);
  --gold: #d9b765;
  --gold-bright: #f0d58e;
  --gold-pale: #fff0bd;
  --cream: #f4efe5;
  --muted: #a3a09a;
  --danger: #f19a8b;
  --success: #96d3ad;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --radius: 24px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --arabic: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(199, 155, 65, 0.15), transparent 38rem),
    linear-gradient(155deg, #08080a 0%, #0d0d10 55%, #070708 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.is-hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(217, 183, 101, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  border: 1px solid rgba(217, 183, 101, 0.08);
  border-radius: inherit;
  content: "";
}

.ambient::before {
  inset: 16%;
}

.ambient::after {
  inset: 34%;
}

.ambient-one {
  top: 12rem;
  left: -13rem;
}

.ambient-two {
  right: -15rem;
  bottom: 8rem;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1120px);
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.dasho-identity {
  display: flex;
  align-items: center;
  direction: ltr;
}

.dasho-mark-image {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 5px rgba(255, 220, 126, 0.72))
    drop-shadow(0 0 14px rgba(206, 148, 42, 0.34));
}

.dasho-wordmark-window {
  position: relative;
  display: block;
  width: 142px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
}

.dasho-wordmark-image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 191px;
  max-width: none;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 4px rgba(255, 229, 158, 0.82))
    drop-shadow(0 0 13px rgba(213, 156, 49, 0.42));
}

.dasho-identity-header {
  gap: 8px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(217, 183, 101, 0.12), transparent);
  box-shadow: inset 0 0 0 4px var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 16px;
}

.brand-mark::after {
  position: absolute;
  width: 5px;
  height: 5px;
  right: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  content: "";
}

.brand-copy {
  display: grid;
  gap: 2px;
  text-transform: uppercase;
}

.brand-copy strong {
  letter-spacing: 0.11em;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 8px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.language-option {
  min-width: 43px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.language-option.is-active {
  color: #15130e;
  background: linear-gradient(135deg, var(--gold-bright), #bd9140);
  box-shadow: 0 4px 16px rgba(217, 183, 101, 0.18);
}

.quiet-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  cursor: pointer;
}

.quiet-button:hover {
  color: var(--cream);
  border-color: var(--line-strong);
}

.app-shell {
  width: min(100% - 32px, 1040px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
}

.view {
  animation: enter 480ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 60px 0 78px;
}

.hero {
  position: relative;
  text-align: center;
}

.hero-dasho-signature {
  display: grid;
  justify-items: center;
  margin: 0 auto 23px;
}

.dasho-identity-hero {
  gap: 12px;
}

.dasho-identity-hero .dasho-mark-image {
  width: 54px;
  height: 54px;
  filter:
    drop-shadow(0 0 7px rgba(255, 225, 142, 0.82))
    drop-shadow(0 0 22px rgba(211, 150, 38, 0.52));
}

.dasho-identity-hero .dasho-wordmark-window {
  width: 230px;
  height: 58px;
}

.dasho-identity-hero .dasho-wordmark-image {
  width: 310px;
  filter:
    drop-shadow(0 0 6px rgba(255, 232, 165, 0.9))
    drop-shadow(0 0 22px rgba(211, 150, 38, 0.52));
}

.hero-brand-line {
  display: grid;
  grid-template-columns: 1fr 9px 1fr;
  gap: 7px;
  align-items: center;
  width: min(270px, 75vw);
  margin-top: -2px;
}

.hero-brand-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 185, 88, 0.78));
}

.hero-brand-line span:last-child {
  transform: rotate(180deg);
}

.hero-brand-line i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-bright);
  box-shadow: 0 0 11px rgba(240, 213, 142, 0.72);
  transform: rotate(45deg);
}

.eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow-line:last-child {
  transform: rotate(180deg);
}

.hero-ten {
  position: absolute;
  z-index: -1;
  top: -54px;
  left: 50%;
  color: transparent;
  opacity: 0.5;
  font-family: Georgia, serif;
  font-size: clamp(170px, 23vw, 270px);
  line-height: 1;
  transform: translateX(-50%);
  -webkit-text-stroke: 1px rgba(217, 183, 101, 0.12);
}

.hero-kicker {
  margin: 42px 0 12px;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  line-height: 0.94;
}

.hero-title-en,
.hero-title-ar {
  display: block;
}

.hero-title-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8.3vw, 94px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-title-en em {
  color: var(--gold-bright);
  font-weight: 400;
}

.hero-title-ar {
  display: none;
  margin-top: 20px;
  color: var(--gold);
  font-family: var(--arabic);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 400;
}

.hero-copy {
  max-width: 440px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.glass-card {
  position: relative;
  padding: clamp(25px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.glass-card::before {
  position: absolute;
  inset: 0 auto auto 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(217, 183, 101, 0.13);
  font-family: Georgia, serif;
  font-size: 44px;
}

.card-heading {
  margin-bottom: 28px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.card-heading h2,
.drawer-heading h2,
.panel-heading h2 {
  margin: 0;
  font-family: Georgia, var(--arabic), serif;
  font-size: 25px;
  font-weight: 400;
}

.card-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

form label,
.admin-password label {
  display: block;
  margin: 0 0 8px;
  color: #c8c3b9;
  font-size: 11px;
  font-weight: 700;
}

.input-shell,
.search-shell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.23);
  transition: 180ms ease;
}

.input-shell:focus-within,
.search-shell:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(217, 183, 101, 0.08);
}

.input-shell svg,
.search-shell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.input-icon {
  display: grid;
  padding-left: 16px;
  place-items: center;
}

.input-shell input,
.search-shell input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  color: var(--cream);
  background: transparent;
  font-size: 16px;
}

input::placeholder {
  color: #66645f;
}

.admin-password {
  margin-top: 18px;
  animation: reveal 220ms ease both;
}

.form-message {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--success);
}

.primary-button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  color: #17130b;
  background: linear-gradient(135deg, #f2db96 0%, #d7b363 48%, #b88937 100%);
  box-shadow: 0 12px 32px rgba(175, 126, 42, 0.2), inset 0 1px rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.button-loader {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(20, 16, 8, 0.25);
  border-top-color: #17130b;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .button-loader {
  display: inline-block;
}

.primary-button.is-loading svg {
  display: none;
}

.privacy-note {
  position: absolute;
  right: 0;
  bottom: -44px;
  left: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #77746e;
  font-size: 10px;
}

.privacy-note svg,
.closed-banner svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.login-view {
  position: relative;
}

.page-intro {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 66px 0 36px;
}

.page-intro h1 {
  margin: 0;
  font-family: Georgia, var(--arabic), serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.intro-line {
  max-width: 600px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.progress-medallion {
  display: flex;
  gap: 4px;
  align-items: baseline;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 183, 101, 0.12), transparent 65%);
  box-shadow: inset 0 0 0 7px var(--ink), inset 0 0 0 8px rgba(217, 183, 101, 0.15);
}

.progress-medallion strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.progress-medallion span {
  color: var(--muted);
  font-size: 12px;
}

.welcome-strip {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}

.welcome-strip strong {
  color: var(--cream);
  font-weight: 600;
}

.welcome-dot {
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(150, 211, 173, 0.6);
}

.saved-badge {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(150, 211, 173, 0.24);
  border-radius: 999px;
  color: var(--success);
  letter-spacing: 0.13em;
  font-size: 8px;
}

.closed-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 183, 101, 0.22);
  border-radius: 16px;
  background: rgba(217, 183, 101, 0.07);
}

.closed-banner svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.closed-banner strong {
  display: block;
  font-size: 13px;
}

.closed-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.picker-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-shell {
  width: min(100%, 430px);
  min-height: 48px;
}

.search-shell svg {
  margin-left: 15px;
}

.search-shell input {
  height: 46px;
}

.result-count {
  margin: 0;
  color: #76736d;
  font-size: 10px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.candidate-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  color: #d8d3c9;
  background: rgba(255, 255, 255, 0.026);
  text-align: start;
  cursor: pointer;
  transition: 150ms ease;
}

.candidate-card:hover:not(:disabled) {
  border-color: rgba(217, 183, 101, 0.3);
  background: rgba(217, 183, 101, 0.055);
}

.candidate-card.is-selected {
  border-color: rgba(217, 183, 101, 0.62);
  color: var(--gold-pale);
  background:
    linear-gradient(135deg, rgba(217, 183, 101, 0.14), rgba(217, 183, 101, 0.045)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 3px 0 var(--gold);
}

.candidate-card:disabled {
  cursor: default;
}

.candidate-index {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217, 183, 101, 0.18);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 11px;
}

.candidate-card.is-selected .candidate-index {
  color: #17130b;
  background: var(--gold);
}

.candidate-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-check {
  display: grid;
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
}

.candidate-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.candidate-card.is-selected .candidate-check {
  border-color: var(--gold);
  background: var(--gold);
}

.candidate-card.is-selected .candidate-check svg {
  stroke: #17130b;
}

.empty-search {
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-search span {
  color: var(--gold);
  font-size: 36px;
}

.empty-search p {
  margin: 5px 0 0;
  font-size: 12px;
}

.selection-drawer {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.drawer-heading,
.panel-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.drawer-heading h2,
.panel-heading h2 {
  font-size: 21px;
}

.drawer-count {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 18px;
}

.selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.selected-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 183, 101, 0.2);
  border-radius: 999px;
  color: #dcd3bd;
  background: rgba(217, 183, 101, 0.065);
  font-size: 11px;
}

.selected-chip > span:first-child {
  color: var(--gold);
  font-family: Georgia, serif;
}

.selected-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  margin-right: -5px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.selected-chip button:hover {
  color: var(--cream);
}

.selection-hint {
  margin: 16px 0 0;
  color: #79766f;
  font-size: 10px;
}

.submit-dock {
  position: sticky;
  z-index: 10;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(100%, 440px);
  margin: 22px auto 70px;
  padding: 1px;
  border-radius: 17px;
  background: linear-gradient(90deg, transparent, rgba(217, 183, 101, 0.3), transparent);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.submit-dock .primary-button {
  margin: 0;
}

.submit-dock .form-message {
  margin: 0 0 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #181316;
  text-align: center;
}

.admin-view {
  padding-bottom: 80px;
}

.admin-intro {
  align-items: center;
}

.state-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 124px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(150, 211, 173, 0.2);
  border-radius: 999px;
  color: var(--success);
  background: rgba(150, 211, 173, 0.07);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 34px;
  height: 19px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(150, 211, 173, 0.28);
}

.toggle-track span {
  width: 15px;
  height: 15px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--success);
  transition: 180ms ease;
}

.state-toggle.is-closed {
  color: var(--danger);
  border-color: rgba(241, 154, 139, 0.2);
  background: rgba(241, 154, 139, 0.07);
}

.state-toggle.is-closed .toggle-track {
  background: rgba(241, 154, 139, 0.25);
}

.state-toggle.is-closed .toggle-track span {
  margin-right: auto;
  margin-left: 0;
  background: var(--danger);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}

.stat-card::after {
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(217, 183, 101, 0.09);
  border-radius: 50%;
  content: "";
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
}

.stat-card strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.admin-panel {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.disclosure-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.disclosure-button > span {
  color: var(--gold);
  font-size: 10px;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.answer-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(217, 183, 101, 0.12);
  border-radius: 12px;
  background: rgba(217, 183, 101, 0.04);
}

.answer-item > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #17130b;
  background: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
}

.answer-item strong,
.answer-item small {
  display: block;
}

.answer-item strong {
  font-size: 11px;
}

.answer-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.results-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.result-card {
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}

.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 15px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.result-person strong,
.result-person small {
  display: block;
}

.result-person strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-person small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.result-time {
  color: var(--muted);
  font-size: 9px;
}

.score-badge {
  display: flex;
  align-items: baseline;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 22px;
}

.score-badge small {
  color: var(--muted);
  font-family: var(--font);
  font-size: 9px;
}

.result-selections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 0 15px 15px;
}

.result-pick {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  color: #c9c4b9;
  background: rgba(0, 0, 0, 0.16);
  font-size: 10px;
}

.result-pick small {
  display: block;
  margin-top: 2px;
  color: #6f6c66;
  font-size: 8px;
}

.admin-empty {
  display: grid;
  justify-items: center;
  padding: 45px 20px 28px;
  color: var(--muted);
  text-align: center;
}

.admin-empty p {
  margin: 15px 0 0;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(150, 211, 173, 0.22);
  border-radius: 12px;
  color: #d8eee0;
  background: rgba(22, 40, 30, 0.96);
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  color: #5d5a55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 8px;
}

footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

[dir="rtl"] body {
  font-family: var(--arabic);
}

[dir="rtl"] .hero-title-en {
  display: none;
}

[dir="rtl"] .hero-title-ar {
  display: block;
}

[dir="rtl"] .brand-lockup,
[dir="rtl"] .candidate-card,
[dir="rtl"] .disclosure-button,
[dir="rtl"] .result-summary {
  text-align: right;
}

[dir="rtl"] .input-icon {
  padding-right: 16px;
  padding-left: 0;
}

[dir="rtl"] .input-shell input,
[dir="rtl"] .search-shell input {
  padding: 0 0 0 16px;
}

[dir="rtl"] .search-shell svg {
  margin-right: 15px;
  margin-left: 0;
}

[dir="rtl"] .candidate-card.is-selected {
  box-shadow: inset -3px 0 var(--gold);
}

[dir="rtl"] .candidate-check {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .welcome-dot {
  margin-right: 0;
  margin-left: 3px;
}

[dir="rtl"] .saved-badge {
  margin-right: 8px;
  margin-left: 0;
}

[dir="rtl"] .selected-chip button {
  margin-right: 0;
  margin-left: -5px;
}

[dir="rtl"] .toggle-track span {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .state-toggle.is-closed .toggle-track span {
  margin-right: 0;
  margin-left: auto;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 560px;
    margin: 0 auto;
    padding-top: 58px;
  }

  .privacy-note {
    position: static;
    grid-column: 1;
    margin-top: -14px;
  }

  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell {
    width: min(100% - 24px, 1040px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand-copy small {
    display: none;
  }

  .dasho-identity-header {
    gap: 6px;
  }

  .dasho-identity-header .dasho-mark-image {
    width: 30px;
    height: 30px;
  }

  .dasho-identity-header .dasho-wordmark-window {
    width: 120px;
    height: 32px;
  }

  .dasho-identity-header .dasho-wordmark-image {
    width: 162px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .language-option {
    min-width: 39px;
    min-height: 44px;
    padding: 0 8px;
  }

  .quiet-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 10px;
  }

  .login-view {
    min-height: auto;
    padding: 52px 0 42px;
  }

  .hero-kicker {
    margin-top: 34px;
    font-size: 9px;
  }

  .hero-dasho-signature {
    margin-bottom: 20px;
  }

  .dasho-identity-hero {
    gap: 9px;
  }

  .dasho-identity-hero .dasho-mark-image {
    width: 43px;
    height: 43px;
  }

  .dasho-identity-hero .dasho-wordmark-window {
    width: 182px;
    height: 48px;
  }

  .dasho-identity-hero .dasho-wordmark-image {
    width: 245px;
  }

  .hero-title-en {
    font-size: clamp(46px, 15vw, 66px);
  }

  .hero-title-ar {
    margin-top: 15px;
    font-size: 23px;
  }

  .hero-copy {
    max-width: 330px;
    margin-top: 22px;
    font-size: 13px;
  }

  .glass-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .page-intro {
    align-items: center;
    padding: 44px 0 27px;
  }

  .page-intro h1 {
    font-size: 36px;
  }

  .intro-line {
    font-size: 11px;
  }

  .progress-medallion {
    width: 72px;
    height: 72px;
    box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6px rgba(217, 183, 101, 0.15);
  }

  .progress-medallion strong {
    font-size: 27px;
  }

  .picker-toolbar {
    display: block;
  }

  .search-shell {
    width: 100%;
  }

  .result-count {
    margin-top: 9px;
    text-align: end;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .picker-view {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .picker-view .page-intro {
    order: 1;
  }

  .picker-view .welcome-strip {
    order: 2;
  }

  .picker-view .closed-banner {
    order: 3;
  }

  .picker-view .selection-drawer {
    order: 4;
    margin-top: 0;
    margin-bottom: 22px;
  }

  .picker-view .picker-toolbar {
    order: 5;
  }

  .picker-view .candidate-grid,
  .picker-view .empty-search {
    order: 6;
  }

  .picker-view .submit-dock {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    order: 7;
    width: auto;
    margin: 0;
  }

  .toast {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }

  .candidate-card {
    min-height: 62px;
  }

  .selection-drawer {
    padding: 20px 16px;
  }

  .selected-chip {
    max-width: 100%;
  }

  .admin-intro {
    align-items: flex-start;
  }

  .admin-intro .state-toggle {
    min-width: auto;
    padding: 0 12px;
  }

  .admin-stats {
    gap: 7px;
  }

  .stat-card {
    padding: 15px 11px;
    border-radius: 14px;
  }

  .stat-card span {
    min-height: 25px;
    font-size: 8px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .answer-grid,
  .result-selections {
    grid-template-columns: 1fr;
  }

  .result-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .result-time {
    display: none;
  }

  footer {
    padding: 0 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
