#advancedAI {
  margin-top: 25px;
  border-top: 1px solid #d9e6d5;
  padding: 16px 0;
  color: #83947e;
  font-size: 11px;
}
#advancedAI > summary {
  cursor: pointer;
}
.dept-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #d9e6d7;
  gap: 1px;
  border: 1px solid #d9e6d7;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dept-kpis article {
  background: #f8fcf6;
  padding: 18px 20px;
}
.dept-kpis span,
.dept-kpis small {
  display: block;
  color: #81927d;
  font-size: 11px;
  letter-spacing: 0;
}
.dept-kpis strong {
  display: block;
  font:
    500 26px/1.6 Consolas,
    'Microsoft YaHei',
    sans-serif;
  color: #285b49;
}
.dept-kpis small {
  font-size: 10px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.section-line h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.section-line > span {
  font:
    10px Consolas,
    'Microsoft YaHei',
    sans-serif;
  color: #90a089;
}
.sales-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}
.search-label {
  font-size: 10px;
  color: #80907b;
}
.search-label input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #d6e3d0;
  border-radius: 4px;
  margin-top: 7px;
  background: #fbfef8;
  color: #315c45;
  font:
    12px 'Microsoft YaHei',
    sans-serif;
}
.customer-card {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  padding: 16px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-bottom-color: #e3ebdc;
  border-radius: 4px;
  background: transparent;
  position: relative;
}
.customer-card.selected {
  background: #edf4e6;
  border-color: #a7c29c;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e0edda;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #39694b;
  flex-shrink: 0;
}
.avatar.red {
  background: #fae8df;
  color: #ae6550;
}
.avatar.gray {
  background: #e9ede5;
  color: #8c9c83;
}
.customer-card b {
  font-size: 13px;
  font-weight: 500;
}
.customer-card small {
  display: block;
  font-size: 9px;
  color: #91a087;
  letter-spacing: 0;
}
.customer-card em {
  display: block;
  font-style: normal;
  font-size: 10px;
  line-height: 1.8;
  color: #809176;
  margin-top: 7px;
  padding-right: 2px;
}
.customer-card .tag-status {
  grid-column: 2;
  justify-self: start;
}
.tag-status {
  display: inline-block;
  white-space: nowrap;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 9px;
  background: #edf1e8;
  color: #8b987d;
}
.tag-status.green {
  background: #e0efdc;
  color: #518151;
}
.tag-status.amber {
  background: #f7ecd8;
  color: #a88242;
}
.tag-status.red {
  background: #fae6df;
  color: #b2715a;
}
.account-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}
.account-title .avatar {
  width: 54px;
  height: 54px;
  font-size: 24px;
}
.account-title h2 {
  font-size: 25px;
  margin: 0 0 3px;
}
.account-title p {
  font-size: 11px;
  color: #8a9a81;
  margin: 0;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e2eadb;
  border: 1px solid #e2eadb;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}
.mini-stats > div {
  background: #f7faf2;
  padding: 14px;
}
.mini-stats small {
  display: block;
  font-size: 9px;
  color: #8a9c7f;
  letter-spacing: 0;
}
.mini-stats b {
  display: block;
  font:
    22px/1.7 Consolas,
    'Microsoft YaHei',
    sans-serif;
  color: #3a644b;
}
.mini-stats b.credit-text {
  font:
    12px/2.9 'Microsoft YaHei',
    sans-serif;
}
.account-detail h3 {
  font-size: 13px;
  margin-top: 22px;
}
.evidence {
  font-size: 10px;
  line-height: 1.9;
  color: #8b997d;
  border-left: 2px solid #c8d7bb;
  padding: 8px 12px;
  background: #f2f6eb;
  margin: 14px 0;
}
.timeline-note {
  padding: 14px 17px;
  border-left: 2px solid #dfab87;
  background: #f9faf3;
  margin: 14px 0 22px;
}
.timeline-note small {
  font-size: 9px;
  color: #a18c70;
  letter-spacing: 0;
}
.timeline-note p {
  font-size: 12px;
  margin: 8px 0;
}
.timeline-note b {
  font-size: 11px;
  font-weight: 500;
  color: #7d946b;
}
.dept-section {
  margin-top: 18px;
}
.task-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e3ebda;
}
.task-list b {
  font-size: 11px;
  font-weight: 500;
}
.task-list small {
  display: block;
  font-size: 9px;
  letter-spacing: 0;
  color: #94a187;
}
.task-list button {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
  padding: 5px 9px;
}
.empty-inline {
  font-size: 11px;
  color: #95a28a;
  padding: 20px 0;
}
.quote-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #2c654d;
  padding: 15px 0;
  margin-bottom: 20px;
}
.quote-head b {
  font-size: 13px;
}
.quote-head span {
  font-size: 11px;
  color: #bf8a5d;
}
.quote-total {
  text-align: right;
  padding: 25px 5px;
  font-size: 12px;
}
.quote-total b {
  font:
    26px Consolas,
    monospace;
  margin-left: 20px;
}
#quoteQty {
  max-width: 95px;
}
#workDialog {
  width: min(920px, 94vw);
  max-width: 920px;
  max-height: 86vh;
  background: #fcfef8;
  border-color: #d1e1c8;
  padding: 25px;
}
#workDialog .panelhead {
  align-items: center;
  border-bottom: 1px solid #e0ead7;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
