@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800;900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7EEDD;
  --bg-raised: #FFFFFF;
  --sidebar: #241A10;
  --sidebar-ink: #E4D3BC;
  --sidebar-ink-dim: #A08A6E;
  --sidebar-active: #E2662A;
  --ink: #2B2118;
  --ink-soft: #6E5D48;
  --line: #E7D7BC;
  --primary: #E2662A;
  --primary-ink: #FFFFFF;
  --primary-soft: #FBE3D2;
  --accent: #147F7D;
  --accent-soft: #DCF1EE;
  --ok: #2F8F5B;
  --ok-soft: #E3F4EA;
  --warn: #C77C1E;
  --warn-soft: #FBECD3;
  --f2: #7A4FB0;
  --f2-soft: #EFE6FA;
  --radius: 14px;
}
:root[data-theme="dark"] {
  --bg: #1D160F;
  --bg-raised: #2A2116;
  --sidebar: #17110A;
  --sidebar-ink: #E4D3BC;
  --sidebar-ink-dim: #8A7660;
  --sidebar-active: #FF8A4C;
  --ink: #F4EADA;
  --ink-soft: #C6B69D;
  --line: #443826;
  --primary: #FF8A4C;
  --primary-ink: #1D160F;
  --primary-soft: #4A2C16;
  --accent: #4FD3CE;
  --accent-soft: #123B3A;
  --ok: #6FD69B;
  --ok-soft: #163A28;
  --warn: #E8AC55;
  --warn-soft: #3D2C11;
  --f2: #C7A2EE;
  --f2-soft: #2C2140;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D160F; --bg-raised: #2A2116; --sidebar: #17110A; --sidebar-ink: #E4D3BC;
    --sidebar-ink-dim: #8A7660; --sidebar-active: #FF8A4C; --ink: #F4EADA; --ink-soft: #C6B69D;
    --line: #443826; --primary: #FF8A4C; --primary-ink: #1D160F; --primary-soft: #4A2C16;
    --accent: #4FD3CE; --accent-soft: #123B3A; --ok: #6FD69B; --ok-soft: #163A28;
    --warn: #E8AC55; --warn-soft: #3D2C11; --f2: #C7A2EE; --f2-soft: #2C2140;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Work Sans', -apple-system, sans-serif; font-size: 15.5px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Archivo', -apple-system, sans-serif; font-weight: 800; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }

.lang-switch { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 3px; }
.lang-switch button { border: none; background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 11.5px; padding: 4px 12px; border-radius: 20px; cursor: pointer; letter-spacing: 0.03em; }
.lang-switch button.active { background: var(--primary); color: var(--primary-ink); }

/* ================= PUBLIC PAGE ================= */
/* The logo art (navy/red on white) needs a light background to read
   clearly, but the rest of the header keeps the page's own dark theme +
   orange accent — so only a slanted white panel behind the logo is
   forced light, not the whole header. */
.pub-header { display: flex; align-items: stretch; height: 76px; padding: 0 40px 0 0; border-bottom: 1px solid var(--line); background: var(--bg-raised); position: relative; }
.pub-header .brand-panel { display: flex; align-items: center; background: #FFFFFF; padding: 0 46px 0 40px; margin-right: 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%); }
.pub-header .brand { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.pub-header .brand .brand-icon { height: 40px; width: auto; display: inline-block; }
.pub-header .brand .brand-wordmark { height: 22px; width: auto; display: inline-block; }
.pub-header nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.pub-header .spacer { margin-left: auto; display: flex; gap: 14px; align-items: center; }

/* ---------- mobile nav (pub-header) ---------- */
.pub-nav-panel { display: flex; align-items: center; flex: 1; min-width: 0; }
.menu-toggle {
  display: none; align-self: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-raised); flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 0;
}
.menu-toggle span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; margin-left: auto; }
  .pub-nav-panel {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--bg-raised); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(0,0,0,0.18);
    padding: 8px 24px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .18s ease, opacity .18s ease, visibility .18s;
  }
  .pub-nav-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .pub-nav-panel nav { flex-direction: column; align-items: stretch; gap: 0; }
  .pub-nav-panel nav a { padding: 13px 2px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .pub-nav-panel nav a:last-child { border-bottom: none; }
  .pub-nav-panel .spacer { flex-direction: column; align-items: stretch; margin: 14px 0 0; gap: 10px; }
  .pub-nav-panel .spacer .lang-switch { align-self: flex-start; }
  .pub-nav-panel .spacer .btn { width: 100%; text-align: center; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .pub-nav-panel, .menu-toggle span { transition: none !important; }
}

.signup-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); min-width: 210px; overflow: hidden; z-index: 20; }
.signup-dropdown a { display: block; padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.signup-dropdown a:hover { background: var(--primary-soft); color: var(--primary); }
.signup-dropdown a + a { border-top: 1px solid var(--line); }

.btn { display: inline-block; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 13.5px; padding: 11px 20px; border-radius: 10px; cursor: pointer; border: none; box-shadow: 0 3px 0 rgba(0,0,0,0.12); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }

.hero-photo { position: relative; overflow: hidden; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,26,16,0.15), rgba(36,26,16,0.65)); }
.hero-photo img { width: 100%; height: 440px; object-fit: cover; display: block; }
.hero-photo-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.hero-photo-content h1 { font-size: clamp(28px, 4.6vw, 46px); color: #fff; max-width: 780px; margin-bottom: 14px; }
.hero-photo-content p { font-size: 16.5px; max-width: 56ch; color: #F3E9D8; margin: 0 auto 26px; }

.search-bar { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; background: var(--bg-raised); border-radius: 12px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; }
.hero-cta-row .btn { padding: 13px 28px; font-size: 14.5px; }
.hero-cta-row .btn.ghost { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; }
.hero-cta-row .btn.ghost:hover { background: rgba(255,255,255,0.16); }
.search-bar input { flex: 1; min-width: 0; border: none; padding: 10px 12px; font-size: 14.5px; background: transparent; font-family: inherit; color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar select {
  min-width: 0;
  flex-shrink: 1;
  border: none;
  padding: 10px 30px 10px 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237C6A54' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.search-bar select:focus { outline: none; }
/* The native option popup always renders on its own white background
   regardless of page theme, so give it a fixed dark color instead of
   inheriting var(--ink) — which is a light cream in dark mode and was
   nearly invisible there. */
.search-bar select option { color: #2B2118; background: #FFFFFF; }
.search-bar button { background: var(--primary); color: var(--primary-ink); border: none; border-radius: 8px; padding: 0 22px; font-weight: 700; font-size: 13.5px; cursor: pointer; }

.section { max-width: 1120px; margin: 0 auto; padding: 52px 24px; }
.section h2 { font-size: 26px; margin-bottom: 20px; }
.cat-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cat-header-row h2 { margin-bottom: 0; }
.cat-header-row .search-bar { flex-shrink: 0; }
@media (max-width: 800px) { .cat-header-row { flex-direction: column; align-items: stretch; } .cat-header-row .search-bar { max-width: none; } }
@media (max-width: 480px) {
  .search-bar { gap: 4px; padding: 6px; width: 100%; }
  /* iOS/WebKit ignores flex-shrink on <select> and sizes it to its widest
     option's content, which alone was wider than the phone screen — force
     a fixed width instead of trusting flex math. */
  .search-bar select { flex: 0 0 112px; width: 112px; padding: 8px 16px 8px 6px; background-position: right 4px center; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .search-bar input { flex: 1 1 auto; min-width: 0; max-width: none !important; padding: 8px 6px; font-size: 12.5px; }
  .search-bar button { flex: 0 0 auto; padding: 0 10px; font-size: 12px; }
}
.section .kicker { color: var(--primary); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; display: block; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,14,8,0.82)); }
.cat-card span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; font-weight: 700; font-size: 13.5px; }

.chooser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .chooser-grid { grid-template-columns: 1fr; } }
.chooser-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.chooser-card .chooser-icon {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #FF9E63, var(--primary) 55%, #B8481A 100%);
  box-shadow: 0 8px 16px rgba(226,102,42,0.35), inset 0 2px 3px rgba(255,255,255,0.45), inset 0 -5px 7px rgba(0,0,0,0.28);
}
.chooser-card .chooser-icon svg { width: 32px; height: 32px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.chooser-card h3 { font-size: 18px; margin-bottom: 8px; }
.chooser-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 20px; min-height: 42px; }
.chooser-card .btn { width: 100%; text-align: center; margin-top: auto; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.how-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.how-card .how-body { padding: 16px 18px 20px; }
.how-card .step { color: var(--primary); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.how-card h3 { font-size: 16.5px; margin: 6px 0 6px; }
.how-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

.pro-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 14px; justify-content: start; }
.pro-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.pro-card > img { width: 100%; height: 130px; object-fit: cover; display: block; }
.pro-card .pro-body { padding: 12px 10px 16px; }
.pro-card .pro-name-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pro-card .pro-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pro-card h4 { font-size: 13.5px; margin-bottom: 2px; }
.pro-card .pro-category { font-size: 11.5px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.pro-card .stars { color: var(--warn); font-size: 12.5px; font-weight: 700; }

.job-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.job-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.job-card h4 { font-size: 15px; margin: 0 0 4px; }
.job-card .job-meta { color: var(--ink-soft); font-size: 12.5px; margin-bottom: 10px; }
.job-card .job-pay { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.job-card .job-urgent { display: inline-block; background: var(--warn-soft); color: var(--warn); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; align-self: flex-start; }
.job-card .btn { margin-top: auto; text-align: center; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.p1 { background: var(--accent-soft); color: var(--accent); }
.tag.p15 { background: var(--warn-soft); color: var(--warn); }
.tag.p2 { background: var(--f2-soft); color: var(--f2); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--bg-raised); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.plan-card.featured { border-color: var(--primary); }
.plan-card .badge { position: absolute; top: -12px; right: 18px; background: var(--primary); color: var(--primary-ink); font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 20px; }
.plan-card h4 { font-size: 16px; margin-bottom: 4px; }
.plan-card .price { font-size: 28px; font-weight: 900; margin: 8px 0 2px; font-family: 'Archivo', sans-serif; }
.plan-card .price span { font-size: 13px; font-weight: 500; color: var(--ink-soft); font-family: 'Work Sans', sans-serif; }
.plan-card ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.plan-card li { padding: 5px 0; }
.plan-card li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .entry-grid { grid-template-columns: 1fr; } }
.entry-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; text-decoration: none; }
.entry-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.entry-card .entry-body { padding: 16px 18px; }
.entry-card h3 { font-size: 15px; margin-bottom: 6px; }
.entry-card p { color: var(--ink-soft); font-size: 13px; margin: 0 0 12px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; background: var(--accent-soft); color: var(--accent); }

footer.pub-footer { border-top: 1px solid var(--line); margin-top: 10px; padding: 30px 40px; font-size: 12.5px; color: var(--ink-soft); }

/* ================= APP SHELL (cliente) ================= */
.app-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-nav { flex: 1; overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 20px 0 0; font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 900; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px; }
.sidebar-brand .brand-panel { display: flex; align-items: center; gap: 6px; height: 100%; background: #FFFFFF; padding: 0 20px 0 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.sidebar-brand .brand-icon { height: 32px; width: auto; display: inline-block; }
.sidebar-brand .brand-wordmark { height: 18px; width: auto; display: inline-block; }
.sidebar-brand .role-pill { margin-left: auto; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.12); color: #fff; padding: 3px 10px; border-radius: 6px; }
.sidebar-group-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sidebar-ink-dim); padding: 16px 20px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; font-size: 13.8px; font-weight: 500; cursor: pointer; border-left: 3px solid transparent; color: var(--sidebar-ink); }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(226,102,42,0.22); border-left-color: var(--primary); color: #fff; font-weight: 700; }
.nav-item .ico { width: 16px; text-align: center; font-size: 14px; filter: grayscale(1) brightness(1.6); opacity: 0.9; }
.nav-item .lock-badge { margin-left: auto; font-size: 9.5px; font-weight: 800; background: rgba(122,79,176,0.3); color: #D8BCF7; padding: 1px 6px; border-radius: 3px; }
.nav-item.locked { opacity: 0.55; cursor: not-allowed; }
.sidebar-footer { margin-top: auto; padding: 14px 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: var(--sidebar-ink-dim); }
.sidebar-footer a { color: var(--sidebar-ink); text-decoration: underline; }

.main { min-width: 0; display: flex; flex-direction: column; background: var(--bg-raised); }
.topbar { height: 64px; background: var(--bg-raised); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 5; }
.topbar .view-title { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800; }
.topbar .search { margin-left: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--ink-soft); width: 220px; font-family: inherit; }
.topbar .icon-btn { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg-raised); font-size: 15px; cursor: pointer; }
.topbar .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-soft); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }

