/* Other pages */
.sub-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.form-label { display:block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; margin-bottom: 6px; }
.form-select {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lib-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.lib-row:last-child { border-bottom: 0; }
.lib-row:hover { background: var(--bg-inset); }

.org-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.org-day { padding: 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); }
.org-day__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.org-day__slots { display: flex; flex-wrap: wrap; gap: 4px; min-height: 70px; }
.org-pill {
  width: 14px; height: 20px; background: var(--c); border-radius: 7px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1), inset 0 3px 0 rgba(255,255,255,0.2);
  display: inline-block;
}
.org-day__count { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; font-weight:600; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* Organizer — fill + inventory impact */
.org-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.org-hero__controls {
  padding: 20px 22px;
  background: var(--bg-inset);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.org-hero__divider { height: 1px; background: var(--border); }
.org-hero__select {
  display: block;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  width: 100%;
  font-family: inherit;
}
.org-hero__stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.org-hero__stepper button {
  width: 32px; height: 36px;
  border: none; background: transparent;
  font-size: 16px; color: var(--ink-strong);
  cursor: pointer;
}
.org-hero__stepper button:hover { background: var(--bg-inset); }
.org-hero__stepper span {
  padding: 0 14px; font-size: 20px; font-weight: 600; min-width: 48px; text-align: center;
  color: var(--ink-strong);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 36px;
  line-height: 36px;
}
.org-hero__presets { display: flex; gap: 4px; margin-top: 8px; }
.org-hero__preset {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
}
.org-hero__preset.is-active { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }

.org-hero__summary {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.org-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
}
.org-alert strong { font-weight: 600; color: var(--ink-strong); }
.org-alert > div:first-of-type { flex: 1; }
.org-alert--ok { background: var(--ok-soft); color: var(--ok); }
.org-alert--ok strong { color: var(--ok); }
.org-alert--warn { background: var(--warn-soft); color: var(--warn); }
.org-alert--warn strong { color: var(--warn); }
.org-alert--danger { background: var(--danger-soft); color: var(--danger); }
.org-alert--danger strong { color: var(--danger); }

.org-impact { padding: 4px 18px 16px; }
.org-impact__head, .org-impact__row {
  display: grid;
  grid-template-columns: 2.4fr 0.8fr 0.8fr 1.6fr 0.8fr;
  gap: 14px;
  padding: 10px 8px;
  font-size: 13px;
  align-items: center;
}
.org-impact__head {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.org-impact__row { border-bottom: 1px dashed var(--border); }
.org-impact__row:last-child { border-bottom: 0; }
.org-impact__row--short { background: color-mix(in oklab, var(--danger) 5%, transparent); }
.org-impact__bar {
  flex: 1;
  position: relative;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-inset);
}
.org-impact__barFill {
  position: absolute; top: 0; left: 0; bottom: 0;
  border-radius: 3px;
  transition: width .2s;
}

.prices-table { padding: 0 18px 16px; }
.prices-table__head, .prices-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 10px 8px;
  font-size: 13px;
  align-items: center;
}
.prices-table__head {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.prices-table__row { border-bottom: 1px dashed var(--border); }
.prices-table__row:last-child { border-bottom: 0; }
.prices-table__row.is-best { background: var(--ok-soft); border-radius: 8px; margin: 2px 0; border-bottom: 0; }

.refill-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.refill-row:last-child { border-bottom: 0; }

.act-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  position: relative;
}
.act-rail { width: 12px; position: relative; align-self: stretch; }
.act-dot { position: absolute; top: 14px; left: 2px; width: 8px; height: 8px; border-radius: 50%; }
.act-dot--consumed { background: var(--info); }
.act-dot--added { background: var(--ok); }
.act-dot--adjusted { background: var(--warn); }

.settings-row {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row > span:first-child { color: var(--ink-muted); font-size: 12px; }
