:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --line: #d7e0e2;
  --line-strong: #b8c7cb;
  --text: #182024;
  --muted: #617178;
  --subtle: #829097;
  --ink: #10171a;
  --nav: #172226;
  --nav-2: #223136;
  --teal: #0f766e;
  --teal-dark: #0a5f58;
  --gold: #b7832f;
  --red: #ba3a35;
  --blue: #315f8a;
  --green-bg: #e4f4ef;
  --gold-bg: #fff4dc;
  --red-bg: #fdebea;
  --blue-bg: #e7f0f8;
  --shadow: 0 16px 40px rgba(14, 31, 36, 0.08);
  --radius: 8px;
  font-family: "Segoe UI", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

.icon-sprite {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--nav);
  color: #dce8ea;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #06221f;
  background: #d8c07b;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name,
.brand-sub,
.eyebrow,
h1,
h2,
h3,
p {
  margin: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.brand-sub {
  margin-top: 2px;
  color: #9fb0b4;
  font-size: 12px;
}

.nav {
  padding: 12px;
}

.nav-group-label {
  padding: 16px 10px 7px;
  font-size: 11px;
  color: #8ea1a6;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: #dce8ea;
  background: transparent;
  text-align: left;
}

.nav-button svg,
.icon-button svg,
.primary-button svg,
.ghost-button svg,
.global-search svg,
.row-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-button.is-active {
  background: #d8c07b;
  color: #10171a;
  font-weight: 700;
}

.nav-accordion {
  display: grid;
  gap: 4px;
}

.nav-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 4px;
  align-items: center;
}

.nav-parent-button {
  min-width: 0;
}

.nav-accordion-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce8ea;
}

.nav-accordion-toggle::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.nav-accordion.is-open .nav-accordion-toggle::before {
  content: "-";
}

.nav-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-accordion.is-active .nav-accordion-toggle {
  color: #10171a;
  background: #d8c07b;
}

