:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --accent: #0284c7;
  --header-bg: #0f172a;
  --radius-card: 14px;
  --radius-btn: 9px;
  --radius-input: 9px;
  --card-pad: 20px;
}
body[data-radius="sharp"] { --radius-card: 6px; --radius-btn: 5px; --radius-input: 5px; }
body[data-radius="modern"] { --radius-card: 14px; --radius-btn: 9px; --radius-input: 9px; }
body[data-radius="soft"] { --radius-card: 20px; --radius-btn: 12px; --radius-input: 12px; }
body[data-density="compact"] { --card-pad: 14px; font-size: 13px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .brand-title, .kpi-val { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; letter-spacing: -0.02em; }
code, .mono, .kpi-val, .price-tag { font-variant-numeric: tabular-nums; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: 12px; }

/* SaaS Sidebar Shell */
.saas-shell { display: flex; min-height: 100vh; }
.saas-sidebar { width: 256px; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; border-right: 1px solid var(--border); transition: transform .2s ease; }
.saas-sidebar.is-dark { background: var(--header-bg); color: #e2e8f0; border-right-color: rgba(255,255,255,0.08); }
.saas-sidebar.is-light { background: #ffffff; color: #0f172a; }
.saas-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid rgba(148,163,184,0.16); }
.saas-sidebar.is-dark .brand-sub { color: rgba(226,232,240,0.65); }
.saas-sidebar-section { padding: 12px 14px 4px; }
.saas-tenant-select { width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.08); color: inherit; border: 1px solid rgba(148,163,184,0.25); }
.saas-sidebar.is-light .saas-tenant-select { background: #f8fafc; color: #0f172a; }
.saas-side-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.saas-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; opacity: 0.55; }
.saas-side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-radius: var(--radius-btn); text-decoration: none; font-size: 13px; font-weight: 600; color: inherit; opacity: 0.78; transition: background .15s, opacity .15s; }
.saas-side-nav a:hover { opacity: 1; background: rgba(148,163,184,0.12); }
.saas-side-nav a.active { opacity: 1; background: var(--brand); color: #ffffff; }
.saas-sidebar-footer { padding: 12px 14px; border-top: 1px solid rgba(148,163,184,0.16); }
.saas-user-card { display: flex; align-items: center; gap: 10px; }
.saas-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.saas-user-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saas-user-role { font-size: 11px; opacity: 0.65; }
.saas-logout-link { font-size: 11px; font-weight: 700; color: inherit; text-decoration: none; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(148,163,184,0.3); opacity: 0.85; }
.saas-logout-link:hover { opacity: 1; }
.saas-workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.saas-topbar { height: 56px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 30; }
.saas-topbar-left, .saas-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saas-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.saas-main { max-width: 1360px; width: 100%; margin: 0 auto; padding: 24px; flex: 1; }
.saas-footer-inner { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.mobile-menu-btn { display: none; }
.saas-backdrop { display: none; }
@media (max-width: 960px) {
  .mobile-menu-btn { display: inline-flex; }
  .saas-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); }
  .saas-sidebar.open { transform: translateX(0); }
  .saas-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 35; }
  .saas-topbar { padding: 0 14px; }
  .saas-main { padding: 16px; }
}

