/* ================================================================
   options-layout.css — Options page structure
   ================================================================ */

/* ── Top bar ── */
.opts-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--sep);
}

.opts-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* アイコン — 装飾なし、アクセントカラーなし */
.opts-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--label-2);
  flex-shrink: 0;
}

.opts-brand-webclass-img {
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.opts-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--label-1);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.opts-brand-version {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--label-3);
  letter-spacing: 0.02em;
}

/* ── Main ── */
.opts-main {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 16px;
}

/* ── Info banner ── */
.opts-info {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--sep);
  border-radius: var(--r-lg);
  margin-bottom: 32px;
}

.opts-info-icon {
  flex-shrink: 0;
  color: var(--label-3);
  margin-top: 1px;
}

.opts-info-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--label-2);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.opts-info-steps {
  font-size: var(--text-sm);
  color: var(--label-2);
  line-height: 1.75;
  list-style: none;
  counter-reset: step;
}

.opts-info-steps li {
  counter-increment: step;
}

.opts-info-steps li::before {
  content: counter(step) ". ";
  color: var(--label-3);
  font-weight: 500;
}

/* ── Section wrapper ── */
.opts-section {
  margin-bottom: 40px;
}

.opts-section-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.opts-section-icon {
  color: var(--label-3);
}

.opts-section-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--label-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Bottom bar ── */
.opts-bottom {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 24px;
}

/* ── Status ── */
.opts-status {
  visibility: hidden;
  opacity: 0;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: opacity var(--t-mid);
  /* 空の時も高さを確保 */
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opts-status.show {
  visibility: visible;
  opacity: 1;
}

.opts-status.success {
  color: var(--green);
  background: var(--green-muted);
  border-color: rgba(48, 209, 88, 0.25);
}

.opts-status.error {
  color: var(--red);
  background: var(--red-muted);
  border-color: rgba(255, 69, 58, 0.25);
}

.opts-status.info {
  color: var(--label-2);
  background: var(--bg-2);
  border-color: var(--sep);
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .opts-brand-version {
    display: none;
  }

  .opts-main {
    padding: 24px 14px 16px;
  }

  .opts-bottom {
    padding: 0 14px 20px;
  }
}