:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: #dbeafe;
  --success: #047857;
  --success-soft: #dcfce7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --warning: #92400e;
  --warning-soft: #fef3c7;
  --sidebar: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, .07);
  --radius: 20px;
  --sidebar-width: 250px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100%; margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
small { display: block; color: var(--muted); margin-top: 3px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: var(--sidebar);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; font-size: 1.05rem; letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.35); }
.nav-section { display: grid; gap: 6px; }
.nav-label { margin: 10px 10px 4px; color: #94a3b8; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 900; }
.nav-section a, .logout-form button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #cbd5e1;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  font-weight: 750;
}
.nav-section a:hover, .logout-form button:hover { background: rgba(148,163,184,.14); color: #fff; }
.logout-form { margin-top: auto; }

.main-panel { min-width: 0; }
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(244,247,251,.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-title { font-weight: 850; color: #334155; }
.user-chip { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--muted); font-weight: 750; }
.content { padding: 26px 28px 42px; max-width: 1640px; margin: 0 auto; }
.flash-area { padding: 0 28px; }
.flash { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: #1d4ed8; border: 1px solid rgba(37,99,235,.18); }
.flash-success { background: var(--success-soft); color: var(--success); border-color: rgba(4,120,87,.18); }
.flash-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(185,28,28,.18); }
.flash-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(146,64,14,.18); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.no-pad { padding: 0; }
.eyebrow { display: inline-block; color: var(--primary); text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 900; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
h2 { font-size: 1.32rem; line-height: 1.15; }
h3 { font-size: 1.05rem; line-height: 1.2; }
p { line-height: 1.55; }
.muted, .hint { color: var(--muted); }
.hint { margin: 8px 0 12px; font-size: .9rem; }
.notice { background: #eff6ff; color: #1d4ed8; padding: 12px; border-radius: 14px; margin: 4px 0; }

.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 11px 12px;
  background: white;
  color: var(--text);
  outline: none;
  min-height: 44px;
}
select.input { appearance: auto; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.multi { min-height: 150px; }
label { display: grid; gap: 6px; font-weight: 750; color: #1e293b; }
label small { font-weight: 500; }

.button, .ghost-button, .danger-button, .icon-button {
  border: 0;
  border-radius: 13px;
  min-height: 42px;
  padding: 10px 15px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(37,99,235,.25); }
.button:hover { background: var(--primary-2); }
.button-secondary, .ghost-button { background: #eef2f7; color: #1f2937; box-shadow: none; }
.button-secondary:hover, .ghost-button:hover { background: #e2e8f0; }
.danger-button { background: var(--danger-soft); color: var(--danger); }
.icon-button { width: 42px; padding: 0; background: #eef2f7; color: #111827; font-size: 1.4rem; }
.full { width: 100%; }
.actions, .action-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.inline-form { margin: 0; display: inline-flex; }

.page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.grid { display:grid; gap:18px; }
.grid.two, .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { display:grid; gap: 14px; }
.form-stack { display:grid; gap: 14px; }
.form-stack.compact { gap: 11px; }
.form-grid { display:grid; gap:12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-card { max-width: 820px; }
.auth-card { max-width: 470px; margin: 8vh auto; padding: 28px; }
.checkline { display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:650; }
.center { text-align:center; }
.hero { max-width: 980px; }
.lead { color: var(--muted); font-size: 1.1rem; }

.stats-grid, .metrics-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat, .metric { padding: 18px; }
.stat span, .metric strong { display:block; font-size: 2.1rem; line-height: 1; letter-spacing: -.05em; font-weight: 900; }
.stat p, .metric p { margin: 9px 0 0; color: var(--muted); }
.company-card h2 { margin: 8px 0; }

.table-card { padding: 0; overflow: hidden; }
.responsive-table { overflow-x: auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: #f8fafc; }
td strong { display: block; }
tr:last-child td { border-bottom: 0; }
.pill, .badge { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:.78rem; font-weight:900; margin: 2px 4px 2px 0; }
.ok { color: var(--success); font-weight: 850; }
.danger-text { color: var(--danger); font-weight: 850; }

.table-list, .quick-actions, .mini-list, .rules-list { display:grid; gap:10px; }
.list-row { display:flex; align-items:center; justify-content:space-between; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; background: #f8fafc; }
.list-row:hover { background: #fff; border-color: #bfdbfe; }
.list-row span { display:grid; gap:2px; }
.list-row em { color: var(--muted); font-style: normal; font-weight: 750; white-space: nowrap; }
.quick-actions a { padding: 13px 14px; border: 1px solid var(--border); border-radius: 15px; background: #f8fafc; font-weight: 850; }
.quick-actions a:hover { border-color: #bfdbfe; background: #eff6ff; color: var(--primary); }
.card-title-row { display:flex; justify-content:space-between; align-items:flex-start; gap: 12px; margin-bottom: 10px; }
.card-title-row a { color: var(--primary); font-weight: 850; }
.hours-list { display:grid; gap:7px; margin-top: 12px; }
.hours-list div { display:grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #f8fafc; }
.hours-list span { color: var(--muted); font-weight: 750; }
.hours-list strong { font-weight: 850; }
.hours-list.large div { grid-template-columns: 140px minmax(0, 1fr); }
.rule-row { display:grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items:center; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background:#f8fafc; }
.rule-row span, .rule-row em { color: var(--muted); font-style: normal; }

/* Planner */
.planner-page { display:grid; gap:18px; }
.planner-toolbar { padding: 18px; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.planner-title-block { min-width: 280px; }
.planner-title-block p { margin: 8px 0 0; max-width: 820px; }
.planner-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.segmented { display:flex; padding:4px; border-radius:15px; background:#eef2f7; }
.segmented button { border:0; background:transparent; border-radius:12px; padding:9px 13px; font-weight:850; color:var(--muted); }
.segmented button.is-active { background:#fff; color:var(--primary); box-shadow:0 6px 16px rgba(15,23,42,.08); }
.planner-stepper { display:flex; gap:8px; }
.compact-select { width:auto; min-width:180px; }
.planner-message { padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: #1d4ed8; font-weight: 750; }
.planner-message.success { background: var(--success-soft); color: var(--success); }
.planner-message.danger { background: var(--danger-soft); color: var(--danger); }
.planner-layout { display:grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items:start; }
.roster-panel { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; }
.roster-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.mini-badge { padding: 6px 10px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-weight:900; }
.employee-list { display:grid; gap:10px; }
.employee-card { --employee-color: var(--primary); --employee-soft: var(--primary-soft); --employee-border: var(--primary); display:grid; grid-template-columns:42px minmax(0,1fr); gap:10px; align-items:center; padding:11px; border:1px solid var(--border); border-left:5px solid var(--employee-color); border-radius:16px; background:var(--panel-soft); cursor:grab; user-select:none; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.employee-card:hover { border-color:#93c5fd; border-left-color:var(--employee-color); background:#fff; box-shadow:0 10px 25px rgba(37,99,235,.09); }
.employee-card:active { cursor:grabbing; }
.employee-card.is-overbooked { border-color:#fecaca; border-left-color:var(--danger); background:#fff7f7; box-shadow:0 0 0 1px rgba(220,38,38,.08); }
.avatar { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; background:#e0e7ff; color:#3730a3; font-weight:900; }
.employee-avatar { background:var(--employee-soft); color:var(--employee-border); }
.employee-main { min-width:0; display:grid; gap:3px; }
.employee-main strong, .employee-main span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.employee-main span, .employee-main small { color:var(--muted); font-size:.82rem; }
.employee-main small b { color:var(--text); }
.employee-main small em { color:var(--danger); font-style:normal; font-weight:900; margin-left:4px; }
.capacity-bar { height:7px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.capacity-bar i { display:block; height:100%; background:var(--employee-color); border-radius:999px; transition:width .2s ease; }
.capacity-bar i.is-over { background:var(--danger); }
.empty-note { color: var(--muted); text-align:center; padding: 20px; }
.staffing-widget { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.staffing-widget-head { display:grid; gap:3px; margin-bottom: 10px; }
.staffing-list { display:grid; gap: 8px; }
.staffing-item { padding: 10px; border: 1px solid var(--border); border-radius: 14px; background:#f8fafc; display:grid; gap:3px; }
.staffing-item strong { font-size: .92rem; }
.staffing-item span { color: var(--muted); font-size: .82rem; }
.calendar-panel { min-width:0; padding: 16px; }
.calendar-header-line { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.copy-form { margin:0; }
.fullcalendar-wrap { min-height: 720px; }

/* FullCalendar polish */
.fc { --fc-border-color: #e2e8f0; --fc-small-font-size: .82rem; font-family: inherit; }
.fc .fc-scrollgrid { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: none; }
.fc .fc-col-header-cell { background: #f8fafc; padding: 8px 0; }
.fc .fc-col-header-cell-cushion { color: #334155; font-weight: 900; text-decoration: none; padding: 6px; }
.fc .fc-timegrid-slot { height: 2.55rem; }
.fc .fc-timegrid-slot-label { color: #64748b; font-weight: 750; font-size: .78rem; }
.fc .fc-timegrid-now-indicator-line { border-color: var(--danger); }
.fc .fc-timegrid-now-indicator-arrow { border-color: var(--danger); border-top-color: transparent; border-bottom-color: transparent; }
.fc .fc-bg-event { opacity: .16; background: var(--success); }
.fc .fc-event { border: 0; border-radius: 12px; padding: 0; box-shadow: 0 10px 22px rgba(37,99,235,.20); overflow: hidden; }
.fc .fc-event-main { padding: 7px 9px; }
.fc .fc-event:hover { filter: brightness(1.03); }
.fc-event-content { display:grid; gap:1px; line-height:1.15; }
.fc-event-content strong { font-size: .84rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fc-event-content span { font-size:.8rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fc-event-content small { color: rgba(255,255,255,.80); font-size:.72rem; }
.fc .fc-daygrid-event { white-space: normal; }
.fc .fc-daygrid-day.fc-day-today, .fc .fc-timegrid-col.fc-day-today { background: #eff6ff; }
.fc .fc-highlight { background: rgba(37,99,235,.12); }
.fc .fc-non-business { background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px); }

.shift-drawer { position: fixed; top: 0; right: 0; z-index: 50; width: min(480px, 100vw); height: 100vh; overflow:auto; background:#fff; box-shadow:-24px 0 70px rgba(15,23,42,.18); padding:22px; transition:transform .22s ease, opacity .22s ease; }
.drawer-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.28); z-index:45; transition:opacity .2s ease; }
.shift-drawer.is-hidden { transform: translateX(105%); opacity:0; pointer-events:none; }
.drawer-backdrop.is-hidden { opacity:0; pointer-events:none; }
.drawer-form { display:grid; gap:14px; }
.drawer-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px; }
.drawer-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.drawer-actions .danger-button { margin-right:auto; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; flex-direction:row; align-items:center; overflow:auto; padding:12px; }
  .brand { min-width:max-content; }
  .nav-section { display:flex; flex-direction:row; align-items:center; min-width:max-content; }
  .nav-label { display:none; }
  .nav-section a, .logout-form button { min-height:38px; padding:8px 10px; }
  .logout-form { margin-left:auto; margin-top:0; }
  .planner-layout { grid-template-columns: 1fr; }
  .roster-panel { position:relative; top:auto; max-height:none; }
  .employee-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 760px) {
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .grid.two, .grid.three, .two-col, .form-grid.two { grid-template-columns: 1fr; }
  .planner-toolbar, .calendar-header-line, .page-header { flex-direction: column; align-items: stretch; }
  .planner-actions { justify-content: stretch; }
  .planner-actions > * { width: 100%; }
  .planner-stepper, .segmented { width: 100%; }
  .planner-stepper button, .segmented button { flex: 1; }
  .calendar-panel, .roster-panel { padding: 12px; }
  .fullcalendar-wrap { min-height: 620px; }
  .hours-list div, .rule-row { grid-template-columns: 1fr; }
}


/* v5 form and self-service polish */
.form-stack label,
.drawer-form label,
.form-grid label,
.two-col label {
  display: grid;
  gap: 8px;
  align-content: start;
  font-weight: 850;
  color: #0f172a;
}
.form-stack .input,
.drawer-form .input,
.form-grid .input,
.two-col .input {
  margin-top: 0;
}
.input[type="date"],
.input[type="time"],
.input[type="number"] {
  line-height: 1.2;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}
.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  background: #e9eef6;
  margin: 0 0 18px;
  gap: 4px;
}
.tab {
  padding: 10px 16px;
  border-radius: 13px;
  font-weight: 900;
  color: var(--muted);
}
.tab.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.absence-section { margin-top: 18px; }
.badge.warning,
.status-requested { background: var(--warning-soft); color: var(--warning); }
.status-approved { background: var(--success-soft); color: var(--success); }
.status-rejected,
.status-cancelled { background: var(--danger-soft); color: var(--danger); }
.absence-row {
  align-items: flex-start;
}
.absence-row .action-row {
  flex-wrap: nowrap;
}
@media (max-width: 980px) {
  .section-head { padding: 16px 16px 0; }
  .absence-row { display: grid; }
  .absence-row .action-row { justify-content: stretch; }
  .absence-row .button,
  .absence-row .danger-button { flex: 1; }
}


/* v6 visual polish: cleaner forms, native-select replacement, safer spacing */
.content {
  width: 100%;
  padding: clamp(22px, 3vw, 38px);
  max-width: 1680px;
  overflow-x: hidden;
}
.page-header {
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 4px;
  margin-bottom: 22px;
}
.page-header > div:first-child {
  min-width: 260px;
}
.eyebrow {
  margin: 0 0 12px;
}
.page-header h1 {
  margin-top: 0;
}
.card > h2,
.card-title-row {
  margin-bottom: 16px;
}
.card > p:first-of-type.muted {
  margin-top: 0;
}
.grid.two {
  align-items: start;
}

/* Labels should guide, fields should not inherit the label's heavy typography. */
label {
  font-size: .92rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.form-stack,
.drawer-form,
.form-grid,
.two-col {
  row-gap: 16px;
}
.form-stack label,
.drawer-form label,
.form-grid label,
.two-col label {
  gap: 9px;
  font-weight: 850;
}
.center .form-stack,
.center .drawer-form,
.center .form-grid,
.center .two-col {
  text-align: left;
}
.auth-card.center > .eyebrow,
.auth-card.center > h1,
.auth-card.center > h2,
.auth-card.center > p:not(.muted) {
  text-align: center;
}

.input {
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: -.015em;
  border-color: #cbd5e1;
  background-color: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}
.input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}
textarea.input {
  line-height: 1.45;
}

/* Styled selects: avoid the ugly native dropdown look while staying accessible. */
select.input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #475569 50%),
    linear-gradient(135deg, #475569 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
select.input:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}
select.input:focus {
  background-color: #fff;
}
select.input option {
  color: #0f172a;
  font-weight: 600;
  background: #fff;
}

input[type="date"].input,
input[type="time"].input,
input[type="datetime-local"].input,
input[type="number"].input {
  font-weight: 700;
  color: #334155;
}

.auth-card {
  width: min(100%, 720px);
}
.auth-card .button.full,
.form-card .button,
.form-card .button.full {
  margin-top: 6px;
}

.stat.card,
.metric.card {
  padding: 24px;
}
.quick-actions a,
.list-row {
  min-height: 58px;
}
.quick-actions a {
  display: flex;
  align-items: center;
}
.list-row {
  align-items: center;
}

@media (max-width: 900px) {
  .content { padding: 18px; }
  .page-header { display: grid; gap: 14px; }
  .page-header .actions,
  .page-header .button { width: 100%; }
}

/* v7 workflows */
.mt { margin-top: 18px; }
.padded { padding: 18px 20px 10px; }
.segmented a { border:0; background:transparent; border-radius:12px; padding:9px 13px; font-weight:850; color:var(--muted); }
.segmented a.is-active { background:#fff; color:var(--primary); box-shadow:0 6px 16px rgba(15,23,42,.08); }
.compact-list { gap: 8px; }
.warning-row { background: var(--warning-soft); border-color: rgba(146,64,14,.22); }
.danger-row { background: var(--danger-soft); border-color: rgba(185,28,28,.22); }
.ok { color: var(--success); }
.employee-hero { align-items:center; }
.employee-identity { display:flex; gap:16px; align-items:center; min-width:0; }
.avatar-large { width:72px; height:72px; border-radius:24px; font-size:1.25rem; flex:0 0 auto; }
.active-clock-card { display:flex; align-items:center; justify-content:space-between; gap:18px; background:linear-gradient(135deg, #eff6ff, #fff); border-color:#bfdbfe; }
.clock-card { max-width: 680px; }
.hours-toolbar { align-items:center; }
.hours-toolbar .segmented { align-self:center; }
.form-card .form-stack { margin-top: 14px; }
.table-card .card-title-row.padded { margin-bottom:0; }
.list-row a { color: var(--primary); }

@media (max-width: 900px) {
  .employee-identity { align-items:flex-start; }
  .active-clock-card { display:grid; }
}


/* v8 admin CRUD polish */
.table-actions { display: flex; align-items: center; gap: .45rem; justify-content: flex-end; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.mini-actions { display: flex; gap: .75rem; align-items: center; }
.inline-form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.inline-form label { margin: 0; min-width: 180px; }
.info-box { border: 1px solid var(--border); border-radius: 16px; padding: .85rem 1rem; background: var(--surface-soft); display: grid; gap: .25rem; }
.info-box strong { font-size: .9rem; }
.info-box span { color: var(--muted); font-size: .85rem; }
.danger-zone { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-color: rgba(220, 38, 38, .22); }
.button-danger { background: #dc2626; border-color: #dc2626; color: white; }
.wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); }
.opening-editor { display: grid; gap: .7rem; }
.opening-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; align-items: end; gap: .75rem; padding: .75rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.opening-row strong { padding-bottom: .65rem; }
.compact-check { padding-bottom: .65rem; white-space: nowrap; }
.form-card .actions, .page-header .actions { flex-wrap: wrap; }
.empty-state .button { margin-top: 1rem; }
@media (max-width: 900px) {
  .wide-left { grid-template-columns: 1fr; }
  .opening-row { grid-template-columns: 1fr; align-items: stretch; }
  .opening-row strong, .compact-check { padding-bottom: 0; }
  .danger-zone { align-items: stretch; flex-direction: column; }
}

/* v9 workflow additions */
.nav-badge { display:inline-flex; min-width:1.35rem; height:1.35rem; align-items:center; justify-content:center; border-radius:999px; background:#111827; color:white; font-size:.72rem; margin-left:.35rem; padding:0 .35rem; }
.mb { margin-bottom: 1rem; }
.gap { gap: .5rem; }
.compact-input { min-width: 12rem; padding: .55rem .7rem; }
.tiny-code { display:block; max-width:100%; overflow:auto; padding:.45rem .6rem; border-radius:.6rem; background:#f3f4f6; color:#374151; font-size:.75rem; }
.list-row.stacked { align-items:flex-start; gap:.75rem; }
.list-row.stacked > span { display:flex; flex-direction:column; gap:.25rem; }
button:disabled, .button:disabled { opacity:.55; cursor:not-allowed; }
.notice { border:1px solid #dbeafe; background:#eff6ff; color:#1e3a8a; padding:.8rem 1rem; border-radius:.85rem; }
.warning-row { background:#fffbeb; border-color:#fde68a; }
.ok { color:#047857; }
@media (max-width: 760px) { .inline-form.gap { flex-direction: column; align-items: stretch; } .compact-input { min-width: 100%; } }

/* v11 planner workflow */
.planner-week-actions {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.planner-week-actions > div:first-child { display: grid; gap: 3px; }
.planner-week-actions span { color: var(--muted); font-weight: 750; }
.action-row.wrap { flex-wrap: wrap; }
.action-row form { margin: 0; }
.plan-status,
.planner-mini-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(245,158,11,.24);
}
.status-published,
.badge.status-published { background: #dbeafe; color: #1d4ed8; border-color: rgba(37,99,235,.18); }
.status-locked,
.badge.status-locked { background: #fee2e2; color: #991b1b; border-color: rgba(185,28,28,.18); }
.status-draft,
.badge.status-draft { background: #fef3c7; color: #92400e; border-color: rgba(245,158,11,.24); }
.planner-message a { color: inherit; text-decoration: underline; font-weight: 900; }
.shift-status-draft .fc-event-main,
.shift-status-published .fc-event-main { background: transparent; }
.shift-status-cancelled .fc-event-main { background: rgba(100,116,139,.92); }
.fc-event.is-overbooked { box-shadow: inset 0 0 0 3px #dc2626, 0 8px 18px rgba(220,38,38,.22); }
.fc-event.is-overbooked .fc-event-main { background: rgba(220,38,38,.08); }
.fc-event-content .event-warning { display:inline-flex; margin-top:4px; padding:1px 5px; border-radius:999px; background:rgba(255,255,255,.24); color:#fff; font-weight:900; }
@media (max-width: 980px) {
  .planner-week-actions { align-items: stretch; }
  .planner-week-actions .action-row, .planner-week-actions form, .planner-week-actions button, .planner-week-actions a { width: 100%; }
}

/* v11.1 planner workflow polish */
.planner-week-actions {
  padding: 18px;
  align-items: flex-start;
}
.planner-week-actions > div:first-child strong {
  font-size: .98rem;
  letter-spacing: -.02em;
}
.planner-week-actions .action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.planner-week-actions .action-row form {
  display: inline-flex;
  margin: 0;
}
.planner-week-actions .ghost-button,
.planner-week-actions .button,
.planner-week-actions .danger-button {
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 14px;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: none;
}
.planner-week-actions .ghost-button {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: #1e293b;
}
.planner-week-actions .ghost-button:hover {
  background: #e0ecff;
  border-color: #bfdbfe;
  color: var(--primary-2);
}
.planner-week-actions .danger-button {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.planner-week-actions .danger-button:hover {
  background: #fecaca;
}
.planner-message {
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.planner-message a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.45);
  text-decoration: none;
}
@media (max-width: 980px) {
  .planner-week-actions .action-row,
  .planner-week-actions .action-row form,
  .planner-week-actions .ghost-button,
  .planner-week-actions .button,
  .planner-week-actions .danger-button {
    width: 100%;
  }
}

/* v12 shell: collapsible navigation, icons and richer landing page */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon-sprite symbol,
.nav-svg,
.feature-svg,
.visual-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite symbol#i-dashboard,
.icon-sprite symbol#i-home {
  fill: currentColor;
  stroke: none;
}
.app-shell {
  transition: grid-template-columns .22s ease;
}
.sidebar {
  width: var(--sidebar-width);
  transition: transform .22s ease, opacity .18s ease, width .22s ease, padding .22s ease;
  border-right: 1px solid rgba(148, 163, 184, .12);
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sidebar-toggle,
.topbar-menu {
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #cbd5e1;
  background: rgba(148,163,184,.14);
  cursor: pointer;
  flex: 0 0 auto;
}
.sidebar-toggle:hover {
  color: #fff;
  background: rgba(148,163,184,.22);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-menu {
  color: #334155;
  background: #e9eef6;
  border: 1px solid var(--border);
}
.topbar-menu:hover {
  background: #dbeafe;
  color: var(--primary-2);
  border-color: #bfdbfe;
}
.nav-svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.nav-section a,
.logout-form button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-section a span:not(.nav-badge),
.logout-form button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-section a:hover .nav-svg,
.logout-form button:hover .nav-svg {
  color: #fff;
}
html.sidebar-collapsed-preload .app-shell,
html.sidebar-collapsed .app-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}
html.sidebar-collapsed-preload .sidebar,
html.sidebar-collapsed .sidebar {
  transform: translateX(calc(-1 * var(--sidebar-width)));
  opacity: 0;
  pointer-events: none;
  padding-left: 0;
  padding-right: 0;
}
html.sidebar-collapsed-preload .content,
html.sidebar-collapsed .content {
  max-width: 1880px;
}

.planner-toolbar.card.no-pad,
.planner-week-actions.card.no-pad {
  padding: clamp(20px, 2.2vw, 30px);
}
.planner-week-actions.card.no-pad {
  align-items: center;
}

/* Landing page */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37,99,235,.18), rgba(37,99,235,0) 65%);
  pointer-events: none;
}
.landing-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.landing-copy h1 {
  max-width: 850px;
}
.landing-copy .lead {
  max-width: 720px;
  margin: 18px 0 22px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 750;
}
.hero-proof strong {
  color: var(--text);
}
.landing-visual {
  position: relative;
  min-height: 360px;
  z-index: 1;
}
.visual-orbit {
  position: absolute;
  inset: 26px;
  border: 1px dashed #bfdbfe;
  border-radius: 44px;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, rgba(219,234,254,.42), rgba(255,255,255,.1));
}
.visual-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  box-shadow: 0 22px 55px rgba(15,23,42,.11);
  border-radius: 24px;
  padding: 18px;
}
.visual-card strong,
.visual-card span {
  display: block;
}
.visual-card span {
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
}
.visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 14px;
}
.visual-svg {
  width: 26px;
  height: 26px;
}
.visual-calendar {
  top: 8px;
  left: 34px;
  width: 238px;
}
.visual-hourglass {
  right: 18px;
  top: 112px;
  width: 218px;
}
.visual-location {
  left: 96px;
  bottom: 10px;
  width: 260px;
}
.visual-bars {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.visual-bars i {
  height: 9px;
  border-radius: 999px;
  background: #dbeafe;
}
.visual-bars i:nth-child(2) { width: 70%; background: #bbf7d0; }
.visual-bars i:nth-child(3) { width: 84%; background: #fde68a; }
.landing-grid {
  margin-top: 18px;
}
.feature-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
}
.feature-svg {
  width: 26px;
  height: 26px;
}
.workflow-card {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: workflow;
}
.workflow-step {
  counter-increment: workflow;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
  position: relative;
}
.workflow-step::before {
  content: counter(workflow);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}
.workflow-step strong { display: block; }
.workflow-step span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  html.sidebar-collapsed-preload .app-shell,
  html.sidebar-collapsed .app-shell,
  .app-shell { grid-template-columns: 1fr; }
  html.sidebar-collapsed-preload .sidebar,
  html.sidebar-collapsed .sidebar { display: none; }
  .sidebar { width: auto; transform: none; }
  .sidebar-toggle { display: none; }
  .nav-section a span:not(.nav-badge),
  .logout-form button span { overflow: visible; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-visual { min-height: 330px; }
}

@media (max-width: 760px) {
  .topbar-title { display: none; }
  .user-chip { max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .landing-hero { padding: 24px; }
  .landing-visual { min-height: 440px; }
  .visual-card { position: relative; inset: auto; width: 100%; margin-bottom: 12px; }
  .visual-orbit { display: none; }
  .workflow-steps { grid-template-columns: 1fr; }
}


/* v16 product-grade UI polish */
:root {
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 48%, #06b6d4 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.10), rgba(6,182,212,.10));
}

.button-large { min-height: 50px; padding: 13px 20px; border-radius: 16px; font-size: .98rem; }
.product-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(37,99,235,.10); color:#1d4ed8; border:1px solid rgba(37,99,235,.16); font-weight:900; margin-bottom:14px; }
.product-pill .feature-svg { width:17px; height:17px; }

.landing-hero-pro { min-height: 560px; background: radial-gradient(circle at 15% 15%, rgba(37,99,235,.16), transparent 28%), radial-gradient(circle at 82% 25%, rgba(124,58,237,.13), transparent 30%), #fff; }
.landing-hero-pro::after { content:""; position:absolute; inset:auto -140px -220px auto; width:520px; height:520px; border-radius:999px; background:radial-gradient(circle, rgba(6,182,212,.16), transparent 66%); pointer-events:none; }
.hero-actions { margin-top: 22px; }
.hero-proof-pro span { background:rgba(255,255,255,.74); box-shadow:0 12px 32px rgba(15,23,42,.06); }
.hero-proof-pro .feature-svg { width:18px; height:18px; color:var(--primary); }

.product-showcase { position:relative; min-height:450px; }
.showcase-glow { position:absolute; inset:48px 0 0 24px; border-radius:42px; background:var(--brand-gradient); opacity:.11; filter:blur(12px); }
.mock-window { position:absolute; inset:30px 12px 52px 0; border-radius:28px; border:1px solid rgba(148,163,184,.35); background:rgba(255,255,255,.88); box-shadow:0 30px 80px rgba(15,23,42,.18); overflow:hidden; backdrop-filter: blur(14px); }
.mock-head { height:52px; display:flex; align-items:center; gap:8px; padding:0 18px; border-bottom:1px solid var(--border); background:rgba(248,250,252,.78); }
.mock-head span { width:10px; height:10px; border-radius:999px; background:#cbd5e1; }
.mock-head strong { margin-left:8px; color:#334155; font-size:.85rem; }
.mock-body { display:grid; grid-template-columns:88px minmax(0,1fr); gap:16px; padding:18px; height:calc(100% - 52px); }
.mock-roster { display:grid; gap:12px; align-content:start; }
.mock-roster i { height:48px; border-radius:17px; background:linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, white), #fff); border-left:5px solid var(--c); box-shadow:0 10px 24px rgba(15,23,42,.07); }
.mock-calendar-grid { position:relative; display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); grid-template-rows:repeat(6, 1fr); gap:8px; background:linear-gradient(#eef2f7 1px, transparent 1px), linear-gradient(90deg,#eef2f7 1px, transparent 1px); background-size:100% 44px, 20% 100%; border-radius:20px; padding:12px; }
.mock-event { position:absolute; display:flex; align-items:center; padding:8px 10px; border-radius:14px; color:#fff; font-size:.76rem; font-weight:900; box-shadow:0 12px 26px rgba(15,23,42,.18); }
.mock-event.e1 { left:18px; top:30px; width:42%; background:#2563eb; }
.mock-event.e2 { left:48%; top:76px; width:43%; background:#16a34a; }
.mock-event.e3 { left:14%; top:168px; width:54%; background:#f97316; }
.mock-event.e4 { left:42%; bottom:34px; width:48%; background:#7c3aed; }
.floating-card { position:absolute; display:grid; gap:3px; min-width:150px; padding:15px; border-radius:22px; background:rgba(255,255,255,.94); border:1px solid var(--border); box-shadow:0 18px 48px rgba(15,23,42,.16); }
.floating-card .feature-svg { width:24px; height:24px; color:var(--primary); }
.floating-card strong { font-size:1.1rem; }
.floating-card span { color:var(--muted); font-weight:750; font-size:.86rem; }
.floating-hours { right:2px; bottom:2px; }
.floating-publish { left:-16px; bottom:74px; }
.landing-metrics { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-top:18px; }
.metric-tile { padding:18px; border-radius:22px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); }
.metric-tile strong { display:block; font-size:2rem; line-height:1; letter-spacing:-.05em; }
.metric-tile span { display:block; margin-top:8px; color:var(--muted); font-weight:750; }
.feature-card-pro { position:relative; overflow:hidden; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card-pro::after { content:""; position:absolute; inset:auto -30px -40px auto; width:120px; height:120px; border-radius:999px; background:rgba(37,99,235,.08); }
.feature-card-pro:hover { transform:translateY(-3px); border-color:#bfdbfe; box-shadow:0 24px 58px rgba(15,23,42,.10); }
.workflow-card-pro { background:linear-gradient(135deg, #fff, #f8fbff); }
.workflow-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.workflow-chip { display:inline-flex; align-items:center; padding:9px 12px; border-radius:999px; background:#eef2ff; color:#3730a3; font-weight:900; }
.workflow-steps-pro .workflow-step { background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.05); }

/* Planner focus and color polish */
.planner-page { gap:22px; }
.planner-toolbar.card.no-pad, .planner-week-actions.card.no-pad { padding:clamp(22px, 2.4vw, 34px); }
.planner-layout { grid-template-columns: 340px minmax(0, 1fr); gap:22px; transition:grid-template-columns .2s ease; }
.planner-page.roster-collapsed .planner-layout { grid-template-columns: 0 minmax(0,1fr); gap:0; }
.planner-page.roster-collapsed .roster-panel { overflow:hidden; opacity:0; padding:0; border:0; pointer-events:none; }
.roster-panel { position:sticky; top:88px; max-height:calc(100vh - 112px); overflow:auto; transition:opacity .18s ease, padding .18s ease; }
.calendar-panel { min-width:0; }
.calendar-header-line { align-items:flex-start; gap:16px; }
.calendar-header-meta { display:grid; justify-items:end; gap:10px; }
.planner-color-legend { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; max-width:360px; }
.legend-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:999px; color:#334155; background:var(--employee-soft); border:1px solid var(--employee-border); font-size:.72rem; font-weight:950; }
.legend-chip i { width:11px; height:11px; border-radius:999px; background:var(--employee-color); box-shadow:0 0 0 3px color-mix(in srgb, var(--employee-color) 16%, white); }
.legend-chip.is-overbooked { border-color:#dc2626; color:#991b1b; background:#fff7f7; }
.employee-card { padding:13px; border-radius:18px; background:linear-gradient(135deg, var(--employee-soft), #fff 62%); }
.employee-avatar { background:var(--employee-color); color:#fff; box-shadow:0 10px 22px color-mix(in srgb, var(--employee-color) 26%, transparent); }
.employee-card .employee-main small { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.employee-card .employee-main em { display:inline-flex; padding:2px 6px; border-radius:999px; background:#fee2e2; color:#991b1b; font-style:normal; font-weight:950; }
.capacity-bar { height:7px; border-radius:999px; background:#e2e8f0; margin-top:8px; overflow:hidden; }
.capacity-bar i { display:block; height:100%; border-radius:inherit; }
.fc .fc-timegrid-slot { height:2.15em; }
.fc .fc-event { border-radius:12px; border-width:2px; overflow:hidden; }
.fc-event-rich { display:grid; gap:2px; padding:2px 3px; }
.fc-event-topline { display:flex; align-items:center; gap:6px; min-width:0; }
.fc-event-topline i { width:22px; height:22px; border-radius:9px; display:grid; place-items:center; background:rgba(255,255,255,.22); color:#fff; font-size:.68rem; font-weight:950; font-style:normal; }
.fc-event-topline strong { white-space:nowrap; }
.fc-event-topline em { margin-left:auto; font-size:.62rem; font-style:normal; padding:2px 5px; border-radius:999px; background:rgba(255,255,255,.20); text-transform:uppercase; }
.fc-event.is-overbooked { border-color:#dc2626 !important; box-shadow:inset 0 0 0 2px #dc2626, 0 10px 22px rgba(220,38,38,.26); }
.compact-action { white-space:nowrap; }

/* Mobile employee dashboard */
.employee-start-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:28px; align-items:center; padding:clamp(24px, 4vw, 42px); background:radial-gradient(circle at 12% 10%, rgba(37,99,235,.16), transparent 32%), radial-gradient(circle at 85% 20%, rgba(6,182,212,.14), transparent 32%), #fff; }
.employee-start-hero::after { content:""; position:absolute; width:360px; height:360px; right:-160px; bottom:-210px; border-radius:999px; background:radial-gradient(circle, rgba(124,58,237,.12), transparent 68%); }
.employee-hero-copy, .employee-today-card { position:relative; z-index:1; }
.employee-today-card { display:grid; gap:9px; padding:22px; border-radius:26px; background:rgba(255,255,255,.86); border:1px solid rgba(148,163,184,.35); box-shadow:0 24px 64px rgba(15,23,42,.13); }
.employee-today-card strong { font-size:1.4rem; letter-spacing:-.04em; }
.employee-today-card span, .employee-today-card em { color:var(--muted); font-style:normal; font-weight:750; }
.soft-icon { width:54px; height:54px; border-radius:18px; display:grid; place-items:center; background:var(--primary-soft); color:var(--primary); }
.live-dot { width:14px; height:14px; border-radius:999px; background:#22c55e; box-shadow:0 0 0 9px rgba(34,197,94,.14); }
.employee-quick-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-top:18px; }
.employee-metric { padding:18px; }
.employee-metric span { display:block; font-size:2.05rem; line-height:1; letter-spacing:-.05em; font-weight:950; }
.employee-metric p { margin:8px 0 0; color:var(--muted); font-weight:750; }
.metric-positive span { color:var(--success); }
.metric-negative span { color:var(--danger); }
.mobile-action-strip { display:none; }
.shift-card-list { display:grid; gap:12px; }
.shift-card { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:12px; align-items:center; padding:13px; border:1px solid var(--border); border-radius:18px; background:linear-gradient(135deg,#f8fafc,#fff); }
.shift-card:hover { border-color:#bfdbfe; }
.shift-date-chip { width:58px; height:58px; border-radius:18px; display:grid; place-items:center; background:var(--primary); color:#fff; box-shadow:0 12px 24px rgba(37,99,235,.24); }
.shift-date-chip strong { line-height:1; font-size:1.2rem; }
.shift-date-chip span { font-size:.68rem; text-transform:uppercase; font-weight:900; opacity:.9; }
.shift-card em { font-style:normal; color:var(--muted); font-weight:900; white-space:nowrap; }
.request-status { padding:5px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; }

@media (max-width: 1180px) {
  .planner-layout { grid-template-columns:1fr; }
  .roster-panel { position:relative; top:auto; max-height:none; }
  .planner-page.roster-collapsed .planner-layout { grid-template-columns:1fr; }
  .planner-page.roster-collapsed .roster-panel { display:none; }
  .calendar-header-meta { justify-items:start; }
}
@media (max-width: 980px) {
  .landing-metrics, .employee-quick-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .employee-start-hero { grid-template-columns:1fr; }
  .employee-today-card { max-width:none; }
}
@media (max-width: 760px) {
  .content { padding:18px 14px 30px; }
  .page-header { gap:12px; }
  .landing-hero-pro { min-height:auto; }
  .product-showcase { min-height:420px; }
  .mock-window { inset:18px 0 76px 0; }
  .floating-hours { right:6px; bottom:10px; }
  .floating-publish { left:6px; bottom:88px; }
  .landing-metrics { grid-template-columns:1fr 1fr; }
  .employee-start-hero { padding:22px; border-radius:24px; }
  .employee-start-hero h1 { font-size:2.1rem; }
  .employee-quick-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .employee-metric { padding:15px; border-radius:18px; }
  .employee-metric span { font-size:1.55rem; }
  .mobile-action-strip { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:14px; position:sticky; top:70px; z-index:11; }
  .mobile-action-strip a { display:grid; place-items:center; gap:4px; min-height:66px; border-radius:18px; background:#fff; border:1px solid var(--border); box-shadow:0 12px 28px rgba(15,23,42,.08); color:#334155; font-weight:900; }
  .mobile-action-strip .feature-svg { width:21px; height:21px; color:var(--primary); }
  .employee-main-grid { grid-template-columns:1fr; }
  .shift-card { grid-template-columns:52px minmax(0,1fr); }
  .shift-card em { grid-column:2; }
  .shift-date-chip { width:52px; height:52px; border-radius:16px; }
  .calendar-header-line { flex-direction:column; }
  .planner-color-legend { justify-content:flex-start; }
}
@media (max-width: 520px) {
  .landing-metrics, .employee-quick-grid { grid-template-columns:1fr; }
  .mock-body { grid-template-columns:1fr; }
  .mock-roster { display:none; }
  .mock-calendar-grid { background-size:100% 42px, 25% 100%; }
}

/* v17 contact / inquiry module */
.contact-hero {
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) 420px;
  gap:32px;
  align-items:center;
  overflow:hidden;
  position:relative;
  padding:clamp(28px, 4vw, 48px);
  background:radial-gradient(circle at 12% 16%, rgba(37,99,235,.16), transparent 30%), radial-gradient(circle at 82% 18%, rgba(6,182,212,.14), transparent 28%), #fff;
}
.contact-hero::after { content:""; position:absolute; right:-160px; bottom:-240px; width:520px; height:520px; border-radius:999px; background:radial-gradient(circle, rgba(124,58,237,.13), transparent 66%); pointer-events:none; }
.contact-hero > * { position:relative; z-index:1; }
.contact-promises { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.contact-promises span { display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid var(--border); border-radius:999px; background:rgba(255,255,255,.72); font-weight:900; color:#334155; box-shadow:0 12px 28px rgba(15,23,42,.06); }
.contact-promises .feature-svg { width:18px; height:18px; color:var(--primary); }
.contact-visual { min-height:310px; position:relative; }
.contact-bubble { position:absolute; display:grid; gap:4px; min-width:150px; padding:18px; border-radius:26px; border:1px solid rgba(148,163,184,.35); background:rgba(255,255,255,.88); box-shadow:0 22px 54px rgba(15,23,42,.14); backdrop-filter:blur(12px); }
.contact-bubble strong { font-size:1.8rem; letter-spacing:-.05em; }
.contact-bubble span { color:var(--muted); font-weight:850; }
.contact-bubble.big { left:18px; top:42px; min-width:210px; }
.contact-bubble.big strong { font-size:2.4rem; }
.contact-bubble:not(.big):not(.accent) { right:20px; top:28px; }
.contact-bubble.accent { right:48px; bottom:26px; background:linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; border-color:transparent; }
.contact-bubble.accent span { color:rgba(255,255,255,.82); }
.contact-grid { align-items:start; }
.contact-form-card { position:relative; overflow:hidden; }
.contact-form-card::after { content:""; position:absolute; right:-90px; top:-100px; width:220px; height:220px; border-radius:999px; background:rgba(37,99,235,.07); pointer-events:none; }
.contact-side-card { position:sticky; top:88px; display:grid; gap:18px; }
.contact-steps { display:grid; gap:14px; }
.contact-steps div { padding:15px; border-radius:18px; background:#f8fafc; border:1px solid var(--border); }
.contact-steps strong, .contact-steps span { display:block; }
.contact-steps span { margin-top:4px; color:var(--muted); font-weight:750; }
.contact-thanks { max-width:760px; margin:40px auto; text-align:center; padding:clamp(30px, 5vw, 56px); background:radial-gradient(circle at 50% 0%, rgba(34,197,94,.16), transparent 36%), #fff; }
.success-orb { margin:0 auto 18px; width:70px; height:70px; border-radius:24px; display:grid; place-items:center; background:#dcfce7; color:#15803d; box-shadow:0 18px 42px rgba(22,163,74,.18); }
.success-orb .feature-svg { width:34px; height:34px; }
.center-actions { justify-content:center; }
.landing-contact-cta { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-top:18px; padding:clamp(24px, 4vw, 38px); background:linear-gradient(135deg,#fff,#f8fbff); }
.inquiry-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.tab-chip { display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border-radius:999px; border:1px solid var(--border); background:#fff; color:#334155; font-weight:900; box-shadow:0 10px 24px rgba(15,23,42,.04); }
.tab-chip.active { background:#eef2ff; color:#3730a3; border-color:#c7d2fe; }
.tab-chip span { min-width:22px; height:22px; border-radius:999px; display:grid; place-items:center; background:rgba(37,99,235,.10); color:#1d4ed8; font-size:.78rem; }
.inquiry-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:14px; align-items:center; text-decoration:none; color:inherit; }
.inquiry-row:hover { background:#f8fbff; }
.inquiry-type { font-weight:900; color:#475569; }
.status-pill { display:inline-flex; align-items:center; justify-content:center; padding:6px 9px; border-radius:999px; font-size:.76rem; font-weight:950; background:#eef2ff; color:#3730a3; white-space:nowrap; }
.status-new { background:#dbeafe; color:#1d4ed8; }
.status-in-progress { background:#fef3c7; color:#92400e; }
.status-answered { background:#dcfce7; color:#166534; }
.status-closed { background:#e2e8f0; color:#334155; }
.status-spam { background:#fee2e2; color:#991b1b; }
.inquiry-detail-grid { align-items:start; }
.detail-stack { display:grid; gap:18px; }
.message-box { margin:8px 0 0; padding:18px; border-radius:18px; background:#f8fafc; border:1px solid var(--border); white-space:pre-wrap; color:#334155; line-height:1.65; }
.detail-grid-mini { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.detail-grid-mini div { padding:13px; border-radius:16px; background:#fff; border:1px solid var(--border); }
.detail-grid-mini strong { display:block; margin-bottom:4px; color:#0f172a; }
.detail-grid-mini span, .detail-grid-mini a { color:#475569; font-weight:800; }
.textarea { min-height:120px; resize:vertical; }
.mt { margin-top:18px; }

@media (max-width: 980px) {
  .contact-hero { grid-template-columns:1fr; }
  .contact-visual { min-height:260px; }
  .contact-side-card { position:relative; top:auto; }
  .landing-contact-cta { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 760px) {
  .contact-hero { padding:24px; }
  .contact-bubble.big { left:0; top:20px; }
  .contact-bubble:not(.big):not(.accent) { right:0; top:102px; }
  .contact-bubble.accent { right:12px; bottom:4px; }
  .inquiry-row { grid-template-columns:1fr; }
  .detail-grid-mini { grid-template-columns:1fr; }
}
