/* CONNECT İstanbul Saha Anketi — Survey Platform
 * Design: co-branded layout following CONNECT Istanbul visual identity
 * Top bar: T.C. Sanayi ve Teknoloji Bakanlığı + Yerel Kalkınma Hamlesi | CONNECT İstanbul | İSTKA
 * Bottom bar: 1773 TTO | İTÜ Teknopark | MESS
 * Middle: wave background, content surface
 */

:root {
  /* CONNECT İstanbul palette — derived from logos */
  --ink-900: #1a2244;            /* MEXT navy, CONNECT base */
  --ink-700: #2c3358;
  --ink-500: #5a607f;
  --ink-300: #a8aec0;
  --ink-100: #e6e8ef;
  --paper:   #ffffff;
  --canvas:  #fafbfd;

  --connect-blue: #2a3666;       /* CONNECT İstanbul navy */
  --connect-blue-soft: #d8dde9;
  --istka-orange: #f08a30;       /* İSTKA accent orange from icon */
  --hamle-green:  #2eb568;       /* Yerel Kalkınma Hamlesi # */
  --bakanlik-red: #c8202c;       /* Bakanlık seal */

  --line: #e6e8ef;
  --error: #c8202c;
  --success: #2eb568;

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(26,34,68,0.04), 0 1px 3px rgba(26,34,68,0.06);
  --shadow-md: 0 4px 12px rgba(26,34,68,0.06), 0 2px 4px rgba(26,34,68,0.04);
  --shadow-lg: 0 24px 48px rgba(26,34,68,0.08), 0 8px 16px rgba(26,34,68,0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --top-bar-h: 96px;
  --bottom-bar-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ============ APP SHELL — top / middle / bottom ============ */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--top-bar-h) 1fr var(--bottom-bar-h);
  position: relative;
}

/* Wave background — subtle diagonal swirl as in Greenshot reference */
.app::before {
  content: '';
  position: absolute;
  inset: var(--top-bar-h) 0 var(--bottom-bar-h) 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% 30%, rgba(42,54,102,0.04), transparent 60%),
    radial-gradient(ellipse 900px 500px at 20% 80%, rgba(240,138,48,0.025), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.app::after {
  content: '';
  position: absolute;
  inset: var(--top-bar-h) 0 var(--bottom-bar-h) 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'><g fill='none' stroke='%232a3666' stroke-width='0.6' opacity='0.10'><path d='M-100,250 C200,180 360,420 720,340 C1080,260 1240,460 1540,380'/><path d='M-100,300 C200,230 360,470 720,390 C1080,310 1240,510 1540,430'/><path d='M-100,350 C200,280 360,520 720,440 C1080,360 1240,560 1540,480'/><path d='M-100,400 C200,330 360,570 720,490 C1080,410 1240,610 1540,530'/><path d='M-100,450 C200,380 360,620 720,540 C1080,460 1240,660 1540,580'/><path d='M-100,500 C200,430 360,670 720,590 C1080,510 1240,710 1540,630'/></g></svg>");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ============ TOP BAR — co-branded logos ============ */
.top-bar {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 0 32px;
}
.top-bar .logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.top-bar .logo-bakanlik { height: 60px; }
.top-bar .logo-connect  { height: 60px; }
.top-bar .logo-istka    { height: 60px; }
.top-bar .sep {
  width: 1px;
  height: 56px;
  background: var(--line);
}

/* ============ BOTTOM BAR — partner logos + disclaimer ============ */
.bottom-bar {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
}
.bottom-bar .disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-500);
  font-style: italic;
  max-width: 880px;
}
.bottom-bar .partners {
  display: flex;
  align-items: center;
  gap: 28px;
}
.bottom-bar .partners img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

/* ============ MIDDLE — main viewport ============ */
.main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.screen {
  width: 100%;
  max-width: 1080px;
  animation: fade-in 0.4s ease-out;
}
.screen.hidden { display: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ LOGIN SCREEN ============ */
.login-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.login-hero {}
.login-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--connect-blue);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--connect-blue);
}
.login-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 24px;
}
.login-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: 32px;
  max-width: 560px;
}
.login-meta-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
  padding-left: 0;
}
.login-meta-list li {
  font-size: 14px;
  color: var(--ink-700);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.login-meta-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--connect-blue);
  font-size: 16px;
  line-height: 1.55;
}
.login-meta-list strong { color: var(--ink-900); font-weight: 600; }

