:root {
  --bg: #eef3fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1f2d3d;
  --muted: #73839b;
  --line: #dfe7f2;
  --blue: #1a73e8;
  --blue-soft: #eaf2ff;
  --green: #159957;
  --amber: #b7791f;
  --red: #d93025;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(35, 55, 88, 0.08);
  --shadow-md: 0 18px 48px rgba(35, 55, 88, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--text);
  background: #eef3fb;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #f8fbff 0%, #eef3fb 38%, #e8eef7 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 253, 0.82);
  border-bottom: 1px solid rgba(223, 231, 242, 0.8);
}
.brand-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eef4fd);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  color: #44556f;
  border: 1px solid transparent;
}
.brand-toggle {
  cursor: pointer;
}
.brand-toggle:hover {
  border-color: #d2dced;
  color: var(--blue);
}
.topbar-divider {
  width: 1px;
  height: 20px;
  background: #dce4ef;
}
.task-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  border-radius: 999px;
  padding: 9px 14px;
  color: #61738d;
  font-size: 14px;
  transition: all .18s ease;
  box-shadow: 0 2px 8px rgba(35, 55, 88, 0.04);
}
.task-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab:hover {
  border-color: #d2dced;
  box-shadow: var(--shadow-sm);
}
.tab.active {
  background: var(--blue-soft);
  border-color: #cfe0ff;
  color: var(--blue);
}
.task-tab-name {
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-tab-count {
  opacity: .65;
  font-size: 11px;
}
.tab.plus {
  font-size: 20px;
  padding: 4px 12px;
}

.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  padding: 24px;
  position: relative;
  transition: grid-template-columns .22s ease, gap .22s ease;
}
.layout.sidebar-collapsed {
  grid-template-columns: 0 1fr;
  gap: 0;
}
.sidebar, .main-content { min-width: 0; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity .18s ease, transform .22s ease;
}
.layout.sidebar-collapsed .sidebar {
  opacity: 0;
  transform: translateX(-28px);
  pointer-events: none;
  overflow: hidden;
}
.task-card,
.score-card,
.flow-panel,
.hero-card,
.ai-panel,
.resources-panel,
.input-panel,
.suggestion-panel,
.question-row {
  background: var(--panel);
  border: 1px solid rgba(223, 231, 242, 0.96);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.task-card,
.score-card,
.flow-panel,
.ai-panel,
.resources-panel,
.input-panel,
.suggestion-panel {
  padding: 14px;
}
.task-card-label,
.panel-head h3,
.section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.task-card-label { color: #7d8da5; }
.task-card-main {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}
.task-name-display {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
}
.task-name-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-bottom: 2px solid #bfd4f7;
  background: transparent;
  padding: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: inherit;
  outline: none;
}
.task-card-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}
.task-card:hover .task-card-actions,
.task-card:focus-within .task-card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ghost-btn,
.danger-btn,
.action-btn,
.suggestion-head button {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #d7e0ee;
  background: #f8fbff;
  color: #5d6f89;
}
.icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ghost-btn:hover,
.action-btn:hover,
.suggestion-head button:hover {
  border-color: #bdd2f4;
  color: var(--blue);
}
.danger-btn {
  border-color: #ffd6d8;
  background: #fff5f5;
  color: #c43830;
}
.danger-btn:hover {
  border-color: #ffb3b8;
  color: #b3251d;
}

