.sw-panel {
  --sw-accent: #822e2a;
  --sw-ink: #302521;
  --sw-muted: #62564f;
  --sw-line: #e9dfd7;
  --sw-surface: #fcf9f5;
  --sw-wash: #f6eee6;
  container-type: inline-size;
  min-width: 0;
  margin: 0 0 22px;
  border: 1px solid var(--sw-line);
  border-radius: 18px;
  background: var(--sw-surface);
  color: var(--sw-ink);
}

.sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 17px 17px 0 0;
  background: var(--sw-wash);
}

.sw-head h2 {
  margin: 0 0 2px;
  font-size: 23px;
  font-weight: 680;
  line-height: 1.25;
}

.sw-head p, .sw-meta {
  color: var(--sw-muted);
  font-size: 13px;
}

.sw-store-code,
.sw-oven-facts,
.sw-source dd > strong,
.sw-difference > strong,
.sw-window {
  font-variant-numeric: tabular-nums;
}

.sw-controls, .sw-actions, .sw-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sw-row {
  justify-content: space-between;
}

.sw-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.sw-panel :is(input:not([type="checkbox"]), select, textarea) {
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #cdbfb3;
  border-radius: 7px;
  background: #fff;
  color: var(--sw-ink);
  font-size: 16px;
}

.sw-date input {
  min-width: 0;
}

.sw-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  min-width: 0;
}

.sw-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

.sw-column {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: 12px;
}

.sw-column-title {
  padding: 12px 13px;
  border-bottom: 1px solid var(--sw-line);
  border-radius: 11px 11px 0 0;
  background: #f7ede7;
  font-size: 17px;
  font-weight: 680;
  scroll-margin-top: 58px;
}

.sw-finance .sw-column-title {
  background: #edf2ee;
}

.sw-profile .sw-column-title {
  background: #f3f0e8;
}

.sw-column-body {
  padding: 0 13px 13px;
}

.sw-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--sw-line);
}

.sw-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sw-block h4 {
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.35;
}

.sw-block h5,
.sw-templates h5 {
  margin-top: 9px;
  font-size: 13px;
  color: var(--sw-muted);
}

.sw-identity {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 10px;
  font-size: 14px;
}

.sw-identity dt,
.sw-channels dt {
  color: var(--sw-muted);
}

.sw-identity dd {
  font-weight: 620;
}

.sw-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #e8d0c9;
  border-radius: 8px;
  background: #faeee9;
  color: var(--sw-accent);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.sw-action:hover:not(:disabled) {
  background: #f3e0d8;
}

.sw-action:disabled {
  opacity: .65;
  cursor: default;
}

.sw-controls .sw-action, .sw-shortcuts .sw-action {
  background: #fff;
  border-color: #dccfc3;
  color: var(--sw-ink);
}

.sw-shortcuts,
.sw-boss-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sw-boss-quick .sw-action {
  display: block;
  text-align: left;
  overflow-wrap: anywhere;
}

.sw-boss-quick b, .sw-boss-quick span {
  display: block;
}

.sw-boss-quick span {
  margin-top: 2px;
  font-weight: 450;
}

.sw-list,
.sw-ovens,
.sw-oven-facts {
  list-style: none;
}

.sw-list > li {
  padding: 7px 0;
  border-bottom: 1px solid var(--sw-line);
  font-size: 14px;
}

.sw-list > li:last-child {
  border-bottom: 0;
}

.sw-check-readback > li {
  padding: 3px 0;
  color: var(--sw-muted);
  border: 0;
  font-size: 13px;
}

.sw-ovens {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.sw-oven {
  padding: 8px 9px;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  background: #fffcfa;
  font-size: 14px;
}

.sw-oven-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 5px;
  color: var(--sw-muted);
  font-size: 13px;
}

