:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #17202a;
  background: #f4f7f6;
  --ai-drawer-width: clamp(380px, 29vw, 460px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 1px solid #b8c4c0;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  padding: 9px 12px;
  cursor: pointer;
}

button.primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.sidebar {
  background: #10201d;
  color: #ffffff;
  width: 196px;
  min-height: 100vh;
  padding: 18px 12px;
  overflow: hidden;
  transition: width 180ms ease, padding 180ms ease, box-shadow 180ms ease;
  z-index: 20;
}

.brand {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
  margin-bottom: 26px;
  width: 172px;
}

.brand img {
  width: 172px;
  height: 74px;
  object-fit: contain;
  object-position: center center;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand strong {
  display: block;
  width: 172px;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  font-weight: 800;
}

.brand span {
  display: block;
  width: 172px;
  color: #b9d3ce;
  font-size: 15.5px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.brand-ai-button {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #f6c74b;
  color: #10201d;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle {
  position: absolute;
  top: -8px;
  right: -4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: #f8fbfa;
  color: #0f3d38;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.brand-ai-button:hover,
.brand-ai-button.active {
  background: #ffd86b;
  border-color: #ffffff;
  transform: translateY(-1px);
}

nav {
  display: grid;
  gap: 8px;
}

nav button {
  text-align: left;
  background: transparent;
  color: #dce8e5;
  border-color: transparent;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav button.active,
nav button:hover {
  background: #1d3a34;
}

main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 18px 28px 32px;
  transition: width 180ms ease, margin 180ms ease, padding 180ms ease;
}

body.ai-drawer-open:not(.login-screen) .app {
  grid-template-columns: 196px minmax(0, calc(100vw - 196px - var(--ai-drawer-width)));
}

body.sidebar-collapsed.ai-drawer-open:not(.login-screen) .app {
  grid-template-columns: 72px minmax(0, calc(100vw - 72px - var(--ai-drawer-width)));
}

body.ai-drawer-open:not(.login-screen) main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: 22px;
}

body.sidebar-collapsed:not(.login-screen) .app {
  grid-template-columns: 72px minmax(0, 1fr);
}

body.sidebar-collapsed:not(.login-screen) .sidebar {
  width: 72px;
  padding: 14px 8px;
}

body.sidebar-collapsed:not(.login-screen) .sidebar:hover {
  width: 196px;
  padding: 18px 12px;
  box-shadow: 18px 0 36px rgba(15, 23, 42, 0.18);
}

body.sidebar-collapsed:not(.login-screen) .brand {
  width: 56px;
  margin-bottom: 16px;
}

body.sidebar-collapsed:not(.login-screen) .sidebar:hover .brand {
  width: 172px;
  margin-bottom: 26px;
}

body.sidebar-collapsed:not(.login-screen) .brand img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
}

body.sidebar-collapsed:not(.login-screen) .sidebar:hover .brand img {
  width: 172px;
  height: 74px;
  border-radius: 7px;
}

body.sidebar-collapsed:not(.login-screen) .brand strong,
body.sidebar-collapsed:not(.login-screen) .brand span,
body.sidebar-collapsed:not(.login-screen) nav button {
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed:not(.login-screen) .sidebar:hover .brand strong,
body.sidebar-collapsed:not(.login-screen) .sidebar:hover .brand span,
body.sidebar-collapsed:not(.login-screen) .sidebar:hover nav button {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-collapsed:not(.login-screen) .brand-ai-button {
  right: -2px;
  bottom: -46px;
}

body.sidebar-collapsed:not(.login-screen) .sidebar:hover .brand-ai-button {
  right: 0;
  bottom: 2px;
}

body.sidebar-collapsed:not(.login-screen) .sidebar-toggle {
  right: -2px;
  transform: rotate(180deg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 8px 0 10px;
  margin-bottom: 12px;
  background: rgba(244, 247, 246, 0.94);
  backdrop-filter: blur(10px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 24px;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.title-help {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border: 1px solid #b9d8d2;
  border-radius: 50%;
  color: #0f766e;
  background: #eef7f5;
  font-size: 14px;
  cursor: help;
  vertical-align: middle;
}

.compact-help {
  flex: 0 0 auto;
}

.notice-entry-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid #f0c36d;
  border-radius: 7px;
  background: #fff7e6;
  color: #19332d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.notice-entry-button strong {
  position: absolute;
  top: -8px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
}

.notice-entry-button:hover {
  border-color: #0f766e;
  background: #eef7f5;
}

.nav-count {
  float: right;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

.section-head h2,
.section-head h3,
.panel > h2,
.panel-heading h2,
.opc-entry-copy h2 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.panel-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.help-fold {
  position: relative;
}

.help-fold summary {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  color: #0f766e;
  background: #eef7f5;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.help-fold summary::-webkit-details-marker {
  display: none;
}

.help-fold[open] p {
  position: absolute;
  z-index: 20;
  top: 28px;
  left: 0;
  width: min(360px, 80vw);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfdcda;
  border-radius: 8px;
  color: #42514d;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.help-fold[open] .help-panel {
  position: absolute;
  z-index: 20;
  top: 28px;
  left: 0;
  width: min(420px, 84vw);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfdcda;
  border-radius: 8px;
  color: #42514d;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.session-step-help {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #b9d8d2;
  border-radius: 50%;
  color: #0f766e;
  background: #eef7f5;
  font-size: 13px;
  font-weight: 800;
  cursor: help;
}

.help-panel p {
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 8px !important;
}

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

.quota-summary span {
  padding: 8px 10px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #f8fbfa;
  color: #0f766e;
  font-weight: 700;
}

.quota-panel {
  align-self: start;
  display: grid;
  gap: 10px;
}

.quota-panel .panel-heading {
  margin-bottom: 0;
}

.quota-heading {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 12px;
}

.quota-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quota-title-line h2 {
  margin-bottom: 0;
}

.quota-rate-inline {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.quota-rate-inline span {
  color: #0f766e;
  font-weight: 800;
}

.quota-rate-inline input {
  min-width: 0;
}

.quota-panel .inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.quota-panel .stack-form {
  gap: 8px;
}

.quota-panel #walletBox .row,
.quota-panel #selectedQuotaMember,
.quota-panel #rechargePreview,
.quota-panel #quotaSubmitStatus {
  margin: 0;
}

.quota-panel #walletBox .row,
.quota-panel .form-hint {
  padding: 10px 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar p,
.muted {
  color: #66736f;
}

.session {
  width: min(420px, 38vw);
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #0f766e;
}

.session-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  max-width: 410px;
}

.session-actions.compact {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  max-width: none;
  gap: 8px;
}

.topbar-back-button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.topbar-back-button:hover {
  border-color: #0f766e;
  background: #eef7f5;
}

.session-profile {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #d6e3df;
  border-radius: 8px;
  background: #ffffff;
  color: #14231f;
  text-align: right;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.logout-button {
  min-width: 58px;
  border: 1px solid #d6e3df;
  border-radius: 8px;
  background: #f8fbfa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.session-actions.compact .logout-button {
  min-width: 56px;
  min-height: 32px;
  padding: 6px 12px;
}

.logout-button:hover {
  border-color: #0f766e;
  background: #eef7f5;
}

.session-profile strong {
  color: #0f766e;
  font-size: 13px;
  line-height: 1.15;
}

.session-profile span {
  color: #66736f;
  font-size: 11px;
  line-height: 1.25;
}

.required-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 999px;
  background: #e11d48;
  vertical-align: middle;
}

.missing-gate {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.missing-gate strong {
  color: #b91c1c;
  white-space: nowrap;
}

.missing-gate span {
  color: #5f2a2a;
  flex: 1;
}

.version-badge {
  display: inline-block;
  border: 1px solid #b9d8d2;
  background: #eef7f5;
  color: #0f766e;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 0;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-home-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.back-home-button:hover {
  border-color: #0f766e;
  background: #eef7f5;
}

.view-return-row {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 10px;
}

.view-return-row [data-back-opc],
[data-back-opc] {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.view-return-row [data-back-opc]:hover,
[data-back-opc]:hover {
  border-color: #0f766e;
  background: #eef7f5;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.opc-entry-hero {
  position: sticky;
  top: 74px;
  z-index: 10;
  grid-template-columns: minmax(220px, 0.68fr) minmax(720px, 1.32fr);
  align-items: center;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.opc-entry-copy {
  align-self: center;
}

.opc-entry-copy small {
  display: block;
  margin: -2px 0 5px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.opc-entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  justify-self: end;
  width: min(100%, 800px);
}

.opc-entry-grid button {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 54px;
  border-radius: 8px;
  text-align: left;
  padding: 8px 9px;
}

.opc-entry-grid button strong,
.opc-entry-grid button span {
  display: block;
}

.opc-entry-grid button strong {
  font-size: 13px;
  line-height: 1.15;
}

.opc-entry-grid button span {
  color: #66736f;
  font-size: 10.5px;
  line-height: 1.2;
}

.opc-entry-grid button.primary span {
  color: rgba(255, 255, 255, 0.82);
}

.command-hero h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.command-hero p {
  color: #4b5b56;
  max-width: 760px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.hero-actions button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.compact-guide {
  padding: 16px 18px 0;
}

.guide-flow-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 12px 18px 4px;
}

.guide-flow-chart div {
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
}

.guide-flow-chart strong,
.guide-flow-chart span {
  display: block;
}

.guide-flow-chart span {
  color: #66736f;
  font-size: 13px;
  margin-top: 4px;
}

.guide-flow-chart b {
  display: none;
}

.quick-card {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 16px;
}

.quick-card strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef7f5;
  color: #0f766e;
  margin-bottom: 10px;
}

.quick-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.quick-card p {
  color: #66736f;
  margin-bottom: 0;
}

.manual-card {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.manual-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fbfcfc;
}

.manual-card > summary::-webkit-details-marker {
  display: none;
}

.manual-card > summary span {
  font-weight: 700;
}

.manual-card > summary small {
  color: #66736f;
}

.flow-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  padding: 18px;
}

.flow-visual div {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  min-height: 86px;
}

.flow-visual b,
.flow-visual span {
  display: block;
}

.flow-visual b {
  color: #0f766e;
  margin-bottom: 6px;
}

.flow-visual span {
  color: #66736f;
  font-size: 13px;
}

.flow-visual i {
  display: none;
}

.video-workbench {
  display: grid;
  gap: 16px;
}

.video-flow {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
}

.video-workbench .quick-card {
  align-content: start;
  min-height: 180px;
}

.video-workbench .quick-card button {
  margin-top: auto;
  width: 100%;
}

.kk-directory-card {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.kk-directory-head,
.kk-directory-controls,
.kk-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kk-directory-head h3 {
  margin-bottom: 4px;
}

.kk-directory-controls {
  align-items: end;
}

.kk-directory-controls label {
  flex: 1;
  display: grid;
  gap: 6px;
  color: #42534e;
  font-size: 13px;
  font-weight: 700;
}

.kk-directory-controls select {
  width: 100%;
}

.kk-directory-list {
  display: grid;
  gap: 8px;
}

.kk-directory-path {
  border-radius: 8px;
  background: #eef7f5;
  color: #0f766e;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 700;
}

.kk-directory-row {
  border: 1px solid #e2e8e5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfc;
}

.kk-directory-row strong,
.kk-directory-row span {
  display: block;
}

.kk-directory-row span {
  color: #66736f;
  font-size: 12px;
  margin-top: 3px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  color: #0f766e;
  text-decoration: none;
  font-weight: 700;
}

.manual-copy {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.manual-copy p {
  margin: 0;
  color: #4b5b56;
}

.traffic-list {
  display: grid;
  gap: 10px;
}

.traffic-summary,
.traffic-row {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.traffic-summary {
  display: grid;
  gap: 4px;
}

.traffic-badge {
  align-self: start;
  border: 1px solid #d8e0dd;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.traffic-badge.green {
  color: #0f766e;
  border-color: #8fd3aa;
  background: #f3fbf6;
}

.traffic-badge.yellow {
  color: #8a6500;
  border-color: #e2c56b;
  background: #fffaf0;
}

.traffic-badge.red {
  color: #a83232;
  border-color: #e27c7c;
  background: #fff5f5;
}

.traffic-summary.green,
.traffic-row.green {
  border-color: #8fd3aa;
  background: #f3fbf6;
}

.traffic-summary.yellow,
.traffic-row.yellow {
  border-color: #e2c56b;
  background: #fffaf0;
}

.traffic-summary.red,
.traffic-row.red {
  border-color: #e27c7c;
  background: #fff5f5;
}

.traffic-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: #87938f;
}

.traffic-row.green .traffic-dot {
  background: #16835f;
}

.traffic-row.yellow .traffic-dot {
  background: #a97900;
}

.traffic-row.red .traffic-dot {
  background: #c0392b;
}

.traffic-row p {
  margin: 4px 0 0;
  color: #66736f;
}

.daily-acceptance-box {
  display: grid;
  gap: 14px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.employee-panel {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
}

.member-open-column,
.member-search-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.employee-form button {
  grid-column: span 2;
}

.employee-list {
  display: grid;
  gap: 8px;
}

.ranking-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ranking-heading h3 {
  margin: 0;
}

.country-flow-board {
  grid-column: 1 / -1;
  align-self: stretch;
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.country-flow-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flow-board h3 {
  margin: 0;
}

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

.country-card {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  display: grid;
  gap: 4px;
}

.country-card strong {
  color: #10201d;
}

.country-card span {
  color: #66736f;
  font-size: 12px;
}

.employee-panel > #employeeList {
  grid-column: 3;
  grid-row: 2 / span 5;
  align-self: stretch;
  align-content: space-between;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ranking-table {
  display: grid;
  gap: 6px;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1fr) repeat(8, minmax(72px, 0.5fr));
  gap: 8px;
  align-items: center;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  overflow-x: auto;
}

.rank-head {
  background: #eef7f5;
  color: #0f766e;
  font-weight: 700;
}

.rank-row small {
  display: block;
  color: #66736f;
  font-size: 12px;
  margin-top: 3px;
}

.flow-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.process-map {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.process-map span {
  counter-increment: step;
  position: relative;
  display: block;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 12px 12px 46px;
  min-height: 44px;
}

.process-map span::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef7f5;
  color: #0f766e;
  font-weight: 700;
  font-size: 12px;
}

.process-map span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  bottom: -11px;
  width: 1px;
  height: 10px;
  background: #b9d8d2;
}

.process-map.business span::before {
  background: #f4f7f6;
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 14px;
  background: #eef7f5;
  border: 1px solid #b9d8d2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.guide-panel strong {
  color: #0f766e;
}

.guide-panel p {
  margin: 6px 0 0;
  color: #33423e;
}

.compact-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mini-grid span {
  background: #eef7f5;
  border: 1px solid #d8e0dd;
  border-radius: 6px;
  padding: 8px;
  color: #33423e;
}

.feedback-card,
.decision-card {
  border-left: 4px solid #0f766e;
}

.traffic-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.traffic-item {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.traffic-item strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

.traffic-item.green strong::before {
  background: #0f766e;
}

.traffic-item.yellow strong::before {
  background: #d6a100;
}

.traffic-item.red strong::before {
  background: #dc2626;
}

.traffic-item span {
  color: #66736f;
  font-size: 12px;
}

.beginner-command {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #b8d7d1;
  background: #f3fbf8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.beginner-command .step-badge {
  background: #0f766e;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.beginner-command p {
  margin: 4px 0;
  color: #35443f;
}

.beginner-command small {
  color: #66736f;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #b8d7d1;
  background: #f3fbf8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.flow-strip button {
  border: 1px solid #d8e0dd;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  color: #23312d;
  cursor: pointer;
}

.flow-strip button:hover,
.stage-nav button:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.flow-strip b {
  color: #0f766e;
}

.stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stage-nav button {
  border: 1px solid #d8e0dd;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 10px;
  color: #23312d;
  font-weight: 700;
}

.project-workflow.beginner-only .stage-nav,
.project-workflow.beginner-only .workflow-card:not([open]) {
  display: none;
}

.project-workflow.show-all .stage-nav {
  display: flex;
}

.project-workflow.show-all .workflow-card {
  display: block;
}

.traffic-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.traffic-item {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.traffic-item strong,
.traffic-item span {
  display: block;
}

.traffic-item strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d7a100;
}

.traffic-item.green strong::before {
  background: #0f766e;
}

.traffic-item.red strong::before {
  background: #dc2626;
}

.traffic-item span {
  color: #66736f;
  font-size: 12px;
  margin-top: 3px;
}

.direction-report {
  border: 1px solid #d8e0dd;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfc;
}

.direction-report.approved {
  border-color: #9fd5cb;
  background: #f4fbf8;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.report-head span {
  color: #0f766e;
  font-size: 12px;
  white-space: nowrap;
}

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

.report-grid section {
  border: 1px solid #e2e8e5;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.report-grid h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #0f766e;
}

.report-grid p,
.report-note {
  margin: 0;
  color: #35443f;
}

.report-note {
  margin-top: 8px;
  font-size: 12px;
}

.handoff-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.handoff-board div {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.handoff-board strong,
.handoff-board span {
  display: block;
}

.handoff-board span {
  color: #66736f;
  font-size: 12px;
  margin-top: 4px;
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.module-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: start;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.module-option input {
  margin-top: 3px;
}

.module-option span {
  grid-column: 2;
  color: #66736f;
  font-size: 12px;
}

.flow-graph {
  border: 1px dashed #b8c4c0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcfc;
}

.flow-graph summary {
  cursor: pointer;
  color: #0f766e;
  font-weight: 700;
}

.flow-graph pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  font-size: 12px;
  color: #33423d;
}

.form-hint {
  border: 1px solid #c8ded8;
  background: #f6fbf9;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.form-hint strong {
  color: #0f766e;
}

.form-hint span {
  color: #4b5b56;
  font-size: 13px;
}

.advanced-fields {
  border: 1px dashed #b8c4c0;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
}

.advanced-fields > summary {
  cursor: pointer;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 8px;
}

.advanced-fields:not([open]) > summary {
  margin-bottom: 0;
}

.advanced-fields > * + * {
  margin-top: 8px;
}

.demo-timeline {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 14px;
}

.demo-timeline > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: #0f766e;
}

.demo-timeline:not([open]) {
  padding: 12px 14px;
}

.demo-timeline:not([open]) > *:not(summary) {
  display: none;
}

.timeline-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf2f0;
}

.timeline-step > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 5px;
  background: #a8b3af;
}

.timeline-step.green > span {
  background: #0f766e;
}

.timeline-step.yellow > span {
  background: #d6a100;
}

.timeline-step.gray > span {
  background: #a8b3af;
}

.timeline-step p {
  margin: 4px 0;
  color: #33423e;
}

.timeline-step small {
  display: block;
  color: #66736f;
  margin-top: 3px;
}

.timeline-step button {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid #b8d7d1;
  background: #f3fbf8;
  color: #0f766e;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.training-summary {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.training-summary span {
  color: #66736f;
  font-size: 12px;
}

.training-form {
  margin-top: 10px;
  border: 1px solid #edf2f0;
  background: #fbfcfc;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.training-form em {
  color: #0f766e;
  font-style: normal;
  font-size: 12px;
}

.stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.stage-nav a {
  text-decoration: none;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #b8c4c0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.workflow-card > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #fbfcfc;
  border-bottom: 1px solid #d8e0dd;
}

.workflow-card > summary::-webkit-details-marker {
  display: none;
}

.workflow-card > summary span {
  font-weight: 700;
  color: #17202a;
}

.workflow-card > summary small {
  color: #66736f;
}

.workflow-card > .tabs-grid,
.workflow-card > form,
.workflow-card > h3,
.workflow-card > .list {
  margin: 16px;
}

.result-row a,
.next-task-row a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-close-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #c8dfd9;
  border-radius: 8px;
  background: #f4fbf9;
  margin-bottom: 12px;
}

.flow-close-panel strong {
  color: #0f3d38;
  font-size: 16px;
}

.flow-close-panel span {
  color: #51635f;
  font-size: 13px;
}

.close-actions {
  margin-top: 4px;
}

.money-input {
  display: grid;
  grid-template-columns: 38px 1fr;
}

.money-input span {
  display: grid;
  place-items: center;
  border: 1px solid #b8c4c0;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #f4f7f6;
  color: #0f766e;
  font-weight: 700;
}

.money-input input {
  border-radius: 0 6px 6px 0;
}

.login-cover {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(430px, 0.96fr) minmax(390px, 500px);
  gap: 0;
  align-items: center;
  position: relative;
  max-width: 1120px;
  margin: 24px auto;
  border: 1px solid #dbe8e5;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 86px rgba(13, 35, 45, 0.14);
}

.cover-brand {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 54px 50px;
  color: #123b63;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(0, 91, 172, 0.08), rgba(15, 118, 110, 0.06)),
    #f9fcff;
  border-right: 1px solid #e3ecea;
}

.cover-logo-card {
  width: min(410px, 92%);
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 16px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e0e9e6;
  box-shadow: 0 16px 42px rgba(12, 60, 96, 0.1);
}

.cover-brand img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.cover-brand h2 {
  font-size: 34px;
  margin-bottom: 0;
  color: #0b4da2;
  line-height: 1.1;
}

.cover-brand p {
  color: #0c2a36;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.cover-brand em {
  color: #0f766e;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.cover-form {
  min-height: 520px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 58px 56px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.cover-form h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.login-language {
  justify-self: end;
  color: #66736f;
}

.login-version {
  justify-self: end;
  margin-top: -8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.login-audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.login-audience button {
  font-weight: 700;
}

.login-audience button.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.cover-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cover-tabs button.active {
  background: #eef7f5;
  color: #0f766e;
  border-color: #b9d8d2;
}

.cover-form label {
  margin-bottom: 10px;
}

.cover-form .primary {
  width: 100%;
}

.cover-slogan {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: #7b8986;
  font-size: 12px;
  letter-spacing: 0;
}

body.login-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 91, 172, 0.08), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(15, 118, 110, 0.1), transparent 26%),
    #f4f8f7;
}

body.login-screen .app {
  display: block;
}

body.login-screen .sidebar,
body.login-screen .topbar,
body.login-screen .view {
  display: none !important;
}

body.login-screen main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.login-screen #loginPanel {
  display: grid;
}

.hidden {
  display: none !important;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.compact-metrics {
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.metrics div {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 14px 16px;
}

.metrics strong,
.metrics span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #0f766e;
}

.metrics strong + span {
  display: block;
  font-size: 13px;
  color: #66736f;
  font-weight: 400;
}

.compact-metrics span {
  font-size: 12px;
}

.compact-metrics strong {
  font-size: 18px;
  line-height: 1.15;
}

.compact-metrics div {
  min-height: 54px;
  padding: 10px 12px;
}

.shop-cockpit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 78% 10%, rgba(14, 165, 233, 0.22), transparent 30%),
    radial-gradient(circle at 14% 88%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 10, 0.98), rgba(4, 26, 25, 0.97) 52%, rgba(4, 44, 42, 0.92)),
    #020607;
  color: #e8fffb;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.shop-cockpit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.45), transparent) top left / 45% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(94, 234, 212, 0.3), transparent) top right / 1px 55% no-repeat,
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(45, 212, 191, 0.16), transparent 30%);
  animation: cockpitGlow 10s linear infinite;
}

.shop-cockpit::after,
.shop-gmv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--flow-angle, 0deg), transparent 0deg, rgba(34, 211, 238, 0.92) 42deg, rgba(20, 184, 166, 0.18) 78deg, transparent 132deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cockpitRing 5.8s linear infinite;
}

