@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  --pc-ink: #101528;
  --pc-muted: #667085;
  --pc-faint: #98A2B3;
  --pc-line: #E6EAF4;
  --pc-bg: #F3F5FB;
  --pc-bg-2: #EEF1F9;
  --pc-card: #ffffff;
  --pc-card-2: #F8FAFF;
  --pc-primary: #4C6FFF;
  --pc-primary-2: #3658E8;
  --pc-primary-soft: rgba(76, 111, 255, .12);
  --pc-mint: #12C4B0;
  --pc-mint-2: #0AA896;
  --pc-mint-soft: rgba(18, 196, 176, .14);
  --pc-violet: #8B5CF6;
  --pc-violet-soft: rgba(139, 92, 246, .14);
  --pc-amber: #F5A524;
  --pc-amber-soft: rgba(245, 165, 36, .16);
  --pc-rose: #F04438;
  --pc-rose-soft: rgba(240, 68, 56, .12);
  --pc-sky: #2E90FA;
  --pc-sky-soft: rgba(46, 144, 250, .12);
  --pc-success: #12B76A;
  --pc-shadow: 0 10px 30px rgba(16, 21, 40, .06);
  --pc-shadow-lg: 0 24px 60px rgba(16, 21, 40, .12);
  --pc-radius: 20px;
  --pc-radius-sm: 12px;
  --pc-sidebar: 272px;
  --pc-topbar: 72px;
  --pc-bottom: 0px;
  --pc-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --pc-glass: rgba(255, 255, 255, .72);
  color-scheme: light;
}

