:root{
  --ink:#1f2420;
  --muted:#6d756f;
  --paper:#f7f8f3;
  --panel:#fff;
  --line:#dde2d8;
  --accent:#c8eb96;
  --soft:#eef5e4;
  --radius:18px;
  --shadow:0 10px 26px rgba(29,39,31,.06)
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--paper);
  color:var(--ink)
}
button,input,select,textarea{font:inherit}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 20px;
  background:rgba(247,248,243,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line)
}
.brand{font-weight:850;letter-spacing:.11em}
.clock{font-weight:750;font-variant-numeric:tabular-nums}
.shell{max-width:980px;margin:0 auto;padding:18px}
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  margin-bottom:16px
}
.home-panel{margin-top:8px}
.accent{background:linear-gradient(140deg,#fff 25%,var(--soft))}
.hidden{display:none!important}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.eyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  color:#5a675c;
  margin:0 0 7px
}
h2,h3,p{margin-top:0}
.field-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0
}
.compact-fields{margin-bottom:14px}
label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:750;
  color:#4e584f
}
input,select,textarea{
  width:100%;
  border:1px solid #cfd6cc;
  background:white;
  border-radius:12px;
  padding:11px 12px;
  color:var(--ink)
}
textarea{min-height:82px;resize:vertical}
button{
  border:0;
  border-radius:999px;
  padding:11px 15px;
  font-weight:800;
  cursor:pointer
}
button:disabled{opacity:.38;cursor:default}
.primary{background:var(--ink);color:#fff}
.ghost{background:#edf0e9;color:var(--ink)}
.big{padding:15px 20px;font-size:16px}
.home-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px
}
.reminder-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--soft);
  border:1px solid #dce9cc;
  border-radius:14px;
  padding:12px 13px;
  margin-bottom:10px
}
.reminder-bar>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.reminder-bar strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.help-button{
  width:100%;
  background:var(--accent);
  color:var(--ink);
  padding:13px 16px
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px
}
.section-head h2,.panel h2{margin:0}
.stack{display:flex;flex-direction:column;gap:10px}
.compact{margin-top:12px}
.task{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center
}
.task.done{opacity:.55}
.task.partial{border-color:#e3c873;background:#fffdf3}
.task h3{margin:0 0 5px;font-size:15px}
.task-meta{font-size:12px;color:var(--muted);line-height:1.55}
.task-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.task-actions button{font-size:12px;padding:9px 12px}
.pill{
  display:inline-block;
  background:#edf0e9;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800
}
.product-sku{
  display:inline-block;
  background:rgba(255,255,255,.8);
  padding:6px 9px;
  border-radius:8px;
  font-family:ui-monospace,monospace;
  font-size:11px;
  margin-bottom:8px
}
.thread{border:1px solid var(--line);border-radius:13px;padding:12px}
.thread-head{display:flex;justify-content:space-between;gap:10px}
.message{padding:8px 0;border-top:1px dashed var(--line);font-size:13px}
.message:first-of-type{border-top:0}
.message small{display:block;color:var(--muted);margin-top:3px}
dialog{
  border:0;
  border-radius:20px;
  padding:0;
  max-width:500px;
  width:calc(100% - 28px);
  box-shadow:0 28px 75px rgba(0,0,0,.2)
}
dialog::backdrop{background:rgba(12,16,13,.42)}
.dialog-card{padding:22px}
.dialog-card h2{margin:0 0 14px}
.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:18px
}
@media(max-width:900px){
  .todo-create-grid{grid-template-columns:1fr 1fr}
  .todo-content{grid-column:1/-1}
  .todo-edit-row{grid-template-columns:24px 95px 1fr auto}
  .todo-edit-row .pill{grid-column:3}
  .replace-row{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .shell{padding:12px}
  .topbar{padding:12px 14px}
  .panel{padding:16px}
  .field-grid{grid-template-columns:1fr 1fr}
  .home-actions{grid-template-columns:1fr 1fr}
  .reminder-bar{align-items:flex-start}
  .task{grid-template-columns:1fr}
  .task-actions{justify-content:flex-start}
  .field-grid.three{grid-template-columns:1fr}
  .featured-grid{grid-template-columns:1fr 1fr}
  .todo-create-grid{grid-template-columns:1fr 1fr}
  .todo-edit-row{grid-template-columns:22px 90px 1fr}
  .todo-edit-row button{grid-column:auto}
  .replace-row{grid-template-columns:1fr 1fr}
}

.small-btn{padding:8px 11px;font-size:11px}
.wide{width:100%;margin-top:14px}
.field-grid.three{grid-template-columns:1fr 1fr 1fr}
.op-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 14px}
.op-head h1{margin:0;font-size:24px}
.todo-create-grid{display:grid;grid-template-columns:160px 120px 1fr 160px 150px;gap:10px;align-items:end;margin-bottom:14px}
.todo-content{grid-column:auto}
.todo-edit-row{display:grid;grid-template-columns:26px 105px minmax(220px,1fr) auto auto auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:10px;background:#fff}
.todo-edit-row textarea{min-height:54px}
.todo-edit-row.dragging{opacity:.45}
.drag-handle{font-weight:900;color:var(--muted);cursor:grab;text-align:center}
.inline-reply{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}
.thread-head small{display:block;color:var(--muted);margin-top:4px}
.schedule-mode-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:8px;overflow-x:auto;padding-bottom:8px}
.day-column{border:1px solid var(--line);border-radius:13px;padding:9px;min-width:145px;background:#fbfcf8}
.day-title{font-weight:850;margin-bottom:8px}
.day-shifts{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.mini-shift{display:grid;grid-template-columns:1fr;gap:6px;border-bottom:1px dashed var(--line);padding-bottom:8px}
.mini-shift:last-child{border-bottom:0}
.icon-btn{width:30px;height:30px;padding:0;border-radius:50%;background:#edf0e9}
.replace-row{display:grid;grid-template-columns:110px 145px 110px 110px 1fr 1.4fr 34px;gap:8px;align-items:center}
#opScreen .panel{box-shadow:none}
#opScreen textarea{min-height:70px}

.reminder-label{font-weight:850;letter-spacing:.08em;color:#5a675c}
.op-head-actions{display:flex;gap:8px;align-items:center}
.featured-grid{grid-template-columns:1fr 1fr 1fr 1fr;margin-bottom:12px}
.training-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.featured-row p{margin:8px 0 0}


.push-home-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fafbf7;
  font-size:12px;
  font-weight:800
}
.setup-actions{display:flex;gap:8px}
.setup-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.setup-columns h3{font-size:13px;margin:0 0 8px;color:var(--muted)}
.setup-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px
}
.setup-row strong,.setup-row small{display:block}
.setup-row small{color:var(--muted);margin-top:3px;font-size:11px}
.todo-composer{
  border:1px solid var(--line);
  border-radius:15px;
  padding:14px;
  background:#fbfcf8;
  margin-bottom:14px
}
.todo-topline{display:grid;grid-template-columns:1fr 130px;gap:10px;margin-bottom:10px}
.todo-bottomline{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.todo-composer textarea{min-height:64px}
.todo-saved-list{margin-top:4px}
.todo-saved-card{
  display:grid;
  grid-template-columns:24px 110px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:white
}
.todo-saved-card.dragging{opacity:.45}
.todo-time-block input{font-weight:850;text-align:center}
.todo-saved-main textarea{min-height:48px;padding:9px 10px}
.todo-meta{font-size:11px;color:var(--muted);margin-top:5px}
.todo-row-actions{display:flex;gap:6px}
.direct-message-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:8px;
  margin-bottom:14px
}
.week-field{max-width:220px;margin-bottom:14px}
.schedule-blocks{display:flex;flex-direction:column;gap:14px}
.schedule-store-block{
  border:1px solid var(--line);
  border-radius:15px;
  padding:12px;
  background:#fbfcf8
}
.schedule-store-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px
}
.schedule-store-head label{max-width:240px;flex:1}
.pay-summary{
  margin-top:14px;
  border-top:1px solid var(--line);
  padding-top:12px
}
.pay-summary-title{font-size:12px;font-weight:850;color:var(--muted);margin-bottom:8px}
.pay-summary-row,.pay-summary-total{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:6px 0;
  font-size:13px
}
.pay-summary-total{border-top:1px solid var(--line);margin-top:5px;padding-top:9px;font-weight:850}
.featured-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}
#opScreen .panel{box-shadow:none}