.istka-note {
  border-left: 3px solid var(--istka-orange);
  padding: 14px 18px;
  background: rgba(240, 138, 48, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.6;
}
.istka-note p { margin: 0 0 10px; }
.istka-note p:last-child { margin-bottom: 0; }
.istka-note .project-code-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--istka-orange);
  background: rgba(240, 138, 48, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}
.istka-note .project-code-badge strong { color: var(--istka-orange); font-weight: 700; }
.fauna-privacy-note {
  border-top: 1px dashed rgba(240, 138, 48, 0.35);
  padding-top: 10px !important;
  margin-top: 10px;
  font-style: normal;
  color: var(--ink-900);
}
.fauna-privacy-note strong { color: var(--connect-blue); }

.survey-project-code {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--istka-orange);
  background: var(--paper);
  border: 1px solid rgba(240, 138, 48, 0.35);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.survey-header { position: relative; padding-top: 12px; }

.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.login-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-card-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hamle-green);
  box-shadow: 0 0 0 3px rgba(46,181,104,0.18);
}

.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper);
  transition: border 0.15s, box-shadow 0.15s;
}
.field-input:focus {
  outline: none;
  border-color: var(--connect-blue);
  box-shadow: 0 0 0 3px rgba(42,54,102,0.10);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--paper);
  width: 100%;
}
.btn-primary:hover { background: var(--connect-blue); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-500);
  padding: 10px 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink-900); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink-900);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink-300); }

.login-help {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.55;
}
.login-help a { color: var(--connect-blue); text-decoration: none; font-weight: 500; }
.login-help a:hover { text-decoration: underline; }

.login-error {
  background: rgba(200,32,44,0.06);
  border: 1px solid rgba(200,32,44,0.20);
  color: var(--error);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.login-error.hidden { display: none; }

/* ============ INTRO SCREEN ============ */
.intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}
.intro-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--connect-blue);
  font-weight: 600;
  margin-bottom: 18px;
}
.intro-company {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 16px;
}
.intro-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 36px;
  line-height: 1.4;
}
.intro-section {
  margin-bottom: 28px;
}
.intro-section h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.intro-section p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-700);
}
.intro-rehber {
  list-style: none;
  display: grid;
  gap: 12px;
}
.intro-rehber li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-700);
  padding-left: 24px;
  position: relative;
}
.intro-rehber li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--connect-blue);
  border-radius: 3px;
}
.intro-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.intro-progress-stat {
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-progress-stat strong { color: var(--ink-900); font-weight: 600; }

/* ============ SURVEY SCREEN ============ */
.survey-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - var(--top-bar-h) - var(--bottom-bar-h) - 96px);
  gap: 32px;
  width: 100%;
}

.survey-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.survey-company {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--connect-blue);
  font-weight: 600;
}
.survey-section-name {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  text-align: center;
}
.survey-progress-text {
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.progress-rail {
  position: relative;
  height: 3px;
  background: var(--connect-blue-soft);
  border-radius: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--connect-blue);
  border-radius: 3px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-md);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: q-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.question-frame.section-card {
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.question-id {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--connect-blue);
  font-weight: 600;
  margin-bottom: 12px;
}
.question-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.question-help {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 720px;
}

.question-body { flex: 1; }
.question-actions {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.question-hint {
  font-size: 12px;
  color: var(--ink-500);
  display: flex;
  gap: 16px;
  align-items: center;
}
.kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink-700);
  font-weight: 600;
}

/* === Single / Multi options === */
.options { display: grid; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--paper);
  transition: border 0.15s, background 0.15s, transform 0.15s;
}
.option:hover {
  border-color: var(--connect-blue);
  background: rgba(42, 54, 102, 0.02);
}
.option.selected {
  border-color: var(--connect-blue);
  background: rgba(42, 54, 102, 0.05);
  box-shadow: inset 0 0 0 1px var(--connect-blue);
}
.option-key {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--canvas);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.option.selected .option-key {
  background: var(--connect-blue);
  color: var(--paper);
  border-color: var(--connect-blue);
}
.option-text {
  font-size: 16px;
  color: var(--ink-900);
  line-height: 1.4;
}