.shop-cockpit.pulse .shop-gmv-hero strong,
.shop-cockpit.pulse .shop-kpi-grid strong {
  animation: valueFlip 560ms ease;
}

.shop-cockpit-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.shop-cockpit-head h3 {
  margin: 0 0 4px;
  color: #f8fffd;
  font-size: 18px;
}

.shop-cockpit-head span {
  color: #9ee8df;
  font-size: 12px;
}

.shop-platform-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(620px, 60vw);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.shop-platform-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(153, 246, 228, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #cffcf4;
}

.shop-platform-tabs button.active {
  background: #14b8a6;
  border-color: #5eead4;
  color: #042f2e;
  font-weight: 700;
}

.shop-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.18fr) minmax(240px, 0.88fr);
  gap: 12px;
}

.shop-list-panel,
.shop-live-panel,
.shop-insight-panel {
  border: 1px solid rgba(153, 246, 228, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.shop-list-title,
.shop-live-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.shop-list-title small,
.shop-live-top small {
  color: #9ee8df;
}

.bound-shop-list {
  display: grid;
  gap: 8px;
}

.bound-shop-list button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: auto;
  text-align: left;
  border: 1px solid rgba(153, 246, 228, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8fffb;
  padding: 9px 10px;
}

.bound-shop-list button.active {
  border-color: #5eead4;
  background: rgba(20, 184, 166, 0.22);
}

.bound-shop-list span,
.bound-shop-list small {
  color: #a7c8c4;
  font-size: 12px;
}

.shop-live-top span {
  display: block;
  color: #9ee8df;
  font-size: 12px;
}

.shop-live-top strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 16px;
}

.shop-gmv-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 8px 0 14px;
  padding: 18px 10px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at 24% 20%, rgba(168, 85, 247, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(56, 62, 126, 0.76), rgba(8, 105, 110, 0.38));
}