.todo-create-grid,.todo-edit-row{min-width:0}

@media(max-width:760px){
  .setup-columns{grid-template-columns:1fr}
  .featured-grid{grid-template-columns:1fr 1fr}
  .direct-message-row{grid-template-columns:1fr auto}
  .direct-message-row select{grid-column:1/-1}
  .todo-saved-card{grid-template-columns:20px 95px minmax(0,1fr)}
  .todo-row-actions{grid-column:3;justify-content:flex-end}
  .replace-row{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .field-grid{grid-template-columns:1fr 1fr}
  .featured-grid{grid-template-columns:1fr 1fr}
  .todo-topline{grid-template-columns:1fr 110px}
  .todo-bottomline{grid-template-columns:1fr 1fr}
  .todo-saved-card{grid-template-columns:18px 88px minmax(0,1fr)}
  .setup-actions{flex-wrap:wrap;justify-content:flex-end}
  .schedule-store-head{align-items:center}
}


.collapsible-panel{
  padding:0;
  overflow:hidden
}
.collapsible-panel > summary{
  list-style:none;
  cursor:pointer;
  padding:18px 20px;
  font-size:16px;
  font-weight:850;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  user-select:none
}
.collapsible-panel > summary::-webkit-details-marker{display:none}
.collapsible-panel > summary::after{
  content:"+";
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#edf0e9;
  font-size:18px;
  line-height:1
}
.collapsible-panel[open] > summary::after{content:"−"}
.collapsible-panel[open] > summary{border-bottom:1px solid var(--line)}
.collapse-body{padding:16px 20px 20px}
.collapsible-panel .section-head{margin-bottom:12px}


.collapsible-panel{
  padding:0;
  overflow:hidden
}
.collapsible-panel>summary{
  list-style:none;
  cursor:pointer;
  padding:17px 20px;
  font-size:16px;
  font-weight:850;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.collapsible-panel>summary::-webkit-details-marker{display:none}
.collapsible-panel>summary::after{
  content:"+";
  font-size:20px;
  line-height:1;
  font-weight:600;
  color:var(--muted)
}
.collapsible-panel[open]>summary::after{content:"–"}
.collapsible-panel[open]>summary{border-bottom:1px solid var(--line)}
.collapse-body{padding:16px 20px 20px}
.collapsible-panel .pill{margin-left:8px}

.announcement-card{
  border:1px solid #dbe9c9;
  background:var(--soft);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:16px
}
.announcement-label{
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:5px
}
#announcementText{
  font-size:15px;
  line-height:1.45;
  white-space:pre-wrap
}
.announcement-editor{
  display:flex;
  flex-direction:column;
  gap:10px
}
.announcement-editor-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px
}

.push-status{
  display:block;
  margin-top:3px;
  font-size:10px;
  font-weight:600;
  color:var(--muted)
}


.featured-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.featured-topline h3{margin:0}
.inventory-count-row{align-items:center}


.help-button{position:relative}
.help-button .pill{margin-left:8px}
.help-button.has-unread-help::after{
  content:'';
  width:9px;
  height:9px;
  border-radius:50%;
  background:currentColor;
  position:absolute;
  top:8px;
  right:8px;
}


.featured-notice-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;

  margin-top:10px;
}
.featured-sku{
  font-size:15px;
  line-height:1.35;
  color:#6f8f45;
}
.featured-reason{
  font-size:13px;
  color:var(--ink);
}




.store-checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  min-height:42px;
}
.store-check{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  margin:0;
}
.store-check input{
  width:16px;
  height:16px;
  margin:0;
}