/* === Likert === */
.likert {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.likert-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: border 0.15s, background 0.15s, transform 0.15s;
}
.likert-cell:hover {
  border-color: var(--connect-blue);
  transform: translateY(-1px);
}
.likert-cell.selected {
  border-color: var(--connect-blue);
  background: rgba(42, 54, 102, 0.06);
  box-shadow: inset 0 0 0 1px var(--connect-blue);
}
.likert-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--connect-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.likert-cell.selected .likert-num { color: var(--ink-900); }
.likert-label {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.3;
}
.likert-poles {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-500);
}
.likert-poles span { font-weight: 500; }
.likert-skip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-500);
}
.likert-skip a {
  color: var(--connect-blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Ranked === */
.ranked-instructions {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.ranked-list {
  display: grid;
  gap: 16px;
}
.ranked-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
}
.ranked-position {
  background: var(--connect-blue);
  color: var(--paper);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  height: 56px;
  display: grid;
  place-items: center;
}
.ranked-position.empty {
  background: var(--canvas);
  color: var(--ink-500);
  border: 1px dashed var(--ink-300);
}
.ranked-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper);
  transition: border 0.15s, box-shadow 0.15s;
}
.ranked-input:focus {
  outline: none;
  border-color: var(--connect-blue);
  box-shadow: 0 0 0 3px rgba(42,54,102,0.10);
}

/* === Textarea === */
.text-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink-900);
  background: var(--paper);
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
  transition: border 0.15s, box-shadow 0.15s;
}
.text-input:focus {
  outline: none;
  border-color: var(--connect-blue);
  box-shadow: 0 0 0 3px rgba(42,54,102,0.10);
}
.text-counter {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-500);
  text-align: right;
}

/* ============ THANKS SCREEN ============ */
.thanks-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.thanks-mark {
  width: 72px;
  height: 72px;
  background: rgba(46, 181, 104, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
}
.thanks-mark svg { width: 32px; height: 32px; stroke: var(--success); }
.thanks-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--connect-blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.thanks-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 20px;
}
.thanks-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 32px;
}
.thanks-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  :root { --top-bar-h: 64px; --bottom-bar-h: auto; }
  .app {
    grid-template-rows: var(--top-bar-h) 1fr auto;
  }
  .top-bar {
    gap: 14px;
    padding: 0 14px;
    justify-content: space-between;
  }
  .top-bar .logo { height: 36px; max-width: 32%; object-fit: contain; }
  .top-bar .logo-bakanlik { height: 36px; }
  .top-bar .logo-connect  { height: 36px; }
  .top-bar .logo-istka    { height: 38px; }
  .top-bar .sep { display: none; }
  .bottom-bar {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .bottom-bar .partners {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }
  .bottom-bar .partners img { height: 28px; }
  .bottom-bar .disclaimer { order: 2; font-size: 10.5px; }

  .main { padding: 24px 16px; }
  .login-grid { grid-template-columns: 1fr; gap: 32px; }
  .login-title { font-size: 36px; }
  .login-card { padding: 28px 24px; }
  .intro-card { padding: 32px 24px; }
  .intro-company { font-size: 30px; }

  .question-frame { padding: 32px 22px; min-height: 360px; }
  .question-text { font-size: 24px; }
  .survey-header { grid-template-columns: 1fr auto; gap: 8px; }
  .survey-section-name { display: none; }
  .progress-rail { grid-column: 1 / -1; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .likert-cell { padding: 12px 2px; }
  .likert-num { font-size: 22px; }
  .likert-label { font-size: 9px; line-height: 1.15; }
  .likert-poles { font-size: 10.5px; }
  .question-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .question-actions .question-hint { justify-content: flex-end; }
  .question-actions .btn-primary { width: 100%; }
  .ranked-row { grid-template-columns: 44px 1fr; gap: 10px; }
  .ranked-position { height: 44px; font-size: 18px; }
  .thanks-card { padding: 40px 24px; }
  .thanks-title { font-size: 30px; }
}