#workDialog .panelhead h2 {
  margin: 0;
}
#workDialog h2 {
  margin-top: 20px;
}
#workDialog button {
  font-size: 11px;
}
.warehouse-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 22px;
  background: #f9eee1;
  border: 1px solid #ead7bc;
  border-radius: 5px;
  margin-bottom: 20px;
}
.warehouse-banner b {
  font-size: 13px;
  color: #96774e;
}
.warehouse-banner p {
  font-size: 11px;
  color: #a48c6b;
  margin: 3px 0;
}
.warehouse-banner button {
  margin-left: auto;
  font-size: 11px;
  border-color: #dfc5a4;
  background: #fffbf3;
  color: #97744a;
}
.warning-icon {
  font:
    28px Georgia,
    serif;
  color: #ba8c54;
  border: 1px solid #d8b88e;
  width: 35px;
  height: 35px;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.segmented {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.segmented button {
  font-size: 10px;
  padding: 6px 11px;
  border-color: transparent;
  background: transparent;
  color: #829574;
}
.segmented button.active {
  background: #e6efde;
  border-color: #cadbbd;
  color: #416e48;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  background: #f0f5e9;
  color: #8b9a80;
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  padding: 12px;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #e5eddc;
  color: #46674c;
}
td b {
  font-size: 11px;
  font-weight: 500;
}
td small {
  display: block;
  color: #96a48c;
  font-size: 9px;
  letter-spacing: 0;
  margin-top: 4px;
}
td button {
  font-size: 10px;
  padding: 5px 9px;
}
td.wrap {
  white-space: normal;
  min-width: 170px;
  max-width: 260px;
  line-height: 1.9;
}
.dept-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.dept-two h3 {
  font-size: 14px;
  margin: 0 0 16px;
}
.dept-two p {
  font-size: 11px;
  line-height: 1.9;
  color: #809477;
}
.stock-equation {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #f0f5e8;
  border: 1px solid #d9e5cd;
  border-radius: 5px;
}
.stock-equation > span {
  font:
    26px Consolas,
    'Microsoft YaHei',
    sans-serif;
  flex: 1;
  text-align: center;
}
.stock-equation small {
  display: block;
  font:
    9px 'Microsoft YaHei',
    sans-serif;
  color: #8b9f7c;
  margin-top: 7px;
}
.stock-equation > b {
  font-size: 17px;
  color: #b4c3a8;
}
.shop-selector {
  margin-bottom: 18px;
}
.shop-selector > button {
  font-size: 11px;
}
.shop-chart {
  width: 100%;
  height: auto;
  min-height: 200px;
  margin: 10px 0;
}
.retail-charts {
  grid-template-columns: 1.3fr 1fr;
}
.expense-row {
  padding: 12px 0;
  border-bottom: 1px solid #e4ecdb;
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.expense-row > b {
  font-size: 11px;
  font-weight: 500;
}
.expense-row > span {
  font-size: 10px;
  color: #8a9c7e;
}
.expense-row > div {
  grid-column: 1/-1;
  height: 7px;
  background: #e9eedf;
  border-radius: 3px;
  overflow: hidden;
}
.expense-row i {
  display: block;
  height: 100%;
  background: #a9b992;
  min-width: 1px;
}
.expense-row small {
  grid-column: 1/-1;
  font-size: 9px;
  letter-spacing: 0;
  color: #98a68a;
}
.campaign-header {
  background: #edf3e5;
  border: 1px solid #d6e3ca;
  border-left: 3px solid #dca584;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.campaign-header h3 {
  font-size: 18px;
  margin: 10px 0 5px;
}
.campaign-header p {
  font-size: 11px;
  color: #8b9b7f;
  margin: 0;
}
.campaign-header button {
  font-size: 11px;
  white-space: nowrap;
}
.marketing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 18px;
}
.campaign-art {
  background: #e9eee0;
  position: relative;
  isolation: isolate;
  min-height: 530px;
  padding: 26px 30px;
  overflow: hidden;
  color: #2c5641;
}
.campaign-art:before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: #d5dfc7;
  border-radius: 50%;
  right: -150px;
  bottom: -10px;
  z-index: -1;
}
.campaign-art:after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #bdceac;
  border-radius: 50%;
  right: -60px;
  bottom: 40px;
  z-index: -1;
}
.art-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #85967a;
  letter-spacing: 1px;
}
.art-top b {
  font-size: 23px;
  color: #456b49;
  letter-spacing: 4px;
}
.art-copy {
  position: relative;
  z-index: 2;
  max-width: 85%;
  margin-top: 45px;
}
.art-copy > small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #899d7a;
}
.art-copy h2 {
  font-size: 33px;
  line-height: 1.45;
  font-weight: 600;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.art-copy p {
  font-size: 12px;
  color: #829775;
  overflow-wrap: anywhere;
}
.can-stage {
  height: 230px;
  display: flex;
  justify-content: flex-end;
  align-items: end;
  padding-right: 35px;
  gap: 12px;
  position: relative;
  margin-top: 5px;
}
.beer-can {
  width: 90px;
  height: 180px;
  border-radius: 15px 15px 17px 17px;
  background: linear-gradient(90deg, #163e35, #326b50 25%, #3d7658 55%, #1f4a3a 94%);
  box-shadow:
    12px 16px 18px #38573825,
    inset -5px 0 10px #172b2b44;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #edddad;
  position: relative;
  transform: rotate(-11deg);
  border: 1px solid #31563d;
  flex-shrink: 0;
}
.beer-can:nth-child(2) {
  transform: rotate(10deg) translateY(-16px);
  background: linear-gradient(90deg, #b59b6c, #ded1a7 30%, #e8ddbb 65%, #b8a479);
  color: #496343;
}
.can-lid {
  width: 88%;
  height: 10px;
  background: linear-gradient(#d5dacb, #8f9d8b, #d5dacb);
  border: 1px solid #95a58d;
  border-radius: 50%;
  position: absolute;
  top: 3px;
}
.beer-can > span {
  font:
    8px Consolas,
    monospace;
  letter-spacing: 2px;
  margin-top: 32px;
}
.beer-can > b {
  font-size: 25px;
  letter-spacing: 5px;
  font-weight: 500;
  margin-top: 6px;
}
.beer-can > i {
  font:
    10px/1.4 Consolas,
    monospace;
  text-align: center;
  letter-spacing: 2px;
  margin-top: 9px;
  font-style: normal;
}
.beer-can > small {
  font:
    7px Consolas,
    monospace;
  letter-spacing: 1px;
  margin-top: 15px;
  color: inherit;
}
.art-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  z-index: 2;
  border-top: 1px solid #c9d6b9;
  padding-top: 15px;
  margin-top: 18px;
  color: #819473;
  font-size: 9px;
}
.shop-art {
  min-height: 360px;
}
.shop-art .art-copy {
  margin-top: 20px;
  max-width: 60%;
}
.shop-art .art-copy h2 {
  font-size: 25px;
}
.shop-art .can-stage {
  position: absolute;
  right: 0;
  bottom: 65px;
  transform: scale(0.75);
  transform-origin: bottom right;
}
.shop-art .art-bottom {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
}
.material-editor label {
  font-size: 11px;
  color: #7c9270;
  margin: 19px 0;
}
.material-editor input {
  display: block;
  width: 100%;
  font:
    12px 'Microsoft YaHei',
    sans-serif;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d0dfc4;
  border-radius: 4px;
  background: #fbfdf6;
  color: #3f6347;
}
.material-editor h2 {
  font-size: 20px;
  margin: 10px 0 20px;
}
.material-editor .actions {
  gap: 7px;
}
.material-editor button {
  font-size: 10px;
  padding: 8px 10px;
}
.material-editor hr {
  border: 0;
  border-top: 1px solid #dfebd3;
  margin: 25px 0;
}
.material-editor h3 {
  font-size: 13px;
}
.checklist {
  padding-left: 19px;
  font-size: 11px;
  color: #849b75;
  line-height: 2.5;
}
.storyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 450px;
}
.storyboard > div {
  background: #eaf0df;
  border: 1px solid #d5e1c6;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}
.storyboard > div > span {
  font:
    9px Consolas,
    'Microsoft YaHei',
    monospace;
  color: #879d77;
  align-self: start;
}
.storyboard .beer-can {
  margin: 40px 0 25px;
  transform: scale(0.9);
}
.storyboard b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.storyboard p {
  font-size: 10px;
  color: #8a9f79;
  line-height: 1.9;
}
.table-scene {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 32px;
  color: #9ab087;
}
.table-scene hr {
  width: 80px;
  height: 8px;
  background: #bca989;
  border: 0;
}
.story-brand {
  height: 240px;
  display: grid;
  place-items: center;
  font-size: 35px;
  color: #62845b;
  letter-spacing: 5px;
}
.ai-reading {
  font:
    12px/1.95 'Microsoft YaHei',
    sans-serif;
  padding: 20px 0;
  max-height: 55vh;
  overflow: auto;
  color: #456849;
}
.ai-reading h3 {
  font-size: 16px;
  margin: 20px 0 10px;
}
.ai-reading p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0;
  min-height: 7px;
}
#contextAIStatus {
  font-size: 11px;
  background: #edf4e5;
  padding: 12px;
  line-height: 1.9;
  color: #799367;
}
#notice {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: #285f47;
  color: #f4fae9;
  border: 1px solid #68966a;
  box-shadow: 0 8px 30px #25432930;
  border-radius: 6px;
  padding: 13px 22px;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
}
#guide {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 360px;
  padding: 20px;
  background: #fbfff5;
  border: 1px solid #99ba83;
  border-radius: 9px;
  box-shadow: 0 12px 50px #1e492c35;
  z-index: 50;
}
#guide .section-line {
  margin: 12px 0 8px;
}
#guide .section-line > span {
  font:
    10px 'Microsoft YaHei',
    sans-serif;
  color: #809b6b;
}
#guide button {
  font-size: 11px;
  padding: 7px 12px;
}
#guide h3 {
  font-size: 16px;
  margin: 10px 0;
}
#guide p {
  font-size: 12px;
  color: #7c926a;
  line-height: 1.95;
  margin: 10px 0 15px;
}
.guide-progress {
  display: flex;
  gap: 5px;
}
.guide-progress i {
  height: 3px;
  flex: 1;
  background: #e3ecd9;
  border-radius: 2px;
}
.guide-progress i.filled {
  background: #799f61;
}
.guide-focus {
  outline: 2px solid #df9771 !important;
  outline-offset: 5px;
  scroll-margin-top: 40px;
  scroll-margin-bottom: 330px;
}
body:has(#guide:not([hidden])) {
  padding-bottom: 300px;
}
#guide[hidden],
#notice[hidden] {
  display: none;
}
@media (min-width: 1500px) {
  .sales-layout {
    grid-template-columns: 370px minmax(0, 1fr);
  }
  .campaign-art {
    min-height: 600px;
  }
  .can-stage {
    height: 280px;
  }
  .beer-can {
    width: 105px;
    height: 205px;
  }
  .beer-can > b {
    font-size: 29px;
  }
  .beer-can > span {
    margin-top: 38px;
  }
  .beer-can > i {
    margin-top: 14px;
  }
  .art-copy h2 {
    font-size: 40px;
  }
}
@media (max-width: 1150px) {
  .sales-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .dept-kpis article {
    padding: 15px 13px;
  }
  .dept-kpis strong {
    font-size: 22px;
  }
  .marketing-layout {
    grid-template-columns: 1fr 1fr;
  }
  .retail-charts {
    grid-template-columns: 1fr;
  }
  .storyboard {
    grid-template-columns: 1fr;
  }
  .storyboard > div {
    min-height: 250px;
  }
  .storyboard .beer-can {
    margin: 10px;
  }
  .table-scene,
  .story-brand {
    height: 120px;
  }
}
@media (max-width: 850px) {
  .sales-layout {
    grid-template-columns: 1fr;
  }
  .customer-list #customerCards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .customer-card {
    border: 1px solid #dfe8d5;
  }
  .customer-card em {
    display: none;
  }
  .dept-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .marketing-layout,
  .dept-two {
    grid-template-columns: 1fr;
  }
  .campaign-art {
    min-height: 520px;
  }
  .warehouse-banner {
    align-items: start;
    flex-wrap: wrap;
  }
  .warehouse-banner button {
    margin-left: 50px;
  }
  .section-line {
    flex-wrap: wrap;
  }
  .deptheading {
    align-items: start;
  }
  .deptheading h2 {
    font-size: 23px;
  }
  #businessWorkspace .actions button {
    font-size: 11px;
  }
  .customer-card .tag-status {
    font-size: 8px;
  }
  .shop-selector {
    gap: 10px;
  }
  .shop-chart {
    min-height: 170px;
  }
  .storyboard {
    grid-template-columns: repeat(3, 1fr);
  }
  .storyboard > div {
    padding: 14px 8px;
    min-height: 320px;
  }
  .storyboard .beer-can {
    transform: scale(0.65);
    margin: 0 -15px;
  }
  .storyboard b {
    font-size: 12px;
  }
  .table-scene,
  .story-brand {
    height: 180px;
    font-size: 24px;
  }
  #guide {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 390px;
    padding: 16px;
  }
  #guide p {
    font-size: 11px;
  }
  .title {
    gap: 12px;
    flex-wrap: wrap;
  }
  .title > .actions {
    width: 100%;
  }
  .title > .actions > button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .campaign-header {
    align-items: start;
    flex-direction: column;
  }
  .mini-stats {
    margin: 15px 0;
  }
  .mini-stats > div {
    padding: 12px 9px;
  }
  .mini-stats b.credit-text {
    font-size: 11px;
  }
  .task-list > div {
    flex-wrap: wrap;
  }
  .task-list > div > span:nth-child(2) {
    flex: 1;
    min-width: 180px;
  }
  #workDialog {
    padding: 18px;
  }
  .stock-equation {
    gap: 10px;
    padding: 16px;
  }
  .stock-equation > span {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body[data-section]:not([data-section='overview']) .title > div:first-child {
  display: none;
}
body[data-section]:not([data-section='overview']) .title {
  justify-content: flex-end;
  padding: 16px 0 0;
}
body[data-section]:not([data-section='overview']) .deptheading {
  margin-top: 0;
}
#businessWorkspace .panel > h3 {
  margin-top: 0;
}
#guide:not([hidden]) ~ footer {
  margin-bottom: 60px;
}
