:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3ebdf;
  color: #2c2721;
  --brand: #75624d;
  --brand-dark: #4e4134;
  --brand-soft: #eadfce;
  --sage: #78836f;
  --sage-dark: #56614f;
  --clay: #a97855;
  --sand: #d9c6ad;
  --cream: #fff8ed;
  --page: #f3ebdf;
  --surface: #fff9ef;
  --surface-2: #f7efe3;
  --border: #d5c6b2;
  --muted: #766b5f;
  --soft: #eadfce;
  --danger: #9b3e34;
  --yellow: #8a5f23;
  --green: #4f6d4a;
  --text: #2c2721;
  --shadow: 0 18px 45px rgba(76, 60, 40, 0.12);
  --shadow-soft: 0 8px 24px rgba(76, 60, 40, 0.08);
}

.app-shell.theme-dark {
  color-scheme: dark;
  --brand: #9d8468;
  --brand-dark: #eadfce;
  --brand-soft: #3a3129;
  --sage: #9daa91;
  --sage-dark: #cbd7c4;
  --clay: #c99b76;
  --sand: #6f604f;
  --cream: #2c2721;
  --page: #201c18;
  --surface: #2b2520;
  --surface-2: #332c25;
  --border: #5a4d40;
  --muted: #c7b9aa;
  --soft: #3a3129;
  --danger: #e89c91;
  --yellow: #f2d28b;
  --green: #a8cfa0;
  --text: #f3eadc;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.24);
  background:
    radial-gradient(circle at top left, rgba(201, 155, 118, 0.12), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(157, 170, 145, 0.10), transparent 30rem),
    linear-gradient(135deg, #1f1a16 0%, #2b2520 100%);
}

.app-shell.theme-light {
  background:
    radial-gradient(circle at top left, rgba(169, 120, 85, 0.20), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(120, 131, 111, 0.18), transparent 30rem),
    linear-gradient(135deg, #f7efe4 0%, #eadfce 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(169, 120, 85, 0.20), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(120, 131, 111, 0.18), transparent 30rem),
    linear-gradient(135deg, #f7efe4 0%, #eadfce 100%);
  color: var(--text, #2c2721);
}
button, input, select { font: inherit; }
button {
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  padding: 0.76rem 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(117, 98, 77, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(117, 98, 77, 0.22); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
button.secondary { background: #eadfce; color: #3d3126; box-shadow: none; }
button.danger { background: #f5dddd; color: #8b2424; box-shadow: none; }
input, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem 0.78rem;
  background: #fffefb;
  color: #2c2721;
  min-height: 44px;
}
label { display: grid; gap: 0.32rem; font-weight: 800; color: #4d443b; }
small { display: block; color: var(--muted); font-size: 0.76rem; }

.app-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.1rem;
  background: rgba(255, 249, 239, 0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}
.brand-block { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.1rem; }
.brand-home { width: 100%; text-align: left; background: transparent; color: inherit; box-shadow: none; padding: 0; border-radius: 18px; }
.brand-home:hover { transform: none; box-shadow: none; }
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #56614f);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
h1 { margin: 0; font-size: 1.04rem; line-height: 1.2; }
.brand-block p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.84rem; }
nav { display: grid; gap: 0.45rem; }
.nav-btn {
  text-align: left;
  background: transparent;
  color: #5b5046;
  box-shadow: none;
  border: 1px solid transparent;
}
.nav-btn.active, .nav-btn:hover {
  background: #eadfce;
  color: var(--brand-dark);
  border-color: #d2c1ad;
  transform: none;
  box-shadow: none;
}
.content { padding: 1.2rem; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.topbar h2 { margin: 0; font-size: clamp(1.42rem, 2vw, 2.1rem); letter-spacing: -0.02em; }
.dashboard-topbar {
  padding: 1.1rem;
  border: 1px solid #d8d0c1;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff9ef 0%, #e7dfd0 100%);
  box-shadow: var(--shadow);
}
.dashboard-topbar h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); color: #3d3126; }
.eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--brand-dark);
  font-weight: 900;
}
.top-actions, .row { display: flex; align-items: center; }
.row.gap, .top-actions { gap: 0.6rem; }
.row.right { justify-content: flex-end; }
.wrap { flex-wrap: wrap; }
.sync-pill, .admin-pill, .lock-badge {
  border-radius: 999px;
  padding: .45rem .72rem;
  font-size: .8rem;
  font-weight: 900;
  background: #e6d8c6;
  color: #665c51;
  white-space: nowrap;
}
.sync-pill.online, .admin-pill.admin-on, .lock-badge.open { background: #dce8dd; color: #2f6845; }
.sync-pill.offline, .lock-badge.locked { background: #f3dddd; color: #8b2424; }

.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .metric {
  background: rgba(255, 249, 239, 0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.hero-card { background: linear-gradient(135deg, #fff9ef 0%, #e7e0d3 100%); }
.card h3, .metric strong { margin: 0; font-size: 1.35rem; }
.muted { color: var(--muted); line-height: 1.45; }
.metric { display: grid; gap: .6rem; }
.metric span { color: var(--muted); font-weight: 700; }
.metric strong { font-size: 2rem; }
.section-title { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .85rem; }
.message, .success, .warning { padding: .8rem 1rem; border-radius: 16px; margin-bottom: 1rem; font-weight: 800; }
.message, .success { background: #dce8dd; color: #285c3d; }
.warning { background: #f5ead4; color: #83591d; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.segmented, .tabs-inline { display: flex; gap: .35rem; padding: .25rem; background: #e6d8c6; border-radius: 16px; width: fit-content; }
.segmented button, .tabs-inline button { background: transparent; color: #665c51; padding: .55rem .85rem; box-shadow: none; }
.segmented button.active, .tabs-inline button.active { background: #fff9ef; color: var(--brand-dark); box-shadow: 0 4px 16px rgba(73, 63, 48, .09); }
.margin-bottom { margin-bottom: 1rem; }
.compact-label { display: flex; flex-direction: column; min-width: 180px; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff9ef; }
table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff9ef; }
th, td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: .55rem; vertical-align: top; }
th { background: #f3eadc; text-align: left; position: sticky; top: 0; z-index: 1; }
.signoff-table th:first-child, .report-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 170px; }
.signoff-table td { min-width: 150px; }
.cell { display: grid; gap: .25rem; width: 100%; min-height: 72px; padding: .65rem; border-radius: 14px; background: #eadfce; color: #665c51; text-align: left; box-shadow: none; }
.cell:hover { transform: none; box-shadow: inset 0 0 0 1px #d2c1ad; }
.cell.completed { background: #dce8dd; color: #285c3d; }
.cell.off { background: #e6d8c6; color: #74695e; }
.cell.not-completed { background: #f2dddd; color: #8b2424; }
.cell strong { font-size: .9rem; }

.responsibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.task-day, .employee-card { border: 1px solid var(--border); border-radius: 18px; padding: .9rem; background: #fff9ef; }
.task-day h4, .employee-card h4 { margin: 0 0 .7rem; color: var(--brand-dark); }
.task-item { display: grid; gap: .25rem; padding: .65rem 0; border-top: 1px solid #e6d8c6; }
.task-item span { color: #4d443b; line-height: 1.35; }
.employee-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.note { background: #edf2ee; border: 1px solid #d1ded4; padding: .65rem; border-radius: 12px; color: #4e4134; }
dl { display: grid; grid-template-columns: 105px 1fr; gap: .35rem .7rem; }
dt { font-weight: 900; color: #74695e; }
dd { margin: 0; color: #4d443b; }

.report-table-shell { display: grid; gap: .4rem; margin-top: .8rem; }
.report-x-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #e6d8c6;
}
.report-x-scroll > div { height: 1px; }
.report-wrap { max-height: 66vh; overflow: auto; }
.signoff-table-shell { margin-top: .8rem; }
.signoff-wrap { max-height: 66vh; overflow: auto; }
.signoff-x-scroll { margin-bottom: .15rem; }
.report-wrap td { min-width: 130px; }
.report-table tfoot th,
.report-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: #f7ead3;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 12px rgba(73, 63, 48, 0.06);
}
.report-table tfoot th:first-child { left: 0; z-index: 3; }
.ytd-row th { color: #56614f; font-weight: 900; }
.score { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; min-width: 58px; padding: .35rem .55rem; font-weight: 900; }
.score-green { background: #dce8dd; color: #2f6845; }
.score-yellow { background: #f5ead4; color: #83591d; }
.score-red { background: #f2dddd; color: #8b2424; }
.score-empty { background: #e6d8c6; color: #766b5f; }
.reviewed { margin-top: .35rem; font-size: .7rem; }
.reviewed.signed { color: #2f6845; font-weight: 900; }
.reviewed.missing { color: #8b2424; }

.ack-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .85fr); gap: 1rem; align-items: start; }
.ack-form, .ack-list, .stack { display: grid; gap: .7rem; }
.ack-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: end; }
.ack-form label { font-size: .92rem; gap: .25rem; }
.ack-form select { min-height: 44px; padding: .62rem .75rem; }
.statement { margin: 0; background: #f3eadc; border: 1px dashed #b9a68f; padding: .7rem .8rem; border-radius: 14px; font-weight: 800; color: #4d443b; line-height: 1.35; }
.signature-block { border: 1px solid var(--border); border-radius: 18px; padding: .7rem; background: #fffefb; }
.signature-heading { margin-bottom: .45rem; font-size: .88rem; color: #74695e; font-weight: 900; }
#signature-pad { display: block; width: 100%; max-width: 100%; height: 160px; border: 1.5px dashed #9f8d76; border-radius: 14px; background: #fff9ef; touch-action: none; cursor: crosshair; }
.signature-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .55rem; }
.signature-actions button { padding: .65rem .9rem; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem; background: #f3eadc; border-radius: 12px; }
.status-chip { border-radius: 999px; padding: .25rem .5rem; background: #e6d8c6; color: #74695e; }
.status-chip.ok { background: #dce8dd; color: #2f6845; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(31, 41, 51, .46); display: grid; place-items: center; z-index: 20; padding: 1rem; }
.modal { width: min(520px, 100%); }
.icon-btn { background: #eadfce; color: #2c2721; width: 42px; height: 42px; padding: 0; border-radius: 999px; font-size: 1.4rem; box-shadow: none; }
.danger-zone { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.four, .ack-layout { grid-template-columns: 1fr; }
  .topbar, .section-title { flex-direction: column; align-items: stretch; }
}

@media (max-width: 650px) {
  .ack-controls, .signature-actions { grid-template-columns: 1fr; }
  .signature-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .content { padding: .7rem; }
  .card, .metric { border-radius: 18px; padding: .8rem; }
  nav { grid-template-columns: 1fr; }
  .quick-actions, .row { align-items: stretch; flex-direction: column; }
  .top-actions { flex-direction: column; align-items: flex-start; }
  .dashboard-topbar h2 { font-size: 1.8rem; }
}


/* Appearance options */
.font-clean { font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
.font-rounded { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.font-classic { font-family: Georgia, "Times New Roman", serif; }
.font-compact { font-family: "Arial Narrow", Arial, "Segoe UI", sans-serif; }
.font-system { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.dashboard-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: linear-gradient(135deg, #fff8ed 0%, #ead9c3 55%, #ded0bb 100%);
  box-shadow: var(--shadow);
}
.dashboard-title-card h3 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
  color: #3d3126;
}
.dashboard-logo.logo-mark { width: 72px; height: 72px; font-size: 1.45rem; flex: 0 0 auto; }

.dashboard-responsibilities { margin-bottom: 1rem; }
.daily-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.daily-preview-card {
  border: 1px solid #d8c8b3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf2 0%, #f3eadc 100%);
  padding: .9rem;
}
.daily-preview-card h4 { margin: 0 0 .65rem; color: var(--brand-dark); font-size: 1.05rem; }
.daily-preview-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.daily-preview-card li { display: grid; gap: .18rem; padding: .55rem .6rem; border-radius: 12px; background: rgba(255, 248, 237, 0.86); border: 1px solid #eadcca; }
.daily-preview-card li span { color: var(--muted); line-height: 1.35; }

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(78, 65, 52, 0.13);
  color: #fff;
  isolation: isolate;
}
.logo-mark span { position: relative; z-index: 1; font-weight: 950; letter-spacing: -0.04em; }
.logo-mark.logo-leaf-check { border-radius: 20px; background: linear-gradient(135deg, #6f7c64, #a97855); }
.logo-mark.logo-leaf-check::after { content: ""; position: absolute; width: 26px; height: 15px; border-radius: 100% 0 100% 0; background: rgba(255, 248, 237, .28); right: 6px; top: 8px; transform: rotate(-18deg); }
.logo-mark.logo-bayly-badge { border-radius: 16px; background: linear-gradient(135deg, #5f4f40, #b68b63); box-shadow: inset 0 0 0 5px rgba(255,248,237,.23); }
.logo-mark.logo-broom-line { border-radius: 18px; background: linear-gradient(135deg, #83705a, #58614d); }
.logo-mark.logo-broom-line::after { content: ""; position: absolute; width: 64%; height: 3px; border-radius: 999px; background: rgba(255,248,237,.52); transform: rotate(-28deg); bottom: 14px; right: 6px; }
.logo-mark.logo-clipboard { border-radius: 14px; background: #fff8ed; color: #5b4b3b; box-shadow: inset 0 0 0 3px #8a7660; }
.logo-mark.logo-clipboard::before { content: ""; position: absolute; top: 4px; width: 34%; height: 6px; border-radius: 999px; background: #a97855; }
.logo-mark.logo-warm-circle { border-radius: 999px; background: radial-gradient(circle at 30% 24%, #d9c6ad 0 18%, #a97855 19%, #66513e 100%); }
.brand-icon.logo-mark { width: 48px; height: 48px; font-size: 1.15rem; box-shadow: var(--shadow-soft); flex: 0 0 auto; }
.choice-logo.logo-mark { width: 58px; height: 58px; font-size: 1.1rem; flex: 0 0 auto; }
.device-logo.logo-mark { width: 36px; height: 36px; font-size: .8rem; }
.device-logo.logo-mark.small { width: 30px; height: 30px; font-size: .7rem; }

.design-section { margin-bottom: 1rem; }
.compact-note { max-width: 440px; margin: 0; text-align: right; }
.logo-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .85rem; }
.logo-choice {
  display: grid;
  gap: .8rem;
  border: 1px solid #d5c6b2;
  border-radius: 20px;
  padding: .85rem;
  background: linear-gradient(180deg, #fff9ef 0%, #f1e6d8 100%);
}
.logo-choice.selected { outline: 3px solid rgba(169, 120, 85, .33); border-color: #b69373; }
.logo-choice-head { display: flex; gap: .75rem; align-items: center; }
.logo-choice h4 { margin: 0; color: #403429; }
.logo-choice p { margin: .2rem 0 0; color: var(--muted); line-height: 1.3; font-size: .88rem; }
.device-row { display: grid; grid-template-columns: 1.35fr .85fr; gap: .65rem; align-items: end; }
.tablet-preview, .phone-preview { border: 1px solid #cdbda6; border-radius: 18px; background: #e6d8c6; padding: .45rem; }
.tablet-screen, .phone-screen { display: grid; place-items: center; gap: .32rem; min-height: 92px; border-radius: 13px; background: linear-gradient(135deg, #fff8ed, #eadfce); color: #4e4134; font-size: .75rem; font-weight: 900; text-align: center; }
.phone-preview { max-width: 92px; justify-self: center; border-radius: 22px; }
.phone-screen { min-height: 116px; border-radius: 17px; }
.device-topline { color: #5f5142; font-size: .7rem; font-weight: 900; text-align: center; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .08em; }
.phone-preview .device-topline { margin: .3rem 0 0; }

.font-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.font-choice {
  display: grid;
  gap: .35rem;
  text-align: left;
  background: #fff9ef;
  color: #3d3126;
  border: 1px solid #d5c6b2;
  box-shadow: none;
  min-height: 104px;
}
.font-choice:hover { box-shadow: inset 0 0 0 1px #b69373; }
.font-choice.selected { background: #ead9c3; color: #3d3126; border-color: #a97855; box-shadow: inset 0 0 0 2px rgba(169, 120, 85, .18); }
.font-choice span { color: var(--muted); font-size: .9rem; line-height: 1.25; }

@media (max-width: 760px) {
  .dashboard-title-card { align-items: flex-start; }
  .daily-preview-grid { grid-template-columns: 1fr; }
  .compact-note { text-align: left; }
}

@media (max-width: 560px) {
  .dashboard-title-card { flex-direction: column; }
  .dashboard-logo.logo-mark { width: 58px; height: 58px; }
  .device-row { grid-template-columns: 1fr; }
  .phone-preview { justify-self: stretch; max-width: none; }
}


.confirmation-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: #fffaf1;
}

.muted.tight {
  margin: 6px 0 12px;
}

.small-table {
  max-height: 460px;
}

.employee-pin {
  min-width: 110px;
}

/* v8 refinements */
.logo-image {
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #fffefb;
  border: 1px solid rgba(78, 65, 52, 0.12);
  box-shadow: var(--shadow-soft);
}
.brand-icon.logo-image {
  width: 68px;
  height: 68px;
  padding: 0;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 20px;
}
.logo-full {
  display: block;
  object-fit: contain;
  max-width: min(360px, 42vw);
  max-height: 132px;
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.82);
  border: 1px solid rgba(78, 65, 52, 0.10);
  box-shadow: var(--shadow-soft);
}
.dashboard-logo-full {
  flex: 0 0 auto;
}
.settings-table th,
.settings-table td {
  vertical-align: middle;
}
.settings-table th:nth-child(2),
.settings-table td:nth-child(2),
.settings-table th:nth-child(3),
.settings-table td:nth-child(3) {
  min-width: 112px;
}
.settings-table th:nth-child(4),
.settings-table td:nth-child(4) {
  min-width: 138px;
  text-align: center;
}
.employee-status {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  min-height: 48px;
  padding: 0.55rem 1.8rem 0.55rem 0.8rem;
  border-radius: 20px;
  text-align: center;
  text-align-last: center;
  background-position: right .65rem center;
}
.settings-save-btn {
  margin-top: 1.75rem;
}
.settings-locked-yes article:not(:first-child) {
  opacity: 0.88;
}
.settings-locked-yes article:not(:first-child) input,
.settings-locked-yes article:not(:first-child) select,
.settings-locked-yes article:not(:first-child) button {
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .logo-full {
    max-width: 100%;
    max-height: 110px;
  }
}


/* v9 refinements */
.brand-block { gap: 1rem; }
.brand-block h1 { font-size: 1.08rem; }
.settings-table .employee-pin[type="text"] {
  letter-spacing: 0.04em;
  font-weight: 800;
}

/* v10 employee management refinements */
.employee-management-card {
  margin-bottom: 1rem;
}
.settings-x-scroll {
  margin: 0.6rem 0 0.25rem;
}
.settings-management-wrap {
  max-height: 58vh;
  overflow: auto;
}
.employee-management-table th,
.employee-management-table td {
  white-space: nowrap;
}
.employee-management-table th:first-child,
.employee-management-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff9ef;
  min-width: 170px;
}
.employee-management-table th:first-child {
  background: #f3eadc;
  z-index: 3;
}
.employee-management-table th:nth-child(2),
.employee-management-table td:nth-child(2),
.employee-management-table th:nth-child(3),
.employee-management-table td:nth-child(3) {
  min-width: 135px;
}
.employee-management-table th:nth-child(5),
.employee-management-table td:nth-child(5) {
  min-width: 90px;
  text-align: center;
}
.employee-management-table th:nth-child(6),
.employee-management-table td:nth-child(6) {
  min-width: 180px;
}
.employee-management-table .employee-pin {
  min-width: 150px;
}

/* v11 settings section refinements */
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem 0.78rem;
  background: #fffefb;
  color: #2c2721;
  font: inherit;
  resize: vertical;
  min-height: 44px;
}
.settings-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.settings-section-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #f7efe3;
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 900;
  color: #4e4134;
}
.add-employee-panel {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f7efe3;
  padding: 1rem;
}
.add-employee-panel h4 {
  margin: 0 0 .75rem;
  color: var(--brand-dark);
}
.add-employee-grid {
  margin-bottom: .75rem;
}
.center {
  text-align: center;
}
.employee-report-eligible {
  width: 24px;
  min-height: 24px;
  accent-color: var(--brand);
}
.employee-management-table select,
.employee-management-table input {
  min-width: 120px;
}
.responsibility-editor-card {
  margin-bottom: 1rem;
}
.responsibility-editor-wrap {
  max-height: 42vh;
  overflow: auto;
}
.responsibility-editor-table th,
.responsibility-editor-table td {
  min-width: 140px;
  vertical-align: top;
}
.responsibility-editor-table textarea {
  min-width: 130px;
  min-height: 92px;
}
@media (max-width: 980px) {
  .grid.four,
  .add-employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid.four,
  .add-employee-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}


/* v12 employee management team dropdown refinements */
.employee-management-table .team-select,
.add-employee-grid .team-select {
  min-width: 150px;
  padding-right: 2.25rem;
  background-color: #fffefb;
  cursor: pointer;
}
.employee-management-table .team-select:disabled,
.add-employee-grid .team-select:disabled {
  cursor: not-allowed;
}
.employee-management-table th:nth-child(2),
.employee-management-table td:nth-child(2),
.employee-management-table th:nth-child(3),
.employee-management-table td:nth-child(3) {
  min-width: 165px;
}


/* v13 employee deletion controls */
button.compact {
  padding: 0.55rem 0.75rem;
  min-height: 38px;
  border-radius: 12px;
  white-space: nowrap;
}
.employee-management-table th:nth-child(7),
.employee-management-table td:nth-child(7) {
  min-width: 115px;
  text-align: center;
}


/* v14 logo restoration and theme toggle */
.app-shell.theme-dark .sidebar,
.app-shell.theme-dark .card,
.app-shell.theme-dark .metric,
.app-shell.theme-dark .table-wrap,
.app-shell.theme-dark table,
.app-shell.theme-dark .task-day,
.app-shell.theme-dark .employee-card,
.app-shell.theme-dark .daily-preview-card,
.app-shell.theme-dark .confirmation-block,
.app-shell.theme-dark .add-employee-panel,
.app-shell.theme-dark .logo-full,
.app-shell.theme-dark .logo-image {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.app-shell.theme-dark .sidebar { background: rgba(43, 37, 32, 0.94); }
.app-shell.theme-dark .content { color: var(--text); }
.app-shell.theme-dark .hero-card,
.app-shell.theme-dark .dashboard-title-card,
.app-shell.theme-dark .dashboard-topbar {
  background: linear-gradient(135deg, #302922 0%, #27211c 100%);
}
.app-shell.theme-dark .nav-btn { color: #d4c7b8; }
.app-shell.theme-dark .nav-btn.active,
.app-shell.theme-dark .nav-btn:hover,
.app-shell.theme-dark button.secondary,
.app-shell.theme-dark .segmented,
.app-shell.theme-dark .tabs-inline,
.app-shell.theme-dark .report-x-scroll,
.app-shell.theme-dark .sync-pill,
.app-shell.theme-dark .admin-pill,
.app-shell.theme-dark .lock-badge {
  background: #3a3129;
  color: #f3eadc;
  border-color: #5a4d40;
}
.app-shell.theme-dark input,
.app-shell.theme-dark select,
.app-shell.theme-dark textarea {
  background: #211c18;
  color: #f3eadc;
  border-color: #5a4d40;
}
.app-shell.theme-dark th,
.app-shell.theme-dark .employee-management-table th:first-child,
.app-shell.theme-dark .report-table tfoot th,
.app-shell.theme-dark .report-table tfoot td {
  background: #3a3129;
  color: #f3eadc;
}
.app-shell.theme-dark td,
.app-shell.theme-dark .employee-management-table td:first-child {
  background: #2b2520;
}
.app-shell.theme-dark .muted,
.app-shell.theme-dark small,
.app-shell.theme-dark .brand-block p,
.app-shell.theme-dark .metric span,
.app-shell.theme-dark .font-choice span,
.app-shell.theme-dark .daily-preview-card li span {
  color: var(--muted);
}
.app-shell.theme-dark .eyebrow,
.app-shell.theme-dark h1,
.app-shell.theme-dark h2,
.app-shell.theme-dark h3,
.app-shell.theme-dark h4,
.app-shell.theme-dark label,
.app-shell.theme-dark .task-item span,
.app-shell.theme-dark dd,
.app-shell.theme-dark .dashboard-title-card h3 {
  color: var(--text);
}
.app-shell.theme-dark .task-item,
.app-shell.theme-dark .daily-preview-card li {
  border-color: #5a4d40;
  background: #332c25;
}
.app-shell.theme-dark .statement,
.app-shell.theme-dark .settings-section-list span {
  background: #332c25;
  color: #f3eadc;
  border-color: #5a4d40;
}
.section-heading-block {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}
.section-logo-full {
  width: min(260px, 32vw);
  max-width: 260px;
  max-height: 86px;
  flex: 0 1 auto;
}
.dashboard-title-actions {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  background: #eadfce;
  color: #3d3126;
  box-shadow: none;
  border: 1px solid #d5c6b2;
}
.theme-toggle:hover { transform: none; box-shadow: inset 0 0 0 1px #b69373; }
.theme-toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #fff9ef;
  border: 1px solid #d2c1ad;
  padding: 2px;
  display: inline-flex;
  justify-content: flex-start;
}
.theme-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #75624d;
  display: block;
}
.theme-dark .theme-toggle {
  background: #3a3129;
  color: #f3eadc;
  border-color: #5a4d40;
}
.theme-dark .theme-toggle-track {
  background: #211c18;
  border-color: #5a4d40;
  justify-content: flex-end;
}
.theme-dark .theme-toggle-knob { background: #d9c6ad; }
.brand-icon.logo-image {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
}
.logo-full.dashboard-logo-full {
  max-width: min(410px, 42vw);
  max-height: 148px;
}
@media (max-width: 900px) {
  .section-heading-block { flex-direction: column; align-items: flex-start; }
  .section-logo-full { width: min(260px, 100%); max-width: 100%; }
  .dashboard-title-actions { justify-items: start; width: 100%; }
}
@media (max-width: 560px) {
  .brand-icon.logo-image { width: 70px; height: 70px; }
  .logo-full.dashboard-logo-full { max-width: 100%; }
}