.sw-badge {
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.sw-badge.sw-neutral { background: #f1ece7; color: #594a42; }
.sw-badge.sw-success { background: #e6f1e8; color: #2b5e3d; }
.sw-badge.sw-process { background: #e8edf4; color: #364b70; }
.sw-badge.sw-warning { background: #f9eed7; color: #694810; }

.sw-window {
  margin: 5px 0 3px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #f4eee9;
  color: #55463f;
  font-size: 13px;
  line-height: 1.4;
}

.sw-window.sw-warning { background: #fcf0d6; color: #694810; }
.sw-window.sw-timer { background: #f6e9e1; color: #702620; font-weight: 650; }

.sw-form {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sw-form > .sw-action {
  justify-self: start;
}

.sw-form label {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
}

.sw-form :is(input:not([type="checkbox"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
}

.sw-form textarea {
  resize: vertical;
}

.sw-checks {
  min-inline-size: 0;
  border: 0;
}

.sw-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  cursor: pointer;
}

.sw-checks input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: var(--sw-accent);
}

.sw-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}

.sw-block > .sw-actions,
.sw-oven > .sw-actions,
.sw-links {
  margin-top: 8px;
}

.sw-plain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.sw-sources {
  display: grid;
  gap: 7px;
}

.sw-source, .sw-difference {
  padding: 8px 9px;
  border: 1px solid #e0e8e1;
  border-radius: 8px;
  background: #f5f8f4;
}

.sw-source > dt, .sw-difference > span {
  font-size: 13px;
  font-weight: 600;
}

.sw-source dd > strong,
.sw-difference > strong {
  display: block;
  margin: 1px 0;
  color: #293a30;
  font-size: 21px;
  line-height: 1.3;
}

.sw-difference {
  background: #fbf5ec;
  border-color: #eadfcd;
}

.sw-close-state, .sw-note {
  margin: 7px 0;
}

.sw-note {
  font-size: 14px;
  white-space: pre-wrap;
}

.sw-channels {
  margin-bottom: 6px;
}

.sw-channels > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--sw-line);
  font-size: 13px;
}

.sw-disclosure {
  margin-top: 7px;
  padding: 0 8px 0;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  background: #fffcfa;
}

.sw-disclosure[open] {
  padding-bottom: 8px;
}

.sw-disclosure > summary {
  align-content: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--sw-accent);
  font-size: 14px;
  font-weight: 650;
}

.sw-detail-source + .sw-detail-source {
  padding-top: 5px;
  border-top: 1px solid var(--sw-line);
}

.sw-report-reference {
  margin-top: 2px;
}

.sw-report-reference > .sw-row {
  margin-bottom: 5px;
}

.sw-report-reference h4 {
  margin: 0;
}

.sw-report-list {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}

.sw-report-item {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  background: var(--sw-surface);
}

.sw-report-item dt, .sw-report-item h5 {
  margin: 0;
  color: var(--sw-ink);
  font-size: 13px;
  font-weight: 630;
}

.sw-report-amount {
  display: block;
  margin: 1px 0 3px;
  font-size: 19px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.sw-report-comparison {
  padding: 7px 8px;
  border-radius: 7px;
  background: #fbf0db;
  color: #674616;
  font-size: 13px;
}

.sw-report-reference .sw-disclosure {
  margin-bottom: 7px;
}

.sw-feedback:not(:empty),
.sw-loading,
.sw-load-error {
  padding: 9px 12px;
  border-radius: 8px;
  background: #edf4ee;
  color: #285034;
  font-size: 14px;
}

.sw-feedback:not(:empty) {
  margin: 10px 12px 0;
}

.sw-feedback.sw-feedback-error,
.sw-load-error {
  background: #fbefe6;
  color: #702820;
}

.sw-load-error > p {
  margin-bottom: 6px;
}

.sw-loading {
  background: #f4ede7;
  color: var(--sw-muted);
}

.sw-panel :focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 2px;
}

.sw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .main:has(.sw-panel) { width: 100%; }
}

@container (min-width: 755px) {
  .sw-grid { grid-template-columns: minmax(0, 1.23fr) minmax(0, 1.12fr) minmax(0, .93fr); }
  .sw-grid:has(.sw-finance:first-child) { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.23fr) minmax(0, .93fr); }
  .sw-shortcuts { display: none; }
}

@container (max-width: 374px) {
  .sw-head { padding: 13px 12px; }
  .sw-body { padding: 8px; }
  .sw-column-body { padding-right: 11px; padding-left: 11px; }
  .sw-boss-quick { grid-template-columns: 1fr; }
}

.sw-manager-home .sw-head h2 {
  font-size: 25px;
}

.sw-manager-home [tabindex="-1"], #boss-store .sw-head h2 {
  scroll-margin-top: 62px;
}

.sw-next {
  padding: 14px 15px;
  border: 1px solid #e6ccbd;
  border-radius: 12px;
  background: #fbede3;
}

.sw-next h3 {
  color: #673027;
  font-size: 14px;
}

.sw-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 3px;
}

.sw-next-action h4 {
  color: #3b281f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.sw-next-action .sw-meta {
  margin-top: 2px;
}