.score-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  background: linear-gradient(180deg, #fffdf3, #fff7d9);
  border-color: #efe0aa;
}
.score-card.is-fast {
  background: linear-gradient(180deg, #effcf5, #e2f8eb);
  border-color: #c8ebd6;
}
.score-card.is-slow {
  background: linear-gradient(180deg, #fff2f2, #ffe9eb);
  border-color: #f5cfd2;
}
.score-emoji {
  font-size: 28px;
  line-height: 1;
  margin-top: 2px;
}
.score-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.score-heading strong { font-size: 18px; }
.score-heading span { font-size: 13px; color: #6f8098; }
.score-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #8090a7;
}
.score-good { color: var(--green); }
.score-bar {
  position: relative;
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: #dde6f2;
  overflow: hidden;
}
.score-bar i,
.score-bar u {
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
}
.score-bar i { background: #9aa9bf; width: 0; }
.score-bar u { background: #34c77b; width: 0; text-decoration: none; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebf0f7;
}
.flow-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: flow;
}
.flow-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px 0 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #e1e8f3;
  border-radius: 14px;
  cursor: move;
  counter-increment: flow;
}
.flow-list li::before {
  content: counter(flow);
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #dfe9ff;
  color: #355cc9;
  font-size: 12px;
  font-weight: 700;
}
.flow-list li.active {
  background: var(--blue-soft);
  border-color: #cfe0ff;
  color: var(--blue);
}
.flow-list li.dragging,
.resource-list li.dragging,
.suggestion-list li.dragging { opacity: .48; }
.flow-label { flex: 1; }
.flow-delete {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #96a7bd;
  font-size: 18px;
  line-height: 1;
}
.flow-delete:hover {
  background: #eef3fa;
  border-color: #d7e0ee;
}
.flow-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.add-flow-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d4deed;
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  color: #60718a;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.add-flow-btn:hover { color: var(--blue); border-color: #bfd4f7; }
.flow-picker {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #dbe5f3;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}
.hidden { display: none; }
.flow-picker-title {
  margin-bottom: 10px;
  font-size: 12px;
  color: #6f8098;
  font-weight: 700;
}
.flow-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flow-option {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5f3;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  border-radius: 999px;
  padding: 9px 12px;
  color: #39506d;
  font-size: 13px;
  font-weight: 600;
}
.flow-option::before {
  content: "+";
  margin-right: 6px;
  color: #7b8ba0;
}
.flow-option:hover {
  border-color: #bfd4f7;
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.flow-option.empty {
  width: 100%;
  justify-content: center;
  cursor: default;
  color: #8c9bb0;
}
.flow-option.empty::before { content: none; }
.flow-option.empty:hover {
  transform: none;
  box-shadow: none;
  border-color: #dbe5f3;
  color: #8c9bb0;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.module-grid > section {
  height: 100%;
}
.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}
.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-ring {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 59%),
    conic-gradient(var(--ring-color, #d93025) 0 var(--ring-progress, 0%), rgba(217, 48, 37, 0.14) var(--ring-progress, 0%) 100%);
  color: var(--ring-color, #d93025);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(31, 45, 61, 0.08);
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(210, 220, 237, 0.7);
  pointer-events: none;
}
.hero-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.hero-card h2 span {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4e8;
  font-size: 12px;
  font-weight: 700;
  color: #c97719;
}
.hero-card p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}
.complete-btn {
  width: 140px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #e7ddb0;
  background: #f6efcf;
  color: #b39a4b;
}
.complete-btn.hidden {
  display: none;
}

.ai-panel { display: flex; flex-direction: column; gap: 14px; }
.ai-panel.hidden { display: none; }
.ai-panel {
  grid-column: 1 / -1;
}
.resources-panel {
  display: flex;
  flex-direction: column;
}
.suggestion-panel {
  display: flex;
  flex-direction: column;
}
.meter {
  margin-top: 10px;
  height: 6px;
  background: #ebf1f7;
  border-radius: 999px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: #16a34a;
}
.meter.purple i { background: #7c3aed; }
.meter.red i { background: #dc2626; }
.meter.blue i { background: #2563eb; }
.ai-summary-card {
  display: grid;
  grid-template-columns: 18px 0 minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1e2742 0%, #1d3460 100%);
  color: #dce8ff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: grid-template-columns .22s ease;
}
.ai-summary-card:hover,
.ai-summary-card:focus-within {
  grid-template-columns: 18px 220px minmax(0, 1fr);
}
.ai-point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-point-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.12);
}
.ai-point-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ai-point-list li::before {
  content: counter(ai-point) ".";
  color: #9eb4d9;
}
.ai-point-list {
  counter-reset: ai-point;
}
.ai-point-list li {
  counter-increment: ai-point;
}
.ai-point-text {
  flex: 1;
  line-height: 1.65;
  cursor: text;
  border-bottom: 1px dashed transparent;
}
.ai-point-text.editing {
  outline: none;
  border-bottom-color: #8bb3ff;
}
.ai-metric-rail {
  display: contents;
}
.ai-metric-trigger {
  width: 18px;
  min-height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb3d6;
}
.ai-metric-trigger svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease, color .18s ease;
}
.ai-summary-card:hover .ai-metric-trigger svg,
.ai-summary-card:focus-within .ai-metric-trigger svg {
  transform: translateX(1px);
  color: #dce8ff;
}
.ai-metric-inline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-self: stretch;
  width: 220px;
  padding-right: 6px;
  border-right: 1px solid rgba(191, 219, 254, 0.12);
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.ai-summary-card:hover .ai-metric-inline-grid,
.ai-summary-card:focus-within .ai-metric-inline-grid {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.ai-metric-inline {
  padding: 2px 0 10px;
}
.ai-metric-inline h4,
.ai-metric-inline p {
  margin: 0;
}
.ai-metric-inline h4 {
  font-size: 12px;
  color: #9fb3d6;
  font-weight: 600;
}
.ai-metric-inline p {
  margin-top: 4px;
  color: #ffffff;
  font-weight: 700;
}
.ai-metric-inline .meter {
  margin-top: 8px;
  background: rgba(226, 232, 240, 0.18);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #243447;
}
#resourcePanelHead {
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}
.count-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8f8ec;
  color: #16803d;
  font-size: 12px;
  font-weight: 700;
}
.resource-list,
.suggestion-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.resource-composer {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px dashed #c8d6eb;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.resource-composer.drag-over {
  border-color: #8ab3f2;
  background: #eef5ff;
  box-shadow: 0 0 0 4px rgba(58, 116, 233, 0.08);
}
.resource-composer-input {
  width: 100%;
  min-height: 88px;
  border: none;
  background: transparent;
  resize: vertical;
  color: var(--text);
  line-height: 1.6;
  outline: none;
}
.resource-composer-input::placeholder {
  color: #90a0b5;
}
.resource-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e6edf7;
}
.resource-list {
  counter-reset: resource;
  flex: 1;
}
.resource-list li,
.suggestion-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}
.resource-list.hidden {
  display: none;
}
.resource-list li:first-child,
.suggestion-list li:first-child { border-top: none; }
.resource-list li {
  counter-increment: resource;
}
.resource-list li::before {
  content: counter(resource) ".";
  color: #9aa7ba;
  font-size: 12px;
}
.resource-name { flex: 1; min-width: 0; }
.resource-link,
.resource-text {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.resource-link:hover {
  color: var(--blue);
  border-bottom-color: #a5c4f5;
}
.resource-text { cursor: text; }
.resource-text.editing {
  outline: none;
  border-bottom-color: #a5c4f5;
}
.resource-tag {
  font-style: normal;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf7f0;
  color: #3b8c52;
}
.list-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.action-btn.pinned {
  background: #e9f1ff;
  border-color: #c4d9ff;
  color: var(--blue);
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 8px;
  background: var(--panel);
  border: 1px solid rgba(223, 231, 242, 0.96);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.input-row input,
.input-row textarea {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid #dde6f2;
  padding: 12px 14px;
  font-size: 14px;
}
.input-row input {
  height: 42px;
}
.input-row textarea {
  min-height: 132px;
  line-height: 1.6;
  resize: vertical;
}
.input-row input:focus,
.input-row textarea:focus {
  outline: none;
  border-color: #bfd4f7;
  box-shadow: 0 0 0 4px rgba(58, 116, 233, 0.12);
}
.input-row button {
  width: 72px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9dc2f7, #6ea3eb);
  color: #fff;
}
.upload-text-row button {
  align-self: stretch;
}
.resource-bridge {
  padding: 0 4px;
  color: #7b8ba0;
  font-size: 13px;
  font-weight: 600;
}
.suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.suggestion-list {
  counter-reset: suggestion;
}
.suggestion-list li {
  counter-increment: suggestion;
}
.suggestion-list li::before {
  content: counter(suggestion) ".";
  color: #9aa7ba;
  font-size: 12px;
}
.suggestion-text {
  flex: 1;
  cursor: text;
  border-bottom: 1px dashed transparent;
}
.suggestion-text.editing {
  outline: none;
  border-bottom-color: #a5c4f5;
}
.suggestion-panel-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.suggestion-panel-grid .question-row {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 1060px) {
  .layout { grid-template-columns: 1fr; }
  .ai-summary-card {
    grid-template-columns: 1fr;
  }
  .ai-metric-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    padding-right: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(191, 219, 254, 0.12);
    border-right: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ai-metric-trigger {
    display: none;
  }
  .ai-summary-card:hover,
  .ai-summary-card:focus-within {
    grid-template-columns: 1fr;
  }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .layout { padding: 16px; }
  .hero-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-left { align-items: flex-start; }
  .ai-metric-inline-grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .input-row button { width: 100%; height: 42px; }
  .input-row textarea { min-height: 120px; }
}

.topbar-spacer {
  flex: 1;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.current-user-label {
  font-size: 13px;
  color: #60718a;
  font-weight: 700;
}
.resource-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.resource-panel-head.hidden {
  display: none;
}
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(237, 242, 250, 0.82);
  backdrop-filter: blur(18px);
  z-index: 60;
}
.auth-overlay.hidden {
  display: none;
}
.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 231, 242, 0.96);
  box-shadow: var(--shadow-md);
}
.auth-brand {
  font-size: 13px;
  font-weight: 800;
  color: #60718a;
}
.auth-card h1 {
  margin: 10px 0 18px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1;
  justify-content: center;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form.hidden {
  display: none;
}
.auth-tab.active {
  background: linear-gradient(180deg, #edf4ff, #e2edff);
  border-color: #c6dafc;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.06);
}
.auth-form input {
  height: 48px;
  border-radius: 16px;
  border: 1px solid #dde6f2;
  padding: 0 16px;
  font-size: 15px;
}
.auth-form input:focus {
  outline: none;
  border-color: #bfd4f7;
  box-shadow: 0 0 0 4px rgba(58, 116, 233, 0.12);
}
.auth-form button {
  height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #7aa7f4, #4b84dc);
  color: #fff;
  font-weight: 700;
}
.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #61738d;
  font-size: 14px;
}
.turnstile-box {
  display: none;
}
.turnstile-box.enabled {
  display: block;
  min-height: 70px;
}
.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(223, 231, 242, 0.96);
  box-shadow: -16px 0 36px rgba(35, 55, 88, 0.12);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.admin-panel.hidden {
  display: none;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-head h2 {
  margin: 0;
}
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.admin-user-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #e1e8f3;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.admin-user-title {
  font-size: 16px;
  font-weight: 700;
}
.admin-user-meta {
  margin-top: 6px;
  color: #73839b;
  font-size: 13px;
}
.admin-user-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.admin-user-actions button {
  flex: 1;
}
.empty-state {
  color: #73839b;
  padding: 16px 4px;
}
.loading-state {
  color: #73839b;
  padding: 16px 4px;
}
@media (max-width: 900px) {
  .topbar-user {
    width: 100%;
    justify-content: flex-end;
  }
}
