* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-surface-2: #f1f3f5;
  --border: #dee2e6;
  --fg: #212529;
  --fg-secondary: #495057;
  --fg-muted: #868e96;
  --accent: #0073bb;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-size: 20px;
  margin-bottom: 8px;
}
.login-box p {
  font-size: 14px;
  color: var(--fg-secondary);
  margin-bottom: 24px;
}
.login-box .status {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* Guide page */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.user-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-email {
  font-size: 11px;
  color: var(--fg-muted);
}

.signout {
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
}

.signout:hover {
  color: var(--accent);
}

.product-hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 40%, #f5f0ff 100%);
  border: 1px solid #d4e0f7;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 36px;
}

.omni-logo {
  width: auto;
  height: 64px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.product-hero h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.product-hero p {
  font-size: 15px;
  color: var(--fg-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Guide content */
h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 8px;
}

h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--fg);
}

section p {
  font-size: 14px;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

section ol,
section ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

section li {
  margin-bottom: 6px;
  line-height: 1.6;
}

section li strong {
  color: var(--fg);
}

section li code {
  background: var(--bg-surface-2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

section li ul {
  margin-top: 6px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.callout {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 12px;
}

.callout p {
  margin: 0;
}

.ref-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ref-summary {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  background: var(--bg-surface-2);
}

.ref-summary::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.15s;
}

details[open] > .ref-summary::before {
  transform: rotate(90deg);
}

details[open] > .ref-summary {
  border-bottom: 1px solid var(--border);
}

details:not([open]) > .ref-summary {
  border-bottom: none;
}

.ref-summary::-webkit-details-marker {
  display: none;
}

.ref-content {
  padding: 16px 20px 20px;
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.flow-block {
  margin-bottom: 12px;
}

.guide-intro {
  margin-bottom: 24px;
}
.guide-intro p {
  font-size: 15px;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

.beta-logistics {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-secondary);
}

.beta-logistics p {
  margin-bottom: 4px;
}

.page-footer {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 24px;
  padding-bottom: 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a[target='_blank']::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 9.012v-6H7M13.02 3 7 9.01M3 5.012v8h8.01' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 9.012v-6H7M13.02 3 7 9.01M3 5.012v8h8.01' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center;
  vertical-align: middle;
  opacity: 0.7;
}