.nav-submenu {
  display: grid;
  gap: 3px;
  margin: 0 0 4px 28px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-sub-button {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c6d4d7;
  text-align: left;
}

.nav-sub-button span {
  font-size: 12px;
  font-weight: 800;
}

.nav-sub-button small {
  color: #8ea1a6;
  font-size: 10px;
  line-height: 1.35;
}

.nav-sub-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-sub-button.is-active {
  background: rgba(216, 192, 123, 0.18);
  color: #ffffff;
}

.nav-sub-button.is-active small {
  color: #d8c07b;
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 16px 24px;
  background: rgba(245, 247, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar > :not(.topbar-actions) {
  min-width: 0;
}

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

h1 {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(34vw, 360px);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button,
.row-action {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.icon-button:hover,
.row-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-button:disabled,
.row-action:disabled {
  color: var(--subtle);
  background: var(--surface-2);
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  background: var(--teal);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.text-button {
  min-height: 34px;
  color: var(--teal-dark);
  background: transparent;
}

.workspace {
  display: grid;
  gap: 18px;
  padding: 22px 24px 40px;
}

.is-login .app-shell {
  display: block;
}

.is-login .sidebar,
.is-login .topbar,
.is-login .drawer-backdrop {
  display: none;
}

.is-login .workspace {
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-screen {
  display: grid;
  place-items: center;
  width: 100%;
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand .brand-name {
  color: var(--text);
}

.login-brand .brand-sub {
  color: var(--muted);
}

.login-copy {
  margin-bottom: 18px;
}

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

.login-form .primary-button {
  width: 100%;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid var(--red-bg);
  border-radius: var(--radius);
  color: var(--red);
  background: var(--red-bg);
  font-size: 13px;
}

.api-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.api-status,
.api-controls,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel > .button-row,
.note-box + .button-row,
.mini-form + .button-row,
.choice-stack + .button-row {
  margin-top: 14px;
}

.panel > .button-row:last-child {
  margin-bottom: 0;
}

.api-status {
  min-width: 220px;
  color: var(--muted);
  font-size: 13px;
}

.api-controls {
  justify-content: flex-end;
}

.table-bulk-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-2));
}

.table-operation-actions {
  align-items: center;
}

.table-operation-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.table-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-header-actions--stack {
  justify-content: flex-start;
}

.table-header-actions__divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.danger-button {
  color: var(--red);
}

.row-action-menu {
  width: max-content;
}

.row-action-menu summary {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
}

.row-action-menu summary::-webkit-details-marker {
  display: none;
}

.row-action-menu summary::after {
  content: "v";
  color: var(--muted);
  font-size: 10px;
}

.row-action-menu[open] summary {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(29, 125, 108, .12);
}

.row-action-menu__body {
  display: grid;
  gap: 6px;
  min-width: 132px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.row-action-menu__body .ghost-button,
.row-action-menu__body .small-button {
  justify-content: center;
  width: 100%;
}

.memo-badge {
  border-color: #c9dfd7;
  background: #eef8f4;
  color: #12624f;
}

.compact-field {
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

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

.compact-field input,
.compact-field select {
  min-height: 34px;
}

.compact-field input {
  width: min(32vw, 280px);
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.mini-form.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-form textarea {
  min-height: 96px;
}

.mail-management-layout .management-content {
  min-width: 0;
}

.mail-compose-form {
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.4fr);
  align-items: start;
}

.mail-compose-form .span-2 {
  grid-column: auto;
}

.mail-compose-form textarea {
  min-height: 132px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

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

.metric {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.metric-note {
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.panel,
.table-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.note-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  font-size: 13px;
}

.note-box p {
  color: var(--muted);
  line-height: 1.6;
}

.panel-header,
.table-header,
.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.table-header,
.form-header {
  padding: 16px 16px 0;
}

.panel-title,
.table-title,
.form-title {
  font-size: 16px;
  font-weight: 800;
}

.panel-sub,
.table-sub,
.form-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

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

.local-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.local-nav-title {
  padding: 4px 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.local-nav-button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.local-nav-button span {
  font-weight: 800;
}

.local-nav-button small {
  color: var(--muted);
  font-size: 11px;
}

.local-nav-button:hover,
.local-nav-button.is-active {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.management-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.two-col-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.choice-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.choice-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.choice-panel summary::-webkit-details-marker {
  display: none;
}

.choice-panel summary::before {
  content: "";
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 8px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 2px 8px no-repeat;
}

.choice-panel[open] summary::before {
  background:
    linear-gradient(var(--muted), var(--muted)) center / 8px 2px no-repeat;
}

.choice-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.choice-panel summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.choice-panel .checkbox-grid {
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.compact-choice-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.range-field {
  display: grid;
  gap: 6px;
}

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

.range-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-pair input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.form-actions {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .management-layout {
    grid-template-columns: 1fr;
  }

  .local-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col-form,
  .compact-choice-grid {
    grid-template-columns: 1fr;
  }
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 10px;
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.field > span {
  color: var(--muted);
  font-size: 12px;
}

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

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field-help {
  color: #526365;
  font-size: 11px;
  line-height: 1.55;
}

.computed-count-box {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-bg);
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 800;
}

.file-url-field {
  display: grid;
  gap: 8px;
}

.file-url-field input[type="file"] {
  padding: 8px;
  background: #f8fafc;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.segment {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segment.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 10px 16px 16px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #f8fafb;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.sort-button:hover {
  color: var(--teal-dark);
}

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

.linkish {
  color: var(--teal-dark);
  font-weight: 700;
}

.stacked-table-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-cell-note,
.table-cell-empty {
  color: var(--muted);
  font-size: 12px;
}

.text-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link-button:hover {
  color: var(--ink);
}

.text-link-button:disabled,
.text-link-button.is-disabled {
  color: var(--subtle);
  text-decoration: none;
  cursor: not-allowed;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  color: var(--muted);
  background: var(--surface-2);
}

.status {
  color: var(--teal-dark);
  background: var(--green-bg);
}

.status.warn {
  color: #8a5c12;
  background: var(--gold-bg);
}

.status.stop {
  color: var(--red);
  background: var(--red-bg);
}

.status.info {
  color: var(--blue);
  background: var(--blue-bg);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row-action {
  width: 32px;
  height: 32px;
}

.table-icon-button {
  width: 32px;
  height: 32px;
}

.row-order-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-preview {
  max-width: 440px;
  white-space: normal;
  line-height: 1.55;
  color: var(--muted);
}

.check-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text);
  font-weight: 700;
}

.check-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 22, 25, 0.42);
}

.edit-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(21, 33, 38, 0.24);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.modal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 18px 0;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

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

.modal-tab-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #edf4f3;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
  width: 100%;
}

.modal-tab-button.is-active {
  position: relative;
  bottom: -1px;
  background: var(--surface);
  color: var(--ink);
}

.modal-header h2 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.35;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  overflow: auto;
  padding: 16px 18px;
}

.modal-body .field {
  gap: 3px;
}

.modal-body .span-2 {
  grid-column: 1 / -1;
}

.modal-body.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.modal-body textarea {
  min-height: 92px;
}

.modal-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #d8e4e2;
  border-radius: 8px;
  background: #f4f8f7;
}

.modal-section:first-child {
  margin-top: 0;
}

.modal-section strong {
  color: #111a1d;
  font-size: 13px;
}

.modal-section p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.edit-modal-product {
  width: min(980px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.modal-body-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body-product > * {
  flex: 0 0 auto;
}

.modal-body-product .field-checks,
.modal-body-product .field-textarea,
.modal-body-product .field-csv,
.modal-body-product .field-image-url,
.modal-body-product .span-2 {
  width: 100%;
}

.modal-body-product .field {
  min-height: 0;
  align-content: start;
}

.modal-body-product .field:not(.field-checks):not(.field-textarea):not(.field-csv):not(.field-image-url) {
  min-height: auto;
}

.modal-body-product .checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: 220px;
  overflow: auto;
}

.modal-body-product textarea {
  min-height: 132px;
}

.edit-modal-mailJob {
  width: min(980px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
}

.edit-modal-mailRule {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.modal-body-mailRule .field-checks,
.modal-body-mailRule .field-textarea,
.modal-body-mailRule .field-csv,
.modal-body-mailRule .span-2 {
  grid-column: 1 / -1;
}

.modal-body-mailRule .checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-height: 260px;
  overflow: auto;
}

.modal-body-mailRule textarea {
  min-height: 132px;
}

.modal-body-mailJob .field-checks,
.modal-body-mailJob .field-textarea,
.modal-body-mailJob .field-csv,
.modal-body-mailJob .span-2 {
  grid-column: 1 / -1;
}

.modal-body-mailJob .checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: 220px;
  overflow: auto;
}

.modal-body-mailJob textarea {
  min-height: 132px;
}

.edit-modal-stageRule {
  width: min(760px, calc(100vw - 32px));
}

.edit-modal-campaign {
  width: min(980px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
}

.modal-body-campaign .field-checks,
.modal-body-campaign .field-textarea,
.modal-body-campaign .field-csv,
.modal-body-campaign .field-url,
.modal-body-campaign .field-image-url,
.modal-body-campaign .field-computed-count,
.modal-body-campaign .span-2 {
  grid-column: 1 / -1;
}

.modal-body-campaign .checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: 220px;
  overflow: auto;
}

.modal-body-campaign textarea {
  min-height: 132px;
}

.edit-modal-user-search {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(92vh, 920px);
}

.modal-body-user-search {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  overflow-x: hidden;
}

.modal-body-user-search > * {
  min-width: 0;
}

.modal-body-user-search .mini-form {
  margin-top: 0;
}

.modal-body-user-search .two-col-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.modal-body-user-search .choice-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.modal-body-user-search .choice-panel {
  min-width: 0;
}

.modal-body-user-search .choice-panel summary {
  min-height: 48px;
  padding: 13px 16px 12px;
}

.modal-body-user-search .choice-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.modal-body-user-search .choice-panel .checkbox-grid {
  padding: 14px 16px 16px;
}

.modal-body-user-search .compact-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 12px;
}

.modal-body-user-search .mini-form.three-col {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.modal-body-user-search .check {
  align-items: flex-start;
  min-height: 34px;
  line-height: 1.45;
}

.inquiry-memo-modal {
  width: min(680px, 100%);
}

.memo-history {
  display: grid;
  gap: 8px;
}

.memo-history > strong {
  color: var(--ink);
  font-size: 13px;
}

.memo-history-item {
  margin-top: 0;
}

.memo-history-item small {
  color: var(--muted);
  font-size: 11px;
}

.confirm-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(21, 33, 38, 0.24);
}

.inline-template-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
}

.inline-template-select select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--text);
  font-size: 13px;
}

.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.switch input {
  width: 18px;
  height: 18px;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.inquiry-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.chat-thread {
  display: grid;
  gap: 12px;
  min-height: 320px;
  padding: 16px;
  background: #f8fafb;
}

.chat-message {
  display: flex;
}

.chat-message.is-admin {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(72%, 560px);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.chat-message.is-admin .chat-bubble {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.chat-bubble p {
  line-height: 1.6;
}

.chat-bubble span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
}

.chat-message.is-admin .chat-bubble span {
  color: rgba(255, 255, 255, 0.78);
}

.reply-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.reply-box label {
  color: var(--muted);
  font-size: 12px;
}

.reply-box textarea {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

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

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.timeline-time {
  color: var(--subtle);
  font-size: 12px;
}

.timeline-title {
  font-weight: 700;
}

.timeline-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kanban-col {
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
}

.kanban-title {
  font-size: 13px;
  font-weight: 800;
}

.kanban-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.kanban-card strong {
  display: block;
  font-size: 13px;
}

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

.mobile-only {
  display: none;
}

.drawer-backdrop {
  display: none;
}

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

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    grid-template-columns: repeat(3, minmax(132px, 1fr));
  }

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

  .modal-body-user-search .two-col-form,
  .modal-body-user-search .mini-form.three-col {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .modal-body-user-search .choice-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(84vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .drawer-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(12, 22, 25, 0.42);
  }

  .mobile-only {
    display: grid;
  }

  .topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: flex-start;
    justify-content: initial;
    padding: 14px;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-items: stretch;
    width: 100%;
  }

  .global-search {
    width: 100%;
  }

  .topbar-actions .primary-button {
    grid-column: 1 / -1;
  }

  .workspace {
    padding: 14px 14px 28px;
  }

  .filters,
  .form-grid,
  .summary-grid,
  .kanban,
  .modal-body,
  .mini-form,
  .mail-compose-form,
  .mini-form.three-col,
  .inquiry-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mail-compose-form .span-2 {
    grid-column: 1 / -1;
  }

  .api-toolbar,
  .api-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-field {
    grid-auto-flow: row;
  }

  .compact-field input {
    width: 100%;
  }

  .chat-bubble {
    max-width: 86%;
  }

  .edit-modal-user-search {
    width: calc(100vw - 20px);
  }

  .modal-body-user-search .two-col-form,
  .modal-body-user-search .mini-form.three-col {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 21px;
  }
}

/* Visual refinement layer */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #f3f7f7;
  --surface-3: #eaf1f1;
  --line: #d9e3e1;
  --line-strong: #aebfbc;
  --text: #172022;
  --muted: #5e6d70;
  --subtle: #7e8c8e;
  --ink: #0d1517;
  --nav: #111b1e;
  --nav-2: #1b292d;
  --teal: #0c7a72;
  --teal-dark: #095f59;
  --gold: #c49b42;
  --gold-soft: #f2df9b;
  --red: #b73535;
  --blue: #335f86;
  --green-bg: #e2f3ee;
  --gold-bg: #fff5d8;
  --red-bg: #fdebea;
  --blue-bg: #e7f0f8;
  --shadow: 0 10px 28px rgba(22, 38, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(16, 28, 32, 0.05), 0 12px 24px rgba(16, 28, 32, 0.06);
}

body {
  background:
    linear-gradient(180deg, rgba(246, 249, 248, 0.96), rgba(235, 241, 241, 0.92)),
    #eef3f3;
  font-feature-settings: "palt";
}

.sidebar {
  background:
    linear-gradient(180deg, #111b1e 0%, #142226 52%, #10181b 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.brand {
  min-height: 84px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.brand-mark {
  background: linear-gradient(180deg, #f1d982, #d6b94e);
  box-shadow: 0 8px 22px rgba(214, 185, 78, 0.22);
}

.brand-name {
  font-size: 15px;
}

.nav {
  padding: 14px 12px 18px;
}

.nav-group-label {
  padding: 18px 10px 8px;
  color: #8ea1a6;
  font-size: 10px;
  font-weight: 800;
}

.nav-button {
  position: relative;
  min-height: 43px;
  padding: 10px 11px;
  color: #d9e7e8;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(1px);
}

.nav-button.is-active {
  background: #e4cb76;
  color: #10171a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.nav-button.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  width: 4px;
  height: calc(100% - 18px);
  border-radius: 0 4px 4px 0;
  background: #f4dc86;
}

.topbar {
  min-height: 82px;
  padding: 17px 24px;
  background: rgba(247, 250, 249, 0.9);
  box-shadow: 0 1px 0 rgba(18, 36, 38, 0.04);
}

.eyebrow {
  color: #6f7e81;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  color: #0e1719;
  font-size: 25px;
  font-weight: 850;
}

.workspace {
  gap: 20px;
  padding: 24px 24px 44px;
}

.global-search {
  height: 42px;
  border-color: #ccd9d7;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(16, 28, 32, 0.04);
}

.global-search:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus,
.range-pair input:focus,
.reply-box textarea:focus {
  outline: 2px solid rgba(12, 122, 114, 0.16);
  border-color: rgba(12, 122, 114, 0.72);
}

.primary-button,
.ghost-button,
.text-button,
.icon-button,
.row-action {
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-button {
  background: #0c7a72;
  box-shadow: 0 8px 18px rgba(12, 122, 114, 0.16);
}

.primary-button:hover {
  background: #09645d;
  transform: translateY(-1px);
}

.ghost-button,
.icon-button,
.row-action {
  background: #fbfdfd;
}

.ghost-button:hover,
.icon-button:hover,
.row-action:hover {
  border-color: #b8c8c5;
  background: #f2f7f6;
  transform: translateY(-1px);
}

.panel,
.table-panel,
.form-panel,
.metric,
.chat-panel,
.local-nav,
.api-toolbar {
  border-color: #d5dfdd;
  box-shadow: var(--shadow-soft);
}

.panel,
.table-panel,
.form-panel,
.metric {
  background: rgba(255, 255, 255, 0.96);
}

.panel {
  padding: 20px;
}

.panel-title,
.table-title,
.form-title {
  color: #111a1d;
  font-size: 17px;
}

.panel-sub,
.table-sub,
.form-sub {
  color: #627174;
  line-height: 1.55;
}

.status-line {
  color: #627174;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.note-box {
  position: relative;
  overflow: hidden;
  padding: 13px 14px 13px 16px;
  border-color: #dbe6e4;
  background: #fbfdfd;
}

.note-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #d8bd5e;
}

.note-box strong {
  color: #132023;
}

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

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

.manual-item {
  border: 1px solid #dbe6e4;
  border-radius: 8px;
  background: #fbfdfd;
  overflow: hidden;
}

.manual-item summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 14px 16px;
}

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

.manual-item summary span {
  color: #132023;
  font-weight: 700;
}

.manual-item summary small {
  color: #627174;
  line-height: 1.5;
}

.manual-detail {
  border-top: 1px solid #dbe6e4;
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
}

.manual-detail p {
  color: #435154;
  line-height: 1.6;
  margin: 0;
}

.mapping-table {
  min-width: 1080px;
}

.mapping-table th,
.mapping-table td {
  line-height: 1.65;
  vertical-align: top;
  white-space: normal;
}

.mapping-table th:first-child,
.mapping-table td:first-child {
  min-width: 150px;
  white-space: nowrap;
}

.field input,
.field select,
.field textarea,
.range-pair input,
.reply-box textarea,
.inline-template-select select {
  border-color: #d3dfdd;
  background: #fbfdfd;
  color: #142024;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.range-pair input:hover {
  border-color: #b9c9c6;
}

.field > span,
.field label,
.range-field > span,
.compact-field span,
.reply-box label {
  color: #68777a;
  font-weight: 700;
}

.table-panel {
  overflow: hidden;
}

.table-header,
.form-header {
  padding: 18px 18px 2px;
}

.table-wrap {
  padding: 12px 18px 18px;
}

table {
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 12px 11px;
  vertical-align: top;
  border-bottom-color: #dce6e4;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #536466;
  background: #f1f6f5;
  box-shadow: inset 0 -1px 0 #dce6e4;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: #f7fbfa;
}

.text-preview {
  min-width: 240px;
  max-width: 520px;
  line-height: 1.65;
  color: #526365;
}

.param-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: min(360px, 42vw);
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.param-code {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border: 1px solid #dce6e4;
  border-radius: 6px;
  background: #f8fbfa;
  color: #223438;
  font-size: 12px;
  line-height: 1.45;
}

.param-copy .small-button {
  align-self: flex-start;
}

.table-image-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  max-width: 220px;
  white-space: normal;
}

.table-image-cell img {
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.table-image-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.visibility-summary {
  min-width: 190px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.55;
}

.visibility-summary span {
  color: #526365;
}

.purchase-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.purchase-kpi {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dce8e6;
  border-radius: 8px;
  background: #f8fbfa;
}

.purchase-kpi strong {
  color: #152124;
  font-size: 24px;
  line-height: 1;
}

.purchase-kpi span {
  color: #526365;
  font-size: 12px;
  line-height: 1.4;
}

.purchase-kpi--alert {
  border-color: #b9d8f7;
  background: #eef7ff;
}

.purchase-kpi--warn {
  border-color: #f2d58f;
  background: #fff8e6;
}

.purchase-kpi--done {
  border-color: #bde2d2;
  background: #edf8f3;
}

.purchase-user-cell,
.purchase-product-cell,
.purchase-action-cell,
.purchase-mini-list {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 260px;
  white-space: normal;
  line-height: 1.45;
}

.purchase-user-cell strong,
.purchase-product-cell strong,
.purchase-action-cell strong {
  color: #152124;
  font-size: 13px;
}

.purchase-user-cell > span,
.purchase-product-cell > span,
.purchase-action-cell > span {
  color: #526365;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.purchase-mini-list span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  color: #223438;
  font-size: 12px;
}

.purchase-mini-list b {
  color: #6c7a7c;
  font-weight: 700;
}

.purchase-mini-list .is-emphasis {
  color: #0f5f59;
  font-weight: 700;
}

.purchase-action-cell {
  min-width: 150px;
  padding-left: 10px;
  border-left: 3px solid #d6e2e0;
}

.purchase-action-cell--confirm {
  border-left-color: #2e7ad1;
}

.purchase-action-cell--follow,
.purchase-action-cell--missing-date {
  border-left-color: #d89a1d;
}

.purchase-action-cell--done {
  border-left-color: #26a06c;
}

.badge,
.status {
  min-height: 25px;
  border-radius: 999px;
  font-size: 11px;
}

.badge {
  color: #536466;
  background: #eef4f3;
}

.status {
  color: #075f59;
  background: #dff2ed;
}

.status.warn {
  color: #7c5615;
  background: #fff0c7;
}

.local-nav {
  top: 98px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.local-nav-button {
  border-color: transparent;
  background: #fbfdfd;
}

.local-nav-button:hover,
.local-nav-button.is-active {
  border-color: #cddbd8;
  background: #eef6f4;
}

.choice-panel {
  border-color: #d7e3e1;
  background: #fbfdfd;
}

.choice-panel summary {
  background: #f8fbfa;
}

.checkbox-grid {
  border-color: #d7e3e1;
  background: #fbfdfd;
}

.edit-modal,
.confirm-modal {
  border-color: #cbd9d6;
  box-shadow: 0 28px 80px rgba(12, 24, 28, 0.28);
}

.modal-header {
  background: #f8fbfa;
}

.modal-footer {
  background: #fbfdfd;
}

.chat-thread {
  background: #f2f7f6;
}

.chat-bubble {
  box-shadow: 0 1px 2px rgba(12, 24, 28, 0.04);
}

.chat-message.is-admin .chat-bubble {
  border-color: #0c7a72;
  background: #0c7a72;
}