.shop-gmv-hero span {
  color: #d1faf5;
}

.shop-gmv-hero strong {
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
}

.shop-gmv-hero em {
  color: #86efac;
  font-style: normal;
  font-weight: 700;
}

.shop-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shop-kpi-grid div {
  min-height: 62px;
  border: 1px solid rgba(153, 246, 228, 0.16);
  border-radius: 8px;
  background: rgba(4, 47, 46, 0.42);
  padding: 9px;
}

.shop-kpi-grid strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.shop-kpi-grid span {
  display: block;
  margin-top: 4px;
  color: #a7c8c4;
  font-size: 12px;
}

.shop-insight-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shop-insight-panel h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
}

.shop-breakdown {
  display: grid;
  gap: 8px;
}

.shop-breakdown div {
  display: grid;
  grid-template-columns: 86px 1fr 42px;
  gap: 8px;
  align-items: center;
  color: #d1faf5;
  font-size: 12px;
}

.shop-breakdown b {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #22d3ee, #86efac);
}

.shop-breakdown em {
  color: #9ee8df;
  font-style: normal;
  text-align: right;
}

.shop-trend-card {
  border: 1px solid rgba(153, 246, 228, 0.18);
  border-radius: 8px;
  background: rgba(3, 18, 22, 0.52);
  padding: 10px;
}