html[data-theme="dark"] {
  --pc-ink: #F4F6FF;
  --pc-muted: #A8B0C7;
  --pc-faint: #7C86A3;
  --pc-line: #252C45;
  --pc-bg: #090B14;
  --pc-bg-2: #101524;
  --pc-card: #12182B;
  --pc-card-2: #171E34;
  --pc-primary-soft: rgba(76, 111, 255, .22);
  --pc-mint-soft: rgba(18, 196, 176, .18);
  --pc-violet-soft: rgba(139, 92, 246, .2);
  --pc-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --pc-shadow-lg: 0 24px 60px rgba(0, 0, 0, .4);
  --pc-glass: rgba(18, 24, 43, .78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--pc-font);
  background: var(--pc-bg);
  color: var(--pc-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

.pc-skip {
  position: absolute; left: -999px; top: 8px;
}
.pc-skip:focus { left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ===== Public marketing ===== */
.mk {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(76,111,255,.42), transparent 58%),
    radial-gradient(720px 480px at -8% 12%, rgba(18,196,176,.38), transparent 52%),
    radial-gradient(640px 420px at 70% 38%, rgba(139,92,246,.22), transparent 60%),
    radial-gradient(520px 380px at 20% 72%, rgba(245,165,36,.16), transparent 55%),
    var(--pc-bg);
  min-height: 100vh;
}
.mk-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 28px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--pc-bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; }
.mk-links { display: flex; gap: 22px; color: var(--pc-muted); font-weight: 600; font-size: .94rem; }
.mk-links a { color: inherit; text-decoration: none; }
.mk-links a:hover, .mk-links a[aria-current="page"] { color: var(--pc-ink); }
.mk-hero { max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pc-primary-soft); color: var(--pc-primary-2);
  border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
html[data-theme="dark"] .eyebrow { color: #c5d0ff; }
.mk-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.05;
  letter-spacing: -.045em; margin: 16px 0 14px; font-weight: 800;
}
.mk-hero h1 span {
  background: linear-gradient(90deg, var(--pc-primary), var(--pc-mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--pc-muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat-mini { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--pc-shadow); }
.stat-mini:nth-child(1) b { color: var(--pc-primary); }
.stat-mini:nth-child(2) b { color: var(--pc-mint-2); }
.stat-mini:nth-child(3) b { color: var(--pc-violet); }
.stat-mini:nth-child(4) b { color: #c47c08; }
.stat-mini span { color: var(--pc-muted); font-size: .8rem; font-weight: 600; }
.hero-visual { position: relative; min-height: 420px; }
.glass-card {
  background: var(--pc-glass); border: 1px solid var(--pc-line);
  border-radius: 24px; box-shadow: var(--pc-shadow-lg); backdrop-filter: blur(18px);
  padding: 18px; position: relative;
}
.float-a { transform: rotate(-2deg); }
.float-b { position: absolute; right: -12px; bottom: -28px; width: 220px; transform: rotate(4deg); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-mint); box-shadow: 0 0 0 6px var(--pc-mint-soft); display: inline-block; }

.section { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.04em; font-weight: 800; margin: 0 0 8px; }
.section .sub { color: var(--pc-muted); margin-bottom: 28px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { grid-column: span 4; }
.bento .wide { grid-column: span 8; }
.bento .tall { grid-row: span 2; }
.feature {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius);
  padding: 22px; box-shadow: var(--pc-shadow); min-height: 160px;
}
.feature i { font-size: 1.35rem; }
.feature .ico, .demo-card .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
}
.tone-primary .ico { background: var(--pc-primary-soft); color: var(--pc-primary); }
.tone-mint .ico { background: var(--pc-mint-soft); color: var(--pc-mint-2); }
.tone-violet .ico { background: var(--pc-violet-soft); color: var(--pc-violet); }
.tone-amber .ico { background: var(--pc-amber-soft); color: #c47c08; }
.tone-rose .ico { background: var(--pc-rose-soft); color: var(--pc-rose); }
.tone-sky .ico { background: var(--pc-sky-soft); color: var(--pc-sky); }
.feature h3 { margin: 12px 0 6px; font-size: 1.05rem; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--pc-muted); font-size: .92rem; }

.role-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.role-card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 18px; padding: 18px;
  min-height: 180px;
}
.role-card .n { font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.role-card.tone-primary { background: linear-gradient(180deg, var(--pc-primary-soft), var(--pc-card)); }
.role-card.tone-primary .n { color: var(--pc-primary); }
.role-card.tone-mint { background: linear-gradient(180deg, var(--pc-mint-soft), var(--pc-card)); }
.role-card.tone-mint .n { color: var(--pc-mint-2); }
.role-card.tone-violet { background: linear-gradient(180deg, var(--pc-violet-soft), var(--pc-card)); }
.role-card.tone-violet .n { color: var(--pc-violet); }
.role-card.tone-amber { background: linear-gradient(180deg, var(--pc-amber-soft), var(--pc-card)); }
.role-card.tone-amber .n { color: #c47c08; }
.role-card.tone-sky { background: linear-gradient(180deg, var(--pc-sky-soft), var(--pc-card)); }
.role-card.tone-sky .n { color: var(--pc-sky); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 24px; padding: 26px;
  position: relative; overflow: hidden;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #1c2450, #12182f);
  color: #fff; box-shadow: var(--pc-shadow-lg);
}
.price-card.featured p, .price-card.featured li { color: #c9d2ef; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--pc-muted); }
.mk-footer { border-top: 1px solid var(--pc-line); padding: 28px 24px; color: var(--pc-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mk-footer a { color: var(--pc-muted); font-weight: 600; }
.mk-footer a:hover { color: var(--pc-primary); }
.logo-strip {
  max-width: 1180px; margin: 12px auto 0; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
  color: var(--pc-faint); font-size: .85rem; font-weight: 700;
}
.logo-strip b { color: var(--pc-muted); letter-spacing: -.02em; font-size: .95rem; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow-card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 18px;
  padding: 18px; box-shadow: var(--pc-shadow);
}
.flow-n {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.flow-card:nth-child(1) .flow-n { background: var(--pc-primary); }
.flow-card:nth-child(2) .flow-n { background: var(--pc-mint); }
.flow-card:nth-child(3) .flow-n { background: var(--pc-violet); }
.flow-card:nth-child(4) .flow-n { background: #c47c08; }
.flow-card:nth-child(5) .flow-n { background: var(--pc-sky); }
.flow-card:nth-child(6) .flow-n { background: var(--pc-rose); }
.flow-card h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.flow-card p { margin: 0; color: var(--pc-muted); font-size: .9rem; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.outcome {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 18px;
  padding: 22px; box-shadow: var(--pc-shadow);
}
.outcome i { font-size: 1.4rem; }
.outcome:nth-child(1) i { color: var(--pc-primary); }
.outcome:nth-child(2) i { color: var(--pc-mint); }
.outcome:nth-child(3) i { color: var(--pc-violet); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #4C6FFF 0%, #7B5CFF 48%, #12C4B0 100%);
  color: #fff; border: 0; border-radius: 24px; margin-bottom: 24px;
}
.cta-band h2, .cta-band .sub { color: #fff; }
.cta-band .sub { opacity: .88; }
.cta-band .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
.logo-strip b:nth-child(2) { color: var(--pc-primary); }
.logo-strip b:nth-child(3) { color: var(--pc-mint-2); }
.logo-strip b:nth-child(4) { color: var(--pc-violet); }
.logo-strip b:nth-child(5) { color: #c47c08; }
.logo-strip b:nth-child(6) { color: var(--pc-sky); }

/* ===== Auth ===== */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--pc-bg);
}
.auth-art {
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(76,111,255,.45), transparent 50%),
    radial-gradient(500px 360px at 90% 80%, rgba(18,196,176,.35), transparent 50%),
    linear-gradient(160deg, #12183A, #0B1024);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.auth-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #12183A; font-weight: 800; font-size: .88rem;
  border-radius: 999px; padding: 8px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.auth-home:hover { background: #f3f6ff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: min(440px, 100%); }
.demo-accounts { display: grid; gap: 8px; margin-top: 16px; }
.demo-chip {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  border: 1px dashed var(--pc-line); border-radius: 12px; padding: 10px 12px;
  background: var(--pc-card-2); cursor: pointer; font-size: .86rem;
}

/* ===== App shell ===== */
.app-shell { min-height: 100vh; display: flex; background: var(--pc-bg); }
.sidebar {
  width: var(--pc-sidebar); flex: 0 0 var(--pc-sidebar);
  background: var(--pc-card); border-right: 1px solid var(--pc-line);
  height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column;
  z-index: 40;
}
.sidebar-head { padding: 18px 18px 10px; display: flex; align-items: center; justify-content: space-between; }
.nav-scroll { overflow: auto; padding: 8px 12px 24px; flex: 1; }
.nav-group { color: var(--pc-faint); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 14px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; color: var(--pc-muted); font-weight: 600; font-size: .92rem;
}
.nav-link i { width: 20px; text-align: center; }
.nav-link:hover { background: var(--pc-bg-2); color: var(--pc-ink); }
.nav-link.active {
  background: linear-gradient(90deg, var(--pc-primary-soft), transparent);
  color: var(--pc-primary-2); box-shadow: inset 3px 0 0 var(--pc-primary);
}
html[data-theme="dark"] .nav-link.active { color: #c9d4ff; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--pc-line); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: var(--pc-bottom); }
.topbar {
  height: var(--pc-topbar); display: flex; align-items: center; gap: 12px;
  padding: 0 22px; position: sticky; top: 0; z-index: 25;
  background: color-mix(in srgb, var(--pc-bg) 82%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--pc-line);
}
.search-pill {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px;
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 999px;
  padding: 8px 14px; color: var(--pc-muted); cursor: pointer;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--pc-line);
  background: var(--pc-card); color: var(--pc-ink); display: grid; place-items: center; position: relative;
}
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--pc-rose); border-radius: 50%; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--pc-line); background: var(--pc-card); }
.user-chip small { display: block; color: var(--pc-muted); font-weight: 600; }
.content { padding: 22px; max-width: 1400px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--pc-muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: linear-gradient(180deg, var(--pc-primary), var(--pc-primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(76,111,255,.28); }
.btn-mint { background: linear-gradient(180deg, var(--pc-mint), var(--pc-mint-2)); color: #072821; }
.btn-ghost { background: var(--pc-card); border-color: var(--pc-line); color: var(--pc-ink); }
.btn-danger { background: var(--pc-rose-soft); color: var(--pc-rose); }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.btn-block { width: 100%; }

.license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; letter-spacing: .04em; font-size: .82rem;
  background: var(--pc-primary-soft); color: var(--pc-primary-2);
  border-radius: 8px; padding: 4px 8px;
}

/* Cards / grids */
.card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow); padding: 18px;
}
.card h3, .card h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -.02em; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 18px;
  padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--pc-shadow);
  min-width: 0;
}
.kpi-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 44px;
  background: var(--pc-primary-soft); color: var(--pc-primary);
  font-size: 1.15rem;
}
.kpi-mint .kpi-icon { background: var(--pc-mint-soft); color: var(--pc-mint-2); }
.kpi-violet .kpi-icon { background: var(--pc-violet-soft); color: var(--pc-violet); }
.kpi-amber .kpi-icon { background: var(--pc-amber-soft); color: #c47c08; }
.kpi-rose .kpi-icon { background: var(--pc-rose-soft); color: var(--pc-rose); }
.kpi-label { margin: 0; color: var(--pc-muted); font-size: .8rem; font-weight: 700; }
.kpi-value { margin: 2px 0; font-size: 1.45rem; letter-spacing: -.04em; font-weight: 800; overflow-wrap: anywhere; }
.kpi-delta { margin: 0; font-size: .78rem; font-weight: 700; }
.kpi-up { color: var(--pc-success); }
.kpi-down { color: var(--pc-rose); }

.split-2 { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.split-3 { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 16px; }
.stack { display: grid; gap: 16px; }

/* Table stacked on small screens */
.table-wrap { overflow: auto; }
.pc-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pc-table th {
  text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pc-faint); padding: 10px 12px; border-bottom: 1px solid var(--pc-line); font-weight: 800;
}
.pc-table td { padding: 12px; border-bottom: 1px solid var(--pc-line); vertical-align: middle; font-size: .92rem; }
.pc-table tr:hover td { background: var(--pc-card-2); }

.person { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .78rem; flex: 0 0 auto;
}
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: .68rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.2rem; }
.person b { display: block; font-size: .92rem; }
.person span { color: var(--pc-muted); font-size: .78rem; }

.pc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 800;
  background: var(--pc-bg-2); color: var(--pc-muted);
}
.pc-badge-success { background: rgba(18,183,106,.12); color: #0f9f5a; }
.pc-badge-warning { background: var(--pc-amber-soft); color: #b45309; }
.pc-badge-danger { background: var(--pc-rose-soft); color: var(--pc-rose); }
.pc-badge-info { background: var(--pc-sky-soft); color: var(--pc-sky); }
.pc-badge-primary { background: var(--pc-primary-soft); color: var(--pc-primary-2); }
.pc-badge-neutral { background: var(--pc-bg-2); color: var(--pc-muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--pc-line); background: var(--pc-card); color: var(--pc-ink);
  border-radius: 12px; padding: 11px 12px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 4px var(--pc-primary-soft); }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--pc-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter { max-width: 240px; }

.progress { height: 8px; background: var(--pc-bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pc-primary), var(--pc-mint)); border-radius: 99px; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pc-line); }
.list-row:last-child { border-bottom: 0; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow: auto; padding-bottom: 8px; }
.kanban-col { background: var(--pc-bg-2); border-radius: 16px; padding: 12px; min-height: 280px; }
.kanban-col h4 { margin: 0 0 10px; font-size: .85rem; display: flex; justify-content: space-between; }
.kanban-card { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 14px; padding: 12px; margin-bottom: 10px; cursor: grab; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cell { min-height: 88px; border: 1px solid var(--pc-line); border-radius: 12px; padding: 8px; background: var(--pc-card); }
.cal-cell .d { font-weight: 800; font-size: .8rem; }
.chip { display: block; font-size: .68rem; font-weight: 700; border-radius: 8px; padding: 2px 6px; margin-top: 4px; }
.chip-event { background: var(--pc-primary-soft); color: var(--pc-primary-2); }
.chip-holiday { background: var(--pc-rose-soft); color: var(--pc-rose); }
.chip-birthday { background: var(--pc-mint-soft); color: var(--pc-mint-2); }
.chip-appraisal { background: var(--pc-violet-soft); color: var(--pc-violet); }
.chip-payroll { background: var(--pc-amber-soft); color: #b45309; }

.punch-hero {
  background: linear-gradient(135deg, #1b2250, #12363a);
  color: #fff; border-radius: 24px; padding: 24px; position: relative; overflow: hidden;
}
.punch-hero::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -40px; top: -40px;
  background: radial-gradient(circle, rgba(18,196,176,.45), transparent 70%);
}
.punch-time { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }

.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--pc-glass); backdrop-filter: blur(16px);
  border-top: 1px solid var(--pc-line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a { display: grid; place-items: center; gap: 2px; color: var(--pc-muted); font-size: .68rem; font-weight: 700; padding: 4px 0; }
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a.active { color: var(--pc-primary); }

.menu-btn { display: none; }
.sidebar-backdrop { display: none; }

.cmdk {
  position: fixed; inset: 0; background: rgba(10,12,24,.48); z-index: 80;
  display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
}
.cmdk.open { display: flex; }
.cmdk-box { width: min(640px, 100%); background: var(--pc-card); border-radius: 18px; overflow: hidden; box-shadow: var(--pc-shadow-lg); border: 1px solid var(--pc-line); }
.cmdk input { width: 100%; border: 0; padding: 16px 18px; background: transparent; color: var(--pc-ink); outline: none; font-size: 1rem; }
.cmdk-list { max-height: 360px; overflow: auto; border-top: 1px solid var(--pc-line); }
.cmdk-item { display: flex; gap: 10px; padding: 10px 16px; color: var(--pc-muted); }
.cmdk-item:hover, .cmdk-item.active { background: var(--pc-bg-2); color: var(--pc-ink); }

.drawer {
  position: fixed; inset: 0; background: rgba(10,12,24,.4); z-index: 70; display: none;
}
.drawer.open { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(380px, 100%);
  background: var(--pc-card); padding: 18px; overflow: auto; box-shadow: var(--pc-shadow-lg);
}
.toast-wrap { position: fixed; right: 16px; bottom: 24px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--pc-ink); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--pc-shadow-lg); min-width: 220px; }
html[data-theme="dark"] .toast { background: #edf1ff; color: #111; }

.pc-flash { padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.pc-flash-success { background: rgba(18,183,106,.12); color: #0f9f5a; }
.pc-flash-danger { background: var(--pc-rose-soft); color: var(--pc-rose); }

.empty-state { text-align: center; padding: 32px 12px; color: var(--pc-muted); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 16px; display: grid; place-items: center; background: var(--pc-bg-2); font-size: 1.4rem; }

.seg { display: inline-flex; background: var(--pc-bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 10px; font-weight: 700; color: var(--pc-muted); cursor: pointer; }
.seg button.active { background: var(--pc-card); color: var(--pc-ink); box-shadow: var(--pc-shadow); }

.chart-box { height: 260px; position: relative; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-tile {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--pc-line);
  border-radius: 16px; background: var(--pc-card);
}
.more-tile i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pc-primary-soft); color: var(--pc-primary); }

.id-card {
  width: min(340px, 100%); aspect-ratio: 1.6; border-radius: 20px; padding: 18px;
  background: linear-gradient(135deg, #1d2660, #14a896); color: #fff; position: relative;
}
.letter-preview { border: 1px solid var(--pc-line); border-radius: 16px; min-height: 220px; padding: 28px; background: #fff; color: #111; }
.letter-form { display: grid; gap: 14px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-card {
  background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 20px;
  padding: 22px; box-shadow: var(--pc-shadow); display: grid; gap: 8px; align-content: start;
}
.demo-card h3 { margin: 0; letter-spacing: -.02em; }
.demo-card p { margin: 0 0 8px; color: var(--pc-muted); font-size: .92rem; }
.demo-card .n { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--pc-muted); }
.demo-banner {
  background: var(--pc-primary-soft); color: var(--pc-primary-2);
  border-radius: 14px; padding: 10px 14px; font-size: .88rem; font-weight: 700; margin-bottom: 14px;
}
.demo-banner a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.tenant-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pc-mint-soft); color: var(--pc-mint-2);
  border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 700;
}
.plain-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.plain-list li { font-size: .9rem; color: var(--pc-muted); }

.mobile-only { display: none; }
.desktop-only { display: block; }

/* Responsive */
@media (max-width: 1199.98px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .split-3 { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .mk-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .bento > *, .bento .wide { grid-column: span 6; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  :root { --pc-bottom: 72px; }
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform .22s ease; box-shadow: var(--pc-shadow-lg);
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(10,12,24,.45); z-index: 35; }
  .menu-btn { display: grid; }
  .bottom-nav { display: grid; }
  .user-chip span, .user-chip small, .user-chip > div { display: none; }
  .user-chip .avatar { display: grid; }
  .mk-links { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 28px 22px; }
  .split-2, .split-3, .price-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .search-pill span { display: none; }
  .mobile-only { display: block; }
  .content { padding: 16px 14px 24px; }
}

@media (max-width: 767.98px) {
  .demo-grid { grid-template-columns: 1fr; }
  .bento > *, .bento .wide, .bento .tall { grid-column: span 1; }
  .page-head h1 { font-size: 1.28rem; }
  .head-actions { width: 100%; }
  .head-actions .btn { width: 100%; justify-content: center; }
  .punch-hero .d-flex.gap-2 { width: 100%; flex-wrap: wrap; }
  .punch-hero .btn { flex: 1 1 140px; }
  .toolbar .filter, .toolbar .input, .toolbar .select { max-width: none; width: 100%; }
  .pc-table { min-width: 0; }
  .pc-table thead { display: none; }
  .pc-table, .pc-table tbody, .pc-table tr, .pc-table td { display: block; width: 100%; }
  .pc-table tr {
    background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: 16px;
    margin-bottom: 12px; padding: 8px 4px; box-shadow: var(--pc-shadow);
  }
  .pc-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0; padding: 8px 12px;
  }
  .pc-table td::before {
    content: attr(data-label); font-size: .75rem; font-weight: 800; color: var(--pc-faint);
    text-transform: uppercase; letter-spacing: .04em;
  }
  .kanban { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .float-b { position: static; width: 100%; margin-top: 12px; }
  .toast-wrap { left: 12px; right: 12px; bottom: 84px; }
  .drawer-panel { width: 100%; border-radius: 20px 20px 0 0; top: auto; height: min(86vh, 100%); }
}

@media (max-width: 479.98px) {
  .mk-nav { padding: 14px 16px; }
  .kpi-value { font-size: 1.25rem; }
  .punch-time { font-size: 2rem; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .head-actions, .btn { display: none !important; }
  .main { padding: 0; }
  .card { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
