:root {
  --eb-bg:#f5f7fb; --eb-panel:#ffffff; --eb-ink:#172033; --eb-muted:#687187;
  --eb-brand:#1e2f55; --eb-brand-2:#5e72e4; --eb-line:#dbe2ef; --eb-soft:#eef2ff;
  --eb-radius:18px; --eb-shadow:0 18px 48px rgba(23,32,51,.12);
}
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--eb-bg); color:var(--eb-ink); }
a { color:var(--eb-brand-2); text-decoration:none; }
.eb-public-header, .phase20ac-hesk-shell { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 28px; background:linear-gradient(135deg,var(--eb-brand),#0e1830); color:#fff; box-shadow:var(--eb-shadow); }
.eb-public-header strong, .phase20ac-hesk-shell strong { display:block; font-size:18px; letter-spacing:.01em; }
.eb-public-header span, .phase20ac-hesk-shell span { display:block; color:rgba(255,255,255,.72); font-size:13px; margin-top:2px; }
.eb-public-header nav, .phase20ac-hesk-shell nav { display:flex; flex-wrap:wrap; gap:10px; }
.eb-public-header nav a, .phase20ac-hesk-shell nav a { color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:8px 12px; font-weight:700; font-size:13px; }
.eb-public-main { max-width:1120px; margin:0 auto; padding:28px; }
.eb-hero { margin:22px 0 18px; padding:28px; border-radius:var(--eb-radius); background:linear-gradient(135deg,#fff,var(--eb-soft)); border:1px solid var(--eb-line); }
.eb-hero h1 { margin:0 0 8px; font-size:clamp(28px,4vw,46px); letter-spacing:-.04em; }
.eb-hero p { color:var(--eb-muted); max-width:760px; line-height:1.6; }
.eb-kicker { color:var(--eb-brand-2)!important; font-weight:800; text-transform:uppercase; font-size:12px; letter-spacing:.12em; margin:0 0 8px!important; }
.eb-card, .eb-admin-card, .phase20ac-hesk-panel { background:var(--eb-panel); border:1px solid var(--eb-line); border-radius:var(--eb-radius); box-shadow:0 12px 28px rgba(23,32,51,.08); padding:22px; margin:18px 0; }
.eb-form { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)) auto; align-items:end; gap:14px; }
.eb-form label { display:grid; gap:8px; font-weight:800; font-size:13px; color:var(--eb-muted); }
.eb-form input, .eb-drawer input { width:100%; box-sizing:border-box; border:1px solid var(--eb-line); border-radius:12px; padding:12px 14px; font:inherit; background:#fff; color:var(--eb-ink); }
.eb-form button, .eb-drawer button, .eb-floating-open { border:0; border-radius:12px; padding:12px 16px; font-weight:900; background:var(--eb-brand-2); color:#fff; cursor:pointer; box-shadow:0 10px 20px rgba(94,114,228,.22); }
.eb-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.eb-kv { border:1px solid var(--eb-line); border-radius:14px; padding:12px; background:#fff; min-width:0; }
.eb-kv span { display:block; color:var(--eb-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.eb-kv strong { display:block; color:var(--eb-ink); overflow-wrap:anywhere; white-space:normal; }
.eb-alert { margin-top:16px; border-radius:14px; padding:14px 16px; border:1px solid #ffd0d0; background:#fff1f1; color:#922; font-weight:800; }
.eb-result h2, .eb-admin-card h2 { margin:0 0 14px; letter-spacing:-.02em; }
.eb-muted { color:var(--eb-muted); line-height:1.55; }
.eb-pre { white-space:pre-wrap; overflow:auto; background:#0e1830; color:#eaf0ff; border-radius:12px; padding:12px; font-size:12px; }
.eb-table-wrap { overflow:auto; }
.eb-table { width:100%; border-collapse:collapse; }
.eb-drawer { position:fixed; inset:0 0 0 auto; width:min(760px,96vw); background:var(--eb-bg); border-left:1px solid var(--eb-line); box-shadow:-18px 0 48px rgba(23,32,51,.2); z-index:99999; transform:translateX(105%); transition:.22s ease; display:flex; flex-direction:column; }
.eb-drawer.open { transform:translateX(0); }
.eb-drawer-head { background:linear-gradient(135deg,var(--eb-brand),#0e1830); color:#fff; padding:18px 20px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.eb-drawer-head h2 { margin:0; }
.eb-drawer-close { border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.14); color:#fff; border-radius:999px; padding:6px 10px; cursor:pointer; }
.eb-drawer-body { padding:18px; overflow:auto; }
.eb-drawer-form { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; margin-bottom:14px; }
.eb-floating-open { position:fixed; right:18px; bottom:18px; z-index:99998; }
.eb-public-link-card { margin:16px 0; padding:18px; border:1px solid var(--eb-line); border-radius:16px; background:linear-gradient(135deg,#fff,var(--eb-soft)); }
@media (max-width: 760px) { .eb-form, .eb-drawer-form { grid-template-columns:1fr; } .eb-public-header, .phase20ac-hesk-shell { align-items:flex-start; flex-direction:column; } }

/* PHASE20AE_PUBLIC_UI_REPAIR_START */
.eb-post-content-link-card {
  max-width: 1120px;
  margin: 24px auto 18px;
  box-sizing: border-box;
  padding: 18px 22px;
}
.eb-post-content-link-card strong { display:block; margin-bottom:6px; color:var(--eb-ink); }
.eb-post-content-link-card p { margin:0 0 8px; color:var(--eb-muted); }
.eb-back-row { max-width:1120px; margin: -2px 0 14px; }
.eb-back-row a { display:inline-flex; align-items:center; gap:6px; font-weight:800; }
@media (max-width: 760px) {
  .eb-post-content-link-card { margin:18px 12px; }
}
/* PHASE20AE_PUBLIC_UI_REPAIR_END */

/* PHASE20AF_RUNTIME_REPAIR_START */
.phase20af-hesk-shell nav,
.phase20ac-hesk-shell nav,
.eb-public-header nav { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:flex-end; }
.phase20af-hesk-shell a,
.phase20ac-hesk-shell a,
.eb-public-header a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:36px; padding:8px 15px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18); text-decoration:none; font-weight:800;
}
.eb-post-content-link-card {
  max-width: 1120px;
  margin: 24px auto 18px;
  box-sizing: border-box;
  padding: 18px 22px;
}
.eb-post-content-link-card strong { display:block; margin-bottom:6px; color:var(--eb-ink, #111827); }
.eb-post-content-link-card p { margin:0 0 8px; color:var(--eb-muted, #64748b); }
.eb-back-row { max-width:1120px; margin: 0 auto 14px; }
.eb-back-row a { display:inline-flex; align-items:center; gap:6px; font-weight:800; text-decoration:none; }
.eb-system-error { margin-top:16px; padding:14px 16px; border-radius:16px; background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12; }
@media (max-width: 760px) {
  .eb-post-content-link-card { margin:18px 12px; }
  .phase20af-hesk-shell, .phase20ac-hesk-shell, .eb-public-header { align-items:flex-start; gap:14px; }
  .phase20af-hesk-shell nav, .phase20ac-hesk-shell nav, .eb-public-header nav { justify-content:flex-start; }
}
/* PHASE20AF_RUNTIME_REPAIR_END */
