:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #eef2f7;
  --line: #d8dee7;
  --line-soft: #e8edf3;
  --text: #17202a;
  --muted: #627181;
  --muted-2: #81909f;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --brand-soft: #e7f5f3;
  --blue: #2858a7;
  --blue-soft: #e9f0fb;
  --amber: #9a6700;
  --amber-soft: #fff5d7;
  --red: #b42318;
  --red-soft: #fff1ed;
  --green: #16633f;
  --green-soft: #edf7f1;
  --shadow: 0 14px 38px rgba(23, 32, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(23, 32, 42, 0.05);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.loading {
  color: var(--muted);
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.appShell {
  min-height: 100vh;
  padding: 18px;
}

.topBar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 1540px;
  padding: 14px 16px;
}

.topBar h1 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 5px;
}

.topBar p {
  color: var(--muted);
  margin: 0;
}

.topActions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.roleBadge {
  align-items: center;
  background: var(--brand-soft);
  border: 1px solid #b8ded8;
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 13px;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(340px, 0.95fr) minmax(460px, 1.28fr) minmax(320px, 0.82fr);
  margin: 0 auto;
  max-width: 1540px;
}

.customerShell {
  background:
    linear-gradient(180deg, rgba(231, 245, 243, 0.7), rgba(243, 245, 247, 0) 280px),
    var(--bg);
}

.clientApp {
  background: #f8fafc;
  color: #172033;
  min-height: 100vh;
}

.customerChatApp {
  background:
    radial-gradient(circle at 50% 0%, rgba(17, 179, 163, 0.08), transparent 34%),
    #f8fafc;
  color: #172033;
  min-height: 100vh;
  padding: 28px 24px;
}

.customerMinimalHeader {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 880px;
}

.customerMinimalHeader span {
  background: #e8faf7;
  border: 1px solid #bcebe3;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 6px 10px;
}

.customerMinimalHeader h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.customerMinimalHeader p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 10px 0 0;
}

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

.customerGlobalError {
  margin: 0 auto 16px;
  max-width: 880px;
}

.minimalChatShell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce5ee;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  display: grid;
  margin: 0 auto;
  max-width: 880px;
  min-height: calc(100vh - 180px);
  overflow: hidden;
}

.minimalMessages {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 360px);
  min-height: 360px;
  overflow-y: auto;
  padding: 28px;
}

