/* Homepage only. External SVG masks retain the supplied paths and use CSS color. */
.home-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--home-icon) center / contain no-repeat;
  mask: var(--home-icon) center / contain no-repeat;
}
.icon-gas-enterprise { --home-icon: url('/assets/workbench/gas-enterprise.svg'); }
.icon-catering-enterprise { --home-icon: url('/assets/workbench/catering-enterprise.svg'); }
.icon-station-list { --home-icon: url('/assets/workbench/station-list.svg'); }
.icon-service-report { --home-icon: url('/assets/workbench/service-report.svg'); }
.icon-enterprise-archive { --home-icon: url('/assets/workbench/enterprise-archive.svg'); }
.icon-safety-record { --home-icon: url('/assets/workbench/safety-record.svg'); }
.icon-hazard-record { --home-icon: url('/assets/workbench/hazard-record.svg'); }
.icon-rectification-tracking { --home-icon: url('/assets/workbench/rectification-tracking.svg'); }
.icon-recent-record { --home-icon: url('/assets/workbench/recent-record.svg'); }
.icon-help-guide { --home-icon: url('/assets/workbench/help-guide.svg'); }
.icon-help-faq { --home-icon: url('/assets/workbench/help-faq.svg'); }
.icon-contact-admin { --home-icon: url('/assets/workbench/contact-admin.svg'); }
.icon-announcement { --home-icon: url('/assets/workbench/announcement.svg'); }
.icon-chevron-right { --home-icon: url('/assets/workbench/chevron-right.svg'); }
.tone-gas { color: #0f9f82; }
.tone-blue { color: #1677ff; }
.tone-orange { color: #f59e0b; }
.tone-danger { color: #ef476f; }
.tone-purple { color: #6d5ce7; }

body.is-workbench-view { display: block; height: auto; min-height: 100svh; }
body.is-workbench-view main { overflow: visible; }
#businessPanel {
  height: auto;
  min-height: calc(100svh - 74px);
  overflow: visible;
  padding: 24px clamp(20px, 3.4vw, 56px) 16px;
}
#businessPanel .workbench-shell { height: auto; grid-template-rows: none; gap: 18px; }
#businessPanel .workbench-hero { display: block; min-height: 94px; overflow: visible; padding: 12px 16px 6px; }
#businessPanel .workbench-copy h2::after { content: none; }
#businessPanel .workbench-copy { padding: 0; gap: 10px; }
#businessPanel .workbench-copy h2 { padding: 0; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.25; color: #102a4c; }
#businessPanel .workbench-copy p { max-width: none; font-size: 16px; font-weight: 400; color: #506c91; line-height: 1.5; }
#businessPanel .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#businessPanel .business-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 0;
  height: auto;
  padding: 20px 20px 16px;
  border: 1px solid #e3edf7;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px #255c9510;
  text-align: left;
  cursor: default;
}
#businessPanel .business-card:hover { transform: none; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 18px #255c9510; }
#businessPanel .business-card::after { height: 5px; }
#businessPanel .business-card-heading { display: flex; align-items: center; gap: 22px; min-width: 0; }
#businessPanel .business-card-icon { width: 80px; height: 80px; flex: 0 0 auto; box-shadow: inset 0 0 0 8px #ffffff30; }
#businessPanel .business-card-catering .business-card-icon { background: linear-gradient(135deg, #3a9dff, #0878f9); }
#businessPanel .business-card-icon .home-icon { width: 36px; height: 36px; }
#businessPanel .business-card-body { display: grid; gap: 6px; justify-items: start; }
#businessPanel .business-card-body h3 { font-size: clamp(22px, 1.85vw, 28px); line-height: 1.3; color: #102a4c; }
#businessPanel .business-card-desc { font-size: 15px; line-height: 1.55; font-weight: 400; color: #506c91; }
#businessPanel .business-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#businessPanel .business-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 118px;
  padding: 14px 6px;
  border: 1px solid #e4eff9;
  border-radius: 7px;
  background: #f5faff;
  text-align: center;
}
#businessPanel .business-feature .home-icon { width: 32px; height: 32px; }
#businessPanel .business-feature strong { color: #142e50; font-size: 15px; line-height: 1.4; }
#businessPanel .business-feature > span:last-child { color: #607b9c; font-size: 12px; line-height: 1.4; }
#businessPanel .business-card-actions { display: flex; justify-content: flex-end; position: relative; z-index: 1; margin-top: auto; }
#businessPanel .business-enter { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 148px; min-height: 40px; padding: 9px 18px; background: var(--card-accent); font-size: 14px; box-shadow: none; }
#businessPanel .business-enter:hover { filter: brightness(.94); }
#businessPanel .business-enter .home-icon { width: 18px; height: 18px; }
#businessPanel .business-enter:focus-visible { outline: 3px solid #83b9f9; outline-offset: 3px; }

#businessPanel .workbench-grid { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); align-items: stretch; gap: 16px; }
#businessPanel .workbench-widget { display: flex; flex-direction: column; gap: 14px; height: auto; min-height: 0; min-width: 0; overflow: visible; padding: 18px 22px; border: 1px solid #e3edf7; border-radius: 9px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 16px #255c9508; }
#businessPanel .widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#businessPanel .widget-title { gap: 12px; }
#businessPanel .widget-title h3 { font-size: 20px; line-height: 1.3; }
#businessPanel .widget-icon { width: 24px; height: 24px; color: #1677ff; }
#businessPanel .widget-more { display: inline-flex; gap: 3px; align-items: center; padding: 2px; background: transparent; color: #607b9c; font-size: 13px; font-weight: 500; }
#businessPanel .widget-more:hover { color: #1677ff; }
#businessPanel .widget-more .home-icon { width: 16px; height: 16px; }
#businessPanel .workbench-side { display: grid; grid-template-rows: auto minmax(142px, 1fr); gap: 16px; min-width: 0; }
#businessPanel .help-list { gap: 8px; min-height: 0; grid-auto-rows: auto; }
#businessPanel .help-link { grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 12px; height: auto; min-height: 42px; padding: 4px 10px; }
#businessPanel .help-link-icon { width: 32px; height: 32px; }
#businessPanel .help-link-icon .home-icon { width: 22px; height: 22px; }
#businessPanel .help-link .help-copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
#businessPanel .help-link strong { flex: 0 0 auto; font-size: 14px; font-weight: 700; line-height: 1.4; }
#businessPanel .help-link small { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: normal; }
#businessPanel .help-chevron { width: 16px; height: 16px; color: #607b9c; }
#businessPanel .recent-list { gap: 0; min-height: 0; grid-auto-rows: auto; }
#businessPanel .recent-report-item { grid-template-columns: 46px minmax(0, 1fr) auto 18px; gap: 16px; height: auto; min-height: 86px; padding: 16px 4px; border: 0; border-top: 1px solid #e7eff7; border-radius: 0; background: transparent; }
#businessPanel .recent-report-item:last-child { border-bottom: 1px solid #e7eff7; }
#businessPanel .recent-report-item:hover { background: #f6faff; }
#businessPanel .recent-report-icon { width: 46px; height: 46px; box-shadow: inset 0 0 0 3px #ffffff18; }
#businessPanel .recent-report-icon .home-icon { width: 24px; height: 24px; }
#businessPanel .recent-report-body { min-width: 0; gap: 6px; }
#businessPanel .recent-report-body strong { font-size: 15px; line-height: 1.4; font-weight: 700; }
#businessPanel .recent-report-body span { margin: 0; font-size: 13px; font-weight: 400; }
#businessPanel .recent-report-label { padding: 7px 12px; grid-column: auto; font-size: 12px; }
#businessPanel .recent-report-arrow { width: 18px; height: 18px; color: #607b9c; }
#businessPanel .recent-state { min-height: 220px; }
#businessPanel .announcement-widget { gap: 4px; }
#businessPanel .announcement-empty { flex: 1; min-height: 100px; gap: 5px; }
#businessPanel .announcement-empty .home-icon { width: 40px; height: 40px; color: #b4d3fc; }
#businessPanel .announcement-empty strong { font-size: 16px; font-weight: 700; }
#businessPanel .announcement-empty > span:last-child { font-size: 13px; font-weight: 400; }
#businessPanel .workbench-footer { min-height: 0; padding-top: 2px; font-size: 12px; line-height: 1.5; font-weight: 400; }
.home-records-dialog { width: min(560px, calc(100vw - 32px)); }
.home-records-dialog > p { margin: 18px 0; color: #607b9c; }
.home-record-links { display: grid; gap: 12px; }
.home-record-links a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #dce9f6; border-radius: 8px; color: #102a4c; text-decoration: none; }
.home-record-links a:hover { background: #f5faff; }
.home-record-links a .icon-chevron-right { margin-left: auto; width: 18px; height: 18px; }

@media (max-width: 1199px) {
  #businessPanel .business-card-heading { gap: 14px; }
  #businessPanel .business-card-icon { width: 64px; height: 64px; }
  #businessPanel .business-card-desc { font-size: 13px; }
  #businessPanel .business-feature > span:last-child { font-size: 11px; }
  #businessPanel .help-link .help-copy { display: grid; gap: 2px; }
}
@media (max-width: 980px) {
  #businessPanel .business-grid, #businessPanel .workbench-grid { grid-template-columns: minmax(0, 1fr); }
  #businessPanel .workbench-hero { padding: 8px 0; }
  #businessPanel .business-card-desc { font-size: 15px; }
  #businessPanel .business-feature > span:last-child { font-size: 12px; }
  #businessPanel .help-link .help-copy { display: flex; }
}
@media (max-width: 560px) {
  #businessPanel { padding: 18px 14px; }
  #businessPanel .workbench-hero { min-height: 0; }
  #businessPanel .workbench-copy h2 { font-size: 30px; }
  #businessPanel .workbench-copy p { font-size: 14px; }
  #businessPanel .business-card { padding: 18px 14px; gap: 16px; }
  #businessPanel .business-card-heading { align-items: flex-start; gap: 12px; }
  #businessPanel .business-card-icon { width: 56px; height: 56px; }
  #businessPanel .business-card-icon .home-icon { width: 28px; height: 28px; }
  #businessPanel .business-card-desc { font-size: 13px; }
  #businessPanel .business-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #businessPanel .business-feature { min-height: 110px; }
  #businessPanel .business-card-actions, #businessPanel .business-enter { width: 100%; }
  #businessPanel .workbench-widget { padding: 16px; }
  #businessPanel .widget-title { gap: 8px; }
  #businessPanel .widget-title h3 { font-size: 18px; }
  #businessPanel .widget-more { font-size: 12px; }
  #businessPanel .recent-report-item { grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 6px 12px; }
  #businessPanel .recent-report-icon { grid-row: 1 / 3; width: 38px; height: 38px; }
  #businessPanel .recent-report-body strong { font-size: 14px; }
  #businessPanel .recent-report-label { grid-column: 2; justify-self: start; padding: 4px 8px; }
  #businessPanel .recent-report-arrow { grid-column: 3; grid-row: 1 / 3; }
  #businessPanel .help-link .help-copy { display: grid; gap: 2px; }
}
