:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { margin: 0; background: #0b0f19; color: #e8edf6; }
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 40px; }
.header h1 { margin: 0 0 6px; font-size: 34px; }
.sub { margin: 0; opacity: 0.85; }

.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.tab.active { background: rgba(255,255,255,0.12); }

.panel { display: none; }
.panel.active { display: block; }

.label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type="file"], input[type="url"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.2);
  color: inherit;
  outline: none;
}

.btn {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { background: rgba(255,255,255,0.18); }
.btn.secondary { background: rgba(0,0,0,0.12); }

.hint { opacity: 0.75; margin: 8px 0 0; font-size: 13px; }
.status { margin-top: 10px; min-height: 20px; opacity: 0.9; }
.hidden { display: none; }

.meterRow { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.meterWrap {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  overflow: hidden;
}
.meterFill { height: 100%; border-radius: 999px; background: rgba(82, 192, 255, 0.85); }

.meterText .score { font-size: 26px; font-weight: 800; line-height: 1; }
.labelText { opacity: 0.85; margin-top: 4px; font-size: 13px; }

.rationale { margin: 12px 0 0; padding-left: 18px; }
.rationale li { margin: 6px 0; opacity: 0.95; }

.shareRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.details { margin-top: 12px; opacity: 0.9; }
pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,0.25); padding: 10px; border-radius: 12px; }

.footer { margin-top: 18px; opacity: 0.7; text-align: center; }