.shop-trend-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.shop-trend-head strong {
  color: #ffffff;
  font-size: 13px;
}

.shop-trend-head span {
  color: #9ee8df;
  font-size: 12px;
}

.shop-trend-chart {
  display: block;
  width: 100%;
  height: 104px;
}

.trend-grid {
  fill: none;
  stroke: rgba(153, 246, 228, 0.14);
  stroke-width: 1;
}

.trend-fill {
  fill: rgba(34, 211, 238, 0.14);
}

.trend-line {
  fill: none;
  stroke: #67e8f9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}

.shop-insights {
  display: grid;
  gap: 8px;
}

.shop-insights p {
  margin: 0;
  border-left: 3px solid #5eead4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #d1faf5;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}

@property --flow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes cockpitGlow {
  0% { background-position: -45% 0, 100% -55%, 0 0, 0 0; }
  100% { background-position: 145% 0, 100% 155%, 0 0, 0 0; }
}

@keyframes cockpitRing {
  to { --flow-angle: 360deg; }
}

@keyframes valueFlip {
  0% { transform: translateY(0); opacity: 0.72; }
  45% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.funding-dashboard {
  border-left: 4px solid #0f766e;
}

.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.funding-grid h3 {
  margin: 0 0 10px;
}

.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #536461;
  font-size: 12px;
}

.date-filter input {
  min-height: 34px;
  width: 150px;
}

.metrics small {
  color: #66736f;
}

.split,
.tabs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 18px;
}

.dashboard-main-grid {
  grid-template-columns: minmax(560px, 1.08fr) minmax(420px, 0.92fr);
  align-items: start;
}

.dashboard-main-grid > .panel {
  height: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: #33423e;
  font-weight: 700;
  margin-bottom: 12px;
}

.field-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0;
}

