/*
 * Shiftly visual refresh
 * Scope: presentation and interaction states only.
 * This file intentionally contains no business selectors or JavaScript hooks.
 */

:root {
  --ux-ink: #26342e;
  --ux-muted: #6f8178;
  --ux-paper: #f4f8f4;
  --ux-line: #dbe6dd;
  --ux-soft: #edf6eb;
  --ux-mint: #dff4c7;
  --ux-accent: #68ad70;
  --ux-warm: #fff5ef;
  --ux-radius: 12px;
  --ux-shadow: 0 14px 36px rgba(38, 52, 46, .06);
}

/* Public homepage: one quiet surface, one clear reading path. */
body.home-pruned {
  background: var(--ux-paper);
  color: var(--ux-ink);
}

body.home-pruned .topbar {
  min-height: 72px;
  border-bottom-color: var(--ux-line);
  background: rgba(244, 248, 244, .94);
  box-shadow: 0 1px 0 rgba(38, 52, 46, .02);
}

body.home-pruned .nav-links {
  display: flex;
  gap: 20px;
}

body.home-pruned .nav-links a {
  position: relative;
  padding: 8px 0;
}

body.home-pruned .nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ux-accent);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s, transform .18s;
}

body.home-pruned .nav-links a:hover::after,
body.home-pruned .nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

body.home-pruned .hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 62px;
}

body.home-pruned .hero > div:first-child {
  position: relative;
  padding-left: 22px;
  border-left: 0;
}

body.home-pruned .hero > div:first-child::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--ux-mint);
  content: "";
}

body.home-pruned .hero h1 {
  max-width: 690px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.07em;
  text-wrap: balance;
}

body.home-pruned .hero p {
  max-width: 590px;
  color: var(--ux-muted);
  font-size: 17px;
  line-height: 1.65;
}

body.home-pruned .hero-actions {
  margin-top: 25px;
}

body.home-pruned .hero-actions .button,
body.home-pruned .cta .button {
  min-height: 44px;
  border-radius: 9px;
  padding: 11px 16px;
}

body.home-pruned .hero-actions .button:first-child {
  box-shadow: 0 9px 20px rgba(38, 52, 46, .13);
}

body.home-pruned .hero-input-result {
  width: 100%;
  max-width: 520px;
  padding: 20px;
  border-color: var(--ux-line);
  border-radius: 16px;
  box-shadow: var(--ux-shadow);
  transform: none;
}

/* Arabic landing uses the original preview class; keep its visual language
   identical to the English landing's input-to-roster panel. */
body.home-pruned .preview {
  width: 100%;
  max-width: 520px;
  padding: 20px;
  border-color: var(--ux-line);
  border-radius: 16px;
  box-shadow: var(--ux-shadow);
  transform: none;
}

body.home-pruned .preview-top {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ux-line);
}

