/* eDugsi PHP UI — matches React/Tailwind design tokens */
:root {
  --primary: #5a52ff;
  --secondary: #8b85ff;
  --bg: #f5f5f4;
  --sidebar: #0f172a;
  --slate-900: #0f172a;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-100: #f1f5f9;
  --card: #fff;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.ed-body { margin: 0; background: var(--bg); color: #0a0a0a; letter-spacing: -0.01em; }

.ed-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Sidebar */
.ed-sidebar {
  width: 280px;
  margin: 1rem;
  border-radius: var(--radius-3xl);
  background: var(--sidebar);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  flex-shrink: 0;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  z-index: 20;
}
.ed-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
.ed-sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.ed-sidebar-title {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ed-sidebar-role {
  margin: 0.25rem 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8;
}
.ed-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.ed-sidebar-nav::-webkit-scrollbar { width: 6px; }
.ed-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}
.ed-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.ed-nav-group { margin-bottom: 2rem; }
.ed-nav-section {
  margin: 0 0 1rem;
  padding: 0 1rem;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ed-nav-list { display: flex; flex-direction: column; gap: 0.35rem; }
.ed-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ed-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); transform: translateX(2px); }
.ed-nav-link-active { color: #fff !important; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15); }
.ed-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.ed-sidebar-foot { padding: 1.5rem; margin-top: auto; }
.ed-user-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; margin-bottom: 1rem; }
.ed-user-ico { color: #94a3b8; }
.ed-user-email { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-user-role { margin: 0; font-size: 0.75rem; color: #94a3b8; }
.ed-logout {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 600;
  color: #ef4444; text-decoration: none;
  width: 100%;
  border-radius: var(--radius-xl);
}
.ed-logout:hover { color: #f87171; }

/* Main */
.ed-main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; position: relative; }
.ed-header {
  height: 96px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.ed-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}
.ed-header-left, .ed-header-right { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 10; }
.ed-header-sys { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.ed-header-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius-2xl);
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  color: var(--primary);
}
.ed-header-icon .ed-nav-icon { width: 20px; height: 20px; }
.ed-search-wrap { position: relative; }
.ed-search-ico {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}
.ed-search-input {
  width: 18rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.ed-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
  border-color: color-mix(in srgb, var(--primary) 20%, #f1f5f9);
}
.ed-header-search-form { display: contents; }

.ed-bell {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  color: #94a3b8;
  cursor: pointer;
}
a.ed-bell { text-decoration: none; color: #94a3b8; }
.ed-bell:hover { color: #475569; transform: translateY(-2px); }
.ed-bell-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: #ef4444;
  border-radius: 50%; border: 2px solid #fff;
}
.ed-header-user { display: flex; align-items: center; gap: 0.75rem; padding-left: 1.5rem; border-left: 1px solid #e2e8f0; }
a.ed-header-user--link { text-decoration: none; color: inherit; }
a.ed-header-user--link:hover .ed-hu-name { color: var(--primary); }
a.ed-header-user--link:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 3px; border-radius: var(--radius-xl); }
.ed-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}
.ed-hu-name { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--slate-900); }
.ed-hu-role { margin: 0; font-size: 0.75rem; color: #64748b; font-weight: 500; }

.ed-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 0;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
  background-image:
    radial-gradient(ellipse 90% 55% at 100% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, color-mix(in srgb, var(--secondary) 8%, transparent), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, color-mix(in srgb, var(--primary) 4%, transparent), transparent);
  background-attachment: fixed;
}
.ed-main::-webkit-scrollbar { width: 8px; }
.ed-main::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}
.ed-main::-webkit-scrollbar-track { background: transparent; }
.ed-main-inner { max-width: 72rem; margin: 0 auto; }

/* Bento / cards */
.ed-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.ed-page-title { margin: 0; font-size: 1.625rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.03em; }
.ed-page-sub { margin: 0.25rem 0 0; font-size: 0.875rem; color: #64748b; }
.ed-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 700;
  border-radius: var(--radius-xl);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ed-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.ed-btn-primary:hover { filter: brightness(0.95); transform: translateY(-2px); }
.ed-btn-outline {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.ed-btn-outline:hover { background: #f8fafc; }

.ed-grid-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .ed-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ed-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ed-bento {
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid color-mix(in srgb, #f1f5f9 80%, transparent);
  box-shadow: 0 2px 20px rgb(0 0 0 / 0.02);
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s, transform 0.3s;
}
.ed-bento:hover {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.06);
  transform: translateY(-2px);
}
.ed-bento-label { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.ed-bento-value { margin: 0; font-size: 1.875rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.ed-bento-hint { margin: 0.5rem 0 0; font-size: 0.75rem; font-weight: 700; color: #10b981; display: flex; align-items: center; gap: 0.25rem; }
.ed-bento-meta { margin: 0.35rem 0 0; font-size: 0.75rem; font-weight: 500; color: #94a3b8; max-width: 12rem; line-height: 1.35; }
.ed-bento--static { transition: box-shadow 0.25s ease; }
.ed-bento--static:hover { transform: none; box-shadow: 0 4px 24px rgb(0 0 0 / 0.05); }
.ed-bento-ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.ed-bento:hover .ed-bento-ico { transform: scale(1.1); }
.ed-ico-blue { background: #eff6ff; color: #2563eb; }
.ed-ico-purple { background: #faf5ff; color: #9333ea; }
.ed-ico-amber { background: #fffbeb; color: #d97706; }
.ed-ico-emerald { background: #ecfdf5; color: #059669; }

.ed-table-wrap {
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 20px rgb(0 0 0 / 0.02);
}
.ed-table-empty {
  text-align: center;
  padding: 2.75rem 1.5rem !important;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border: none;
}
.ed-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ed-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}
.ed-table td { padding: 1rem 1.25rem; border-bottom: 1px solid #f8fafc; color: #334155; }
.ed-table tr:last-child td { border-bottom: none; }
.ed-table a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ed-table a:hover { text-decoration: underline; }

.ed-alert { padding: 1rem 1.25rem; border-radius: var(--radius-xl); margin-bottom: 1rem; font-size: 0.875rem; }
.ed-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ed-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ed-alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ed-alert-flash { margin-bottom: 1.25rem; }
.ed-login-idle-hint { margin: 0 0 1rem; text-align: center; font-size: 0.8125rem; color: #94a3b8; font-weight: 500; }

.ed-section-title {
  margin: 2rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}
.ed-search-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.03);
}
.ed-search-toolbar .ed-input { flex: 1; min-width: 12rem; }

.ed-saas-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

/* Login page */
.ed-login-page {
  min-height: 100vh;
  display: flex;
  font-family: Inter, sans-serif;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.ed-login-left {
  display: none;
  width: 50%;
  padding: 4rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
@media (min-width: 1024px) { .ed-login-left { display: flex; } }
.ed-login-bg {
  position: absolute; inset: 0; z-index: 0;
}
.ed-login-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.ed-login-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, #0f172a, rgba(15,23,42,0.9), transparent);
}
.ed-login-left-inner { position: relative; z-index: 10; }
.ed-login-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.ed-login-logo {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 20%, transparent);
}
.ed-login-brand h1 { margin: 0; font-size: 1.875rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.ed-login-brand p { margin: 0.25rem 0 0; font-size: 0.875rem; font-weight: 500; color: #94a3b8; }
.ed-login-hero { margin-bottom: 2rem; }
.ed-login-hero h2 { margin: 0; font-size: 3rem; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -0.02em; }
.ed-login-hero .accent { color: var(--primary); }
.ed-login-hero p { margin: 1.5rem 0 0; font-size: 1.125rem; color: #94a3b8; line-height: 1.6; max-width: 32rem; }
.ed-login-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2rem; }
.ed-login-stats h3 { margin: 0 0 0.25rem; font-size: 1.875rem; font-weight: 700; color: #fff; }
.ed-login-stats p { margin: 0; font-size: 0.875rem; font-weight: 500; color: #64748b; }

.ed-login-right {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: #fff;
}
@media (min-width: 1024px) { .ed-login-right { width: 50%; } }
.ed-login-form-wrap { width: 100%; max-width: 28rem; }
.ed-login-form-wrap h2 { margin: 0 0 0.75rem; font-size: 2.25rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.ed-login-form-wrap > p { margin: 0 0 2.5rem; font-size: 1.125rem; color: #64748b; }
.ed-login-role-hint { margin: 0 0 1.5rem; font-size: 0.95rem; color: #64748b; line-height: 1.5; }
.ed-login-role-hint strong { color: var(--slate-900); }
.ed-field { margin-bottom: 2rem; }
.ed-field label { display: block; font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.ed-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  color: var(--slate-900);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ed-input:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--primary) 20%, #f1f5f9);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 5%, transparent);
}
.ed-input-wrap { position: relative; }
.ed-toggle-pw {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0.25rem;
}
.ed-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f1f5f9;
}
.ed-toggle-pw:disabled { opacity: 0.4; cursor: not-allowed; }
.ed-login-forgot {
  margin: -1rem 0 1.5rem;
  text-align: right;
  font-size: 0.8125rem;
}
.ed-login-forgot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.ed-login-forgot a:hover { text-decoration: underline; }
.ed-login-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 25%, transparent);
  transition: filter 0.2s, transform 0.2s;
}
.ed-login-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ed-login-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Landing */
.ed-landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); padding: 2rem; text-align: center; }
.ed-landing h1 { font-size: 2rem; font-weight: 800; color: var(--slate-900); margin: 0 0 1.5rem; }
.ed-landing-sub { color: #64748b; font-size: 0.9rem; max-width: 22rem; margin: 1.75rem 0 1rem; line-height: 1.4; }
.ed-landing-links { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.ed-landing-links-grid { max-width: 26rem; }
.ed-landing-links .ed-btn { min-width: 8.5rem; }

/* Expired */
.ed-expired-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
}
.ed-expired-card { max-width: 28rem; width: 100%; }
.ed-expired-icon {
  width: 96px; height: 96px;
  margin: 0 auto 2rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 25px -5px #fecaca;
}
.ed-expired-title { font-size: 2.25rem; font-weight: 900; font-style: italic; color: var(--slate-900); margin: 0 0 1rem; letter-spacing: -0.02em; }
.ed-expired-text { color: #64748b; font-weight: 500; margin: 0 0 2.5rem; line-height: 1.6; font-style: italic; }
.ed-btn-muted {
  display: block; width: 100%; margin-top: 1rem;
  padding: 1rem;
  background: #fff; color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-2xl);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
}
.ed-expired-foot { margin-top: 3rem; font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.2em; }

.ed-placeholder { padding: 3rem; text-align: center; color: #64748b; background: #fff; border-radius: var(--radius-3xl); border: 1px dashed #e2e8f0; }

/* Profile & settings (2026 polish) */
.ed-profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--primary) 4%, #fff) 45%, #fff 100%);
  border: 1px solid color-mix(in srgb, #e2e8f0 85%, var(--primary));
  box-shadow: 0 4px 32px rgb(0 0 0 / 0.04), 0 0 0 1px rgb(255 255 255 / 0.6) inset;
}
.ed-profile-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.ed-profile-hero-main { display: flex; align-items: center; gap: 1.5rem; position: relative; z-index: 1; flex-wrap: wrap; }
.ed-profile-avatar-lg {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--primary) 35%, transparent);
  flex-shrink: 0;
}
.ed-profile-hero-text { min-width: 0; }
.ed-profile-name { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }
.ed-profile-email { margin: 0.35rem 0 0; font-size: 0.9rem; color: #64748b; font-weight: 500; }
.ed-profile-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ed-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.ed-chip-role { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 18%, #e2e8f0); }
.ed-chip-warn { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.ed-profile-hint {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  max-width: 36rem;
  line-height: 1.45;
}
.ed-profile-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ed-profile-grid { grid-template-columns: repeat(2, 1fr); }
}
.ed-profile-card {
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.03);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ed-profile-card:hover {
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.06);
  border-color: color-mix(in srgb, var(--primary) 12%, #f1f5f9);
}
.ed-profile-card-wide { grid-column: 1 / -1; }
.ed-profile-card-title { margin: 0 0 1rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #94a3b8; }
.ed-profile-muted { margin: 0; font-size: 0.875rem; color: #64748b; line-height: 1.55; }
.ed-kv { margin: 0; display: grid; gap: 0.65rem 1rem; }
.ed-kv dt { margin: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.ed-kv dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--slate-900); }
.ed-kv-inline { grid-template-columns: auto 1fr; align-items: center; }
@media (max-width: 520px) { .ed-kv-inline { grid-template-columns: 1fr; } }

.ed-settings-panel {
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 20px rgb(0 0 0 / 0.03);
}
.ed-settings-panel--wide { max-width: 100%; }
.ed-settings-panel-head { margin-bottom: 1.25rem; }
.ed-settings-panel-title { margin: 0; font-size: 1.0625rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; }
.ed-settings-panel-lede { margin: 0.4rem 0 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; max-width: 42rem; }
.ed-settings-brand-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ed-settings-brand-grid { grid-template-columns: 1fr 1fr; }
}
.ed-settings-panel--span { grid-column: 1 / -1; }
.ed-settings-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.ed-settings-logo-wrap {
  border-radius: var(--radius-2xl);
  border: 1px dashed #e2e8f0;
  padding: 1.25rem;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
}
.ed-settings-logo { max-width: 10rem; max-height: 4rem; width: auto; height: auto; object-fit: contain; }
.ed-settings-logo-placeholder {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-2xl);
  border: 1px dashed #e2e8f0;
  background: #fafafa;
}
.ed-color-swatches { display: flex; flex-direction: column; gap: 1rem; }
.ed-color-swatch {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xl);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.ed-color-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.08);
}
.ed-color-label { display: block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }
.ed-color-hex { font-size: 0.8125rem; font-weight: 700; color: #334155; }
.ed-settings-footnote { margin: 1.5rem 0 0; font-size: 0.75rem; color: #94a3b8; font-weight: 500; max-width: 40rem; line-height: 1.45; }
.ed-settings-key { font-family: ui-monospace, monospace; font-size: 0.8125rem; font-weight: 600; color: #334155; vertical-align: top; }
.ed-settings-table-wrap { border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid #f1f5f9; }
.ed-settings-json {
  margin: 0;
  padding: 0.75rem 1rem;
  max-height: 14rem;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.45;
  background: #fafafa;
  border-radius: var(--radius-xl);
  border: 1px solid #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
}

.ed-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-radius: var(--radius-3xl);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.04);
  max-width: 32rem;
  margin: 0 auto;
}
.ed-empty-state--compact { padding: 2rem 1.5rem; max-width: none; margin: 0; }
.ed-empty-state-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  color: var(--primary);
}
.ed-empty-state-title { margin: 0; font-size: 1.125rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; }
.ed-empty-state-text { margin: 0.65rem 0 0; font-size: 0.875rem; color: #64748b; line-height: 1.55; }
.ed-empty-state-text code { font-size: 0.8em; padding: 0.1em 0.35em; border-radius: 0.35rem; background: #f1f5f9; }
.ed-empty-state-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
