/* Sylwork design system */
:root {
  --bg: #070b14;
  --bg-soft: #0f172a;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef2ff;
  --accent: #06b6d4;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #e11d48;
  --err-bg: #fff1f2;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(15, 23, 42, .08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Auth */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79,70,229,.5), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6,182,212,.3), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(99,102,241,.2), transparent),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
  animation: rise .4s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 20px; line-height: 1.5; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: #4338ca;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
label { display: block; font-size: .8rem; font-weight: 600; color: #334155; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.code-input { text-align: center; letter-spacing: .4em; font-size: 1.35rem; font-weight: 800; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; padding: 11px 18px;
  font-weight: 700; font: inherit; cursor: pointer;
  background: #e2e8f0; color: #0f172a;
  transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,70,229,.35);
}
.btn.primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn.block { width: 100%; margin-top: 16px; }
.btn.small { padding: 7px 12px; font-size: .8rem; border-radius: 10px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 14px; line-height: 1.45; }
.alert.ok { background: var(--ok-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert.err { background: var(--err-bg); color: #9f1239; border: 1px solid #fecdd3; }
.meta { font-size: .85rem; color: var(--muted); margin-top: 18px; line-height: 1.55; }

/* App shell — sidebar + full remaining width */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}
.sidebar {
  background: #fff; border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar.dark {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e2e8f0; border-right: none;
}
.sidebar.dark a { color: #cbd5e1; text-decoration: none; }
.sidebar.dark a.active { background: rgba(99,102,241,.2); color: #c7d2fe; }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px; }
.side-brand .logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 60%, #06b6d4);
  color: #fff; display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 8px 16px rgba(79,70,229,.4);
}
.side-brand strong { display: block; font-size: .95rem; letter-spacing: -.01em; }
.side-brand small, .side-user small { color: var(--muted); font-size: .75rem; }
.sidebar.dark .side-brand small { color: #94a3b8; }
.side-user {
  display: flex; gap: 10px; align-items: center; padding: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff); border-radius: 14px;
  border: 1px solid var(--line);
}
.sidebar.dark .side-user { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.06); }
.avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3;
  display: grid; place-items: center; font-weight: 800;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav a {
  padding: 11px 14px; border-radius: 12px; color: #334155;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.side-nav a:hover { background: #f1f5f9; text-decoration: none; }
.side-nav a.active { background: var(--primary-soft); color: #4338ca; }
.side-foot { padding: 8px 10px; font-size: .85rem; }

.main { padding: 28px 32px 48px; max-width: none; width: 100%; min-width: 0; }
.main-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(99,102,241,.12));
  border: 1px solid rgba(99,102,241,.12);
}
.main-top h1 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -.02em; }
.main-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (min-width: 1200px) {
  .form-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field label { margin-top: 0; }
.form-grid h3.full { margin: 10px 0 0; font-size: 1rem; color: #334155; }
.actions { margin-top: 8px; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: #4338ca;
  font-size: .72rem; font-weight: 700; text-transform: capitalize;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; font-size: .85rem; color: var(--muted);
  box-shadow: var(--shadow);
}
.stat span { display: block; font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tr:hover td { background: #f8fafc; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.doc-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: var(--card-soft); display: flex; flex-direction: column; gap: 6px; font-size: .85rem;
}
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.kv span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.inline-form { display: flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  /* drawer handled in responsive.css */
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid, .kv { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 40px; }
}

/* Text logo: SYL (green) + WORK (white/dark) — no space */
.logo-text {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo-text .syl { color: #22c55e; }
.logo-text .work { color: #ffffff; }
.logo-text.on-light .work { color: #0f172a; }
.logo-text.lg { font-size: 1.35rem; }
.side-brand .logo-text { font-size: 1.2rem; }
.badge .logo-text { font-size: 0.78rem; letter-spacing: -0.02em; }
.badge .logo-text .work { color: #4338ca; } /* on light badge chip */

/* Public share + QR */
.share-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}
.qr-panel {
  text-align: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 160px;
}
.qr-panel img.qr-image {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  border-radius: 8px;
}
.qr-panel .qr-caption {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 640px) {
  .share-box { grid-template-columns: 1fr; }
  .qr-panel { justify-self: center; }
}

/* ========== Improved sidebar ========== */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}
.sidebar.dark {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-right-color: rgba(255,255,255,.06);
}
.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  gap: 8px;
}
.side-brand {
  text-decoration: none !important;
  padding: 4px 0;
}
.side-close {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.sidebar.dark .side-close { color: #94a3b8; }
.side-user {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.sidebar.dark .side-user {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
}
.side-user .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #6366f1);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.1rem;
}
.side-user .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-user-meta {
  min-width: 0;
  flex: 1;
}
.side-user-meta strong {
  display: block;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user-meta small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.dark .side-user-meta small { color: #94a3b8; }
.side-status {
  display: inline-block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .02em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}
.sidebar.dark .side-status {
  background: rgba(34,197,94,.15);
  color: #86efac;
}
.side-label {
  margin: 14px 16px 6px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px 12px;
  flex: 1;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .12s, color .12s, transform .12s;
}
.side-nav a .si {
  width: 1.35rem;
  text-align: center;
  opacity: .85;
  flex-shrink: 0;
}
.side-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}
.side-nav a.active {
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(34,197,94,.1));
  color: #3730a3;
  box-shadow: inset 3px 0 0 #6366f1;
}
.sidebar.dark .side-nav a { color: #cbd5e1; }
.sidebar.dark .side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar.dark .side-nav a.active {
  background: rgba(99,102,241,.22);
  color: #e0e7ff;
  box-shadow: inset 3px 0 0 #818cf8;
}
.side-nav a.side-logout {
  margin-top: 8px;
  color: #b91c1c;
}
.sidebar.dark .side-nav a.side-logout { color: #fca5a5; }
.side-foot {
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.sidebar.dark .side-foot { border-top-color: rgba(255,255,255,.06); }
.side-foot a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.sidebar.dark .side-foot a { color: #94a3b8; }
.side-foot a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .side-close { display: grid; place-items: center; }
}

/* ========== Dashboard panes ========== */
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(99,102,241,.14));
  border: 1px solid rgba(99,102,241,.15);
}
.dash-hero h1 { margin: 0 0 6px; letter-spacing: -.03em; }
.dash-hero p { margin: 0; color: var(--muted); max-width: 36rem; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pane-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.pane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
  color: inherit;
}
a.pane:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}
.pane .pane-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.pane .pane-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.pane .pane-hint { font-size: .8rem; color: var(--muted); margin-top: auto; }
.pane.accent-green { border-top: 3px solid #22c55e; }
.pane.accent-indigo { border-top: 3px solid #6366f1; }
.pane.accent-amber { border-top: 3px solid #f59e0b; }
.pane.accent-rose { border-top: 3px solid #f43f5e; }
.pane.accent-sky { border-top: 3px solid #0ea5e9; }

.dash-section {
  margin: 28px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-section h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.hub-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(99,102,241,.15));
  font-size: 1.25rem;
}
.hub-card h2 { margin: 0; font-size: 1.05rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }

.hub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
}
.hub-list { display: grid; gap: 0; }

@media (max-width: 1100px) {
  .pane-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pane-grid { grid-template-columns: 1fr; }
}


/* sidebar-v2 */
.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #111827 100%) !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.sidebar .side-top {
  padding: 18px 16px 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.sidebar .side-brand .logo-text .syl { color: #22c55e !important; }
.sidebar .side-brand .logo-text .work { color: #fff !important; }
.sidebar .side-user {
  margin: 14px 12px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}
.sidebar .avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #22c55e, #6366f1) !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 800 !important;
  color: #fff !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.sidebar .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .side-user-meta strong {
  display: block;
  color: #f8fafc !important;
  font-size: .9rem !important;
  letter-spacing: -.01em;
}
.sidebar .side-user-meta small {
  display: block;
  color: #94a3b8 !important;
  font-size: .72rem !important;
  margin-top: 2px;
  word-break: break-all;
}
.sidebar .side-status {
  margin-top: 6px !important;
  background: rgba(34,197,94,.15) !important;
  color: #86efac !important;
  border: 1px solid rgba(34,197,94,.25) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  font-size: .65rem !important;
}
.sidebar .side-label {
  margin: 16px 16px 6px !important;
  font-size: .65rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}
.sidebar .side-nav a {
  margin: 2px 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: background .12s, color .12s, transform .12s !important;
}
.sidebar .side-nav a:hover {
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.sidebar .side-nav a.active {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(99,102,241,.22)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.sidebar .side-nav a .si {
  width: 22px;
  text-align: center;
  opacity: .9;
}
.sidebar .side-logout {
  margin-top: 12px !important;
  color: #fda4af !important;
}
.sidebar .side-logout:hover {
  background: rgba(244,63,94,.12) !important;
  color: #fecdd3 !important;
}
.sidebar .side-foot {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px 16px !important;
}
.sidebar .side-foot a {
  color: #94a3b8 !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
}
.sidebar .side-foot a:hover { color: #fff !important; }

/* Pro profile cards */
.pro-card-list { display: grid; gap: 14px; }
.pro-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.pro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(15,23,42,.12));
}
.pro-card-photo {
  width: 88px; height: 88px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #c7d2fe);
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #4338ca;
  flex-shrink: 0;
}
.pro-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pro-card-body { min-width: 0; }
.pro-card-body h3 {
  margin: 0 0 4px; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.25;
}
.pro-card-pos {
  margin: 0 0 8px; color: #4f46e5; font-weight: 700; font-size: .9rem;
}
.pro-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .8rem; color: var(--muted);
}
.pro-card-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.pro-card-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
@media (max-width: 720px) {
  .pro-card {
    grid-template-columns: 72px 1fr;
  }
  .pro-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pro-card-photo { width: 72px; height: 72px; border-radius: 14px; }
}


/* micro-card-interactions */
@media (prefers-reduced-motion: no-preference) {
  .card, .panel, .pe-card, .cv-pick-card {
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.15s ease;
  }
  .cv-pick-card:hover, a.card:hover {
    transform: translateY(-2px);
  }
  .btn {
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
  }
  .btn:active {
    transform: scale(0.98);
  }
}

/* ============================================================
   Mobile safety net (also in responsive.css)
   Prevents stats from collapsing into a single inline text blob
   ============================================================ */
.mbar { display: none; }

.pane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
a.pane,
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.pane .pane-label,
.pane .pane-value,
.pane .pane-hint { display: block; }

.hub-item-body { min-width: 0; flex: 1; }
.hub-item-body strong { display: block; }
.hub-item-body small { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--muted); }

@media (max-width: 1100px) {
  .pane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 120;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 0 10px;
    background: #0b1220;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mbar-brand { flex: 1; text-align: center; text-decoration: none !important; }
  .mbar-brand .logo-text .syl { color: #22c55e; }
  .mbar-brand .logo-text .work { color: #fff; }
  .mbar-btn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #e2e8f0;
    text-decoration: none !important; cursor: pointer;
  }
  .mbar-burger { display: flex; flex-direction: column; gap: 5px; width: 18px; }
  .mbar-burger i { display: block; height: 2px; width: 100%; background: #e2e8f0; border-radius: 2px; }

  a.pane, .pane {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .pane-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ============================================================
   Full-width member content on PC / large screens
   ============================================================ */
.app-shell {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
}
.app-shell > .sidebar {
  width: 280px !important;
  max-width: 280px;
}
.app-shell > .main,
.app-shell .main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  box-sizing: border-box;
}
.main.ac-page,
.main.cv-page,
.main.pp-list-page,
.main.pro-view,
.main.pe-page,
.main.jobs-page,
.main.pp-main,
.main.jobs-page-wide {
  width: 100% !important;
  max-width: none !important;
}


@keyframes leadDeletePopupIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (min-width: 1200px) {
  .form-grid { grid-template-columns: 1fr 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .pane-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .app-shell > .sidebar {
    width: min(300px, 86vw) !important;
    max-width: 300px;
  }
}

