/* ============================================================
   Gloey · Frontend stylesheet
   SaaS startup aesthetic · monochrome + gold accent
   ============================================================ */
:root{
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-dark: #0a0a0a;
  --ink: #0a0a0a;
  --ink-2: #525252;
  --muted: #a3a3a3;
  --line: #e5e5e5;
  --line-soft: #f5f5f5;
  --accent: #c4a571;
  --accent-dark: #a0814f;
  --ok: #16a34a;
  --warn: #b45309;
  --err: #dc2626;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Pretendard", "SF Pro Text", "Noto Sans KR", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 { letter-spacing: -.025em; font-weight: 700; }

/* ===== Header ===== */
.tg-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tg-header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 640px) {
  .tg-header-inner { padding: 12px 14px; }
}
.tg-logo {
  font-weight: 800; font-size: 20px;
  letter-spacing: -.04em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.tg-logo .tg-face,
.tg-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.tg-logo b { font-weight: 800; }
.tg-logo i { font-style: normal; color: var(--accent); }
@media (max-width: 640px) {
  .tg-logo {
    font-size: 16px;
    gap: 8px;
  }
  .tg-logo .tg-face,
  .tg-logo svg { width: 28px !important; height: 28px !important; }
}
.tg-nav { display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.tg-nav a {
  color: var(--ink-2);
  padding: 7px 12px; border-radius: var(--r);
  font-weight: 500;
  letter-spacing: -.01em;
}
.tg-nav a:hover { color: var(--ink); background: var(--line-soft); }
.tg-nav a.on { color: var(--ink); background: var(--line-soft); }
.tg-lang {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 4px;
  display: inline-flex; gap: 6px; align-items: center;
}
.tg-lang a { padding: 0 3px; color: var(--muted) !important; background: none !important; }
.tg-lang a.on { color: var(--ink) !important; font-weight: 700; }
.tg-cta {
  background: var(--ink); color: #fff !important;
  padding: 8px 14px; border-radius: var(--r); font-weight: 600;
  font-size: 13px;
}
.tg-cta:hover { background: #1a1a1a !important; color: #fff !important; }
.tg-quiet { color: var(--muted) !important; font-size: 13px; }
.tg-main { max-width: 1120px; margin: 0 auto; padding: 28px 28px 60px; }

@media (max-width: 768px) {
  .tg-main { padding: 16px 12px 40px; max-width: 100%; }
}
@media (max-width: 480px) {
  .tg-main { padding: 12px 10px 30px; }
}

/* ===== Buttons ===== */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px;
  background: var(--ink); color: #fff !important;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-size: 14px; font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .12s;
}
.tg-btn:hover { background: #1a1a1a; border-color: #1a1a1a; }
.tg-btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.tg-btn-ghost:hover { background: var(--line-soft); }
.tg-btn-primary { background: var(--accent-dark); color: #fff !important; border-color: var(--accent-dark); }
.tg-btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.tg-btn-lg { padding: 12px 22px; font-size: 14.5px; }
.tg-btn-sm { padding: 6px 12px; font-size: 12.5px; }
.tg-btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: var(--r-sm); }
.tg-btn-block { width: 100%; }
.tg-btn-danger { background: #fff; color: var(--err) !important; border-color: #fca5a5; }

/* ===== Hero ===== */
.tg-hero {
  padding: 120px 0 80px;
  text-align: center;
}
.tg-hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  background: var(--line-soft);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: -.01em;
}
.tg-hero-eyebrow b { color: var(--accent-dark); font-weight: 700; }
.tg-hero h1 {
  font-size: 64px; font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.tg-hero-sub {
  font-size: 18px; color: var(--ink-2);
  max-width: 480px; margin: 0 auto 36px;
  letter-spacing: -.01em;
}
.tg-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Features ===== */
.tg-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 60px 0;
  overflow: hidden;
}
.tg-feat { background: var(--bg); padding: 32px; }
.tg-feat-icon {
  width: 36px; height: 36px;
  background: var(--ink); color: #fff;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-weight: 700; font-size: 14px;
}
.tg-feat h3 { font-size: 15.5px; margin-bottom: 6px; letter-spacing: -.02em; }
.tg-feat p { font-size: 13.5px; color: var(--ink-2); }

/* ===== Pricing ===== */
.tg-pricing {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px; margin: 80px auto 0;
}
.tg-plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.tg-plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.tg-plan-name {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.tg-plan.pro .tg-plan-name { color: var(--accent); }
.tg-plan-price { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.tg-plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tg-plan-alt { font-size: 12px; color: var(--muted); margin: 2px 0 22px; font-family: var(--mono); }
.tg-plan ul { list-style: none; font-size: 13.5px; }
.tg-plan li { padding: 5px 0; padding-left: 22px; position: relative; color: var(--ink-2); }
.tg-plan.pro li { color: rgba(255,255,255,.85); }
.tg-plan li::before {
  content: "→"; position: absolute; left: 0; font-weight: 600;
  color: var(--ink);
}
.tg-plan.pro li::before { color: var(--accent); }
.tg-plan .tg-btn { margin-top: 22px; }
.tg-plan.pro .tg-btn { background: #fff; color: var(--ink) !important; border-color: #fff; }
.tg-plan.pro .tg-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink) !important; }

/* ===== Forms ===== */
.tg-form { max-width: 380px; margin: 80px auto; }
.tg-form-wide { max-width: 460px; margin: 80px auto; }
.tg-form h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 4px; }
.tg-form-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.tg-field { margin-bottom: 14px; }
.tg-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px;
  letter-spacing: -.01em;
}
.tg-field input, .tg-field select, .tg-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  background: var(--bg);
  letter-spacing: -.01em;
}
.tg-field input:focus, .tg-field select:focus, .tg-field textarea:focus {
  outline: none; border-color: var(--ink);
}
.tg-oauth-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 10px;
  border: 1px solid var(--line); background: var(--bg);
  border-radius: var(--r);
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink) !important;
  cursor: pointer;
}
.tg-oauth-btn:hover { background: var(--line-soft); }
.tg-oauth-btn.apple { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.tg-divider {
  text-align: center; margin: 16px 0;
  color: var(--muted); font-size: 11px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
}
.tg-divider::before, .tg-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.tg-hint {
  background: var(--line-soft);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 12.5px; color: var(--ink-2);
  margin: 8px 0 18px;
  letter-spacing: -.01em;
}
.tg-hint b { color: var(--ink); }
.tg-error {
  background: #fef2f2; border: 1px solid #fecaca; color: var(--err);
  padding: 11px 14px; border-radius: var(--r); font-size: 13px;
  margin-bottom: 14px;
}
.tg-ok {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--ok);
  padding: 11px 14px; border-radius: var(--r); font-size: 13px;
  margin-bottom: 14px;
}

/* ===== Page head ===== */
.tg-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  gap: 14px; flex-wrap: wrap;
}
.tg-page-head h1 { font-size: 24px; letter-spacing: -.03em; font-weight: 800; }
.tg-page-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ===== Cards / Stats ===== */
.tg-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.tg-card + .tg-card { margin-top: 14px; }
.tg-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tg-card-head h2 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.tg-card-head a { font-size: 12px; color: var(--muted); font-weight: 500; }
.tg-card-head a:hover { color: var(--ink); }

.tg-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 22px;
}
.tg-stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.tg-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tg-stat-lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.tg-stat-delta { font-size: 11px; color: var(--ok); margin-top: 4px; font-weight: 600; }

.tg-grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }

/* ===== Badges ===== */
.tg-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--line-soft); color: var(--ink-2);
  font-size: 11px; font-weight: 600;
  letter-spacing: -.01em;
}
.tg-badge.pro { background: var(--ink); color: #fff; }
.tg-badge.ok { background: #dcfce7; color: #166534; }
.tg-badge.err { background: #fee2e2; color: #991b1b; }
.tg-badge.warn { background: #fef3c7; color: #92400e; }
.tg-badge.info { background: #eef2ff; color: #3730a3; }

/* ===== Days chip ===== */
.tg-days { display: flex; gap: 4px; margin: 10px 0 14px; }
.tg-day {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--line-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.tg-day.on { background: var(--ink); color: #fff; }
.tg-kv { font-size: 13px; color: var(--ink-2); }
.tg-kv b { color: var(--ink); }
.tg-kv + .tg-kv { margin-top: 4px; }

/* ===== Post list ===== */
.tg-postlist { list-style: none; }
.tg-postlist li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; gap: 10px;
}
.tg-postlist li:last-child { border-bottom: 0; }
.tg-postlist .pl-main { flex: 1; min-width: 0; }
.tg-postlist .pl-title {
  font-weight: 600; font-size: 13.5px;
  letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-postlist .pl-title a { color: inherit; }
.tg-postlist .pl-title a:hover { color: var(--accent-dark); }
.tg-postlist .pl-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.tg-postlist .pl-views { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ===== Analyze progress ===== */
.tg-analyze {
  max-width: 440px; margin: 100px auto;
  text-align: center;
}
.tg-spinner {
  width: 44px; height: 44px; margin: 0 auto 24px;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: tg-spin 0.9s linear infinite;
}
@keyframes tg-spin { to { transform: rotate(360deg); } }
.tg-analyze h1 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 6px; }
.tg-analyze p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.tg-steps {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  text-align: left;
  font-family: var(--mono);
  font-size: 12.5px;
}
.tg-steps li {
  padding: 7px 0 7px 24px;
  color: var(--muted);
  position: relative;
}
.tg-steps li::before {
  content: "—"; position: absolute; left: 0; top: 7px;
}
.tg-steps li.done { color: var(--ok); }
.tg-steps li.done::before { content: "✓"; }
.tg-steps li.active { color: var(--ink); font-weight: 600; }
.tg-steps li.active::before { content: "●"; color: var(--accent); }

/* ===== Article ===== */
.tg-article {
  max-width: 720px; margin: 0 auto;
  padding: 24px 0 0;
}
.tg-article h1 { font-size: 32px; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 12px; font-weight: 800; }
.tg-article-meta {
  color: var(--muted); font-size: 12.5px;
  font-family: var(--mono);
  margin-bottom: 24px;
}
.tg-article-body { font-size: 15.5px; line-height: 1.75; }
.tg-article-body h2 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -.02em; }
.tg-article-body h3 { font-size: 16px; margin: 22px 0 8px; letter-spacing: -.02em; }
.tg-article-body p { margin-bottom: 14px; color: var(--ink); }
.tg-article-body ul, .tg-article-body ol { margin-bottom: 14px; padding-left: 20px; }
.tg-article-body li { margin-bottom: 4px; }
.tg-article-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.tg-article-body figure { margin: 18px 0; }
.tg-article-body figcaption {
  font-size: 11.5px; color: var(--muted);
  font-family: var(--mono);
  margin-top: 6px; text-align: right;
}
.tg-article-body iframe { width: 100%; height: 320px; border: 0; border-radius: var(--r-lg); }

.tg-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.tg-tag {
  display: inline-block; padding: 3px 9px;
  background: var(--line-soft); border-radius: var(--r-sm);
  font-size: 11.5px; color: var(--ink-2);
  margin: 0 3px 4px 0;
  font-family: var(--mono);
}

/* ===== Table (post list page) ===== */
.tg-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tg-table thead th {
  text-align: left; padding: 10px 14px;
  background: var(--line-soft);
  font-weight: 600; font-size: 11px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .05em;
}
.tg-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.tg-table tbody tr:hover { background: var(--line-soft); }
.tg-table tbody tr:last-child td { border-bottom: 0; }

/* ===== Pagination ===== */
.tg-pager { display: flex; gap: 4px; justify-content: center; margin-top: 22px; }
.tg-pager a {
  padding: 6px 11px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 12.5px;
  font-family: var(--mono);
}
.tg-pager a:hover { background: var(--line-soft); }
.tg-pager a.on { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* ===== Footer ===== */
.tg-footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12.5px;
}
.tg-footer a { color: var(--muted); margin-left: 18px; }
.tg-footer a:hover { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .tg-hero { padding: 60px 0 40px; }
  .tg-hero h1 { font-size: 38px; }
  .tg-hero-sub { font-size: 15px; }
  .tg-features, .tg-pricing, .tg-grid-2, .tg-stats { grid-template-columns: 1fr; }
  /* Mobile nav: hide nav links but KEEP lang switcher + upgrade + logout */
  .tg-nav a:not(.tg-cta):not(.tg-quiet) { display: none; }
  .tg-lang { display: inline-flex !important; font-size: 11px; }
  .tg-lang a { padding: 0 4px !important; }
  .tg-nav { gap: 6px; }
  .tg-cta { padding: 7px 12px; font-size: 12px; }
  .tg-quiet { font-size: 12px; padding: 6px 8px; }
  .tg-article { padding: 12px; }
  .tg-article h1 { font-size: 24px; }
  .tg-footer { flex-direction: column; gap: 8px; }
  .tg-footer a { margin: 0 8px; }
}

/* ===== Live Marquee (landing page rolling cards) ===== */
.tg-live {
  margin: 80px -28px 0;
  padding: 40px 0 50px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tg-live-head {
  max-width: 1120px; margin: 0 auto 28px;
  padding: 0 28px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.tg-live-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err);
  box-shadow: 0 0 0 0 rgba(220,38,38, 0.7);
  animation: tg-live-pulse 2s infinite;
}
@keyframes tg-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220,38,38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38, 0); }
}
.tg-live-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--err);
  letter-spacing: .08em;
}
.tg-live-head h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -.025em;
  margin: 0 8px 0 4px;
}
.tg-live-head p {
  color: var(--muted); font-size: 13px;
  flex: 1; min-width: 200px;
}