.content { padding: 28px 28px 60px; max-width: 1180px; }
.view { display: none; }
.view.active { display: block; }
.view-header { margin-bottom: 22px; }
.view-header .eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.view-header .eyebrow-row h2 { font-size: 24px; }
.view-header p.sub { color: var(--ink-soft); font-size: 13.5px; margin: 4px 0 0; }

.hero-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.hero-banner img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,26,16,0.78), rgba(36,26,16,0.15)); }
.hero-banner .hb-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 0 26px; color: #fff; }
.hero-banner .hb-text strong { font-family: 'Archivo', sans-serif; font-size: 19px; }
.hero-banner .hb-text span { font-size: 13px; color: #F0E2CC; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.card .stat { font-family: 'Archivo', sans-serif; font-size: 27px; font-weight: 800; }
.card .stat-note { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { width: 100%; height: 120px; object-fit: cover; display: block; }
.card.photo .card-body { padding: 14px 16px 16px; }

.panel { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; }
.panel-head .cta { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 7px 14px; border-radius: 8px; cursor: pointer; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); background: var(--bg); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--primary-soft); }

.pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.pend { background: var(--warn-soft); color: var(--warn); }
.pill.new { background: var(--accent-soft); color: var(--accent); }
.pill.muted { background: var(--bg); color: var(--ink-soft); }
.mockup-tag { font-size: 11.5px; font-weight: 400; font-style: italic; color: var(--ink-soft); }

.category-chip { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); font-size: 13px; font-family: inherit; cursor: pointer; }
.category-chip.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); font-weight: 700; }

.locked-panel { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 28px; text-align: center; color: var(--ink-soft); }
.locked-panel h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; font-family: 'Archivo', sans-serif; }

.plan-grid .btn, .card .btn { width: 100%; text-align: center; margin-top: 16px; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.form-row input, .form-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; background: var(--bg-raised); color: var(--ink); font-family: inherit; }

.avatar-photo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.people-row { display: flex; align-items: center; gap: 10px; }
.people-row .meta strong { display: block; font-size: 13.5px; }
.people-row .meta span { font-size: 12px; color: var(--ink-soft); }