body.home-pruned .preview-top strong {
  max-width: 250px;
  font-size: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

body.home-pruned .preview-card {
  padding: 15px;
  border-radius: 11px;
}

body.home-pruned .preview-card.result {
  border-color: #cfe5ca;
  background: var(--ux-soft);
}

body.home-pruned .proof {
  gap: 8px 14px;
  margin-top: 18px;
  padding: 9px 11px;
  border: 1px solid var(--ux-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
}

body.home-pruned .hero-flow-title {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ux-line);
}

body.home-pruned .hero-flow-title strong {
  max-width: 250px;
  font-size: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

body.home-pruned .hero-flow-title span {
  flex: 0 0 auto;
  border: 1px solid #dcebd8;
  background: var(--ux-soft);
}

body.home-pruned .hero-flow-card {
  padding: 15px;
  border-radius: 11px;
  background: #fbfdfb;
}

body.home-pruned .hero-flow-card.result {
  border-color: #cfe5ca;
  background: var(--ux-soft);
}

body.home-pruned .hero-flow-arrow {
  height: 22px;
  font-size: 16px;
}

body.home-pruned .hero-promise {
  gap: 8px 14px;
  margin-top: 18px;
  padding: 9px 11px;
  border: 1px solid var(--ux-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
}

body.home-pruned .hero-promise span {
  font-size: 11px;
}

body.home-pruned .hero-start {
  margin-top: 20px;
  padding: 15px;
  border-color: var(--ux-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ux-shadow);
}

body.home-pruned .hero-start-heading {
  margin-bottom: 10px;
}

body.home-pruned .hero-start-options {
  gap: 7px;
}

body.home-pruned .hero-start-card {
  min-height: 68px;
  border-color: var(--ux-line);
  border-radius: 10px;
  background: #fbfdfb;
}

body.home-pruned .hero-start-card:hover,
body.home-pruned .hero-start-card:focus-visible {
  border-color: #a9cdaa !important;
  box-shadow: 0 8px 18px rgba(38, 52, 46, .07);
}

body.home-pruned .trust-strip {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto 4px;
  border-top: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
}

body.home-pruned .trust-item {
  min-height: 78px;
  padding: 17px 20px;
  border: 0;
  border-right: 1px solid var(--ux-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-pruned .trust-item:last-child {
  border-right: 0;
}

body.home-pruned .trust-item strong {
  font-size: 13px;
}

body.home-pruned .section {
  padding: 76px 0;
  border-top-color: var(--ux-line);
}

body.home-pruned .section-head {
  max-width: 760px;
  margin-bottom: 27px;
}

body.home-pruned .section h2 {
  max-width: 780px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.02;
  text-wrap: balance;
}

body.home-pruned .section-head p {
  max-width: 680px;
  line-height: 1.7;
}

body.home-pruned .industry-grid,
body.home-pruned .commercial-grid {
  gap: 12px;
}

body.home-pruned .industry-card,
body.home-pruned .commercial-card,
body.home-pruned .step,
body.home-pruned .card,
body.home-pruned .path-card {
  border-color: var(--ux-line);
  border-radius: var(--ux-radius);
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

body.home-pruned .industry-card:hover,
body.home-pruned .commercial-card:hover,
body.home-pruned .step:hover,
body.home-pruned .card:hover,
body.home-pruned .path-card:hover {
  border-color: #b9d8b7;
  box-shadow: 0 10px 24px rgba(38, 52, 46, .06);
  transform: translateY(-2px);
}

body.home-pruned .industry-card {
  min-height: 230px;
  padding: 22px;
  background: #fff;
}

body.home-pruned .industry-card strong {
  margin-top: 18px;
}

body.home-pruned .industry-card .hero-actions {
  gap: 7px;
  margin-top: 18px;
}

body.home-pruned .industry-card .button.ghost {
  min-height: 35px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
}

body.home-pruned .commercial-card {
  min-height: 255px;
  padding: 22px;
}

body.home-pruned .commercial-card.featured {
  background: var(--ux-soft);
  border-color: #cfe5ca;
  box-shadow: none;
}

body.home-pruned .commercial-card li {
  line-height: 1.45;
}

body.home-pruned .faq-list {
  max-width: 900px;
  gap: 0;
  border-top: 1px solid var(--ux-line);
}

body.home-pruned .faq-list details {
  padding: 18px 2px;
  border: 0;
  border-bottom: 1px solid var(--ux-line);
  border-radius: 0;
  background: transparent;
}

body.home-pruned .faq-list summary {
  padding-right: 24px;
  font-size: 14px;
}

body.home-pruned .faq-list p {
  max-width: 760px;
}

body.home-pruned .cta {
  padding: 29px 31px;
  border-radius: 13px;
}

body.home-pruned .footer {
  padding-top: 22px;
}

/* Workspace: make the manager's next decision obvious without changing flow. */
body.workspace-only {
  background: var(--ux-paper);
}

body.workspace-only .topbar {
  min-height: 68px;
  padding: 0 26px;
  border-bottom-color: var(--ux-line);
  background: rgba(255, 255, 255, .96);
}

body.workspace-only .app-shell {
  min-height: calc(100vh - 68px);
}

body.workspace-only .sidebar {
  width: 224px;
  flex-basis: 224px;
  padding: 27px 14px 20px;
  border-right-color: var(--ux-line);
  background: #f8fbf8;
}

body.workspace-only .side-label {
  padding-left: 13px;
  color: #899b91;
}

body.workspace-only .nav-item {
  min-height: 43px;
  margin: 3px 0;
  border-radius: 10px;
}

body.workspace-only .nav-item.active {
  box-shadow: 0 6px 15px rgba(38, 52, 46, .1);
}

body.workspace-only .main-content {
  width: min(1240px, 100%);
  padding: 34px 38px 78px;
}

body.workspace-only .page-head {
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ux-line);
}

body.workspace-only .page-head h1 {
  max-width: 680px;
  font-size: clamp(30px, 3.5vw, 43px);
  line-height: 1.04;
  text-wrap: balance;
}

body.workspace-only .page-head .muted {
  max-width: 600px;
  font-size: 13px;
  line-height: 1.6;
}

body.workspace-only .workflow-rail {
  margin: 0 0 18px;
  padding: 6px;
  border-color: var(--ux-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}

body.workspace-only .workflow-rail a {
  min-height: 39px;
  border-radius: 8px;
}

body.workspace-only .workflow-rail a:hover {
  transform: none;
}

body.workspace-only .workflow-rail span {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}

body.workspace-only .first-run-panel,
body.workspace-only .demo-context {
  border-color: #cfe5ca;
  border-radius: 12px;
  background: #f4faef;
  box-shadow: none;
}

body.workspace-only .first-run-panel {
  margin-bottom: 18px;
}

body.workspace-only .panel {
  border-color: var(--ux-line);
  border-radius: 13px;
  box-shadow: none;
}

body.workspace-only .section-title h2,
body.workspace-only .result-heading h2 {
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.08;
  text-wrap: balance;
}

body.workspace-only .section-desc {
  line-height: 1.55;
}

body.workspace-only .quick-stats {
  gap: 10px;
}

body.workspace-only .stat-card {
  border-radius: 11px;
  box-shadow: none;
}

body.workspace-only .store-setup-panel,
body.workspace-only .team-panel,
body.workspace-only .demand-panel,
body.workspace-only .rules-panel,
body.workspace-only .result-panel {
  scroll-margin-top: 88px;
}

body.workspace-only .store-setup-panel,
body.workspace-only .team-panel,
body.workspace-only .demand-panel,
body.workspace-only .rules-panel,
body.workspace-only .result-panel {
  border-top: 3px solid #e7f1e6;
}

body.workspace-only .rules-panel {
  border-top-color: #b9dcb8;
  box-shadow: 0 12px 28px rgba(38, 52, 46, .05);
}

body.workspace-only .rules-panel .assistant-box {
  background: #f4faef;
  box-shadow: none;
}

body.workspace-only .rules-panel .rules-footer {
  background: #fbfdfb;
}

body.workspace-only .day-card {
  border-radius: 10px;
  background: #fbfdfb;
}

body.workspace-only .publish-panel,
body.workspace-only .playbook-card,
body.workspace-only .timeoff-panel,
body.workspace-only .employee-preferences {
  border-radius: 11px;
  background: #f8fbf8;
}

/* Shift preferences are selected from the store template, so managers do not
   have to remember internal shift names or type them differently. */
body.workspace-only .preference-shift-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 6px;
  min-width: 0;
}

body.workspace-only .preference-shift-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.2;
}

body.workspace-only .preference-shift-option:has(input:checked) {
  border-color: #b9dfb3;
  background: #eef9e9;
  color: #4f9460;
}

body.workspace-only .preference-shift-option.is-legacy {
  border-color: #ead9b6;
  background: #fffaf0;
}

body.workspace-only .preference-shift-option input {
  grid-row: 1 / span 2;
  accent-color: #66ad6d;
  margin: 0;
}

body.workspace-only .preference-shift-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.workspace-only .preference-shift-option small,
body.workspace-only .preference-field-note,
body.workspace-only .preference-conflict {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

body.workspace-only .preference-conflict {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #f0d7a0;
  border-radius: 8px;
  background: #fff9e9;
  color: #8a6a2e;
}

body.workspace-only .preference-conflict[hidden] {
  display: none;
}

body.workspace-only .button {
  min-height: 38px;
  border-radius: 8px;
}

body.workspace-only .compensation-controls {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdf9;
}

body.workspace-only .compensation-controls-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 11px;
}

body.workspace-only .compensation-controls-head strong {
  color: var(--ink);
  font-size: 14px;
}

body.workspace-only .compensation-controls-head small {
  max-width: 720px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

body.workspace-only .compensation-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
}

body.workspace-only .compensation-control-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.workspace-only .compensation-control-grid label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

body.workspace-only .compensation-control-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

body.workspace-only .compensation-control-grid label[hidden] {
  display: none;
}

body.workspace-only .button:focus-visible,
body.workspace-only input:focus-visible,
body.workspace-only textarea:focus-visible,
body.workspace-only select:focus-visible {
  outline: 3px solid rgba(104, 173, 112, .32);
  outline-offset: 2px;
}

body.workspace-only .toast {
  right: 22px;
  bottom: 22px;
  border-radius: 9px;
}

@media (max-width: 1100px) and (min-width: 951px) {
  body.workspace-only .sidebar {
    width: 190px;
    flex-basis: 190px;
  }

  body.workspace-only .main-content {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 800px) {
  body.home-pruned .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 54px;
  }

  body.home-pruned .hero-input-result {
    max-width: 620px;
  }

  body.home-pruned .preview {
    max-width: 620px;
  }

  body.home-pruned .trust-strip {
    grid-template-columns: 1fr;
  }

  body.home-pruned .trust-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ux-line);
  }

  body.home-pruned .trust-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  body.home-pruned .nav-links {
    display: none;
  }

  body.home-pruned .hero > div:first-child {
    padding-left: 14px;
  }

  body.home-pruned .hero h1 {
    font-size: 49px;
    line-height: .99;
  }

  body.home-pruned .hero p {
    font-size: 16px;
  }

  body.home-pruned .hero-input-result {
    padding: 16px;
  }

  body.home-pruned .preview {
    padding: 16px;
  }

  body.home-pruned .hero-flow-title {
    flex-direction: column;
    gap: 9px;
  }

  body.home-pruned .hero-flow-title span {
    align-self: flex-start;
  }

  body.home-pruned .hero-start-options {
    grid-template-columns: 1fr;
  }

  body.home-pruned .hero-start-card {
    min-height: 58px;
  }

  body.home-pruned .section {
    padding: 55px 0;
  }

  body.home-pruned .cta {
    padding: 23px;
  }

  body.workspace-only .topbar {
    min-height: 72px;
    padding: 10px 14px;
  }

  body.workspace-only .main-content {
    padding: 24px 14px 54px;
  }

  body.workspace-only .page-head {
    padding-bottom: 17px;
  }

  body.workspace-only .page-head h1 {
    font-size: 31px;
  }

  body.workspace-only .workflow-rail {
    gap: 5px;
  }

  body.workspace-only .workflow-rail a {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 10px;
  }

  body.workspace-only .first-run-panel {
    gap: 10px;
    padding: 14px;
  }

  body.workspace-only .panel {
    border-radius: 11px;
  }

  body.workspace-only .compensation-control-grid {
    grid-template-columns: 1fr;
  }

  body.workspace-only .compensation-controls {
    padding: 13px;
  }
}

.shared-staff-panel{margin-top:16px;padding:14px;border:1px solid #dcebdd;border-radius:13px;background:#fbfdfb}.shared-staff-form{display:grid;grid-template-columns:1.2fr 1fr auto;align-items:end;gap:8px;margin-top:12px}.shared-staff-form label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:700}.shared-staff-form select{min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.shared-staff-form .button{padding:8px 10px;white-space:nowrap}.shared-staff-list{display:grid;gap:0;margin-top:11px}.shared-staff-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e7efe7}.shared-staff-item strong{display:block;color:var(--ink);font-size:11px}.shared-staff-item small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.shared-store-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.shared-store-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--muted);font-size:10px}.shared-remove{padding:0;border:0;background:none;color:#d87559;cursor:pointer;font:inherit;font-size:10px;text-decoration:underline}.shared-remove:hover{color:var(--ink)}
@media(max-width:900px){.shared-staff-form{grid-template-columns:1fr 1fr}.shared-staff-form .button{width:max-content}.shared-staff-item{align-items:flex-start;flex-direction:column}.shared-store-chips{justify-content:flex-start}}
@media(max-width:560px){.shared-staff-form{grid-template-columns:1fr}.shared-staff-form .button{width:100%}}
.employee-cross-store-field,.store-network-toggle{grid-column:1/-1;display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb;color:var(--ink)}.employee-checkbox-control{display:flex;align-items:flex-start;gap:8px}.employee-checkbox-control input{width:16px;height:16px;accent-color:var(--ink)}.employee-checkbox-control small{display:block;max-width:360px;color:var(--muted);font-size:10px;font-weight:500;line-height:1.35}.store-network-toggle{margin-top:2px}

@media (prefers-reduced-motion: reduce) {
  body.home-pruned .nav-links a::after,
  body.home-pruned .industry-card,
  body.home-pruned .commercial-card,
  body.home-pruned .step,
  body.home-pruned .card,
  body.home-pruned .path-card {
    transition: none;
  }

  body.home-pruned .industry-card:hover,
  body.home-pruned .commercial-card:hover,
  body.home-pruned .step:hover,
  body.home-pruned .card:hover,
  body.home-pruned .path-card:hover {
    transform: none;
  }
}

html[dir="rtl"] body.home-pruned .hero h1 {
  max-width: 690px;
  font-size: clamp(48px, 4vw, 60px);
  line-height: 1.18;
  letter-spacing: 0;
}

@media (max-width: 680px) {
  html[dir="rtl"] body.home-pruned .hero h1 {
    font-size: 43px;
    line-height: 1.25;
  }
}