.container { max-width: 1260px; margin: 0 auto; padding: 0 18px; }
.topbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.brand-group, .user-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-logo { width: 34px; height: 34px; border-radius: var(--radius-btn); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--brand); flex-shrink: 0; font-size: 13px; }
.brand-logo.lg { width: 46px; height: 46px; margin: 0 auto 12px; font-size: 17px; }
.brand-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--muted); }
.nav-bar { border-top: 1px solid #f1f5f9; background: #fff; overflow-x: auto; }
.nav-links { display: flex; gap: 4px; padding: 8px 0; }
.nav-links a { padding: 6px 12px; border-radius: var(--radius-btn); text-decoration: none; color: #475569; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s; }
.nav-links a:hover { background: #f8fafc; color: #0f172a; }
.nav-links a.active { background: var(--brand); color: #fff; }
.nav-links a.nav-settings { margin-left: auto; background: #f1f5f9; color: #0f172a; }
.nav-links a.nav-settings.active { background: var(--header-bg); color: #fff; }
.pill-count { background: #2563eb; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pill-count.danger { background: #e11d48; }
.pill-count.emerald { background: #059669; }
.pill-count.amber { background: #d97706; }
.main-content { padding: 24px 18px 48px; }
.hero-card { color: #fff; padding: 24px 26px; border-radius: var(--radius-card); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; border: 1px solid rgba(255,255,255,0.1); }
.hero-badge { background: rgba(255,255,255,0.16); padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-card h1 { margin: 8px 0 4px; font-size: 24px; }
.hero-card p { margin: 0; opacity: 0.88; font-size: 13px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.card-header h2 { margin: 0; font-size: 16px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: calc(var(--radius-card) - 2px); border: 1px solid var(--border); background: #fff; flex-wrap: wrap; }
.action-row.urgency-high { border-color: #fecdd3; background: #fff8f8; }
.action-row.urgency-medium { border-color: #fde68a; background: #fffdf5; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; }
.kpi-val { font-size: 24px; font-weight: 800; margin-top: 4px; color: #0f172a; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: var(--radius-btn); border: 1px solid transparent; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; transition: opacity .15s, background .15s, border-color .15s; font-family: inherit; }
.btn:hover { opacity: 0.92; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--header-bg); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-emerald { background: #059669; color: #fff; }
.btn-white { background: #fff; color: #0f172a; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost { background: #ffffff; color: #1e293b; border: 1px solid var(--border); }
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; opacity: 1; }
.action-group { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.btn-action { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; font-family: inherit; box-shadow: 0 1px 2px rgba(15,23,42,.04); border: 1px solid var(--border); background: #fff; color: #1e293b; }
.btn-action-view { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.btn-action-view:hover { background: #f1f5f9; border-color: #94a3b8; }
.btn-action-edit { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.btn-action-edit:hover { background: #fef3c7; border-color: #fcd34d; }
.btn-action-invoice { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.btn-action-invoice:hover { background: #e0e7ff; border-color: #a5b4fc; }
.btn-action-status { background: #fff; color: #334155; border-color: #cbd5e1; }
.btn-action-status:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-action-confirm { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.btn-action-confirm:hover { background: #d1fae5; border-color: #6ee7b7; }
.btn-action-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn-action-danger:hover { background: #ffe4e6; border-color: #fda4af; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; margin-right: 4px; }
.badge-high { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.badge-medium { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; padding: 4px 10px; }
.status-pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.status-confirmed { background: #ecfdf5; color: #047857; }
.status-option, .status-requested { background: #fffbeb; color: #b45309; }
.status-cancelled { background: #fff1f2; color: #be123c; }
.status-new { background: #eff6ff; color: #1d4ed8; }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: #f8fafc; padding: 11px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; padding: 12px 14px; border-radius: var(--radius-card); border: 1px solid var(--border); margin-bottom: 18px; }
.filter-bar input, .filter-bar select, input, select, textarea { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: var(--radius-input); font-size: 13px; width: 100%; font-family: inherit; background: #fff; color: var(--ink); }
.filter-bar input:focus, input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,99,235,0.18); border-color: var(--brand); }
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar select { width: auto; }
.select-sm { padding: 5px 10px; font-size: 12px; width: auto; background: #f8fafc; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; color: #334155; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }

/* Pre-config theme presets grid */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.preset-card { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.preset-card:hover { border-color: #94a3b8; }
.preset-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.preset-wireframe { height: 74px; border-bottom: 1px solid var(--border); display: flex; overflow: hidden; }
.wf-sidebar { width: 44px; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.wf-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.wf-line { height: 4px; border-radius: 2px; width: 100%; display: block; }
.wf-line.short { width: 65%; }
.wf-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.wf-top { height: 10px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 3px; }
.wf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.wf-cards > div { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 4px; }
.wf-topbar-wrap { flex: 1; display: flex; flex-direction: column; }
.wf-topbar { height: 18px; padding: 3px 8px; display: flex; align-items: center; }
.preset-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.preset-title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.swatch-row { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.crm-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.crm-list-item { display: block; padding: 13px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit; transition: background .15s; }
.crm-list-item:hover { background: #f8fafc; }
.crm-list-item.active { background: #f1f5f9; font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.comm-item { padding: 12px 14px; border-radius: calc(var(--radius-card) - 2px); border: 1px solid var(--border); margin-bottom: 10px; }
.comm-inbound { background: #eff6ff; border-color: #bfdbfe; }
.comm-outbound { background: #fff; }
.comm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-card { background: #fff; border-radius: var(--radius-card); max-width: 500px; width: 100%; padding: 24px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.info-box { background: #f8fafc; border: 1px solid var(--border); padding: 12px 14px; border-radius: calc(var(--radius-card) - 2px); font-size: 13px; margin-bottom: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.checkbox-row input { width: auto; }
.alert { padding: 13px 16px; border-radius: var(--radius-card); margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.alert-success { background: #0f172a; color: #fff; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 16px; }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; background: #e2e8f0; padding: 4px; border-radius: var(--radius-card); }
.subtabs a { padding: 7px 13px; border-radius: calc(var(--radius-btn) - 1px); text-decoration: none; color: #475569; font-weight: 600; font-size: 13px; transition: background .15s, color .15s; }
.subtabs a:hover { color: #0f172a; }
.subtabs a.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px; max-width: 420px; width: 100%; box-shadow: 0 16px 40px rgba(15,23,42,.06); }
.login-header { text-align: center; margin-bottom: 24px; }
.login-hint { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { margin: 0; font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-green { color: #059669; }
.text-amber { color: #d97706; }
.text-danger { color: #e11d48; }
.footer { text-align: center; padding: 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.5); }
.inq-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inq-body { flex: 1; min-width: 240px; }
.inq-specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin: 8px 0; background: #f8fafc; padding: 8px 12px; border-radius: 8px; }
.inq-msg { background: #fff; border: 1px solid var(--border); padding: 10px; border-radius: 8px; font-style: italic; }
.inq-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; }
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { background: #f1f5f9; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.prop-top { display: flex; justify-content: space-between; align-items: flex-start; }
.price-tag { color: #059669; font-size: 16px; }
.prop-specs { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.lang-switcher { display: inline-flex; background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.lang-pill { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; color: #475569; }
.lang-pill.active { background: var(--header-bg); color: #fff; }
.inline-form { display: inline-block; margin: 0; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--radius-card); }
@media (max-width: 900px) {
  .crm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .responsive-cards .data-table thead { display: none; }
  .responsive-cards .data-table tr { display: block; border-bottom: 6px solid var(--bg); padding: 12px; }
  .responsive-cards .data-table td { display: flex; justify-content: space-between; padding: 6px 4px; border: none; }
  .responsive-cards .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 11px; }
}
.cal-wrap { overflow-x: auto; padding: 12px; }
.cal-period-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.cal-timeline { min-width: 920px; }
.cal-row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--border); align-items: stretch; }
.cal-head-row { background: #f8fafc; font-size: 11px; color: var(--muted); border-radius: 10px 10px 0 0; }
.cal-prop-cell { padding: 10px 12px; border-right: 1px solid var(--border); }
.cal-days-track { display: grid; position: relative; min-height: 50px; }
.cal-head-row .cal-days-track { min-height: 32px; align-items: center; }
.cal-day-head { text-align: center; font-weight: 700; padding: 6px 0; border-right: 1px solid #f1f5f9; }
.cal-day-head.is-today { background: #fef3c7; color: #92400e; }
.cal-track-cell { border-right: 1px solid #f1f5f9; height: 100%; }
.cal-bar { position: absolute; top: 9px; bottom: 9px; border-radius: 7px; padding: 0 8px; display: flex; align-items: center; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 2; }
.cal-confirmed { background: #059669; color: #fff; }
.cal-option { background: #f59e0b; color: #fff; }
.cal-ical { background: #7c3aed; color: #fff; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-grid-head { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px; }
.cal-cell { min-height: 92px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.cal-pad { background: #f8fafc; border-color: transparent; }
.cal-cell.is-today { border: 2px solid var(--brand); background: #fffbeb; }
.cal-cell-num { font-size: 12px; font-weight: 700; color: #475569; }
.cal-chip { display: block; padding: 3px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
