/* Shared portal brand layer; no external fonts, icon services or scripts. */
:root {
  --ink: #142d52; --muted: #61738f; --paper: #f4f8fe; --line: #dce7f5;
  --brand: #095fe5; --brand-dark: #0648b0; --accent: #06b6e8;
  --shadow: 0 4px 18px rgba(29,71,133,.045);
}
body { background: radial-gradient(ellipse at 85% 0%, #e5f3ff 0, transparent 40%), var(--paper); font-size: 14px; line-height: 1.65; }
:focus-visible { outline: 3px solid #0078d4; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 48px)); }
.skip-link { position: absolute; left: 20px; top: -70px; padding: 10px 16px; background: white; z-index: 50; }
.skip-link:focus { top: 10px; }
.site-header { background: rgba(255,255,255,.94); position: static; }
.header-inner { min-height: 86px; gap: 24px; }
.brand { gap: 12px; flex-shrink: 0; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; background: none; box-shadow: none; border-radius: 0; }
.brand strong, .brand small { line-height: 1.3; }
.brand strong { font-size: 23px; letter-spacing: .025em; color: #102e60; }
.brand small { font-size: 12px; letter-spacing: .08em; }
.company-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.company-brand img { object-fit: contain; }
.company-brand b { font-weight: 600; white-space: nowrap; }
.company-brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.nav-bar { border-top: 1px solid #edf3fa; background: #fbfdff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.nav-caption { color: var(--muted); font-size: 12px; }
.nav { flex-wrap: wrap; gap: 4px 20px; }
.nav a, .link-button { color: #46607f; padding: 10px 0; display: inline-block; }
.nav [aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
.nav a:hover, .link-button:hover { color: var(--brand); }
.nav a.nav-primary { padding: 5px 14px; border: 0; border-radius: 8px; color: var(--brand); background: #eaf3ff; }
.page { min-height: calc(100vh - 207px); padding: 32px 0 48px; }
.site-footer { padding: 20px 0; font-size: 12px; background: #f9fbff; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.eyebrow, .card-kicker { font-size: 11px; font-weight: 750; letter-spacing: .1em; }
h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.4; letter-spacing: -.025em; margin-bottom: 16px; }
h2 { font-size: 20px; line-height: 1.4; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.auth-layout { min-height: 510px; grid-template-columns: 1.1fr 1fr; gap: 70px; }
.auth-copy .eyebrow { margin-bottom: 14px; }
.auth-copy > p { max-width: 510px; font-size: 15px; }
.feature-line { max-width: 480px; font-weight: 500; }
.auth-card, .narrow-card, .card { min-width: 0; border-color: var(--line); border-radius: 16px; }
.auth-card, .narrow-card { padding: 34px; }
.narrow-card.compact { max-width: 640px; }
.form-grid label, .form-grid p { font-weight: 650; min-width: 0; }
input, select, textarea { min-width: 0; border-color: #c9d8ea; background: #fbfdff; border-radius: 9px; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px #095fe512; }
.form-error { border-radius: 9px; }
.button { border-radius: 9px; padding: 10px 18px; font-weight: 650; gap: 8px; min-height: 42px; }
.button .icon { width: 18px; height: 18px; }
.button.primary { background: linear-gradient(120deg, #0870f5, #095bda); box-shadow: 0 3px 8px #095fe51a; }
.button.secondary { border-color: #cadcf6; background: #f5f9ff; }
.button.secondary:hover { background: #eaf3ff; }
.wecom-login { margin-top: 14px; }
.hero-row, .section-title, .card-head { gap: 20px; }
.hero-row { align-items: center; margin-bottom: 24px; }
.hero-row h1 { font-size: 28px; margin: 3px 0 6px; overflow-wrap: anywhere; }
.hero-row p { margin-bottom: 0; }
.account-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); overflow-wrap: anywhere; }
.identity-badge { background: #e5efff; color: #1658ab; border-radius: 6px; padding: 2px 9px; font-size: 12px; }
.status-pill { padding: 4px 10px; font-weight: 650; background: #edf1f7; color: #5d6c82; }
.status-pill.success { background: #e5f6ef; color: #147653; }
.status-pill.warning { background: #fff2d7; color: #805509; }
.account-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.dashboard-grid { gap: 18px; margin-top: 0; }
.card { padding: 24px; }
.card h2 { margin: 5px 0 0; }
.heading-icon { display: flex; align-items: center; gap: 12px; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #dfebff; border-radius: 12px; background: #f0f6ff; color: var(--brand); }
.metrics { grid-template-columns: repeat(2, 1fr); margin: 22px 0 16px; }
.metrics div { background: #f6f9fe; border-radius: 10px; padding: 14px; }
.metrics small { margin-bottom: 5px; }
.metrics strong { font-size: 20px; color: #155fca; overflow-wrap: anywhere; }
.progress { height: 7px; background: #e8eff9; }
.progress span { max-width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.detail-list { margin-top: 20px; }
.detail-list div { gap: 12px; padding: 12px 0; }
.detail-list dd { font-weight: 650; }
.subscription-card { margin-top: 18px; }
.subscription-card h2 { font-size: 18px; }
.subscription-card p { margin-bottom: 0; }
.copy-row { margin-top: 18px; }
.copy-feedback { min-height: 20px; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.notice-line, .empty-note { border-radius: 9px; padding: 10px 13px; background: #fff8e9; color: #805510; margin: 14px 0; font-size: 13px; }
.empty-state { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; text-align: left; background: linear-gradient(115deg, #fff 45%, #f2f8ff); border: 1px solid var(--line); border-radius: 16px; padding: 30px; margin-top: 0; box-shadow: var(--shadow); }
.empty-state h2 { font-size: 24px; margin: 12px 0 8px; }
.empty-state p { color: var(--muted); max-width: 470px; margin-bottom: 18px; }
.setup-steps { list-style: none; margin: 0; padding: 4px 0 4px 30px; border-left: 1px solid var(--line); display: grid; align-content: center; gap: 20px; }
.setup-steps li { display: flex; align-items: flex-start; gap: 12px; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; background: #e9f2ff; border-radius: 8px; color: var(--brand); font-size: 12px; font-weight: 750; }
.setup-steps small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.section-block { margin-top: 26px; }
.section-title { margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title .icon { color: var(--brand); width: 21px; height: 21px; }
.section-subtitle { color: var(--muted); margin: 4px 0 0; font-size: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card h2 { font-size: 18px; }
.plan-card .plan-label { color: var(--brand); font-size: 17px; font-weight: 650; margin: 16px 0 10px; }
.plan-card .button { margin-top: auto; align-self: flex-start; }
.plan-card .muted { font-size: 13px; }
.table-wrap { border-radius: 12px; }
th, td { padding: 13px 16px; }
th { background: #f8fbff; white-space: nowrap; }
td { font-size: 13px; }
.records-empty { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.records-empty p { margin: 3px 0 0; font-size: 13px; }
.message { border-radius: 9px; }
@media (max-width: 900px) {
  .auth-layout { gap: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .nav-caption { display: none; }
  .nav-inner { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .page { padding: 24px 0 32px; }
  .header-inner { min-height: 78px; gap: 12px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 42px; height: 48px; }
  .company-brand { font-size: 10px; gap: 6px; }
  .company-brand img { width: 28px; height: 26px; }
  .company-brand small { display: none; }
  .company-brand > span { max-width: 68px; }
  .company-brand .powered-label { display: block; }
  .nav { gap: 0 16px; font-size: 12px; }
  .nav-inner { justify-content: flex-start; }
  .auth-layout, .empty-state { grid-template-columns: 1fr; }
  .auth-layout { min-height: 0; }
  .auth-copy { display: none; }
  .auth-card, .narrow-card, .card { padding: 20px; border-radius: 12px; }
  .hero-row { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .hero-row h1 { font-size: 24px; }
  .account-meta { font-size: 12px; }
  .empty-state { padding: 22px; gap: 22px; }
  .empty-state h2 { font-size: 22px; }
  .setup-steps { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; gap: 16px; }
  .form-grid.two-column { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics strong { font-size: 18px; }
  .copy-row { grid-template-columns: 1fr; }
  .section-title { gap: 12px; }
  .section-title .button { padding: 8px 12px; font-size: 12px; }
  .footer-inner { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