.minimalMessage {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.minimalWelcome {
  background: linear-gradient(135deg, #ecfdf9, #ffffff);
  border: 1px solid #bcebe3;
  border-radius: 16px;
  padding: 18px;
}

.minimalWelcome strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.minimalWelcome p {
  color: #334155;
  line-height: 1.8;
  margin: 0;
}

.minimalMessage.user {
  direction: rtl;
}

.minimalMessage.user > * {
  direction: ltr;
}

.minimalAvatar {
  align-items: center;
  background: #e8faf7;
  border: 1px solid #bcebe3;
  border-radius: 50%;
  color: #0f766e;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.minimalMessage.user .minimalAvatar {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.minimalMessage p {
  background: #f8fafc;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  line-height: 1.8;
  margin: 0;
  max-width: 680px;
  padding: 14px 16px;
}

.minimalMessage.user p {
  background: #e8faf7;
  border-color: #bcebe3;
}

.minimalMessage span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.minimalQuickActions {
  border-top: 1px solid #edf1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
}

.minimalQuickActions button,
.minimalComposerTools button,
.uploadMockActions button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  color: #0f766e;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.minimalQuickActions button:hover,
.minimalComposerTools button:hover,
.uploadMockActions button:hover {
  border-color: #55c7b8;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.minimalComposer {
  align-items: center;
  border-top: 1px solid #edf1f5;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 18px 24px;
}

.minimalComposer input {
  border: 1px solid #8bd8cb;
  border-radius: 14px;
  font: inherit;
  grid-column: 1 / -1;
  min-height: 54px;
  padding: 0 16px;
}

.minimalComposer input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: 0;
}

.minimalComposerTools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.uploadMockPanel {
  background: #f8fbfb;
  border: 1px dashed #8bd8cb;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  margin-left: 46px;
  max-width: 680px;
  padding: 16px;
}

.uploadMockPanel strong {
  display: block;
  margin-bottom: 6px;
}

.uploadMockPanel p {
  background: transparent;
  border: 0;
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.uploadMockActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.uploadTypeTabs button {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 999px;
  color: #374151;
  cursor: pointer;
  font: inherit;
  padding: 7px 12px;
}

.uploadTypeTabs button.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.singleUploadBox {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.singleUploadBox input[type="file"] {
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 10px;
}

.singleUploadBox button {
  justify-self: start;
}

.gptCustomerApp {
  background: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gptChatHeader {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #ececf1;
  display: flex;
  gap: 16px;
  height: 64px;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.chatBrand {
  display: grid;
  gap: 2px;
}

.chatBrand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.chatBrand span {
  color: #6b7280;
  font-size: 13px;
}

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

.textButton {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #4b5563;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
}

.textButton:hover {
  background: #f3f4f6;
  color: #111827;
}

.chatAvatar {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.gptChatMain {
  display: grid;
  flex: 1;
  grid-template-rows: minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100vh - 64px);
  padding-top: clamp(64px, 12vh, 140px);
  width: min(100%, 900px);
}

.chatError {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  margin: 16px 20px 0;
  padding: 12px 14px;
}

.gptMessageList {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 24px;
}

.chatEmptyState {
  align-content: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: auto;
  max-width: 720px;
  min-height: 34vh;
  text-align: center;
}

.chatEmptyState .assistantMark {
  flex-basis: 46px;
  font-size: 14px;
  height: 46px;
  margin: 0 0 4px;
  width: 46px;
}

.chatEmptyState h1 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.chatEmptyState p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.quickActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quickActions.compact {
  justify-content: flex-start;
}

.quickActions button {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 999px;
  color: #374151;
  cursor: pointer;
  font: inherit;
  min-height: 36px;
  padding: 0 14px;
}

.quickActions button:hover {
  background: #f7f7f8;
  border-color: #b7b7c2;
}

.gptMessage {
  display: flex;
  gap: 12px;
  width: 100%;
}

.gptMessage.user {
  justify-content: flex-end;
}

.assistantMark {
  align-items: center;
  background: #10a37f;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 11px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  margin-top: 2px;
  width: 30px;
}

.assistantMark.customAvatar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.assistantMark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gptMessageContent {
  display: grid;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.gptMessage.user .gptMessageContent {
  justify-items: end;
  max-width: 70%;
}

.assistantBlock {
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 760px;
}

.assistantBlock p,
.assistantBlock h1,
.assistantBlock h2,
.assistantBlock h3 {
  margin: 0 0 12px;
}

.assistantBlock h1,
.assistantBlock h2,
.assistantBlock h3 {
  font-size: 17px;
  line-height: 1.5;
}

.assistantBlock blockquote {
  background: #fff7ed;
  border-left: 3px solid #f97316;
  border-radius: 6px;
  color: #7c2d12;
  margin: 12px 0;
  padding: 10px 12px;
}

@media (prefers-color-scheme: dark) {
  .assistantBlock {
    color: #f2f2f2;
  }
}

.mdListItem {
  padding-left: 2px;
}

.userBubble {
  background: #f4f4f5;
  border-radius: 18px;
  color: #111827;
  line-height: 1.65;
  padding: 10px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.messageTime {
  color: #9ca3af;
  font-size: 12px;
}

.gptMessage.loading .assistantBlock {
  color: #6b7280;
}

.assistantTableWrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 10px 0;
  overflow-x: auto;
}

.assistantTableWrap table {
  border-collapse: collapse;
  min-width: 100%;
}

.assistantTableWrap th,
.assistantTableWrap td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.assistantTableWrap th {
  background: #f9fafb;
  font-weight: 700;
}

.assistantTableWrap tr:last-child td {
  border-bottom: 0;
}

.gptChatFooter {
  background: #ffffff;
  padding: 0 20px 18px;
  position: relative;
}

.chatFooterInner {
  display: grid;
  gap: 10px;
}

.chatFunctionBar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chatFunctionBar.empty {
  justify-content: center;
}

.gptComposer {
  align-items: flex-end;
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto auto auto;
  padding: 10px;
}

.gptComposer:focus-within {
  border-color: #9ca3af;
}

.gptComposer textarea {
  border: 0;
  font: inherit;
  line-height: 1.5;
  max-height: 180px;
  min-height: 38px;
  outline: 0;
  padding: 8px 4px;
  resize: none;
}

.composerTool,
.composerSend {
  align-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 38px;
  justify-content: center;
  padding: 0 10px;
}

.composerTool {
  background: transparent;
  color: #6b7280;
}

.composerTool:hover {
  background: #f3f4f6;
  color: #111827;
}

.composerTool.active,
.voiceHoldButton.recording {
  background: #eef5ff;
  color: #1a73e8;
}

.composerSend {
  background: #111827;
  color: #ffffff;
  min-width: 42px;
}

.composerSend:disabled,
.quickActions button:disabled,
.textButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chatDisclaimer {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.gptUploadPanel {
  align-self: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  margin: 0 20px 14px;
  max-width: none;
}

.clientTopBar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5ebf2;
  box-shadow: 0 8px 28px rgba(23, 32, 42, 0.05);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.clientBrand,
.clientTopActions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.clientBrand strong {
  font-size: 20px;
}

.brandLogo {
  align-items: center;
  background: linear-gradient(135deg, #38b69f, #0f766e);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.companySelect,
.userSelect,
.notifyButton {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  color: #334155;
  min-height: 40px;
  padding: 0 14px;
}

.userSelect {
  background: #eaf8f5;
  border-color: #c7ebe4;
  color: #0b5f59;
  font-weight: 700;
}

.notifyButton {
  color: #0f766e;
  font-size: 20px;
  line-height: 1;
  padding: 0 12px;
}

.clientBody {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: calc(100vh - 72px);
}

.clientSidebar {
  background: #ffffff;
  border-right: 1px solid #e5ebf2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 18px;
}

.clientNav {
  display: grid;
  gap: 10px;
}

.clientNav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #46556c;
  display: flex;
  font-weight: 700;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  text-align: left;
}

.clientNav button.active {
  background: #e9f8f5;
  color: #0b5f59;
}

.clientNav span {
  align-items: center;
  border: 1px solid #cfdae6;
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.clientNav button.active span {
  background: #d7f2ed;
  border-color: #aae1d7;
}

.sidebarHelp {
  align-items: center;
  background: linear-gradient(135deg, #e9f8f5, #f7fbff);
  border: 1px solid #d7eee9;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.sidebarHelp strong,
.sidebarHelp span,
.sidebarHelp small {
  display: block;
}

.sidebarHelp span,
.sidebarHelp small {
  color: #536579;
  font-size: 12px;
  margin-top: 6px;
}

.miniBot {
  align-items: center;
  background: #122236;
  border-radius: 8px;
  color: #6ff0d2;
  display: flex;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.clientMain {
  padding: 34px 34px 28px;
}

.assistantHero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin: 0 auto 24px;
  max-width: 1180px;
  min-height: 172px;
}

.assistantCopy h1 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.assistantCopy p {
  color: #526174;
  font-size: 16px;
  margin: 0;
}

.robotScene {
  height: 172px;
  position: relative;
}

.robotHead {
  background: #13233a;
  border: 8px solid #e7f6f2;
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.15);
  height: 88px;
  left: 132px;
  position: absolute;
  top: 22px;
  width: 140px;
}

.robotHead::before,
.robotHead::after {
  background: #4ce4c1;
  border-radius: 999px;
  content: "";
  height: 18px;
  position: absolute;
  top: 30px;
  width: 22px;
}

.robotHead::before {
  left: 34px;
}

.robotHead::after {
  right: 34px;
}

.robotHead span {
  background: #4ce4c1;
  border-radius: 999px;
  bottom: 16px;
  height: 7px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 42px;
}

.robotBody {
  background: #f3fbf9;
  border: 1px solid #cceee6;
  border-radius: 999px;
  height: 56px;
  left: 154px;
  position: absolute;
  top: 104px;
  width: 96px;
}

.dataCard {
  background: rgba(210, 246, 239, 0.78);
  border: 1px solid rgba(110, 210, 192, 0.45);
  border-radius: 8px;
  position: absolute;
}

.cardOne {
  height: 74px;
  left: 24px;
  top: 56px;
  transform: rotate(7deg);
  width: 82px;
}

.cardTwo {
  height: 80px;
  right: 12px;
  top: 42px;
  transform: rotate(4deg);
  width: 92px;
}

.clientChatCard {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(31, 45, 61, 0.08);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
}

.clientConversation {
  min-height: 320px;
  padding: 28px 28px 16px;
}

.clientBubble {
  display: grid;
  justify-items: end;
  margin-bottom: 26px;
}

.clientBubble p {
  background: #e9f8f5;
  border: 1px solid #c7ebe4;
  border-radius: 8px;
  color: #0b5f59;
  margin: 0;
  max-width: 360px;
  padding: 13px 16px;
}

.clientBubble span {
  color: #7c8b9a;
  font-size: 12px;
  margin-top: 8px;
}

.assistantAnswer {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  max-width: 760px;
}

.assistantAvatar {
  align-items: center;
  background: #122236;
  border: 4px solid #eef9f7;
  border-radius: 50%;
  color: #69f0d0;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.answerCard {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 45, 61, 0.06);
  padding: 16px;
}

.answerCard p {
  color: #334155;
  line-height: 1.75;
  margin: 0;
}

.answerMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.answerMeta span {
  background: #f6f9fc;
  border: 1px solid #e5ebf2;
  border-radius: 999px;
  color: #526174;
  font-size: 12px;
  padding: 5px 9px;
}

.answerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.answerActions button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  color: #334155;
  min-height: 38px;
  padding: 0 16px;
}

.answerActions button:hover {
  border-color: #9edfd3;
  color: #0b5f59;
}

.answerActions .dangerLight {
  background: #fff1ed;
  border-color: #ffd6cc;
  color: #b42318;
}

.operationSection {
  padding: 0 28px 20px;
}

.operationSection > span {
  color: #536579;
  display: block;
  margin-bottom: 12px;
}

.operationRow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.operationHeader {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.operationHeader button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #0f766e;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.actionGroups {
  display: grid;
  gap: 14px;
}

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

.actionGroupTabs button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.actionGroupTabs button:hover,
.actionGroupTabs button.active {
  border-color: #55c7b8;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.1);
  transform: translateY(-2px);
}

.actionGroupTabs button span {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 8px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.actionGroupTabs button strong {
  font-size: 14px;
}

.actionGroupTabs button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.actionGroupPanel {
  align-items: start;
  background: #f8fbfb;
  border: 1px solid #dcefed;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 220px 1fr;
  padding: 16px;
}

.actionGroupPanel h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.actionGroupPanel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.actionList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actionList button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #0f766e;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}

.actionList button:hover {
  border-color: #55c7b8;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.operationButton,
.questionChips button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.operationButton span {
  align-items: center;
  background: #e9f8f5;
  border-radius: 8px;
  color: #0b5f59;
  display: inline-flex;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.operationButton:hover,
.questionChips button:hover {
  border-color: #9edfd3;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
  color: #0b5f59;
}

.questionChips {
  border-top: 1px solid #edf1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 28px;
}

.questionChips button {
  font-size: 13px;
  min-height: 38px;
}

.questionChips .refreshChip {
  color: #0f766e;
  margin-left: auto;
  min-width: 42px;
  padding: 0;
}

.clientComposer {
  border-top: 1px solid #edf1f5;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 18px 28px;
}

.clientComposer input {
  border-color: #8bd8cb;
  grid-column: 1 / -1;
  min-height: 54px;
  padding: 0 16px;
}

.composerTools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composerTools button {
  background: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #46556c;
  min-height: 38px;
  padding: 0 14px;
}

.sendButton {
  align-self: end;
  background: #15a37f;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  height: 42px;
  width: 48px;
}

.aiNotice {
  color: #8a97a7;
  font-size: 12px;
  margin: 0;
  padding: 0 28px 16px;
  text-align: center;
}

.customerHero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin: 0 auto 14px;
  max-width: 1540px;
  padding: 22px;
}

.customerHero h2 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 8px 0;
}

.customerHero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.eyebrow,
.productMark {
  background: var(--brand-soft);
  border: 1px solid #b8ded8;
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

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

.heroStats div {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
}

.heroStats span {
  color: var(--muted);
  font-size: 12px;
}

.heroStats strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.customerWorkspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(520px, 1.35fr) minmax(340px, 0.85fr) minmax(280px, 0.65fr);
  margin: 0 auto;
  max-width: 1540px;
}

.customerChat,
.customerSidePanel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 294px);
  min-height: 540px;
}

.customerActionDesk {
  min-height: 540px;
}

.customerMessages {
  min-height: 260px;
}

.customerTabs {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  padding: 6px;
}

.customerTabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
}

.customerTabs button.active {
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(23, 32, 42, 0.08);
  color: var(--text);
}

.customerTabs span,
.metricIcon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  min-width: 26px;
}

.featurePanel {
  display: grid;
  gap: 18px;
}

.featureCopy {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px;
}

.featureCopy h2 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 10px 0 8px;
}

.featureCopy p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.featureBadge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 6px 10px;
}

.featureBadge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.featureBadge.green {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.featureBadge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.featureBadge.gray {
  background: var(--surface-strong);
  color: #475569;
}

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

.quickPrompts button,
.handoffButton {
  border-radius: 8px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 12px;
}

.quickPrompts button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.quickPrompts button:hover {
  background: var(--blue-soft);
  border-color: #bed1ef;
}

.handoffButton {
  background: var(--red-soft);
  border: 1px solid #ffd6cc;
  color: var(--red);
}

.handoffButton:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.bookSummary {
  align-items: center;
  background: var(--amber-soft);
  border: 1px solid #f0d990;
  border-radius: 8px;
  color: var(--amber);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}

.bookSummary span {
  background: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  padding: 5px 8px;
}

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

.bookItem {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.bookItem span {
  color: var(--muted);
  font-size: 13px;
}

.bookItem strong {
  font-size: 13px;
  text-align: right;
}

.auditScoreCard {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #cfe7d9;
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
  padding: 14px;
}

.metricItem {
  position: relative;
}

.metricItem .metricIcon {
  background: var(--surface);
  color: var(--brand-strong);
}

.metricItem.score strong {
  color: var(--green);
  font-size: 24px;
}

.customerSidePanel {
  gap: 12px;
}

.sideMetric {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 13px;
}

.sideMetric span {
  color: var(--muted);
  font-size: 13px;
}

.sideMetric strong {
  font-size: 16px;
}

.sideMetric.highlight {
  background: var(--green-soft);
  border-color: #cfe7d9;
  color: var(--green);
}

.sideMetric.highlight strong {
  font-size: 42px;
  line-height: 1;
}

.sideMetric em {
  font-style: normal;
  font-weight: 700;
}

.auditScoreCard span {
  color: var(--green);
  font-size: 13px;
  grid-column: 1;
}

.auditScoreCard strong {
  font-size: 42px;
  grid-column: 2;
  grid-row: 1 / span 2;
  line-height: 1;
}

.auditScoreCard em {
  font-style: normal;
  font-weight: 700;
}

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

.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  padding: 16px;
}

.conversationPane,
.rightRail {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 112px);
  min-height: 680px;
}

.centerPane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paneTitle {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 9px;
  margin: -2px 0 14px;
  padding-bottom: 12px;
}

.symbol,
.stepIcon {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  min-width: 28px;
}

.paneTitle h2,
.rightRail h2 {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.customerCard {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.customerCard span,
.statusStrip span,
.toolCall span {
  color: var(--muted);
  font-size: 12px;
}

.customerCard strong {
  color: var(--brand-strong);
  font-size: 14px;
}

.messageList {
  background: #fbfcfe;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 270px;
  overflow-y: auto;
  padding: 14px;
}

.message {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.message p {
  border-radius: 8px;
  line-height: 1.58;
  margin: 0;
  max-width: 86%;
  padding: 10px 12px;
  word-break: break-word;
}

.message.assistant p {
  background: var(--brand-soft);
  border: 1px solid #cae8e2;
  color: #173b3a;
}

.message.user {
  flex-direction: row-reverse;
}

.message.user p {
  background: var(--blue-soft);
  border: 1px solid #cbdcf7;
  color: #19345f;
}

.avatar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex: 0 0 30px;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.presetRow {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
}

.presetRow button,
.iconTextButton,
.primaryButton,
.iconButton,
.primaryIconButton {
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.presetRow button {
  background: var(--surface);
  color: #2d3b46;
  font-size: 12px;
  justify-content: flex-start;
  line-height: 1.35;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
}

.presetRow button:hover,
.iconTextButton:hover,
.iconButton:hover {
  background: var(--surface-muted);
  border-color: #b8c4d0;
}

.chatInput {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 42px;
}

input,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-width: 0;
  width: 100%;
}

input {
  min-height: 38px;
  padding: 8px 10px;
}

textarea {
  min-height: 180px;
  padding: 10px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
  outline: none;
}

.primaryIconButton,
.primaryButton {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.primaryIconButton:hover,
.primaryButton:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.iconButton {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  height: 40px;
  width: 40px;
}

.workflowGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.workflowStep {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: #536270;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 86px;
  padding: 11px 8px;
  text-align: center;
}

.workflowStep.active {
  background: var(--brand-soft);
  border-color: #8dd1c8;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
  color: var(--brand-strong);
}

.workflowStep.active .stepIcon {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.workflowStep span {
  font-size: 13px;
}

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

.statusStrip div {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
}

.statusStrip strong {
  font-size: 16px;
}

.formGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

label span {
  color: #475563;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.panelActions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.primaryButton {
  min-height: 40px;
  padding: 0 14px;
}

.statusPill {
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.statusPill.draft {
  background: #64748b;
}

.statusPill.blocked {
  background: var(--red);
}

.statusPill.review {
  background: var(--amber);
}

.statusPill.submitted {
  background: var(--green);
}

.evidenceBox {
  background: var(--green-soft);
  border: 1px solid #cfe7d9;
  border-radius: 8px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 12px;
}

.evidenceBox p {
  color: #40524a;
  margin: 6px 0 0;
}

.verifyRow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr) auto;
}

.iconTextButton {
  background: var(--surface);
  color: #1f303c;
  padding: 0 12px;
}

.fullWidth {
  width: 100%;
}

.toolList,
.ticketList,
.qualityList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  overflow-y: auto;
}

.toolCall,
.ticket,
.qualityItem,
.auditItem {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
}

.toolCall {
  border-left: 3px solid var(--blue);
}

.ticket {
  border-left: 3px solid var(--amber);
}

.qualityItem {
  border-left: 3px solid var(--brand);
}

.toolCall div,
.ticket div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.toolCall strong,
.ticket strong,
.qualityItem strong {
  font-size: 13px;
}

.toolCall p,
.ticket p,
.qualityItem p {
  color: #4d5a66;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.rightRail h2 {
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 14px;
}

.ticket span {
  background: var(--amber-soft);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.ticket small {
  color: var(--muted-2);
}

.qualityHero {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #cfe7d9;
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  margin-top: 10px;
  padding: 12px;
}

.qualityHero strong {
  font-size: 30px;
  line-height: 1;
}

.loginShell {
  align-items: center;
  background: #f7f7f8;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.loginPanel {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.06);
  display: grid;
  gap: 22px;
  max-width: 620px;
  padding: 34px;
  width: 100%;
}

.loginHeader {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.loginLogo {
  align-items: center;
  background: #111827;
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.loginPanel h1 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0;
}

.loginPanel p {
  color: var(--muted);
  margin: 0;
}

.socialLoginGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.socialLoginButton {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  color: #111827;
  display: inline-flex;
  height: 46px;
  justify-content: center;
}

.socialLoginButton:hover {
  background: #f7f7f8;
}

.socialLoginButton span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.loginGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.roleEntryGrid {
  margin-top: 2px;
}

.loginPreset {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 13px;
  text-align: left;
}

.loginPreset:hover {
  background: #f7f7f8;
  border-color: #b7b7c2;
}

.loginPreset.active {
  background: #eef5ff;
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.1);
}

.loginPreset strong {
  font-size: 15px;
}

.loginPreset span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.loginForm {
  display: grid;
  gap: 14px;
}

.loginForm label {
  display: grid;
  gap: 7px;
}

.loginForm label span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.loginForm input {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  color: #111827;
  min-height: 48px;
  padding: 0 14px;
}

.loginForm input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  outline: 0;
}

.loginSubmit,
.primaryButton {
  border-radius: 12px;
}

.loginSubmit {
  background: #1a73e8;
  min-height: 48px;
  width: 100%;
}

.loginPanel .errorText {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  margin: 0;
  padding: 10px 12px;
}

.errorText,
.globalError {
  color: var(--red);
}

.globalError {
  background: var(--red-soft);
  border: 1px solid #ffd6cc;
  border-radius: 8px;
  margin: 0 auto 12px;
  max-width: 1540px;
  padding: 10px 12px;
}

.emptyText,
.knowledgeMeta {
  color: var(--muted);
  font-size: 13px;
}

.knowledgeEditor {
  background: #0f172a;
  border-color: #1e293b;
  color: #dbeafe;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0;
}

.auditList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.auditItem {
  border-left: 3px solid #64748b;
}

.auditItem span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.auditItem p {
  color: #4d5a66;
  margin: 6px 0 0;
}

.opsShell {
  background: #f6f8fb;
  color: var(--text);
  min-height: 100vh;
  padding: 18px;
}

.gptWorkbench {
  background: #f7f7f8;
  color: #111827;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.workbenchSidebar {
  background: #ffffff;
  border-right: 1px solid #ececf1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 12px;
}

.sidebarLogo {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 6px 8px 10px;
}

.sidebarLogo span {
  align-items: center;
  background: #111827;
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sidebarLogo strong {
  font-size: 16px;
}

.workbenchSidebar nav {
  display: grid;
  gap: 4px;
}

.workbenchSidebar nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #374151;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  text-align: left;
}

.workbenchSidebar nav button:hover,
.workbenchSidebar nav button.active {
  background: #f2f2f3;
}

.workbenchSidebar nav button span {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  color: #6b7280;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.workbenchMain {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.workbenchHeader {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #ececf1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 7;
}

.workbenchHeader h1 {
  font-size: 18px;
  margin: 0 0 4px;
}

.workbenchHeader p {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

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

.workbenchHeaderActions > span {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  color: #4b5563;
  min-height: 38px;
  padding: 9px 12px;
}

.taskPanel {
  display: grid;
  gap: 18px;
  padding: 22px 24px 30px;
}

.taskPanelHead {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.taskPanelHead span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.taskPanelHead h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 6px 0 0;
}

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

.gptWorkbench .opsMetricGrid {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.gptWorkbench .opsMetricCard,
.gptWorkbench .opsModuleCard,
.gptWorkbench .opsPanel {
  border-color: #ececf1;
  box-shadow: none;
}

.gptWorkbench .opsMetricCard,
.gptWorkbench .opsModuleCard {
  border-radius: 12px;
}

.gptWorkbench .opsMetricCard {
  min-height: 112px;
}

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

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

.gptWorkbench .signalTile {
  border-color: #ececf1;
  border-radius: 12px;
  min-height: 86px;
  padding: 14px;
}

.gptWorkbench .signalTile strong {
  font-size: 25px;
  margin-top: 12px;
}

.gptWorkbench .opsSectionTitle {
  border-top: 1px solid #ececf1;
  padding-top: 6px;
}

.adminFocusSummary {
  border-top: 1px solid #ececf1;
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

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

.focusSummaryItem {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  text-align: left;
}

.focusSummaryItem:hover {
  border-color: #d1d5db;
}

.focusSummaryItem span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.focusSummaryItem strong {
  font-size: 26px;
  line-height: 1;
}

.focusSummaryItem p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.focusSummaryItem.red strong {
  color: var(--red);
}

.focusSummaryItem.amber strong {
  color: var(--amber);
}

.focusSummaryItem.green strong {
  color: var(--green);
}

.focusSummaryItem.blue strong {
  color: var(--blue);
}

.servicePageView {
  display: grid;
  gap: 18px;
}

.servicePageHeader {
  align-items: end;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 20px;
}

.servicePageHeader span {
  color: #6b7280;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.servicePageHeader h1 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.servicePageHeader p {
  color: #6b7280;
  line-height: 1.7;
  margin: 10px 0 0;
}

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

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

.smallFirmSummary > button {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-height: 106px;
  padding: 16px;
  text-align: left;
}

.smallFirmSummary > button:hover {
  border-color: #cfd4dc;
  transform: translateY(-1px);
}

.smallFirmSummary > button span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.smallFirmSummary > button strong {
  color: #111827;
  font-size: 24px;
}

.smallFirmSummary > button em {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
}

.unifiedTaskPanel {
  overflow: hidden;
}

.unifiedTaskList,
.customerSimpleList,
.simpleBusinessList,
.voucherDraftList {
  display: grid;
  gap: 0;
}

.unifiedTaskRow {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 16px;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 4px;
  text-align: left;
}

.unifiedTaskRow:hover {
  background: #fafafa;
}

.unifiedTaskRow .taskType {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.unifiedTaskRow strong,
.customerSimpleList strong,
.simpleBusinessList strong {
  font-size: 14px;
}

.unifiedTaskRow p,
.customerSimpleList p,
.simpleBusinessList p,
.voucherDraftList p {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  margin: 5px 0 0;
}

.unifiedTaskRow em,
.simpleBusinessList em,
.voucherDraftList em {
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  padding: 5px 9px;
  white-space: nowrap;
}

.unifiedTaskRow em.danger,
.compactStageGrid .danger {
  background: #fff0ed;
  color: #b42318;
}

.unifiedTaskRow em.warning,
.compactStageGrid .warning {
  background: #fff6dd;
  color: #8a5a00;
}

.unifiedTaskRow em.info,
.compactStageGrid .info {
  background: #edf4ff;
  color: #2459a9;
}

.unifiedTaskRow em.success,
.compactStageGrid .success {
  background: #e9f8f0;
  color: #087443;
}

.servicePageHeader.simplified {
  align-items: center;
}

.pageKeyMetric {
  background: #f7f7f8;
  border-radius: 10px;
  color: #111827;
  flex: 0 0 auto;
  font-size: 15px;
  padding: 12px 14px;
}

.simpleToolbar {
  align-items: center;
  display: flex;
  gap: 12px;
}

.simpleToolbar input {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
}

.customerSimpleList {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  overflow: hidden;
}

.customerSimpleList article {
  align-items: center;
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(100px, .6fr)) auto;
  min-height: 82px;
  padding: 14px 16px;
}

.customerSimpleList article:first-child,
.simpleBusinessList article:first-child,
.voucherDraftList article:first-child {
  border-top: 0;
}

.customerSimpleMain {
  align-items: center;
  display: flex;
  gap: 12px;
}

.customerSimpleMain > span {
  align-items: center;
  background: #e9f7f4;
  border-radius: 10px;
  color: #087968;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.customerSimpleList small {
  color: #8a919e;
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}

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

.compactStageGrid > div {
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 16px;
}

.compactStageGrid span {
  font-size: 13px;
  font-weight: 700;
}

.compactStageGrid strong {
  font-size: 26px;
}

.simpleBusinessList article {
  align-items: center;
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1.3fr) minmax(130px, .7fr) minmax(120px, .6fr) auto;
  min-height: 74px;
  padding: 12px 4px;
}

.simpleBusinessList em {
  background: #f2f4f7;
  color: #475467;
}

.bookkeepingFlow {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.bookkeepingFlow > div {
  border-left: 1px solid #ececf1;
  min-height: 126px;
  padding: 18px;
}

.bookkeepingFlow > div:first-child {
  border-left: 0;
}

.bookkeepingFlow > div > span {
  align-items: center;
  background: #f0f1f3;
  border-radius: 50%;
  color: #667085;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  margin-bottom: 12px;
  width: 28px;
}

.bookkeepingFlow > div.active > span {
  background: #dff5ef;
  color: #087968;
}

.bookkeepingFlow strong {
  display: block;
  font-size: 14px;
}

.bookkeepingFlow p {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 0;
}

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

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

.materialStatusList button {
  align-items: center;
  background: #fafafa;
  border: 0;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
}

.materialStatusList span {
  font-size: 12px;
}

.materialStatusList span.success {
  color: #087443;
}

.materialStatusList span.warning {
  color: #956100;
}

.materialStatusList span.muted {
  color: #8a919e;
}

.voucherDraftList article {
  border-top: 1px solid #f0f1f3;
  padding: 13px 2px;
}

.voucherDraftList em {
  background: #fff6dd;
  color: #8a5a00;
  display: inline-block;
  margin-top: 9px;
}

.simpleRoleNote {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
}

.simpleRoleNote strong {
  margin-right: 8px;
}

.simpleRoleNote span {
  background: #f5f6f7;
  border-radius: 999px;
  color: #4b5563;
  font-size: 12px;
  padding: 6px 10px;
}

.simpleSettingsTabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.simpleSettingsTabs button {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.simpleSettingsTabs button.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

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

.simpleStatList div {
  background: #f7f7f8;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.simpleStatList span {
  color: #6b7280;
  font-size: 12px;
}

.simpleStatList strong {
  font-size: 22px;
}

.servicePageActions {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 14px;
}

.servicePageActions button.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.subConfigPanel {
  border-color: #dbeafe;
}

.subConfigPanel.empty {
  background: #f8fafc;
}

.subConfigPanel.empty p {
  color: var(--muted);
  margin: 0;
}

.servicePageList {
  display: grid;
  gap: 12px;
}

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

.ticketWorkspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.ticketQueueNav,
.ticketQueueList {
  display: grid;
  gap: 10px;
}

.ticketQueueNav {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 10px;
}

.ticketQueueNav button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 13px;
  text-align: left;
}

.ticketQueueNav button.active,
.ticketQueueNav button:hover {
  background: #f7f7f8;
}

.ticketQueueNav strong,
.knowledgeTypeCard strong,
.ticketRow strong {
  color: #111827;
}

.ticketQueueNav span {
  color: #1a73e8;
  font-size: 13px;
  font-weight: 800;
}

.ticketQueueNav em,
.knowledgeTypeCard em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.ticketRow {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ticketRow > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ticketRow span {
  color: #6b7280;
  font-size: 13px;
}

.ticketRow p {
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

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

.ticketRowActions button {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

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

.knowledgeTypeCard {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  text-align: left;
}

.knowledgeTypeCard:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.knowledgeTypeCard span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.knowledgeTypeCard p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.policyUpdatePanel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: grid;
  gap: 16px;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 16px;
}

.policyUpdatePanel.compact {
  grid-template-columns: 1fr;
}

.policyUpdatePanel span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.policyUpdatePanel h3 {
  font-size: 18px;
  margin: 8px 0;
}

.policyUpdatePanel p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.policyUpdateList {
  display: grid;
  gap: 10px;
}

.policyUpdateList article {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 10px;
  padding: 12px;
}

.policyTaskHead,
.policyTaskActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.policyTaskStatus {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #eef2f6;
  color: #52606d;
}

.policyTaskStatus.success {
  background: #e8f7ef;
  color: #087443;
}

.policyTaskStatus.warning {
  background: #fff5dd;
  color: #956100;
}

.policyTaskStatus.info {
  background: #eaf2ff;
  color: #2459a9;
}

.policyTaskStatus.danger {
  background: #fff0ed;
  color: #b42318;
}

.policyTaskActions {
  justify-content: flex-start;
  margin-top: 12px;
}

.policyTaskActions em {
  color: #087443;
  font-style: normal;
  font-size: 13px;
}

.knowledgeEntryList.compact {
  margin-top: 2px;
}

.adminInlineHint {
  background: #f7f7f8;
  border: 1px solid #ececf1;
  border-radius: 12px;
  color: #6b7280;
  line-height: 1.65;
  padding: 14px;
}

.opsTopBar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 18px;
  padding: 14px 18px;
}

.opsTitleBlock h1 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.opsTitleBlock p {
  color: var(--muted);
  margin: 0;
}

.opsHero {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(17, 179, 163, 0.12), rgba(42, 111, 216, 0.08)),
    #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 420px;
  margin-bottom: 18px;
  padding: 28px;
}

.opsHero.cockpitHero {
  background:
    linear-gradient(120deg, rgba(42, 111, 216, 0.12), rgba(245, 158, 11, 0.1)),
    #ffffff;
}

.opsEyebrow {
  color: var(--brand-strong);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.opsHero h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  max-width: 760px;
}

.opsHero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 12px 0 0;
  max-width: 760px;
}

.heroSignalGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.signalTile {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  min-height: 104px;
  padding: 16px;
}

.signalTile span,
.opsMetricCard span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.signalTile strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-top: 18px;
}

.signalTile.green strong,
.opsMetricCard.green strong {
  color: var(--green);
}

.signalTile.blue strong,
.opsMetricCard.blue strong {
  color: var(--blue);
}

.signalTile.amber strong,
.opsMetricCard.amber strong {
  color: var(--amber);
}

.signalTile.red strong,
.opsMetricCard.red strong {
  color: var(--red);
}

.opsMetricGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.opsMetricGrid.compact {
  margin-bottom: 0;
}

.metricSectionGroup {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.metricGroup {
  display: grid;
  gap: 12px;
}

.metricGroup h2 {
  font-size: 16px;
  margin: 0;
}

.opsMetricCard {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  font: inherit;
  min-height: 128px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.opsMetricCard:hover,
.opsModuleCard:hover,
.clickablePanel:hover {
  border-color: #9cc9f2;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.opsMetricCard strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin: 18px 0 10px;
}

.opsMetricCard em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.opsContentGrid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.opsPrimary,
.opsSide {
  display: grid;
  gap: 16px;
}

.opsSectionTitle {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.opsSectionTitle h2,
.opsPanelHead h2 {
  font-size: 18px;
  margin: 0;
}

.opsSectionTitle p {
  color: var(--muted);
  margin: 0;
}

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

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

.opsModuleCard,
.opsPanel {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  padding: 16px;
}

.opsModuleCard {
  cursor: pointer;
  display: grid;
  font: inherit;
  min-height: 168px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.moduleHead {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.moduleHead span {
  align-items: center;
  background: var(--surface-muted);
  border-radius: 8px;
  color: var(--brand-strong);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.opsModuleCard.blue .moduleHead span {
  background: var(--blue-soft);
  color: var(--blue);
}

.opsModuleCard.green .moduleHead span {
  background: var(--green-soft);
  color: var(--green);
}

.opsModuleCard.amber .moduleHead span {
  background: var(--amber-soft);
  color: var(--amber);
}

.opsModuleCard.red .moduleHead span {
  background: var(--red-soft);
  color: var(--red);
}

.moduleHead h3 {
  font-size: 16px;
  margin: 0;
}

.moduleHead p {
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}

.moduleCardFoot {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.moduleCardFoot strong {
  font-size: 20px;
}

.moduleCardFoot em {
  color: var(--brand-strong);
  font-style: normal;
  font-weight: 900;
}

.clickablePanel {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.moduleFeatureList,
.statusChipGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moduleFeatureList span,
.statusChipGrid span {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.statusChipGrid span.risk {
  background: var(--red-soft);
  border-color: #ffd6cc;
  color: var(--red);
}

.opsPanel {
  display: grid;
  gap: 12px;
}

.opsPanelHead {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.opsPanelHead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.avatarUploadField > span {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.avatarUploadRow {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 10px;
}

.avatarPreview {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  color: #0f766e;
  display: flex;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.avatarPreview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.uploadButton {
  align-items: center;
  background: #111827;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 14px;
}

.uploadButton input {
  display: none;
}

.avatarUploadRow p {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}

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

.channelOption {
  background: #ffffff;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.channelOption.active {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.channelOption input {
  margin-top: 3px;
}

.channelOption span {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.channelOption em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  grid-column: 2;
  line-height: 1.5;
}

.opsPanelHead button {
  background: var(--red-soft);
  border: 1px solid #ffd6cc;
  border-radius: 8px;
  color: var(--red);
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.compactList {
  display: grid;
  gap: 10px;
}

.compactList article {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
}

.compactList article strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.compactList article span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.compactList article p {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.capacityBar {
  background: var(--surface-muted);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.capacityBar span {
  background: linear-gradient(90deg, var(--blue), var(--brand));
  display: block;
  height: 100%;
}

.capacityGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.capacityGrid div {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
}

.capacityGrid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.capacityGrid strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
}

.settingsForm {
  display: grid;
  gap: 10px;
}

.settingsForm.singleColumn {
  grid-template-columns: 1fr;
}

.settingsForm label {
  display: grid;
  gap: 6px;
}

.settingsForm label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settingsForm input,
.settingsForm textarea,
.settingsForm select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.settingsForm textarea {
  line-height: 1.6;
  min-height: 88px;
  resize: vertical;
}

.settingsForm input:focus,
.settingsForm textarea:focus,
.settingsForm select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 179, 163, 0.12);
  outline: 0;
}

.aiConfigBlock {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  margin-top: 14px;
  padding: 14px;
}

.aiConfigBlock h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.configHub {
  display: grid;
  gap: 14px;
}

.ruleConfigEditor,
.knowledgeManagerPanel {
  margin-top: 0;
}

.ruleConfigEditor .opsPanelHead,
.knowledgeManagerPanel .opsPanelHead {
  align-items: flex-start;
  gap: 12px;
}

.opsPanelHead p {
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}

.ruleConfigEditor label,
.knowledgeEntryForm label {
  display: grid;
  gap: 7px;
}

.ruleConfigEditor label span,
.knowledgeEntryForm label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ruleConfigEditor textarea,
.knowledgeEntryForm input,
.knowledgeEntryForm textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  padding: 10px 12px;
  width: 100%;
}

.ruleConfigEditor .listEditor,
.knowledgeEntryForm textarea {
  min-height: 128px;
  resize: vertical;
}

.ruleConfigEditor textarea:focus,
.knowledgeEntryForm input:focus,
.knowledgeEntryForm textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 179, 163, 0.12);
  outline: 0;
}

.knowledgeEntryForm {
  display: grid;
  gap: 12px;
}

.documentUploadForm {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 16px;
}

.documentDropZone {
  background: #ffffff;
  border: 1px dashed #cfd6e4;
  border-radius: 12px;
  padding: 16px;
}

.documentDropZone input[type="file"] {
  border: 0;
  min-height: auto;
  padding: 8px 0 0;
}

.documentDropZone em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.knowledgeEntryList {
  display: grid;
  gap: 10px;
}

.knowledgeEntryList article {
  background: #f7f7f8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
}

.knowledgeEntryList strong,
.knowledgeEntryList span {
  display: block;
}

.knowledgeEntryList span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.knowledgeEntryList p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.jsonImportBox {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.jsonImportBox h2 {
  font-size: 16px;
  margin: 0;
}

.knowledgeTabs {
  background: #f7f7f8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 8px;
}

.aiConfigBlock p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.readinessPage {
  gap: 16px;
}

.readinessHero {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.readinessHero span,
.readinessCounters span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.readinessHero strong {
  display: block;
  font-size: 40px;
  line-height: 1.1;
  margin-top: 8px;
}

.readinessHero p {
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 0;
  max-width: 620px;
}

.readinessHero.ready strong,
.readinessHero.warning strong {
  color: var(--brand);
}

.readinessHero.blocked strong {
  color: #b42318;
}

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

.readinessCounters div {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
}

.readinessCounters strong {
  font-size: 24px;
  margin-top: 4px;
}

.readinessGroup {
  display: grid;
  gap: 10px;
}

.readinessGroup h2 {
  font-size: 16px;
  margin: 0;
}

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

.readinessCard {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.readinessCard > div > span {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.readinessCard.pass > div > span {
  background: #ecfdf3;
  color: #027a48;
}

.readinessCard.warn > div > span {
  background: #fffaeb;
  color: #b54708;
}

.readinessCard.block > div > span {
  background: #fff1f3;
  color: #b42318;
}

.readinessCard h3 {
  font-size: 16px;
  margin: 10px 0 6px;
}

.readinessCard p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.iconTextButton.muted {
  color: var(--muted);
}

.launchNotes {
  margin-top: 0;
}

.userSecurityPanel {
  margin-top: 0;
}

.securityWarning {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
}

.userSecurityList {
  display: grid;
  gap: 10px;
}

.userSecurityRow {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.1fr) repeat(5, minmax(120px, 1fr));
  padding: 12px;
}

.userSecurityIdentity strong,
.userSecurityIdentity span,
.userSecurityRow label span {
  display: block;
}

.userSecurityIdentity span,
.userSecurityRow label span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.userSecurityRow input,
.userSecurityRow select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.userSecurityRow input:focus,
.userSecurityRow select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 179, 163, 0.12);
  outline: 0;
}

.operationsBackupPanel {
  margin-top: 0;
}

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

.operationsGrid article {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
}

.operationsGrid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.operationsGrid strong {
  display: block;
  font-size: 20px;
  margin: 8px 0;
}

.operationsGrid p,
.readinessChecklist li {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.readinessChecklist {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
}

.readinessChecklist h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.readinessChecklist ul {
  margin: 0;
  padding-left: 18px;
}

.apiIntegrationPanel {
  margin-top: 0;
}

.apiStatus {
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
}

.apiStatus.pass {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #027a48;
}

.apiStatus.warn,
.apiStatus.warning {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
}

.apiStatus.block {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  color: #b42318;
}

.drawerBackdrop {
  background: rgba(15, 23, 42, 0.22);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}

.moduleDrawer {
  background: #ffffff;
  border-left: 1px solid var(--line-soft);
  bottom: 0;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 18px;
  grid-auto-rows: max-content;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(540px, 92vw);
  z-index: 41;
}

.drawerHeader {
  align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.drawerHeader span {
  color: var(--brand-strong);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.drawerHeader h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.drawerHeader p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.drawerMetricGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.drawerMetricGrid div,
.knowledgeStats div {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
}

.drawerMetricGrid span,
.knowledgeStats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.drawerMetricGrid strong,
.knowledgeStats strong {
  display: block;
  font-size: 22px;
}

.drawerStatus {
  background: var(--amber-soft);
  border: 1px solid #f0d990;
  border-radius: 12px;
  color: var(--amber);
  font-weight: 800;
  padding: 12px;
}

.drawerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawerActions button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}

.drawerActions button:hover {
  background: var(--blue-soft);
  border-color: #bed1ef;
}

.drawerList {
  display: grid;
  gap: 12px;
}

.drawerList article {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
}

.drawerList strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.drawerList span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.drawerList p {
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.knowledgeStats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1180px) {
  .gptWorkbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .gptWorkbench .opsMetricGrid,
  .gptWorkbench .opsModuleGrid.management,
  .smallFirmSummary,
  .compactStageGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customerSimpleList article {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(100px, .5fr)) auto;
  }

  .customerSimpleList article > div:nth-child(4) {
    display: none;
  }

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

  .clientSidebar {
    border-bottom: 1px solid #e5ebf2;
    border-right: 0;
    padding: 14px;
  }

  .clientNav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .clientNav button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
  }

  .sidebarHelp {
    display: none;
  }

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

  .robotScene {
    display: none;
  }

  .workspace,
  .customerWorkspace {
    grid-template-columns: 1fr;
  }

  .conversationPane,
  .rightRail,
  .customerChat,
  .customerSidePanel {
    height: auto;
    min-height: 0;
  }

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

  .opsTopBar,
  .opsHero,
  .opsContentGrid {
    grid-template-columns: 1fr;
  }

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

  .actionGroupTabs,
  .actionGroupPanel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .loginShell {
    padding: 14px;
  }

  .loginPanel {
    border-radius: 16px;
    padding: 24px;
  }

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

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

  .gptWorkbench {
    display: block;
  }

  .workbenchSidebar {
    border-bottom: 1px solid #ececf1;
    border-right: 0;
    gap: 10px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .sidebarLogo {
    padding: 0;
  }

  .workbenchSidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .workbenchSidebar nav button {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .workbenchHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    position: static;
  }

  .workbenchHeaderActions {
    width: 100%;
  }

  .workbenchHeaderActions > span {
    flex: 1;
  }

  .taskPanel {
    padding: 16px 12px 18px;
  }

  .taskPanelHead h1 {
    font-size: 25px;
  }

  .taskSignals,
  .gptWorkbench .opsMetricGrid,
  .gptWorkbench .opsModuleGrid,
  .gptWorkbench .opsModuleGrid.management,
  .smallFirmSummary,
  .compactStageGrid,
  .bookkeepingFlow,
  .bookkeepingColumns,
  .adminSimpleColumns,
  .simpleStatList {
    grid-template-columns: 1fr;
  }

  .unifiedTaskRow {
    gap: 8px 12px;
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .unifiedTaskRow em {
    grid-column: 2;
    justify-self: start;
  }

  .servicePageHeader.simplified {
    align-items: flex-start;
  }

  .pageKeyMetric {
    width: 100%;
  }

  .customerSimpleList article,
  .simpleBusinessList article {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .customerSimpleList article > div:not(.customerSimpleMain),
  .simpleBusinessList article > span {
    display: none;
  }

  .bookkeepingFlow > div {
    border-left: 0;
    border-top: 1px solid #ececf1;
    min-height: 0;
  }

  .bookkeepingFlow > div:first-child {
    border-top: 0;
  }

  .gptChatHeader {
    height: auto;
    padding: 12px 14px;
  }

  .chatBrand span {
    display: none;
  }

  .textButton {
    padding: 7px 8px;
  }

  .gptChatMain {
    min-height: calc(100vh - 57px);
    padding-top: 18px;
  }

  .gptMessageList {
    gap: 18px;
    padding: 22px 14px 18px;
  }

  .chatEmptyState {
    min-height: 42vh;
  }

  .quickActions.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quickActions.compact button {
    padding: 0 10px;
  }

  .gptMessage.user .gptMessageContent {
    max-width: 86%;
  }

  .assistantMark {
    flex-basis: 28px;
    height: 28px;
    width: 28px;
  }

  .gptChatFooter {
    padding: 0 12px 12px;
  }

  .gptComposer {
    grid-template-columns: auto 1fr auto;
  }

  .gptComposer .composerTool:nth-of-type(2),
  .gptComposer .composerTool:nth-of-type(3) {
    display: none;
  }

  .chatDisclaimer {
    font-size: 11px;
  }

  .clientTopBar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 14px;
  }

  .clientTopActions {
    flex-wrap: wrap;
    width: 100%;
  }

  .companySelect,
  .userSelect {
    flex: 1;
  }

  .clientMain {
    padding: 20px 12px;
  }

  .assistantCopy h1 {
    font-size: 26px;
  }

  .clientConversation,
  .operationSection,
  .questionChips,
  .clientComposer {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .clientBubble p,
  .assistantAnswer {
    max-width: 100%;
  }

  .operationRow,
  .questionChips,
  .composerTools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .questionChips .refreshChip {
    margin-left: 0;
    width: 100%;
  }

  .appShell {
    padding: 12px;
  }

  .topBar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topActions {
    width: 100%;
  }

  .roleBadge {
    flex: 1;
  }

  .workflowGrid,
  .statusStrip,
  .heroStats,
  .customerHero,
  .customerWorkspace,
  .customerTabs,
  .quickPrompts,
  .formGrid,
  .verifyRow,
  .presetRow,
  .loginGrid,
  .loginForm {
    grid-template-columns: 1fr;
  }

  .panelActions {
    align-items: stretch;
    flex-direction: column;
  }

  .message p {
    max-width: 100%;
  }

  .opsShell {
    padding: 12px;
  }

  .opsTopBar {
    align-items: stretch;
  }

  .opsHero {
    padding: 18px;
  }

  .opsHero h1 {
    font-size: 24px;
  }

  .heroSignalGrid,
  .actionGroupTabs,
  .actionGroupPanel,
  .opsMetricGrid,
  .opsModuleGrid,
  .opsModuleGrid.management,
  .userSecurityRow,
  .operationsGrid,
  .readinessGrid,
  .readinessCounters,
  .drawerMetricGrid,
  .ticketMetrics,
  .ticketWorkspace,
  .knowledgeTypeGrid,
  .policyUpdatePanel,
  .focusSummaryGrid,
  .channelOptionGrid,
  .knowledgeStats,
  .capacityGrid {
    grid-template-columns: 1fr;
  }

  .avatarUploadRow {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .opsSectionTitle {
    align-items: flex-start;
    display: grid;
    gap: 6px;
  }
}

/* Current product surfaces: restrained, consistent SaaS styling. */
.loginShell,
.gptWorkbench,
.gptCustomerApp {
  background: #f6f7f9;
}

.gptCustomerApp {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.loginPanel {
  border-color: #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.loginPreset,
.loginForm input,
.loginSubmit {
  border-radius: 10px;
}

.gptWorkbench {
  grid-template-columns: 224px minmax(0, 1fr);
}

.workbenchSidebar {
  border-color: #e5e7eb;
  gap: 18px;
  padding: 16px 12px;
}

.sidebarLogo span {
  border-radius: 8px;
}

.workbenchSidebar nav button {
  border-radius: 8px;
  font-size: 14px;
  min-height: 40px;
}

.workbenchSidebar nav button:hover {
  background: #f3f4f6;
}

.workbenchSidebar nav button.active {
  background: #e9f4f2;
  color: #075e54;
  font-weight: 700;
}

.workbenchSidebar nav button.active span {
  background: #ffffff;
  border-color: #b8ddd7;
  color: #075e54;
}

.workbenchHeader {
  backdrop-filter: blur(12px);
  border-color: #e5e7eb;
  min-height: 68px;
  padding: 12px 24px;
}

.workbenchHeaderActions > span {
  background: #f9fafb;
  border-radius: 8px;
}

.taskPanel {
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px;
  width: 100%;
}

.taskPanelHead h1 {
  font-size: clamp(24px, 2.4vw, 30px);
}

.gptWorkbench .signalTile,
.smallFirmSummary > button,
.servicePageHeader,
.customerSimpleList,
.bookkeepingFlow,
.simpleRoleNote,
.servicePageActions,
.ticketQueueNav,
.opsModuleCard,
.opsPanel,
.focusSummaryItem {
  border-color: #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
}

.smallFirmSummary > button,
.unifiedTaskRow,
.customerSimpleList article,
.simpleBusinessList article,
.materialStatusList button {
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.smallFirmSummary > button:hover,
.customerSimpleList article:hover,
.simpleBusinessList article:hover {
  background: #fafbfc;
  border-color: #cfd5dd;
  transform: none;
}

.pageKeyMetric,
.compactStageGrid > div,
.simpleStatList div,
.drawerMetricGrid div,
.knowledgeStats div {
  border-radius: 8px;
}

.simpleToolbar input,
.simpleSettingsTabs button {
  border-radius: 8px;
}

.simpleToolbar input:focus,
.drawerForm input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: 0;
}

.primaryButton,
.iconButton,
.simpleBusinessList button,
.customerSimpleList article > button,
.drawerActions button {
  border-radius: 8px;
}

.unifiedTaskRow:first-child {
  border-top: 0;
}

.moduleDrawer {
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.12);
  gap: 16px;
  padding: 22px;
}

.drawerBackdrop {
  background: rgba(15, 23, 42, 0.18);
}

.drawerForm {
  display: grid;
  gap: 14px;
}

.drawerForm label {
  display: grid;
  gap: 7px;
}

.drawerForm label span {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.drawerForm input {
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #101828;
  min-height: 44px;
  padding: 0 12px;
}

.gptChatHeader {
  background: rgba(255, 255, 255, 0.94);
  border-color: #e5e7eb;
}

.gptChatMain {
  height: calc(100dvh - 64px);
  max-width: 880px;
  min-height: 0;
  overflow: hidden;
}

.gptCustomerApp .assistantBlock {
  color: #1f2328;
}

.gptComposer {
  border-color: #d0d5dd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gptComposer:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.quickActions button {
  background: #ffffff;
  border-color: #dfe3e8;
  border-radius: 999px;
}

.quickActions button:hover {
  background: #f4f7f7;
  border-color: #a9cec8;
}

.readinessOwnerHint {
  color: #667085;
  font-size: 13px;
}

@media (max-width: 720px) {
  .gptWorkbench {
    display: block;
  }

  .taskPanel {
    padding: 16px 12px 22px;
  }

  .workbenchSidebar {
    padding: 10px 12px;
  }

  .workbenchHeaderActions {
    overflow-x: auto;
  }

  .servicePageHeader {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .moduleDrawer {
    padding: 18px;
    width: min(100%, 520px);
  }

  .gptChatMain {
    height: calc(100dvh - 57px);
    min-height: 0;
  }
}