.sw-next-action .sw-action {
  min-width: 115px;
  border-color: var(--sw-accent);
  background: var(--sw-accent);
  color: white;
}

.sw-next-action .sw-action:hover:not(:disabled) {
  background: #6f2523;
}

.sw-manager-jumps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sw-manager-jump {
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.sw-manager-jump:hover {
  background: var(--sw-wash);
}

.sw-manager-jump strong, .sw-manager-jump span {
  display: block;
  line-height: 1.35;
}

.sw-manager-jump strong {
  font-size: 15px;
}

.sw-manager-jump span {
  margin-top: 2px;
  color: var(--sw-muted);
  font-size: 12px;
}

.sw-manager-sections {
  display: grid;
  gap: 12px;
}

.sw-close-summary, .sw-report-empty {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  background: var(--sw-wash);
}

.sw-close-summary strong, .sw-report-empty strong {
  font-size: 15px;
}

.sw-manager-home .sw-report-reference .sw-channels {
  margin: 0 0 8px;
}

.sw-manager-home .sw-report-comparison {
  margin-bottom: 8px;
}

@container (min-width: 755px) {
  .sw-manager-jumps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sw-manager-home .sw-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-manager-home .sw-ovens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sw-directory-groups {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sw-directory-group {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
}

.sw-directory-group > h4, .sw-guide-list > h4 {
  margin-bottom: 5px;
  font-size: 15px;
}

.sw-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sw-guide-list {
  padding-top: 12px;
}

.sw-guide-list summary small {
  margin-left: 6px;
  color: var(--sw-muted);
  font-size: 11px;
}

.sw-range-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  margin: 10px 0 8px;
}

.sw-range-form label {
  display: grid;
  min-width: 0;
  gap: 3px;
  font-size: 13px;
}

.sw-range-form input {
  width: 100%;
  min-width: 0;
}

.sw-range-form button {
  justify-self: start;
}

.sw-range-table {
  width: 100%;
  margin-bottom: 6px;
  table-layout: fixed;
}

.sw-range-table :is(th, td) {
  position: static;
  padding: 6px 5px;
  overflow-wrap: anywhere;
}

.sw-range-table strong {
  display: block;
  font-variant-numeric: tabular-nums;
}

.sw-range-table small {
  display: block;
  color: var(--sw-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.sw-range-day {
  min-height: 36px;
  text-align: left;
  color: var(--sw-accent);
  font-size: 12px;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sw-range-difference {
  background: #fbf0db;
  color: #674616;
}

.sw-range-difference strong {
  display: inline;
}

.sw-admin-directory {
  margin-top: 0;
}

.sw-admin-module-states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

.sw-admin-module-states > div {
  padding: 5px 7px;
  border: 1px solid var(--sw-line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.sw-admin-module-states dd {
  color: var(--sw-muted);
  font-size: 12px;
}

@container (min-width: 755px) {
  .sw-manager-jumps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sw-directory-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-range-form { grid-template-columns: repeat(2, minmax(0, 170px)) auto; justify-content: start; }
}

.sw-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sw-line);
  color: var(--sw-muted);
  font-size: 13px;
}

.sw-section-links,
.sw-feedback:not(:empty),
.sw-action-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sw-section-links { margin: 7px 0; }

.sw-action-feedback {
  margin: 7px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: #edf4ee;
  color: #285034;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sw-action-feedback.sw-feedback-error {
  background: #fbefe6;
  color: #702820;
}

.sw-report-date-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  margin: 7px 0;
}

.sw-report-date-form label { display: grid; gap: 3px; font-size: 13px; }
.sw-report-date-form input { min-height: 44px; }
.sw-range-day, #direct-store { min-height: 44px; }
.sw-panel button { scroll-margin-top: 55px; }
.sw-panel :is([tabindex="-1"], summary, .sw-action-feedback, .sw-feedback), #direct-store { scroll-margin-top: 66px; }
.sw-panel :is([tabindex="-1"], summary):focus { outline: 2px solid var(--sw-accent); outline-offset: 2px; }
.sw-panel button[aria-current] { border-color: var(--sw-accent); background: #f7e2d7; color: #682d23; }
.sw-panel .sw-range-day[aria-current] { border-radius: 6px; }
#direct-store[aria-pressed="true"] { background: #f7e2d7; color: #682d23; }

.sw-feedback > details { flex-basis: 100%; overflow-wrap: anywhere; }
.sw-feedback > details summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