.field-hint {
  color: #66736f;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.budget-risk-help {
  margin-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #b8c4c0;
  border-radius: 6px;
  padding: 9px 10px;
  background: #ffffff;
  color: #17202a;
}

textarea {
  resize: vertical;
}

#projectForm textarea[name="goal"] {
  min-height: 170px;
  line-height: 1.55;
}

#projectForm .form-grid {
  align-items: start;
}

.list {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.row span {
  color: #66736f;
  font-size: 13px;
}

.project-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.project-row > button:first-child {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 4px;
}

.recommendation-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.mini-card {
  border: 1px solid #d8e0dd;
  border-radius: 6px;
  background: #fbfcfc;
  padding: 10px;
  margin-bottom: 8px;
  display: grid;
  gap: 4px;
}

.mini-card span {
  color: #66736f;
  font-size: 12px;
}

.system-notice-panel {
  max-width: 960px;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-card {
  display: grid;
  gap: 6px;
  border: 1px solid #d8e0dd;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}

.notice-card.warning {
  border-left-color: #d89100;
  background: #fffaf0;
}

.notice-card.danger {
  border-left-color: #d94a4a;
  background: #fff7f7;
}

.notice-card.success {
  border-left-color: #0f766e;
  background: #f3fbf9;
}

.notice-card.info {
  border-left-color: #6b7f7a;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-meta span {
  border: 1px solid #b9d8d2;
  border-radius: 999px;
  padding: 2px 8px;
  color: #0f766e;
  background: #eef7f5;
  font-size: 12px;
  font-weight: 700;
}

.notice-meta strong {
  color: #15221f;
  font-size: 15px;
}

.notice-card p {
  margin: 0;
  color: #4c5d58;
}

.notice-card small {
  color: #66736f;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat {
  min-height: 160px;
  background: #f4f7f6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.chat p {
  padding: 10px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 8px;
}

.chat strong {
  display: block;
  color: #0f766e;
  margin-bottom: 4px;
}

.ai-chat-panel {
  max-width: 980px;
}

.ai-chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: var(--ai-drawer-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #fbfdfb;
  border-left: 1px solid #c8d9d4;
  box-shadow: -14px 0 30px rgba(15, 35, 31, 0.12);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.ai-chat-drawer.open {
  transform: translateX(0);
}

.ai-chat-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.ai-chat-drawer-head h2 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.ai-chat-drawer-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ai-chat-drawer-actions button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

#closeAiChatDrawer {
  width: 34px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.ai-chat-messages {
  display: grid;
  gap: 10px;
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  background: #f5f9f8;
  border: 1px solid #d9e6e2;
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
}

.ai-chat-drawer .ai-chat-messages {
  flex: 1;
  min-height: 260px;
  max-height: none;
  margin: 0;
}

.ai-chat-empty {
  color: #66736f;
  align-self: center;
  font-size: 13px;
  line-height: 1.45;
}

.ai-chat-message {
  max-width: 82%;
  border: 1px solid #dbe6e3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 45, 40, 0.04);
  font-size: 13px;
  line-height: 1.45;
}

.ai-chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 3px;
}

.ai-chat-message-head button {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.ai-chat-message.user {
  justify-self: end;
  background: #eaf7f4;
  border-color: #b8ded7;
}

.ai-chat-message.assistant {
  justify-self: start;
}

.ai-chat-message.system {
  justify-self: stretch;
  max-width: none;
  background: #fff9ed;
  border-color: #f3d7a1;
}

.ai-chat-message strong {
  display: block;
  color: #0f766e;
  margin-bottom: 2px;
  font-size: 13px;
}

.ai-chat-message p {
  white-space: pre-wrap;
  margin: 0;
  color: #263430;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 160px 160px 1fr auto;
  gap: 10px;
  align-items: end;
}

.ai-chat-form.drawer-form {
  grid-template-columns: 1fr;
  gap: 7px;
  padding-top: 2px;
}

.drawer-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.drawer-selects label,
.ai-chat-drawer .ai-chat-input {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.drawer-prompt-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.drawer-prompt-row button {
  min-height: 28px;
  padding: 5px 6px;
  font-size: 12px;
}

.ai-chat-drawer select,
.ai-chat-drawer textarea {
  padding: 8px 9px;
}

.ai-chat-drawer .primary {
  min-height: 36px;
  padding: 7px 10px;
}

.ai-chat-input {
  grid-column: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: #0f766e;
  border: 1px solid #b9d8d2;
  font-size: 12px;
  font-weight: 700;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.stack-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.asset-form {
  grid-template-columns: 160px 1fr 1.2fr 1fr 1fr auto;
  margin: 18px 0;
}

.log {
  background: #10201d;
  color: #dce8e5;
  border-radius: 8px;
  padding: 14px;
  min-height: 140px;
  overflow: auto;
}

.checklist {
  columns: 2;
}

.simple-steps {
  margin: 0;
  padding-left: 22px;
  color: #33423e;
}

.simple-steps li {
  margin-bottom: 10px;
}

.template-card {
  border-color: #b9d8d2;
}

.template-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  border: 1px solid #d8e0dd;
  background: #fbfcfc;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
  color: #33423e;
}

.meeting-app {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(560px, 1.25fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 120px);
}

.meeting-top {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.meeting-top h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.meeting-top p {
  color: #66736f;
  margin-bottom: 0;
}

.meeting-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  gap: 8px;
}

.meeting-tabs button.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.meeting-readiness {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 12px 14px;
}

.meeting-readiness > div:first-child {
  display: grid;
  gap: 4px;
}

.meeting-readiness strong {
  color: #17202a;
}

.meeting-readiness span {
  color: #4b5b56;
  font-size: 13px;
}

.readiness-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.readiness-item {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  min-height: 92px;
}

.readiness-item.green {
  border-color: #8fd3aa;
  background: #f3fbf6;
}

.readiness-item.yellow {
  border-color: #e2c56b;
  background: #fffaf0;
}

.readiness-item.red {
  border-color: #e08a8a;
  background: #fff6f6;
}

.readiness-item small {
  grid-column: 1 / -1;
  color: #4b5b56;
  line-height: 1.45;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  background: #e2c56b;
}

.status-dot.green {
  background: #159947;
}

.status-dot.yellow {
  background: #d99a00;
}

.status-dot.red {
  background: #c83232;
}

.meeting-panel,
.meeting-result {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 16px;
}

.meeting-panel {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}

.meeting-result {
  grid-column: 2;
  grid-row: 3;
  min-height: 100%;
}

.quick-capture {
  display: grid;
  gap: 12px;
}

.quick-capture textarea {
  min-height: 220px;
  max-height: 36vh;
  font-size: 16px;
  line-height: 1.6;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mic-visualizer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 10px 12px;
}

.mic-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9aa8a4;
  box-shadow: 0 0 0 4px rgba(154, 168, 164, 0.14);
}

.mic-visualizer.active .mic-dot {
  background: #0f766e;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.16);
}

.mic-bars {
  height: 52px;
  display: grid;
  grid-template-columns: repeat(12, minmax(6px, 1fr));
  gap: 5px;
  align-items: center;
}

.mic-bars span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #b8c5c1;
  transition: height 80ms linear, background-color 120ms ease;
}

.mic-bars span.active {
  background: #0f766e;
}

.mic-visualizer strong {
  min-width: 118px;
  color: #33413d;
  font-size: 13px;
  text-align: right;
}

.formal-meeting-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.llm-config-form {
  display: grid;
  gap: 10px;
}

.ark-banner {
  border: 1px solid #9ccfc7;
  border-radius: 8px;
  background: #f6fbf9;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.ark-banner strong {
  color: #0f766e;
}

.ark-banner span {
  color: #4b5b56;
  font-size: 13px;
}

.ark-banner a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.api-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.api-status {
  border: 1px solid #d8e0dd;
  border-radius: 6px;
  background: #fbfcfc;
  color: #4b5b56;
  padding: 9px 10px;
  margin-top: 10px;
  font-size: 13px;
}

.api-status.connected {
  border-color: #8fd3aa;
  background: #f3fbf6;
  color: #0f766e;
}

.api-status.warning {
  border-color: #e2c56b;
  background: #fffaf0;
  color: #7a5a00;
}

.formal-meeting-form label:nth-child(1),
.formal-meeting-form label:nth-child(2),
.formal-meeting-form button {
  grid-column: span 2;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.result-head div {
  display: grid;
  gap: 3px;
}

.result-head strong {
  font-size: 20px;
}

.result-head span {
  color: #66736f;
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
  min-height: 230px;
  max-height: 36vh;
  overflow: auto;
}

.result-card > span {
  display: block;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 10px;
}

.main-insight {
  border-color: #9ccfc7;
  background: #f6fbf9;
}

.quote-text {
  font-size: 15px;
  line-height: 1.55;
  color: #17202a;
}

.segment-card {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  margin-bottom: 10px;
}

.segment-meta {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.segment-structure {
  border-top: 1px solid #edf1ef;
  padding-top: 8px;
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.segment-structure strong {
  color: #17202a;
  font-size: 13px;
}

.segment-structure small {
  color: #4b5b56;
  line-height: 1.45;
}

.meeting-hero {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.meeting-hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.meeting-hero p {
  color: #4b5b56;
  max-width: 820px;
  margin-bottom: 0;
}

.meeting-mode-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.meeting-mode-card {
  background: #ffffff;
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  padding: 18px;
}

.quick-mode {
  border-color: #9ccfc7;
  background: #f6fbf9;
}

.mode-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.mode-head strong {
  font-size: 22px;
  color: #17202a;
}

.mode-head span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.meeting-mode-card > p {
  color: #66736f;
  margin-bottom: 14px;
}

.communication-form,
.quick-communication-form {
  display: grid;
  gap: 12px;
}

.quick-communication-form label {
  margin-bottom: 0;
}

.quick-communication-form button,
.communication-form button {
  min-height: 42px;
}

.quick-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-hints span,
.speech-status {
  border: 1px solid #d8e0dd;
  background: #fbfcfc;
  color: #4b5b56;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
}

.communication-form label:nth-child(1),
.communication-form label:nth-child(2),
.communication-form label:nth-child(4) {
  grid-column: auto;
}

.communication-form button {
  grid-column: auto;
}

.communication-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.speech-status {
  margin-bottom: 12px;
}

.speech-status.warning {
  border-color: #e2c56b;
  background: #fffaf0;
  color: #7a5a00;
}

.transcript-list,
.insight-box,
.role-summary,
.report-box,
.role-report-list {
  display: grid;
  gap: 10px;
}

.transcript-item,
.insight-card,
.role-card {
  border: 1px solid #d8e0dd;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.insight-card {
  border-left: 4px solid #0f766e;
}

.transcript-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: start;
}

.transcript-item div,
.role-card {
  display: grid;
  gap: 5px;
}

.transcript-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: #33423e;
}

.transcript-item span,
.insight-card span,
.role-card small {
  color: #66736f;
  font-size: 12px;
}

.role-card p {
  margin: 0;
  color: #33423e;
  font-size: 13px;
}

.communication-history-row button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  display: grid;
  gap: 4px;
}

.communication-report-grid,
.role-report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1180px) {
  body.ai-drawer-open:not(.login-screen) .app {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.ai-drawer-open:not(.login-screen) main {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding-right: 28px;
  }

  .ai-chat-drawer {
    width: min(100vw, 430px);
  }

  .shop-cockpit-grid {
    grid-template-columns: 1fr;
  }

  .shop-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .meeting-app {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .meeting-top,
  .meeting-readiness,
  .meeting-panel,
  .meeting-result {
    grid-column: auto;
    grid-row: auto;
  }

  .sidebar {
    position: static;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split,
  .tabs-grid,
  .three-columns,
  .guide-panel,
  .command-hero,
  .login-cover,
  .quick-grid,
  .flow-visual,
  .flow-split,
  .beginner-command,
  .handoff-board,
  .employee-panel,
  .employee-form,
  .form-grid,
  .traffic-panel,
  .funding-grid,
  .shop-cockpit-head,
  .shop-cockpit-grid,
  .meeting-top,
  .meeting-readiness,
  .readiness-list,
  .mic-visualizer,
  .formal-meeting-form,
  .result-grid,
  .meeting-hero,
  .meeting-mode-grid,
  .quick-communication-form,
  .communication-form,
  .communication-grid,
  .communication-report-grid,
  .role-report-list,
  .package-grid,
  .metrics,
  .asset-form,
  .blueprint-grid,
  .opc-entry-hero,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .opc-entry-grid {
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }

  .ai-chat-form {
    grid-template-columns: 1fr;
  }

  .ai-chat-drawer {
    width: min(100vw, 460px);
  }

  .quota-heading,
  .quota-rate-inline,
  .session-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .login-cover {
    min-height: auto;
    padding-bottom: 56px;
  }

  .cover-brand,
  .cover-form {
    min-height: auto;
    padding: 28px;
  }

  .cover-logo-card {
    width: min(280px, 92%);
    min-height: 128px;
  }

  .cover-slogan {
    bottom: 0;
  }

  .employee-form button {
    grid-column: auto;
  }

  .employee-panel > .ranking-heading,
  .employee-panel > #countryFlowBoard,
  .employee-panel > #employeeList {
    grid-column: auto;
    grid-row: auto;
  }

  .country-grid {
    grid-template-columns: 1fr;
  }

  .communication-form label:nth-child(1),
  .communication-form label:nth-child(2),
  .communication-form label:nth-child(4),
  .communication-form button,
  .formal-meeting-form label:nth-child(1),
  .formal-meeting-form label:nth-child(2),
  .formal-meeting-form button {
    grid-column: auto;
  }

  .topbar,
  .detail-head,
  .section-head {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 60px 160px repeat(8, 80px);
  }
}