.tg-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.tg-marquee-track {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  width: max-content;
  animation: tg-marquee 48s linear infinite;
}
.tg-marquee:hover .tg-marquee-track { animation-play-state: paused; }
@keyframes tg-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tg-live-card {
  flex: 0 0 320px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex; gap: 12px;
  align-items: center;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.tg-live-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.tg-live-card-img {
  width: 60px; height: 60px;
  border-radius: var(--r);
  overflow: hidden; flex-shrink: 0;
  background: var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.tg-live-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.tg-live-card-noimg {
  font-family: var(--font);
  font-size: 18px; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--muted);
}
.tg-live-card-body { flex: 1; min-width: 0; }
.tg-live-card-title {
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tg-live-card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex; gap: 4px;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-live-card-meta span:first-child {
  color: var(--accent-dark);
  font-weight: 600;
  font-family: var(--font);
}
.tg-live-card-when { color: var(--muted); }
.tg-live-card-sep { color: var(--line); }

@media (max-width: 720px) {
  .tg-live { margin: 50px -16px 0; }
  .tg-live-card { flex: 0 0 260px; }
  .tg-marquee-track { animation-duration: 36s; }
}

/* ============================================================

/* ============================================================
   Live status panel (landing)
   ============================================================ */
.tg-live2 {
  margin: 60px -28px 0;
  padding: 36px 28px 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tg-live2-head {
  max-width: 1120px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tg-live2-headleft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tg-live2-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err);
  box-shadow: 0 0 0 0 rgba(220,38,38, 0.7);
  animation: tg-pulse-anim 2s infinite;
}
@keyframes tg-pulse-anim {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220,38,38, 0); }
}
.tg-live2-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--err); letter-spacing: .08em;
}
.tg-live2-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.tg-live2-headright { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tg-live2-stat { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tg-live2-stat b {
  color: var(--ink); font-size: 16px; font-weight: 700;
  margin-right: 4px; letter-spacing: -.02em;
}

/* Marquee */
.tg-marquee2 {
  max-width: 1200px; margin: 0 auto;
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.tg-marquee2-track {
  display: flex; gap: 12px; padding: 6px 0;
  width: max-content;
  animation: tg-marq-anim 60s linear infinite;
}
.tg-marquee2:hover .tg-marquee2-track { animation-play-state: paused; }
@keyframes tg-marq-anim {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tg-live-card2 {
  flex: 0 0 320px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px;
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.tg-live-card2:hover { border-color: var(--ink); transform: translateY(-2px); }
.tg-live-card2-img {
  width: 64px; height: 64px; border-radius: var(--r);
  overflow: hidden; flex-shrink: 0;
  background: var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tg-live-card2-img img { width: 100%; height: 100%; object-fit: cover; }
.tg-live-card2-noimg {
  font-family: var(--font); font-size: 22px; font-weight: 800;
  letter-spacing: -.03em; color: var(--muted);
}
.tg-live-card2-grade {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff;
}
.tg-grade-S { background: #c4a571; }
.tg-grade-A { background: #16a34a; }
.tg-grade-B { background: #3b82f6; }
.tg-grade-C { background: #a3a3a3; }
.tg-grade-D { background: #6b7280; }
.tg-grade-F { background: #525252; }

.tg-live-card2-body { flex: 1; min-width: 0; }
.tg-live-card2-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; color: var(--err); margin-bottom: 4px;
}
.tg-live-card2-title {
  font-size: 13px; font-weight: 600;
  letter-spacing: -.015em; line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tg-live-card2-meta {
  font-size: 11px; color: var(--muted);
  display: flex; gap: 6px; align-items: center; font-family: var(--mono);
}
.tg-live-card2-meta span:first-child {
  color: var(--accent-dark); font-weight: 600; font-family: var(--font);
}
.tg-live-card2-sep { color: var(--line); }


/* ============================================================
   FACE SYSTEM v5 — no background, always alive
   7 simultaneous animations create non-repeating natural motion
   ============================================================ */
.tg-face {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.tg-face svg {
  display: block; width: 100%; height: 100%;
  overflow: visible;
}

/* Body motion layers — nested groups */
.tg-face-sway {
  transform-origin: 100px 100px;
  animation: tg-face-sway 5s ease-in-out infinite;
}
.tg-face-breath {
  transform-origin: 100px 100px;
  animation: tg-face-breath 4.4s ease-in-out infinite;
}
.tg-face-tilt {
  transform-origin: 100px 100px;
  animation: tg-face-tilt 7s ease-in-out infinite;
}
@keyframes tg-face-sway {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(1.5px); }
}
@keyframes tg-face-breath {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.018) translateY(-1.5px); }
}
@keyframes tg-face-tilt {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-0.8deg); }
  60% { transform: rotate(0.8deg); }
  85% { transform: rotate(-0.3deg); }
}

/* Eye groups */
.tg-face-saccade {
  transform-origin: 100px 90px;
  animation: tg-face-saccade 5s steps(1, end) infinite;
}
@keyframes tg-face-saccade {
  0%, 60%, 100% { transform: translate(0, 0); }
  62%, 64% { transform: translate(1.5px, 0); }
  66%, 100% { transform: translate(0, 0); }
}
.tg-face-look {
  transform-origin: 100px 90px;
  animation: tg-face-look 12s ease-in-out infinite;
}
@keyframes tg-face-look {
  0%, 24%, 100% { transform: translate(0, 0); }
  32%, 44% { transform: translate(-4px, -1px); }
  52%, 64% { transform: translate(4px, -1px); }
  72%, 82% { transform: translate(0, 3px); }
}

/* Individual eye blinks */
.tg-face-eye {
  transform-origin: center;
  transform-box: fill-box;
  animation: tg-face-blink 3.5s infinite;
}
.tg-face-eye-r { animation-delay: 0.06s; }
@keyframes tg-face-blink {
  0%, 91%, 95%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.05); }
}

/* Mouth subtle breath */
.tg-face-mouth-active {
  transform-origin: 100px 145px;
  transform-box: fill-box;
  animation: tg-face-mouth-breath 4.4s ease-in-out infinite;
}
@keyframes tg-face-mouth-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Mouth opacity transitions */
.tg-face-mouth {
  transition: opacity 1.4s cubic-bezier(.65,.05,.36,1);
}

/* Sizes (no background, just element span) */
.tg-face-xs { width: 32px; height: 32px; }
.tg-face-sm { width: 56px; height: 56px; }
.tg-face-md { width: 120px; height: 120px; }
.tg-face-lg { width: 200px; height: 200px; }
.tg-face-xl { width: 92px; height: 92px; }
.tg-face-xl { width: 280px; height: 280px; }
.tg-face-2xl { width: 380px; height: 380px; }
.tg-face-hero { width: 460px; height: 460px; }

/* Live glow (radial halo, no box) */
.tg-face-glow::after {
  content: ""; position: absolute; inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.25), transparent 70%);
  z-index: -1;
  animation: tg-face-halo 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tg-face-halo {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* State cycling animations */
/* ECSTATIC */
.tg-face-ecstatic .tg-face-mouth-1 { animation: tg-cyc-3a 13s infinite; }
.tg-face-ecstatic .tg-face-mouth-2 { animation: tg-cyc-3b 13s infinite; opacity: 0; }
.tg-face-ecstatic .tg-face-mouth-3 { animation: tg-cyc-3c 13s infinite; opacity: 0; }
.tg-face-ecstatic .tg-face-eyes-open { animation: tg-cyc-3a 13s infinite; }
.tg-face-ecstatic .tg-face-eyes-squint { animation: tg-cyc-3b 13s infinite; opacity: 0; }
.tg-face-ecstatic .tg-face-eyes-wink { animation: tg-cyc-3c 13s infinite; opacity: 0; }

/* HAPPY */
.tg-face-happy .tg-face-mouth-1 { animation: tg-cyc-3a 14s infinite; }
.tg-face-happy .tg-face-mouth-2 { animation: tg-cyc-3b 14s infinite; opacity: 0; }
.tg-face-happy .tg-face-mouth-3 { animation: tg-cyc-3c 14s infinite; opacity: 0; }
.tg-face-happy .tg-face-eyes-open { animation: tg-cyc-2a 14s infinite; }
.tg-face-happy .tg-face-eyes-wink { animation: tg-cyc-2b 14s infinite; opacity: 0; }

/* CONTENT */
.tg-face-content .tg-face-mouth-1 { animation: tg-cyc-2a 15s infinite; }
.tg-face-content .tg-face-mouth-2 { animation: tg-cyc-2b 15s infinite; opacity: 0; }

/* NEUTRAL */
.tg-face-neutral .tg-face-mouth-1 { animation: tg-cyc-2a 16s infinite; }
.tg-face-neutral .tg-face-mouth-2 { animation: tg-cyc-2b 16s infinite; opacity: 0; }

/* WORRIED (slower) */
.tg-face-worried .tg-face-breath { animation-duration: 6s; }
.tg-face-worried .tg-face-mouth-1 { animation: tg-cyc-2a 15s infinite; }
.tg-face-worried .tg-face-mouth-2 { animation: tg-cyc-2b 15s infinite; opacity: 0; }

/* SLEEPY (no blink, slower breath) */
.tg-face-sleepy .tg-face-breath { animation-duration: 7s; }
.tg-face-sleepy .tg-face-eye { animation: none; }

@keyframes tg-cyc-3a { 0%, 27%, 92%, 100% { opacity: 1; } 32%, 87% { opacity: 0; } }
@keyframes tg-cyc-3b { 0%, 27% { opacity: 0; } 32%, 57% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes tg-cyc-3c { 0%, 57% { opacity: 0; } 62%, 87% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes tg-cyc-2a { 0%, 40%, 80%, 100% { opacity: 1; } 45%, 75% { opacity: 0; } }
@keyframes tg-cyc-2b { 0%, 40% { opacity: 0; } 45%, 75% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* Z's for sleepy state */
.tg-face-z {
  animation: tg-face-z-rise 4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.tg-face-z-2 { animation-delay: 1.4s; }
.tg-face-z-3 { animation-delay: 2.8s; }
@keyframes tg-face-z-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(15px, -40px) scale(1.3); }
}

/* ============================================================
   Landing face hero (huge centered face)
   ============================================================ */
.tg-face-hero-section {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, #fff 0%, #f6f7f9 60%, #fff 100%);
  margin: 0 -28px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.tg-face-hero-section .tg-face { margin: 0 auto 32px; }
.tg-face-hero-msg {
  font-size: 36px; font-weight: 800; letter-spacing: -.04em;
  line-height: 1.1; margin: 0 0 10px;
}
.tg-face-hero-sub {
  font-size: 14.5px; color: var(--ink-2);
  font-family: var(--mono); margin-bottom: 24px;
  letter-spacing: -.01em;
}
.tg-face-hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  max-width: 600px; margin: 0 auto;
}
.tg-face-hero-stat {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: .02em;
}
.tg-face-hero-stat b {
  display: block; font-family: var(--font);
  font-size: 28px; font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; margin-bottom: 2px;
}

/* ============================================================
   Easy mode dashboard (v5)
   ============================================================ */
.tg-easy-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--line-soft); border-radius: 999px; padding: 3px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 700; letter-spacing: .05em;
  margin: 0 4px;
}
.tg-easy-toggle a {
  padding: 6px 14px; border-radius: 999px;
  color: var(--muted) !important;
  background: transparent !important;
  text-decoration: none;
}
.tg-easy-toggle a.on { background: var(--ink) !important; color: #fff !important; }

/* Stage: huge face takes >50% of viewport */
.tg-easy-stage {
  background: linear-gradient(180deg, #fff 0%, #f6f7f9 60%, #fff 100%);
  padding: 60px 0 70px;
  margin: 0 -28px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.tg-easy-stage-business {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 40px;
}
.tg-easy-stage .tg-face { margin: 0 auto 36px; }
.tg-easy-stage-msg {
  font-size: 42px; font-weight: 800; letter-spacing: -.045em;
  line-height: 1.05; margin: 0 0 12px;
}
.tg-easy-stage-sub {
  font-size: 15px; color: var(--ink-2);
  font-family: var(--mono); margin-bottom: 24px;
}
.tg-easy-stage-grade {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px;
}
.tg-easy-stage-grade-lbl {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); font-weight: 700; letter-spacing: .08em;
}
.tg-easy-stage-grade b {
  display: inline-block; width: 26px; height: 26px; border-radius: 7px;
  color: #fff; line-height: 26px; font-family: var(--mono);
  font-weight: 800; text-align: center; font-size: 13px;
}

/* OpenAI-style status list */
.tg-easy-status {
  max-width: 760px; margin: 50px auto 0;
  padding: 0 28px;
}
.tg-easy-status-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.tg-easy-status-head h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -.025em;
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.tg-easy-status-head h2 .sys-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  animation: tg-dot-pulse 2.6s infinite;
}
@keyframes tg-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(22,163,74,0); }
}
.tg-easy-status-head-overall {
  font-family: var(--mono); font-size: 12px;
  color: var(--ok); font-weight: 700;
}
.tg-easy-status-list {
  border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; background: var(--bg);
}
.tg-easy-status-row {
  display: flex; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft); gap: 14px;
}
.tg-easy-status-row:last-child { border-bottom: 0; }
.tg-easy-status-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
  font-family: var(--mono); flex-shrink: 0;
}
.tg-easy-status-name {
  font-weight: 700; font-size: 14px; letter-spacing: -.015em;
  flex: 1; min-width: 0;
}
.tg-easy-status-name small {
  display: block; font-family: var(--mono); font-size: 11px;
  color: var(--muted); font-weight: 500; margin-top: 2px;
}
.tg-easy-status-time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-right: 16px; }
.tg-easy-status-state {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  min-width: 110px; justify-content: flex-end;
}
.tg-easy-status-state-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tg-easy-status-row.live .tg-easy-status-state { color: var(--ok); }
.tg-easy-status-row.live .tg-easy-status-state-dot { background: var(--ok); animation: tg-dot-pulse 1.8s infinite; }
.tg-easy-status-row.active .tg-easy-status-state { color: #2563eb; }
.tg-easy-status-row.active .tg-easy-status-state-dot { background: #2563eb; }
.tg-easy-status-row.recent .tg-easy-status-state { color: var(--warn); }
.tg-easy-status-row.recent .tg-easy-status-state-dot { background: var(--warn); }
.tg-easy-status-row.idle .tg-easy-status-state { color: var(--muted); }
.tg-easy-status-row.idle .tg-easy-status-state-dot { background: var(--muted); }
.tg-easy-status-row.idle { background: #fafafa; }
.tg-easy-status-row.idle .tg-easy-status-icon { opacity: 0.4; }

/* Easy mode bottom strip: scores + recent posts */
.tg-easy-bottom {
  max-width: 1120px; margin: 50px auto 0;
  padding: 0 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tg-easy-scores {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.tg-easy-score {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px; text-align: center;
}
.tg-easy-score-name {
  font-family: var(--mono); font-size: 10px;
  font-weight: 800; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 8px;
}
.tg-easy-score-num {
  font-size: 32px; font-weight: 800; letter-spacing: -.03em;
}
.tg-easy-score-bar {
  height: 4px; background: var(--line-soft);
  border-radius: 2px; overflow: hidden;
  margin-top: 8px;
}
.tg-easy-score-bar span { display: block; height: 100%; border-radius: 2px; }

.tg-easy-posts {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.tg-easy-posts h3 {
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.tg-easy-posts h3 small {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); font-weight: 500; letter-spacing: 0;
}
.tg-easy-post-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.tg-easy-post-row:last-child { border-bottom: 0; }
.tg-easy-post-main { flex: 1; min-width: 0; }
.tg-easy-post-title {
  font-size: 13px; font-weight: 600; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-easy-post-title a { color: inherit; text-decoration: none; }
.tg-easy-post-meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); margin-top: 1px;
}
.tg-easy-post-grade {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 11px;
  font-weight: 800; flex-shrink: 0;
}
.tg-easy-post-grade.grade-S { background: #c4a571; }
.tg-easy-post-grade.grade-A { background: #16a34a; }
.tg-easy-post-grade.grade-B { background: #3b82f6; }
.tg-easy-post-grade.grade-C { background: #a3a3a3; }
.tg-easy-post-grade.grade-D { background: #6b7280; }
.tg-easy-post-grade.grade-F { background: #525252; }

/* Bot mini face row (landing) */
.tg-bot-faces-row {
  max-width: 1120px; margin: 30px auto 0;
  padding: 0 28px;
}
.tg-bot-faces-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tg-bot-face-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.tg-bot-face-item.live { background: #f0fdf4; border-color: #bbf7d0; }
.tg-bot-face-item.idle { opacity: 0.55; }
.tg-bot-face-name { font-weight: 700; font-size: 13px; letter-spacing: -.015em; margin-bottom: 2px; }
.tg-bot-face-status { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tg-bot-face-item.live .tg-bot-face-status { color: var(--ok); font-weight: 700; }

@media (max-width: 800px) {
  .tg-face-hero-section, .tg-easy-stage { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; }
  .tg-face-hero-msg, .tg-easy-stage-msg { font-size: 28px; }
  .tg-face-2xl { width: 240px !important; height: 240px !important; }
  .tg-face-hero { width: 280px !important; height: 280px !important; }
  .tg-easy-status-time { display: none; }
  .tg-easy-bottom { grid-template-columns: 1fr; }
  .tg-bot-faces-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-live2 { margin: 40px -16px 0; padding: 24px 16px; }
}

/* ============================================================
   Single post page - rich, responsive, SEO-optimized
   ============================================================ */
.tg-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 0 60px;
}

.tg-post-crumb {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.tg-post-crumb a { color: var(--muted); text-decoration: none; }
.tg-post-crumb a:hover { color: var(--ink); }
.tg-post-crumb span { color: var(--line); }

.tg-post-head { margin-bottom: 24px; }
.tg-post-business {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--accent-dark); letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tg-post-title {
  font-size: 36px; font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}
.tg-post-meta {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

.tg-post-hero {
  margin: 0 calc(-1 * (50vw - 50%)) 32px;
  padding: 0 calc(50vw - 50%);
  max-width: none;
}
.tg-post-hero img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.tg-post-hero figcaption {
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.tg-post-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: -.005em;
}
.tg-post-body p { margin-bottom: 1.2em; }
.tg-post-body h2 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.025em;
  margin: 2em 0 0.6em;
}
.tg-post-body h3 {
  font-size: 17px; font-weight: 700;
  margin: 1.6em 0 0.4em;
}
.tg-post-body ul, .tg-post-body ol {
  padding-left: 1.4em; margin-bottom: 1.2em;
}
.tg-post-body li { margin-bottom: 0.4em; }
.tg-post-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tg-post-body img {
  max-width: 100%; height: auto;
  border-radius: var(--r);
  margin: 1em 0;
}
.tg-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--ink-2);
  font-style: italic;
  margin: 1.4em 0;
}

/* Location card with map */
.tg-post-location {
  margin: 50px 0 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tg-post-location-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.tg-post-location-head h3 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}
.tg-post-location-head p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.tg-post-location-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--line-soft);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.tg-post-map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--line-soft);
}
.tg-post-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.tg-post-location-actions {
  padding: 14px 22px;
  display: flex; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}

.tg-post-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 32px 0;
}
.tg-post-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--line-soft);
  color: var(--ink-2);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px;
  font-weight: 600;
}

.tg-post-related {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.tg-post-related h2 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.tg-post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tg-post-related-card {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.tg-post-related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.tg-post-related-img {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line-soft);
}
.tg-post-related-img img { width: 100%; height: 100%; object-fit: cover; }
.tg-post-related-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: var(--muted);
}
.tg-post-related-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.tg-post-related-title {
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tg-post-related-meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}


/* ============================================================
   Per-business blog index page
   ============================================================ */
.tg-blog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.tg-blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.tg-blog-hero-info {
  display: flex; flex-direction: column;
  justify-content: center;
}
.tg-blog-hero-eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--accent-dark); letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tg-blog-hero-title {
  font-size: 44px; font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.tg-blog-hero-address {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.tg-blog-hero-stats {
  display: flex; gap: 28px;
}
.tg-blog-hero-stats > div {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.tg-blog-hero-stats b {
  display: block; font-family: var(--font);
  font-size: 24px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
.tg-blog-hero-stats small {
  display: block; font-size: 10.5px;
}

.tg-blog-hero-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--line-soft);
  position: relative;
  border: 1px solid var(--line);
}
.tg-blog-hero-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.tg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tg-blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.tg-blog-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.tg-blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.tg-blog-card-img {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--line-soft);
  overflow: hidden;
}
.tg-blog-card-featured .tg-blog-card-img {
  aspect-ratio: auto;
  min-height: 280px;
}
.tg-blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.tg-blog-card:hover .tg-blog-card-img img { transform: scale(1.03); }
.tg-blog-card-img-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 800;
  color: var(--muted);
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  width: 100%; height: 100%;
}
.tg-blog-card-grade {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  color: #fff;
}
.tg-blog-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
}
.tg-blog-card-featured .tg-blog-card-body {
  padding: 32px 32px;
  justify-content: center;
}
.tg-blog-card-date {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex; gap: 6px;
}
.tg-blog-card-title {
  font-size: 15.5px; font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin-bottom: 8px;
}
.tg-blog-card-featured .tg-blog-card-title {
  font-size: 26px;
  letter-spacing: -.03em;
}
.tg-blog-card-title a { color: inherit; text-decoration: none; }
.tg-blog-card-title a:hover { color: var(--accent-dark); }
.tg-blog-card-excerpt {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tg-blog-card-featured .tg-blog-card-excerpt {
  font-size: 15px;
  -webkit-line-clamp: 3;
}
.tg-blog-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}

.tg-blog-pager {
  display: flex; gap: 6px; justify-content: center;
  margin: 40px 0;
}
.tg-blog-pager a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--mono); font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.tg-blog-pager a.on {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

@media (max-width: 760px) {
  .tg-post-title { font-size: 26px; }
  .tg-post-body { font-size: 15.5px; }
  .tg-post-related-grid { grid-template-columns: 1fr; }

  .tg-blog-hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .tg-blog-hero-title { font-size: 30px; }
  .tg-blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .tg-blog-card-featured { grid-template-columns: 1fr; }
  .tg-blog-card-featured .tg-blog-card-img { min-height: 200px; aspect-ratio: 16 / 10; }
  .tg-blog-card-featured .tg-blog-card-body { padding: 18px 20px; }
  .tg-blog-card-featured .tg-blog-card-title { font-size: 20px; }
}


/* ============================================================
   v7 LANDING - FULL WIDTH · ALWAYS VIBRANT · NO CIRCLES
   ============================================================ */

/* Face communication status — small dot at corner (NO circle wrapper) */
.tg-face-comm-dot {
  position: absolute;
  bottom: 6%; right: 6%;
  width: 14%; height: 14%;
  max-width: 18px; max-height: 18px;
  min-width: 10px; min-height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
}
.tg-face-comm-dot-live {
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.7);
  animation: tg-comm-pulse 1.6s infinite;
}
.tg-face-comm-dot-active { background: #3b82f6; }
.tg-face-comm-dot-recent { background: #b45309; }
.tg-face-comm-dot-idle { background: #a3a3a3; }
@keyframes tg-comm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* RESET body padding from previous landing */
body { padding: 0 !important; }
html { background: #fff !important; }

/* === NAV === */
.gl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.gl-nav-inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
}
.gl-logo {
  font-weight: 800; font-size: 20px;
  letter-spacing: -.04em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.gl-nav-menu {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px;
}
.gl-nav-menu a {
  color: var(--ink-2); padding: 9px 14px;
  border-radius: 9px; font-weight: 500;
  text-decoration: none; transition: background .15s;
}
.gl-nav-menu a:hover { background: var(--line-soft); color: var(--ink); }
.gl-nav-cta { display: flex; align-items: center; gap: 10px; }
.gl-status-mini {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 700; color: #15803d;
  letter-spacing: .04em;
}
.gl-status-mini::before {
  content: ""; width: 7px; height: 7px;
  border-radius: 50%; background: #16a34a;
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit; transition: all .15s;
  letter-spacing: -.01em;
}
.gl-btn-primary {
  background: var(--ink); color: #fff;
}
.gl-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.gl-btn-ghost {
  background: transparent; color: var(--ink-2);
}
.gl-btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
.gl-btn-lg {
  padding: 16px 28px;
  font-size: 15.5px;
  border-radius: 14px;
  font-weight: 700;
}
.gl-btn-arrow {
  font-size: 18px;
  transition: transform .2s;
}
.gl-btn:hover .gl-btn-arrow { transform: translateX(3px); }

/* === HERO · FULL WIDTH === */
.gl-hero {
  position: relative;
  padding: 60px clamp(20px, 4vw, 56px) 90px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  overflow: hidden;
}
.gl-hero-bg-deco {
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(22,163,74,0.05), transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.gl-hero-inner {
  position: relative;
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.gl-hero-left {}
.gl-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px;
  font-weight: 700; color: var(--ink-2);
  letter-spacing: .04em;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.gl-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: #16a34a;
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin-bottom: 26px;
  color: var(--ink);
}
.gl-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #0a0a0a 0%, #525252 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gl-hero-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 580px;
  letter-spacing: -.01em;
}
.gl-hero-sub b { color: var(--ink); font-weight: 700; }
.gl-hero-cta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.gl-hero-trust {
  display: flex; gap: 32px; align-items: center;
  flex-wrap: wrap;
}
.gl-hero-trust-item {
  display: flex; flex-direction: column;
}
.gl-hero-trust-item b {
  font-family: var(--font);
  font-size: 26px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}
.gl-hero-trust-item small {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* HERO RIGHT === BIG FACE + ENGINE GRID === */
.gl-hero-right {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}
.gl-hero-agent {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.gl-hero-agent-face {
  position: relative;
}
.gl-hero-agent-face::before {
  content: ""; position: absolute;
  inset: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.12), transparent 65%);
  z-index: -1;
  animation: gl-agent-glow 3.5s ease-in-out infinite;
}
@keyframes gl-agent-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.gl-hero-agent-info {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.gl-status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid;
}
.gl-status-pill.live {
  background: #f0fdf4; color: #15803d;
  border-color: #bbf7d0;
}
.gl-status-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: #16a34a;
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-hero-agent-tick {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
}
.gl-hero-agent-tick b { color: var(--ink); font-weight: 700; }

/* ENGINE GRID */
.gl-engine-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gl-engine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center;
  gap: 10px;
  position: relative;
  transition: all .2s;
}
.gl-engine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  border-color: var(--ink);
}
.gl-engine-live {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.gl-engine-face .tg-face {
  width: 36px !important; height: 36px !important;
}
.gl-engine-info { flex: 1; min-width: 0; }
.gl-engine-name {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: -.015em;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.gl-engine-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 800;
  flex-shrink: 0;
}
.gl-engine-desc {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--muted); letter-spacing: -.005em;
}
.gl-engine-status {
  font-family: var(--mono); font-size: 9px;
  font-weight: 800; letter-spacing: .06em;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--line-soft);
  color: var(--muted);
}
.gl-engine-live .gl-engine-status {
  background: #dcfce7;
  color: #15803d;
}
.gl-engine-active .gl-engine-status {
  background: #dbeafe;
  color: #1d4ed8;
}

/* === STATS BAR · FULL WIDTH === */
.gl-stats-bar {
  background: #0a0a0a;
  padding: 36px clamp(20px, 4vw, 56px);
  color: #fff;
}
.gl-stats-bar-inner {
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gl-stat-roll {
  text-align: center;
  border-right: 1px solid #1f1f1f;
}
.gl-stat-roll:last-child { border-right: 0; }
.gl-stat-roll-num {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.gl-stat-roll-lbl {
  font-family: var(--mono); font-size: 11px;
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: #71717a;
}

/* === Sections: shared === */
.gl-section-wrap {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.gl-section-head { text-align: center; margin-bottom: 60px; }
.gl-section-eyebrow {
  font-family: var(--mono); font-size: 11.5px;
  font-weight: 700; color: var(--ink-2);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.gl-section-eyebrow.live {
  color: #16a34a;
  display: inline-flex; align-items: center; gap: 9px;
}
.gl-section-eyebrow.live::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: #16a34a;
  animation: tg-comm-pulse 1.4s infinite;
}
.gl-section-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.gl-section-sub {
  font-size: 17px; color: var(--ink-2);
  max-width: 600px; margin: 0 auto;
  line-height: 1.55;
  letter-spacing: -.005em;
}
.gl-section-sub-dark {
  font-size: 16px; color: #a1a1aa;
  max-width: 600px; margin: 0 auto;
  line-height: 1.55;
  font-family: var(--mono);
}

/* === HOW === */
.gl-how {
  padding: 100px 0;
  background: #fff;
}
.gl-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gl-step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 32px 36px;
  position: relative;
  transition: all .2s;
}
.gl-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  border-color: var(--ink);
}
.gl-step-face {
  margin-bottom: 24px;
}
.gl-step-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono); font-size: 13px;
  font-weight: 800; color: var(--muted);
  letter-spacing: .05em;
}
.gl-step h3 {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.gl-step p {
  font-size: 15.5px; line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -.005em;
}
.gl-step code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--ink); color: #fff;
  padding: 3px 8px; border-radius: 5px;
  letter-spacing: -.01em;
}

/* === LIVE EXPOSURE · FULL WIDTH DARK === */
.gl-exposure {
  padding: 100px 0 110px;
  background: #0a0a0a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gl-exposure::before {
  content: ""; position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(22,163,74,0.1), transparent 60%);
  pointer-events: none;
}
.gl-exposure-head { text-align: center; margin-bottom: 52px; position: relative; }
.gl-exposure-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 18px;
}

.gl-feed-wrap {
  background: #131313;
  border: 1px solid #262626;
  border-radius: 22px;
  padding: 28px;
  max-width: 1280px;
  margin: 0 auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  position: relative;
}
.gl-feed-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1f1f1f;
  flex-wrap: wrap; gap: 14px;
}
.gl-feed-head h3 {
  font-size: 15px; font-weight: 700;
  letter-spacing: -.015em;
  display: flex; align-items: center; gap: 11px;
  color: #fff; margin: 0;
}
.gl-feed-head h3 .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #16a34a;
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-feed-head-stats {
  display: flex; gap: 20px;
  font-family: var(--mono); font-size: 11.5px;
  color: #71717a;
}
.gl-feed-head-stats b { color: #fff; font-weight: 700; }

.gl-feed-stream {
  display: flex; flex-direction: column;
  gap: 5px;
  max-height: 580px;
  overflow: hidden;
  position: relative;
}
.gl-feed-stream::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, #131313);
  pointer-events: none; z-index: 1;
}
.gl-feed-row {
  display: grid;
  grid-template-columns: 80px 36px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  background: #1a1a1a;
  border-radius: 10px;
  font-family: var(--mono);
  border-left: 3px solid transparent;
  animation: gl-row-in 0.5s cubic-bezier(.2,.8,.4,1);
}
@keyframes gl-row-in {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.gl-feed-row.fresh {
  background: #1c2818;
  border-left-color: #16a34a;
}
.gl-feed-time { font-size: 11px; color: #71717a; letter-spacing: -.01em; }
.gl-feed-engine-logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12.5px; font-weight: 800;
  font-family: var(--mono);
}
.gl-feed-content { min-width: 0; }
.gl-feed-title {
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  color: #fff;
  letter-spacing: -.015em;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.gl-feed-meta {
  font-size: 11px; color: #71717a;
  display: flex; gap: 8px;
}
.gl-feed-meta .url { color: #93c5fd; }
.gl-feed-meta .sep { color: #404040; }
.gl-feed-meta .biz { color: #d4d4d8; font-weight: 600; }
.gl-feed-rank {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em;
  font-family: var(--mono);
}
.gl-feed-rank.r1 { background: rgba(22,163,74,0.25); color: #4ade80; }
.gl-feed-rank.r3 { background: rgba(22,163,74,0.18); color: #4ade80; }
.gl-feed-rank.r5 { background: rgba(59,130,246,0.18); color: #93c5fd; }
.gl-feed-rank.r10 { background: rgba(168,85,247,0.18); color: #d8b4fe; }
.gl-feed-rank.aeo { background: rgba(244,114,182,0.18); color: #f9a8d4; }
.gl-feed-action {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #71717a;
}
.gl-feed-action.new { color: #16a34a; }
.gl-feed-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #1f1f1f;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px;
  color: #71717a;
  flex-wrap: wrap; gap: 12px;
}
.gl-feed-foot-l b { color: #16a34a; }

/* === CUSTOMER WALL · FULL WIDTH === */
.gl-customers {
  padding: 100px 0;
  background: #faf8f5;
}
.gl-customer-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gl-customer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.gl-customer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.08);
  border-color: var(--ink);
}
.gl-customer-face {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}
.gl-customer-live-dot {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 16px; height: 16px;
  background: #16a34a;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-customer-name {
  font-size: 17px; font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 3px;
}
.gl-customer-city {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.gl-customer-result {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  align-items: center;
}
.gl-customer-kw {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-2);
  font-style: italic;
  letter-spacing: -.005em;
}
.gl-customer-rank {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em;
}

/* === TRUST === */
.gl-trust {
  padding: 60px clamp(20px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gl-trust-inner {
  max-width: 1640px; margin: 0 auto;
  text-align: center;
}
.gl-trust-lbl {
  font-family: var(--mono); font-size: 11.5px;
  font-weight: 700; color: var(--muted);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 28px;
}
.gl-trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 60px); flex-wrap: wrap;
  font-family: var(--font); font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--ink-3);
  letter-spacing: -.025em;
}

/* === CTA · FULL WIDTH DARK === */
.gl-cta {
  padding: 110px clamp(20px, 4vw, 56px);
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}
.gl-cta-inner {
  max-width: 800px;
  margin: 0 auto;
}
.gl-cta-face-row {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}
.gl-cta-face-mini { opacity: 0.5; }
.gl-cta h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em; line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}
.gl-cta p {
  font-size: 18px; line-height: 1.55;
  color: #a1a1aa;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.gl-cta .gl-btn-primary {
  background: #fff; color: #0a0a0a;
}
.gl-btn-cta-final {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 14px;
}
.gl-cta-trust {
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
  color: #71717a;
}

/* === Mobile · responsive === */
@media (max-width: 1100px) {
  .gl-hero-inner { gap: 40px; }
  .gl-engine-grid { grid-template-columns: repeat(2, 1fr); }
  .gl-customer-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .gl-hero { padding: 40px clamp(16px, 4vw, 32px) 70px; }
  .gl-hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .gl-hero h1 { font-size: 38px; }
  .gl-hero-sub { font-size: 16px; }
  .gl-hero-trust { gap: 22px; }
  .gl-hero-trust-item b { font-size: 22px; }
  .gl-engine-grid { grid-template-columns: repeat(2, 1fr); }
  .gl-stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gl-stat-roll { border-right: 0; padding: 8px 0; }
  .gl-how, .gl-customers, .gl-exposure, .gl-cta { padding-top: 60px; padding-bottom: 70px; }
  .gl-how-steps { grid-template-columns: 1fr; }
  .gl-section-head h2 { font-size: 28px; }
  .gl-section-sub { font-size: 15px; }
  .gl-customer-wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gl-customer-card { padding: 24px 16px 22px; }
  .gl-customer-name { font-size: 15px; }
  .gl-cta h2 { font-size: 28px; }
  .gl-cta p { font-size: 15px; }
  .gl-nav-menu { display: none; }
  .gl-feed-wrap { padding: 18px; }
  .gl-feed-head-stats { display: none; }
  .gl-feed-row { grid-template-columns: 64px 28px 1fr auto; gap: 10px; padding: 10px 12px; }
  .gl-feed-action { display: none; }
  .gl-feed-title { font-size: 12px; }
  .tg-face-hero { width: 280px !important; height: 280px !important; }
  .tg-face-xl { width: 180px !important; height: 180px !important; }
  .gl-cta-face-mini { display: none; }
}
@media (max-width: 540px) {
  .gl-hero h1 { font-size: 30px; }
  .gl-customer-wall { grid-template-columns: 1fr; }
  .gl-engine-grid { grid-template-columns: 1fr; }
  .tg-face-hero { width: 220px !important; height: 220px !important; }
  .gl-status-mini { display: none; }
  .gl-feed-rank { font-size: 9px; padding: 3px 7px; }
  .gl-feed-meta { font-size: 10px; }
}

/* === Landing page main wrapper (no padding/max-width constraints) === */
.tg-main-landing {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.tg-landing-page {
  background: #fff;
}
body.tg-landing-page footer.tg-footer {
  max-width: 1640px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
}
body.tg-landing-page footer.tg-footer a {
  color: var(--ink-2); text-decoration: none; margin-left: 14px;
}
body.tg-landing-page footer.tg-footer a:hover { color: var(--ink); }

/* === Landing language switcher === */
.gl-lang-switch {
  display: inline-flex;
  background: var(--line-soft);
  border-radius: 8px;
  padding: 3px;
  gap: 0;
}
.gl-lang-switch a {
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.gl-lang-switch a.on {
  background: var(--ink);
  color: #fff;
}
.gl-lang-switch a:not(.on):hover { color: var(--ink); }
@media (max-width: 700px) {
}

/* === LIVE COUNT (replaces customer wall) === */
.gl-livecount {
  padding: 70px clamp(20px, 4vw, 56px);
  background: #fafafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gl-livecount-inner {
  max-width: 1640px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.gl-livecount-face { flex-shrink: 0; }
.gl-livecount-text { flex: 1; min-width: 0; max-width: 600px; }
.gl-livecount-num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.gl-livecount-num b {
  font-family: var(--font);
  color: var(--ok);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gl-livecount-sub {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -.005em;
}
.gl-livecount-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--ok);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 700; color: var(--ok);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gl-livecount-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  animation: tg-comm-pulse 1.6s infinite;
}
@media (max-width: 700px) {
  .gl-livecount-inner { flex-direction: column; text-align: center; }
  .gl-livecount-num { font-size: 22px; }
}

/* === Agent status badges by real comm state === */
.gl-status-mini.gl-agent-working {
  background: #f0fdf4; border-color: #bbf7d0; color: #15803d;
}
.gl-status-mini.gl-agent-working::before {
  background: #16a34a; animation: tg-comm-pulse 1.6s infinite;
}
.gl-status-mini.gl-agent-active {
  background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8;
}
.gl-status-mini.gl-agent-active::before { background: #3b82f6; }
.gl-status-mini.gl-agent-standby {
  background: #fff7ed; border-color: #fed7aa; color: #b45309;
}
.gl-status-mini.gl-agent-standby::before { background: #b45309; }

/* Hero pill states */
.gl-status-pill.gl-agent-pill-working {
  background: #f0fdf4; color: #15803d; border-color: #bbf7d0;
}
.gl-status-pill.gl-agent-pill-working .gl-status-pill-dot {
  background: #16a34a; animation: tg-comm-pulse 1.6s infinite;
}
.gl-status-pill.gl-agent-pill-active {
  background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe;
}
.gl-status-pill.gl-agent-pill-active .gl-status-pill-dot { background: #3b82f6; }
.gl-status-pill.gl-agent-pill-standby {
  background: #fff7ed; color: #b45309; border-color: #fed7aa;
}
.gl-status-pill.gl-agent-pill-standby .gl-status-pill-dot { background: #b45309; }

/* Engine card states */
.gl-engine-card.gl-engine-live {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.gl-engine-card.gl-engine-live .gl-engine-status {
  background: #dcfce7; color: #15803d;
}
.gl-engine-card.gl-engine-active {
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
.gl-engine-card.gl-engine-active .gl-engine-status {
  background: #dbeafe; color: #1d4ed8;
}
.gl-engine-card.gl-engine-recent {
  background: #fff;
}
.gl-engine-card.gl-engine-recent .gl-engine-status {
  background: #fff7ed; color: #b45309;
}
.gl-engine-card.gl-engine-standby {
  background: #fff;
}
.gl-engine-card.gl-engine-standby .gl-engine-status {
  background: var(--line-soft); color: var(--muted);
}

/* ============================================================
   v8: KOREAN TEXT WRAPPING FIX + MOBILE LAYOUT FIX
   ============================================================ */
/* Korean: never break mid-word. Apply globally. */
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4,
:lang(ko) p, :lang(ko) span, :lang(ko) a, :lang(ko) div,
.gl-hero h1, .gl-hero-sub, .gl-section-head h2, .gl-section-sub,
.gl-step h3, .gl-step p, .gl-cta h2, .gl-cta p,
.gl-exposure-head h2, .gl-livecount-num,
.tga-head h1, .tga-card h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-hyphens: none; hyphens: none;
}

/* Korean h1 — smaller cap so it doesn't overflow on tablets */
html[lang="ko"] .gl-hero h1 { font-size: clamp(32px, 5vw, 60px); }
html[lang="ko"] .gl-hero-sub { font-size: clamp(15px, 1.4vw, 18px); }
html[lang="ko"] .gl-section-head h2,
html[lang="ko"] .gl-exposure-head h2,
html[lang="ko"] .gl-cta h2 { font-size: clamp(26px, 3.8vw, 46px); }

/* Hero grid override on KR — keep tight */
html[lang="ko"] .gl-hero-inner { gap: 40px; }

/* Mobile: stack everything cleanly, hide engine grid overflow */
@media (max-width: 1000px) {
  .gl-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .gl-hero-right { width: 100%; max-width: 560px; margin: 0 auto; }
  html[lang="ko"] .gl-hero h1 { font-size: clamp(28px, 6.5vw, 44px); line-height: 1.15; }
  .gl-engine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  html[lang="ko"] .gl-hero h1 { font-size: 28px; }
  html[lang="ko"] .gl-hero-sub { font-size: 15px; line-height: 1.6; }
  .gl-engine-grid { grid-template-columns: 1fr; }
  .gl-hero-trust { gap: 16px; }
  .gl-hero-trust-item b { font-size: 18px; }
  .gl-hero-trust-item small { font-size: 10px; }
}

/* === v9: Mobile language switcher === */
/* Landing nav: show on mobile, more compact */
@media (max-width: 700px) {
  .gl-lang-switch {
    display: inline-flex !important;
    padding: 2px;
    margin-right: 4px;
  }
  .gl-lang-switch a {
    padding: 4px 7px;
    font-size: 10px;
  }
  /* Hide "AGENT WORKING" badge on tiny screens to save room */
  .gl-status-mini { display: none; }
  /* Hide "Log in" button on mobile (already a hamburger in nav) — keep "Start free" */
  .gl-nav-cta .gl-btn-ghost { display: none; }
  .gl-btn { padding: 8px 14px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .gl-lang-switch a { padding: 3px 6px; font-size: 9.5px; }
  .gl-nav-inner { padding: 12px 14px; gap: 6px; }
  .gl-logo { font-size: 17px; gap: 8px; }
  .gl-logo .tg-face { width: 26px !important; height: 26px !important; }
}

/* ============================================================
   v10: MOBILE FEED FIX (no more overlap) + OPENAI-STATUS-STYLE ENGINES
   ============================================================ */

/* Feed mobile - 2-row grid: time/logo/rank on top, content full-width below */
@media (max-width: 700px) {
  .gl-feed-row {
    display: grid !important;
    grid-template-columns: 50px 30px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
    padding: 10px 12px;
    align-items: center;
  }
  .gl-feed-time {
    grid-row: 1; grid-column: 1;
    font-size: 10px;
  }
  .gl-feed-engine-logo {
    grid-row: 1; grid-column: 2;
    width: 26px; height: 26px;
  }
  .gl-feed-rank {
    grid-row: 1; grid-column: 4;
    justify-self: end;
    font-size: 9px;
    padding: 3px 7px;
  }
  .gl-feed-content {
    grid-row: 2; grid-column: 1 / -1;
    min-width: 0;
    padding-left: 2px;
  }
  .gl-feed-title { font-size: 12px; }
  .gl-feed-meta { font-size: 10px; gap: 5px; }
  .gl-feed-meta .url {
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
    display: inline-block;
    vertical-align: bottom;
  }
  .gl-feed-action { display: none !important; }
}
@media (max-width: 440px) {
  .gl-feed-row {
    grid-template-columns: 42px 26px 1fr auto;
    gap: 3px 6px;
    padding: 9px 10px;
  }
  .gl-feed-title { font-size: 11.5px; }
  .gl-feed-meta { font-size: 9.5px; }
}

/* ============================================================
   OPENAI-STATUS-PAGE STYLE engine cards
   ============================================================ */
.gl-engine-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
  overflow: visible;
}
.gl-engine-card::after {
  content: ""; position: absolute;
  bottom: -1px; left: 14%; right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ok), transparent);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  border-radius: 2px;
}
.gl-engine-card.is-checking::after { opacity: 1; }

.gl-engine-card .gl-engine-face .tg-face {
  width: 36px !important; height: 36px !important;
}

.gl-engine-info { min-width: 0; }
.gl-engine-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 3px;
}
.gl-engine-name .gl-engine-logo {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono);
  font-size: 10px; font-weight: 800;
}
.gl-engine-desc {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
  display: flex; align-items: center; gap: 4px;
  letter-spacing: -.005em;
}
.gl-engine-desc::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}

/* "Checked Xs ago" timer (OpenAI status style) */
.gl-engine-check {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -.005em;
}
.gl-engine-check::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  animation: gl-engine-check-pulse 1.2s infinite;
}
.gl-engine-card.is-checking .gl-engine-check::before {
  background: var(--ok);
  animation: gl-engine-check-now 0.6s ease-out;
}
@keyframes gl-engine-check-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes gl-engine-check-now {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0.7); }
  100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.gl-engine-status {
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 800; letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}

/* === Status color states === */
.gl-engine-card.gl-engine-live {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.gl-engine-card.gl-engine-live .gl-engine-status {
  background: #dcfce7; color: #15803d;
}
.gl-engine-card.gl-engine-active {
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
.gl-engine-card.gl-engine-active .gl-engine-status {
  background: #dbeafe; color: #1d4ed8;
}
.gl-engine-card.gl-engine-recent .gl-engine-status {
  background: #fff7ed; color: #b45309;
}
.gl-engine-card.gl-engine-standby .gl-engine-status {
  background: #fafafa; color: #737373;
}

/* === System health bar at top of engine grid === */
.gl-system-health {
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  margin-bottom: 4px;
}
.gl-system-health.degraded {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border-color: #fed7aa;
}
.gl-system-health.standby {
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border-color: var(--line);
}
.gl-system-health-left {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.gl-system-health-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  position: relative;
}
.gl-system-health-dot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: tg-comm-pulse 1.6s infinite;
}
.gl-system-health.degraded .gl-system-health-dot,
.gl-system-health.degraded .gl-system-health-dot::before { background: #b45309; }
.gl-system-health.standby .gl-system-health-dot,
.gl-system-health.standby .gl-system-health-dot::before {
  background: var(--muted);
  animation: none;
}
.gl-system-health-right {
  font-size: 10.5px;
  color: var(--ink-2);
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
}
.gl-system-health-right b {
  color: var(--ink); font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .gl-system-health { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .gl-system-health-right { font-size: 10px; }
  .gl-engine-card { padding: 12px 14px !important; }
  .gl-engine-name { font-size: 13px; }
  .gl-engine-desc { font-size: 10px; }
}

/* === Engine grid layout: 1-column status-page style on all sizes === */
.gl-engine-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.gl-engine-grid .gl-system-health {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .gl-engine-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* ============================================================
   v11: USER DASHBOARD / MYPAGE
   ============================================================ */
.tg-dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px);
  word-break: keep-all;
}
.tg-dash-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.tg-dash-head-left {
  display: flex; align-items: center; gap: 18px;
  flex: 1; min-width: 0;
}
.tg-dash-head-left .tg-face { flex-shrink: 0; }

.tg-dash-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 18px;
}
.tg-dash-stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s;
}
.tg-dash-stat:hover { border-color: var(--ink-2); }
.tg-dash-stat-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
}
.tg-dash-stat-info b {
  display: block; font-size: 20px; font-weight: 800;
  letter-spacing: -.025em; color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tg-dash-stat-info span {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: .02em;
  text-transform: uppercase;
}

.tg-dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.tg-dash-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 22px;
}
.tg-dash-card h2 {
  font-size: 13px; font-weight: 800;
  font-family: var(--mono);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2);
}
.tg-dash-card-icon {
  width: 26px; height: 26px;
  border-radius: 6px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

.tg-sub-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 800; letter-spacing: .05em;
  margin-bottom: 14px;
}
.tg-sub-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.tg-sub-active { background: #dcfce7; color: #15803d; }
.tg-sub-active .tg-sub-status-dot {
  background: #16a34a;
  animation: tg-comm-pulse 1.6s infinite;
}
.tg-sub-cancelled { background: #fff7ed; color: #b45309; }
.tg-sub-cancelled .tg-sub-status-dot { background: #b45309; }
.tg-sub-expired { background: #fee2e2; color: #b91c1c; }
.tg-sub-expired .tg-sub-status-dot { background: #dc2626; }

.tg-sub-detail, .tg-biz-info {
  display: flex; flex-direction: column; gap: 8px;
}
.tg-sub-row, .tg-biz-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.tg-sub-row:last-child, .tg-biz-row:last-child { border-bottom: 0; }
.tg-sub-lbl {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .02em;
  text-transform: uppercase;
}
.tg-sub-row b, .tg-biz-row b {
  font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.tg-link {
  color: #3b82f6; text-decoration: none; font-weight: 600;
  font-family: var(--mono); font-size: 12px;
  word-break: break-all;
}

/* User per-engine cards */
.tg-user-engines {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.tg-user-engine {
  background: #fafafa; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
  display: grid; grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 4px 10px; align-items: center;
}
.tg-user-engine.tg-user-engine-live {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.tg-user-engine.tg-user-engine-active {
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
.tg-user-engine.tg-user-engine-recent { background: #fff7ed; border-color: #fed7aa; }
.tg-user-engine-logo {
  grid-row: 1 / 3; grid-column: 1;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 14px; font-weight: 800;
}
.tg-user-engine-name {
  grid-row: 1; grid-column: 2;
  font-weight: 800; font-size: 13.5px;
  letter-spacing: -.02em;
}
.tg-user-engine-last {
  grid-row: 2; grid-column: 2;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}
.tg-user-engine-status {
  grid-row: 1; grid-column: 3;
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px;
  background: var(--line-soft); color: var(--muted);
}
.tg-user-engine-live .tg-user-engine-status { background: #dcfce7; color: #15803d; }
.tg-user-engine-active .tg-user-engine-status { background: #dbeafe; color: #1d4ed8; }
.tg-user-engine-recent .tg-user-engine-status { background: #fed7aa; color: #b45309; }
.tg-user-engine-count {
  grid-row: 3; grid-column: 1 / -1;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-2); padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  text-align: right;
  font-weight: 700;
}

/* User exposure feed */
.tg-user-feed { display: flex; flex-direction: column; gap: 5px; max-height: 380px; overflow-y: auto; }
.tg-user-feed-row {
  display: grid; grid-template-columns: 50px 30px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  font-family: var(--mono);
}
.tg-user-feed-time { font-size: 10.5px; color: var(--muted); }
.tg-user-feed-logo {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 800;
}
.tg-user-feed-content { min-width: 0; }
.tg-user-feed-title {
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-user-feed-meta {
  font-size: 10.5px; color: #3b82f6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-user-feed-rank {
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px;
}
.tg-user-feed-rank.r3 { background: #dcfce7; color: #15803d; }
.tg-user-feed-rank.r5 { background: #dbeafe; color: #1d4ed8; }
.tg-user-feed-rank.r10 { background: #ede9fe; color: #6b21a8; }
.tg-user-feed-rank.aeo { background: #fce7f3; color: #be185d; }

/* Btns reuse */
.tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit;
  background: var(--ink); color: #fff;
  transition: all .15s;
}
.tg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.tg-btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.tg-btn-ghost:hover { background: var(--line-soft); transform: none; box-shadow: none; }
.tg-muted { color: var(--muted); }

/* Mobile */
@media (max-width: 900px) {
  .tg-dash-stats { grid-template-columns: repeat(3, 1fr); }
  .tg-dash-grid { grid-template-columns: 1fr; gap: 12px; }
  .tg-user-engines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tg-dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tg-user-engines { grid-template-columns: 1fr; }
  .tg-user-feed-row { grid-template-columns: 40px 28px 1fr; }
  .tg-user-feed-rank { display: none; }
  .tg-dash-head { flex-direction: column; align-items: flex-start; }
  /* Full-width dashboard cards on mobile */
  .tg-dash-card {
    padding: 16px 14px;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .tg-dash-card h2 { font-size: 15px; }
  .tg-dash-stat-num { font-size: 22px !important; }
  .tg-dash-stat-lbl { font-size: 10px !important; }
}

/* ============================================================
   v12: PRICING SECTION (Free vs Pro)
   ============================================================ */
.gl-pricing {
  padding: 90px 0;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.gl-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 920px; margin: 0 auto;
}
.gl-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px 32px;
  position: relative;
  transition: all .2s;
}
.gl-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.08);
}
.gl-plan-free {}
.gl-plan-pro {
  background: linear-gradient(165deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  border: 1px solid #262626;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.gl-plan-pro:hover { box-shadow: 0 36px 80px rgba(0,0,0,0.28); }
.gl-plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.gl-plan-head { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.gl-plan-pro .gl-plan-head { border-bottom-color: #262626; }
.gl-plan-face { margin-bottom: 14px; }
.gl-plan-face .tg-face { margin: 0 auto; }
.gl-plan-name {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.gl-plan-tagline {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); letter-spacing: .02em;
  margin-bottom: 18px;
}
.gl-plan-pro .gl-plan-tagline { color: #a1a1aa; }
.gl-plan-price {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-top: 4px;
}
.gl-plan-price-num {
  font-size: 44px; font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.gl-plan-price-period {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); font-weight: 600;
}
.gl-plan-pro .gl-plan-price-period { color: #a1a1aa; }
.gl-plan-price-alt {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-top: 8px;
}
.gl-plan-pro .gl-plan-price-alt { color: #71717a; }

.gl-plan-features {
  list-style: none; padding: 24px 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.gl-plan-features li {
  font-size: 14px;
  line-height: 1.5;
  display: flex; align-items: flex-start;
  gap: 10px;
  letter-spacing: -.005em;
  word-break: keep-all;
}
.gl-plan-features li.gl-plan-feat-dim {
  color: var(--muted);
}
.gl-plan-tick, .gl-plan-cross {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  font-family: var(--mono);
  margin-top: 1px;
}
.gl-plan-tick { background: #dcfce7; color: #15803d; }
.gl-plan-tick.pro { background: #fef9c3; color: #a16207; }
.gl-plan-cross { background: var(--line-soft); color: var(--muted); }

.gl-plan-pro .gl-plan-features li { color: #f5f5f5; }
.gl-plan-pro .gl-plan-features li b { color: #fff; font-weight: 700; }
.gl-plan-pro .gl-plan-tick.pro { background: #fbbf24; color: #78350f; }

.gl-plan-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.gl-plan-pro .gl-btn-primary {
  background: #fff; color: #0a0a0a;
}
.gl-plan-pro .gl-btn-primary:hover { box-shadow: 0 12px 30px rgba(255,255,255,0.15); }
.gl-plan-payment-note {
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: #a1a1aa;
  letter-spacing: -.005em;
}

.gl-pricing-fine {
  text-align: center;
  margin-top: 28px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .gl-pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .gl-plan { padding: 28px 24px 26px; }
  .gl-plan-price-num { font-size: 36px; }
  .gl-plan-name { font-size: 20px; }
}

/* === v12: UPGRADE PAGE (in-app) === */
.tg-upgrade {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 32px);
  word-break: keep-all;
}
.tg-upgrade-head {
  text-align: center; margin-bottom: 36px;
}
.tg-upgrade-head .tg-face { margin: 0 auto 18px; }
.tg-upgrade-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.tg-upgrade-head p {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 560px; margin: 0 auto;
  line-height: 1.55;
}

.tg-upgrade-stats {
  display: flex;
  align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 40px;
  padding: 22px;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  flex-wrap: wrap;
}
.tg-upgrade-stat {
  text-align: center;
  padding: 10px 16px;
}
.tg-upgrade-stat-num {
  display: block; font-size: 36px;
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tg-upgrade-stat-lbl {
  display: block; font-family: var(--mono);
  font-size: 10.5px; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 6px;
}
.tg-upgrade-stat-pro .tg-upgrade-stat-num { color: var(--ink); }
.tg-upgrade-stat-bonus .tg-upgrade-stat-num { color: #16a34a; }
.tg-upgrade-stat-arrow {
  font-size: 22px; color: var(--muted);
}

.tg-upgrade-plans {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  margin-bottom: 24px;
}
.tg-upgrade-plan {
  position: relative;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.tg-upgrade-plan-tag {
  position: absolute;
  top: -10px; left: 22px;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .1em;
  padding: 5px 11px;
  border-radius: 5px;
  background: var(--line-soft);
  color: var(--muted);
  text-transform: uppercase;
}
.tg-upgrade-plan-tag.pro {
  background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
  color: #fff;
}
.tg-upgrade-plan h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.tg-upgrade-plan h2 .tg-face { width: 32px !important; height: 32px !important; }
.tg-upgrade-plan-price {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 4px;
}
.tg-upgrade-plan-price small {
  font-family: var(--mono); font-size: 12.5px;
  font-weight: 600; color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.tg-upgrade-plan-price-alt {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.tg-upgrade-plan ul {
  list-style: none; padding: 18px 0;
  display: flex; flex-direction: column;
  gap: 11px;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}
.tg-upgrade-plan ul li {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
  word-break: keep-all;
}
.tg-upgrade-plan ul li.dim { color: var(--muted); }
.tg-upgrade-plan ul li b { font-weight: 700; }

.tg-upgrade-plan-current {
  background: #fafafa;
  opacity: 0.95;
}
.tg-upgrade-plan-pro {
  background: linear-gradient(165deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  border: 1px solid #262626;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.tg-upgrade-plan-pro h2 { color: #fff; }
.tg-upgrade-plan-pro .tg-upgrade-plan-price small,
.tg-upgrade-plan-pro .tg-upgrade-plan-price-alt { color: #a1a1aa; }
.tg-upgrade-plan-pro ul { border-top-color: #262626; }
.tg-upgrade-plan-pro ul li { color: #e5e5e5; }
.tg-upgrade-plan-pro ul li b { color: #fff; }
.tg-upgrade-plan-pro ul li.dim { color: #525252; }

.tg-btn-block { width: 100%; justify-content: center; }
.tg-btn-tag {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 9px; font-weight: 800;
  background: rgba(255,255,255,0.2);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: .06em;
}
.tg-upgrade-plan-pro .tg-btn {
  background: #fff !important;
  color: #0a0a0a !important;
  border-color: #fff !important;
  font-weight: 700;
}
.tg-upgrade-plan-pro .tg-btn:hover {
  background: #e5e5e5 !important;
  border-color: #e5e5e5 !important;
}
.tg-upgrade-plan-pro .tg-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #404040 !important;
}
.tg-upgrade-plan-pro .tg-btn-ghost:hover {
  background: #1f1f1f !important;
  border-color: #525252 !important;
}
.tg-upgrade-plan-pro .tg-btn-tag {
  background: #16a34a !important;
  color: #fff !important;
}

.tg-upgrade-auto-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #a1a1aa;
  font-family: var(--mono);
  line-height: 1.5;
  letter-spacing: -.005em;
}

.tg-upgrade-fine {
  text-align: center;
  padding: 18px;
  margin-top: 10px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .tg-upgrade-plans { grid-template-columns: 1fr; }
  .tg-upgrade-stats { flex-direction: column; gap: 8px; padding: 18px; }
  .tg-upgrade-stat-arrow { transform: rotate(90deg); }
}

/* === Report list rows === */
.tg-reports-list { display: flex; flex-direction: column; gap: 8px; }
.tg-report-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tg-report-grade {
  width: 42px; height: 42px;
  border-radius: 10px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.tg-report-info { flex: 1; min-width: 0; }
.tg-report-period {
  font-family: var(--mono); font-size: 12px;
  font-weight: 700; color: var(--ink); margin-bottom: 3px;
}
.tg-report-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}

/* === v13: HOW section Korean text alignment === */
.gl-step p {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.7;
}
.gl-step p b {
  color: var(--ink);
  font-weight: 700;
}
.gl-step p br + br { display: none; }

/* Center-aligned section sub with consistent spacing */
.gl-section-sub {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.75;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.gl-section-sub b {
  color: var(--ink);
  font-weight: 700;
}

/* Korean text in step cards - more breathing room */
html[lang="ko"] .gl-step p {
  font-size: 14.5px;
  line-height: 1.75;
}
html[lang="ko"] .gl-step h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
html[lang="ko"] .gl-section-sub {
  font-size: 16px;
  line-height: 1.8;
}

/* Code chip in Korean step */
.gl-step code {
  display: inline-block;
  word-break: break-all;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

@media (max-width: 700px) {
  html[lang="ko"] .gl-step p {
    font-size: 14px;
    line-height: 1.7;
  }
  html[lang="ko"] .gl-section-sub {
    font-size: 14.5px;
    line-height: 1.75;
  }
}
