html {
  font-size: 15px;
  min-height: 100%;
  position: relative;
}

.metric-tile {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
}

.metric-tile span {
  color: #64748b;
  font-size: 13px;
}

.metric-tile strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.billing-modal-subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 0;
}

.plan-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-card {
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 440px;
  padding: 28px 24px 24px;
}

.plan-card.is-recommended {
  background: #eefbf7;
  border-color: #10b981;
  box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.2), 0 16px 34px rgba(5, 150, 105, 0.12);
}

.plan-card-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
}

.plan-card-heading strong {
  color: #020617;
  font-size: 17px;
  font-weight: 800;
}

.plan-card-heading span {
  background: #c7f9e8;
  border: 1px solid #7ee2bf;
  border-radius: 999px;
  color: #059669;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 12px;
}

.plan-card-price {
  align-items: baseline;
  display: flex;
  gap: 4px;
}

.plan-card-price strong {
  color: #020617;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.plan-card-price span {
  color: #475569;
  font-size: 14px;
}

.plan-card-features {
  display: grid;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-card-features li {
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
  padding-left: 26px;
  position: relative;
}

.plan-card-features li::before {
  color: #0877f2;
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0;
}

.plan-card.is-recommended .plan-card-features li::before {
  color: #059669;
}

.plan-card-billing {
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
}

.plan-card-billing div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.plan-card-billing span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.plan-card-billing strong {
  color: #0f172a;
  font-size: 14px;
}

.plan-card-action {
  align-items: center;
  background: #0b74e8;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(11, 116, 232, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.plan-card-action:hover,
.plan-card-action:focus {
  background: #075fc0;
  color: #ffffff;
}

.plan-card.is-recommended .plan-card-action {
  background: #059669;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}

.plan-card.is-recommended .plan-card-action:hover,
.plan-card.is-recommended .plan-card-action:focus {
  background: #047857;
}

.billing-modal-note {
  color: #64748b;
  font-size: 13px;
  margin: 16px 0 0;
}

@media (max-width: 768px) {
  .plan-card {
    min-height: 0;
    padding: 22px 18px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

:root {
  --app-bg: #eef2f6;
  --app-surface: #ffffff;
  --app-surface-muted: #f7f9fb;
  --app-border: #d8e0e8;
  --app-border-soft: #e7ecf1;
  --app-text: #17202a;
  --app-muted: #607085;
  --app-subtle: #7b8794;
  --app-primary: #0b5f78;
  --app-primary-hover: #084d62;
  --app-primary-soft: #e7f3f6;
  --app-success: #26724d;
  --app-warning: #9a6414;
  --app-shadow: 0 12px 28px rgba(22, 34, 51, 0.08);
  --app-radius: 8px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 56px;
}

a {
  color: var(--app-primary);
  text-decoration: none;
}

a:hover {
  color: var(--app-primary-hover);
  text-decoration: none;
}

.app-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 10px 26px rgba(22, 34, 51, 0.06);
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  align-items: center;
  color: var(--app-text);
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
  min-width: 208px;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  max-height: 42px;
  max-width: 220px;
  object-fit: contain;
}

.brand-mark {
  align-items: center;
  background: var(--app-primary);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-link {
  border-radius: 7px;
  color: #3f4d5f;
  font-size: 14px;
  font-weight: 750;
  padding: 8px 10px !important;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary-hover);
}

.nav-auth {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.nav-auth form {
  margin: 0;
}

.nav-user {
  border-radius: 7px;
  color: #45515f;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
  white-space: nowrap;
}

.nav-user:hover,
.nav-user:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary-hover);
}

.app-shell {
  max-width: 1520px;
  padding: 26px;
}

.page-heading {
  align-items: flex-end;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px 26px;
}

.page-heading.compact {
  align-items: center;
}

.page-heading h1 {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.page-heading p {
  color: var(--app-muted);
  margin: 0;
}

.eyebrow {
  color: var(--app-primary) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px !important;
  text-transform: uppercase;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.heading-actions form,
.panel-header form {
  margin: 0;
}

.link-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  color: var(--app-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.link-button:hover {
  background: var(--app-primary-soft);
  border-color: #b9d7df;
  color: var(--app-primary-hover);
  text-decoration: none;
}

.link-button:disabled {
  color: #9aa5b1;
  cursor: not-allowed;
  text-decoration: none;
}

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

.metric-card,
.work-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card span {
  color: var(--app-muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.metric-card strong {
  color: var(--app-text);
  display: block;
  font-size: 28px;
  letter-spacing: 0;
}

.metric-card.warning {
  border-color: #ecc96b;
}

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

.work-grid .wide {
  grid-column: 1 / -1;
}

.case-work-layout {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.case-work-pair {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-command-panel {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 18px;
}

.case-command-main,
.case-summary-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.case-command-main {
  align-content: start;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
}

.case-command-main strong {
  color: var(--app-text);
  display: block;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 6px;
}

.case-command-main span:not(.status-pill) {
  color: var(--app-muted);
  font-size: 13px;
}

.command-action-button {
  justify-self: start;
}

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

.case-summary-card {
  align-content: space-between;
  color: inherit;
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 120px;
  padding: 16px;
  text-decoration: none;
}

.case-summary-card:hover {
  border-color: #b8c7d9;
  color: inherit;
  transform: translateY(-1px);
}

.case-summary-card > span {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 750;
}

.case-summary-card strong {
  color: var(--app-text);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.case-summary-card .status-pill {
  justify-self: start;
}

.case-command-main .status-pill,
.case-summary-card .status-pill {
  width: auto;
}

.case-task-strip {
  align-items: center;
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}

.case-task-strip strong,
.case-task-strip span {
  display: block;
}

.case-task-strip strong {
  color: var(--app-text);
  font-size: 14px;
}

.case-task-strip span {
  color: var(--app-muted);
  font-size: 13px;
  margin-top: 3px;
}

.case-task-strip a {
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.case-task-list {
  margin-bottom: 12px;
}

.equal-scroll-panel {
  display: flex;
  flex-direction: column;
  height: 520px;
  min-height: 0;
}

.panel-scroll-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.signature-standalone-panel {
  max-width: none;
}

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

.detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  margin-bottom: 18px;
}

.work-panel {
  overflow: hidden;
  padding: 20px;
}

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

.panel-header h2 {
  font-size: 17px;
  font-weight: 850;
  margin: 0;
}

.panel-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.panel-action-group a {
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  color: var(--app-primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 10px;
  text-decoration: none;
}

.panel-action-group a:hover {
  background: var(--app-primary-soft);
  text-decoration: none;
}

.muted-action {
  color: #8a96a8;
  font-size: 12px;
  font-weight: 700;
}

.integration-strip {
  align-items: center;
  background: #f6fbfd;
  border: 1px solid #d5e9f2;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.integration-strip strong,
.integration-strip span {
  display: block;
}

.integration-strip strong {
  color: #172033;
  font-size: 13px;
}

.integration-strip span {
  color: #687587;
  font-size: 12px;
  margin-top: 2px;
}

.integration-strip a {
  color: #006b9f;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.file-reviewer-panel {
  min-height: 70vh;
}

.share-page {
  margin: -24px;
}

.share-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dde3ea;
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;
}

.share-topbar h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.share-main {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 20px;
}

.share-summary,
.share-memo-panel,
.share-file-panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.share-summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 28px;
}

.share-summary h2 {
  font-size: 24px;
  font-weight: 850;
  margin: 0 0 10px;
}

.share-summary p {
  color: #687587;
  margin: 8px 0 0;
}

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

.share-tags span,
.share-file-type {
  background: #eef5ff;
  border-radius: 6px;
  color: #2361b5;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.share-summary-actions {
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.share-file-panel {
  overflow: hidden;
}

.share-file-panel .panel-header {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
  border-bottom: 1px solid #dfe6ee;
  margin: 0;
  padding: 18px 20px;
}

.share-file-panel .panel-header h2 {
  align-items: center;
  color: #17202a;
  display: inline-flex;
  font-size: 18px;
  gap: 10px;
  line-height: 1.2;
}

.share-file-panel .panel-header h2::before {
  background: var(--app-primary);
  border-radius: 3px;
  content: "";
  display: inline-block;
  height: 18px;
  width: 4px;
}

.share-file-table {
  display: grid;
}

.share-file-row {
  align-items: center;
  border-top: 1px solid #e7ebf0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1.8fr) 120px 90px 100px 150px 140px;
  padding: 14px 18px;
}

.share-file-row > span:nth-child(2),
.share-file-row > span:nth-child(3),
.share-file-head span:nth-child(2),
.share-file-head span:nth-child(3) {
  justify-self: center;
  text-align: center;
}

.share-file-row:first-child {
  border-top: 0;
}

.share-file-head {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #344256;
  font-size: 12px;
  font-weight: 850;
  padding-bottom: 12px;
  padding-top: 12px;
}

.share-file-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.share-file-title strong {
  overflow-wrap: anywhere;
}

.share-file-row > .status-pill.tone-done,
.share-file-type {
  justify-content: center;
  min-width: 88px;
  text-align: center;
}

.file-reviewer-frame {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  height: 72vh;
  width: 100%;
}

.dicom-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.dicom-preview-grid figure {
  background: #f8fafc;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.dicom-preview-grid img {
  background: #111827;
  display: block;
  height: 160px;
  object-fit: contain;
  width: 100%;
}

.dicom-preview-grid figcaption {
  color: #45515f;
  font-size: 12px;
  overflow-wrap: anywhere;
  padding: 8px;
}

.file-reviewer-image-wrap {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 72vh;
  overflow: auto;
}

.file-reviewer-image-wrap img {
  height: auto;
  max-height: 72vh;
  max-width: 100%;
}

.file-reviewer-media {
  background: #0f172a;
  border-radius: 8px;
  max-height: 72vh;
  width: 100%;
}

.panel-count {
  color: #687587;
  font-size: 13px;
  font-weight: 800;
}

.app-table {
  margin-bottom: 0;
}

.app-table th {
  background: var(--app-surface-muted);
  border-bottom: 1px solid var(--app-border);
  color: #4b5b70;
  font-size: 13px;
  font-weight: 850;
  padding: 11px 12px;
  white-space: nowrap;
}

.app-table td {
  border-color: var(--app-border-soft);
  color: #263241;
  font-size: 14px;
  padding: 12px;
  vertical-align: middle;
}

.app-table tbody tr:hover {
  background: #f8fbfd;
}

.app-table td > a:not(.btn):not(.status-pill) {
  font-weight: 800;
}

.task-cell {
  max-width: 360px;
}

.task-table {
  min-width: 1120px;
}

.task-note-cell {
  max-width: 360px;
  white-space: normal;
}

.status-pill {
	background: #e9f4f7;
	border: 1px solid #c8e2e9;
	border-radius: 999px;
  color: #0f5d73;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
	white-space: nowrap;
}

button.status-pill {
	cursor: pointer;
}

button.status-pill:hover {
	filter: brightness(0.97);
}

.status-pill.tone-done {
	background: #eaf7ef;
	border-color: #bfe6ca;
  color: #247243;
}

.status-pill.tone-warning {
  background: #fff4db;
  border-color: #f2d48d;
  color: #8a5b12;
}

.status-pill.tone-neutral {
  background: #f1f3f5;
  border-color: #d7dde4;
  color: #4b5663;
}

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

.stack-item {
  align-items: center;
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px;
}

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

.stack-item strong {
  font-size: 14px;
}

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

.upload-form {
  border-top: 1px solid #e7ebf0;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.upload-form.wide {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.billing-list {
  margin-top: 12px;
}

.risk-summary {
	min-width: 0;
}

.risk-summary span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	white-space: normal;
}

.risk-review-list {
	display: grid;
	gap: 12px;
}

.risk-review-item {
	border: 1px solid #e7ebf0;
	border-radius: 8px;
	padding: 14px;
}

.risk-review-heading {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.risk-review-heading strong,
.risk-review-heading span {
	display: block;
}

.risk-review-heading span {
	color: #687587;
	font-size: 12px;
}

.risk-review-detail {
	display: grid;
	gap: 10px;
	margin: 0;
}

.risk-review-detail div {
	margin: 0;
}

.risk-review-detail dt {
	color: #45515f;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 4px;
}

.risk-review-detail dd {
	color: #202833;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.report-generate-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.report-generate-summary div,
.report-attachment-item {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  padding: 12px;
}

.report-generate-summary strong,
.report-generate-summary span {
  display: block;
}

.report-generate-summary span,
.report-attachment-meta {
  color: #687587;
  font-size: 12px;
  margin-top: 4px;
}

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

.report-output-options {
  border-bottom: 1px solid #e7ebf0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.report-attachment-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-attachment-heading .check-row {
  font-weight: 800;
  min-width: 0;
}

.report-attachment-heading .check-row span {
  overflow-wrap: anywhere;
}

.report-page-label {
  color: #45515f;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
}

.report-page-input {
  max-width: 240px;
}

.billing-modal-grid {
  gap: 0 14px;
}

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

.upload-form.wide .compact-row:first-child {
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 1fr));
}

.check-row {
  align-items: center;
  color: #4b5663;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
}

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

.action-item {
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.action-item:hover {
  border-color: #a8cfd8;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

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

.module-strip div {
  align-items: flex-start;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px;
}

.module-strip strong {
  font-size: 14px;
  line-height: 1.35;
}

.operations-board {
  margin-bottom: 18px;
}

.task-tabs {
  margin-bottom: 14px;
}

.task-tab-content {
  min-height: 360px;
}

.task-completed-row {
  background: #f8fafb;
}

.task-completed-row .strong-cell {
  color: #687587;
  text-decoration: line-through;
}

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

.calendar-day {
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  min-height: 220px;
  padding: 14px;
}

.calendar-day-header {
  align-items: baseline;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.calendar-day-header strong {
  font-size: 20px;
}

.calendar-day-header span {
  color: #687587;
  font-size: 13px;
  font-weight: 800;
}

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

.calendar-task {
  background: #f8fafb;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.calendar-task strong {
  font-size: 14px;
}

.calendar-task span:last-child,
.complete-task-title {
  color: #687587;
  font-size: 13px;
  margin: 0;
}

.workflow-panel {
  margin-bottom: 18px;
}

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

.workflow-step {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  min-height: 150px;
  padding: 12px;
}

.workflow-step strong {
  display: block;
  font-size: 15px;
  margin-top: 12px;
}

.workflow-step p {
  color: #687587;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.feature-overview {
  margin-bottom: 18px;
}

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

.feature-card {
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 16px;
}

.feature-card-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  margin: 6px 0 0;
}

.feature-card p {
  color: #4b5663;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.source-chip {
  color: #687587;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.capability-list span {
  background: #f3f6f8;
  border: 1px solid #e0e6ed;
  border-radius: 999px;
  color: #45515f;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

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

.quickwin-item {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  min-height: 190px;
  padding: 14px;
}

.quickwin-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.quickwin-item p,
.quickwin-item span {
  color: #687587;
  display: block;
  font-size: 13px;
  line-height: 1.5;
}

.quickwin-item p {
  margin-bottom: 12px;
}

.quickwin-item span {
  border-top: 1px solid #edf0f3;
  color: #3f6651;
  font-weight: 800;
  padding-top: 12px;
}

.definition-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.definition-list div {
  display: grid;
  gap: 10px;
  grid-template-columns: 92px 1fr;
}

.definition-list dt {
  color: #687587;
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  background: #f1f3f5;
  border-radius: 999px;
  color: #4b5663;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

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

.case-detail-timeline {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.timeline-item {
  border-left: 3px solid #62a87c;
  padding-left: 12px;
  overflow-wrap: anywhere;
}

.timeline-item span {
  color: #687587;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  color: #4b5663;
  margin: 0;
}

.strong-cell {
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.auth-panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, 0.08);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.auth-panel h1 {
  font-size: 28px;
  font-weight: 750;
  margin: 0 0 8px;
}

.auth-panel p {
  color: #687587;
}

.auth-form {
  margin-top: 18px;
}

.validation-summary ul {
  margin-bottom: 12px;
  padding-left: 18px;
}

.employee-form .form-label {
  color: #45515f;
  font-weight: 700;
}

.case-form .form-label {
  color: #45515f;
  font-weight: 700;
}

.rich-editor {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  overflow: hidden;
}

.rich-editor-toolbar {
  align-items: center;
  background: #f8fafb;
  border-bottom: 1px solid #e0e6ed;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.rich-editor-toolbar .form-select {
  width: auto;
}

.rich-color-input {
  flex: 0 0 42px;
  min-height: 31px;
  padding: 3px;
  width: 42px;
}

.rich-editor-surface {
  background: #ffffff;
  min-height: 220px;
  outline: 0;
  overflow-wrap: anywhere;
  padding: 12px;
}

.rich-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 140, 251, 0.18);
}

.rich-editor-surface table,
.rich-content-view table {
  border-collapse: collapse;
  margin: 8px 0;
  max-width: 100%;
  width: 100%;
}

.rich-editor-surface td,
.rich-editor-surface th,
.rich-content-view td,
.rich-content-view th {
  border: 1px solid #cfd8e3;
  min-width: 80px;
  padding: 8px;
}

.case-rich-content-grid {
  display: grid;
  gap: 14px;
}

.case-rich-content-grid h3 {
  color: #45515f;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}

.rich-content-view {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  color: #202833;
  line-height: 1.6;
  min-height: 120px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.rich-content-view p:last-child {
  margin-bottom: 0;
}

.case-memo-modal .modal-dialog {
  max-width: 770px;
}

.case-memo-modal .modal-content {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
}

.case-memo-modal .modal-header {
  border-bottom: 0;
  padding: 22px 24px 12px;
}

.case-memo-modal .modal-title {
  align-items: center;
  color: #17202a;
  display: inline-flex;
  font-size: 20px;
  font-weight: 850;
  gap: 10px;
  margin: 0;
}

.memo-title-icon {
  color: #009f7a;
  font-size: 18px;
  line-height: 1;
}

.case-memo-modal .modal-body {
  padding: 4px 24px 24px;
}

.case-memo-list {
  display: grid;
  gap: 12px;
  max-height: 452px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.case-memo-item {
  background: #f8fafc;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 14px 16px;
}

.case-memo-meta {
  border-bottom: 1px solid #dfe6ef;
  color: #52647a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.case-memo-content {
  border: 0;
  line-height: 1.6;
  min-height: 0;
  padding: 0;
}

.case-memo-compose {
  margin-top: 22px;
}

.case-memo-compose h3 {
  color: #202833;
  font-size: 15px;
  font-weight: 850;
  margin: 0 0 8px;
}

.case-memo-editor .rich-editor-toolbar {
  gap: 6px;
  padding: 10px;
}

.case-memo-editor .rich-editor-surface {
  min-height: 150px;
  position: relative;
}

.case-memo-surface:empty::before {
  color: #7b8794;
  content: attr(data-placeholder);
}

.case-memo-editor img,
.case-memo-content img {
  height: auto;
  max-width: 100%;
}

.case-memo-compose .modal-footer {
  border-top: 0;
  gap: 8px;
  padding: 12px 0 0;
}

.template-rich-editor {
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  min-height: 220px;
  outline: 0;
  overflow-wrap: anywhere;
  padding: 12px;
}

.template-rich-editor:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 140, 251, 0.18);
}

.template-table {
  min-width: 1040px;
}

.template-picker-filter {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 180px;
  margin-bottom: 12px;
}

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

.template-picker-item {
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  color: inherit;
  display: block;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.template-picker-item:hover {
  border-color: #a8cfd8;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08);
}

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

.template-picker-item span {
  color: #687587;
  font-size: 12px;
  margin-top: 4px;
}

.consultant-picker {
  display: flex;
  gap: 8px;
}

.consultant-picker .form-control {
  min-width: 0;
}

.consultant-picker .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.case-table {
  min-width: 1180px;
}

.case-search-form {
  border-bottom: 1px solid #e7ebf0;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.case-search-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.case-search-form .form-label {
  color: #45515f;
  font-size: 13px;
  font-weight: 800;
}

.case-search-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

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

.policy-search-form .form-label {
  color: #45515f;
  font-size: 13px;
  font-weight: 800;
}

.policy-search-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr) minmax(160px, 0.6fr);
}

.policy-search-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.policy-result-list {
  display: grid;
  gap: 12px;
}

.policy-result-item {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  padding: 14px;
}

.policy-result-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.policy-result-heading h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 10px 0 0;
}

.policy-meta-list {
  border-top: 1px solid #edf0f3;
  padding-top: 12px;
}

.policy-content-preview {
  color: #4b5663;
  display: -webkit-box;
  line-height: 1.65;
  margin: 12px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  white-space: pre-wrap;
}

.policy-link-item {
  align-items: flex-start;
}

.policy-reference-form .form-label {
  color: #45515f;
  font-size: 13px;
  font-weight: 800;
}

.policy-content-editor {
  font-family: "Malgun Gothic", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 360px;
  resize: vertical;
}

.policy-manage-table {
  min-width: 1120px;
}

.employee-list-panel {
  margin-bottom: 18px;
}

.employee-table {
  min-width: 1260px;
}

.employee-modal-search {
  margin-bottom: 12px;
}

.employee-picker-table {
  min-width: 720px;
}

.signature-table {
  min-width: 1160px;
}

.employee-form-panel {
  margin-bottom: 18px;
  max-width: none;
  width: 100%;
}

.case-form-panel {
  margin-bottom: 18px;
  max-width: none;
  width: 100%;
}

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

.form-section {
  border-bottom: 1px solid #e7ebf0;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 12px;
}

.form-section-heading {
  margin-bottom: 12px;
}

.form-section-heading h2 {
  font-size: 18px;
  font-weight: 750;
  margin: 0;
}

.form-section-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 10px;
}

.form-grid-full {
  grid-column: 1 / -1;
}

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

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions a:not(.btn):not(.status-pill) {
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  color: var(--app-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.row-actions a:not(.btn):not(.status-pill):hover {
  background: var(--app-primary-soft);
  border-color: #b9d7df;
}

.btn {
  border-radius: 7px;
  font-weight: 750;
  letter-spacing: 0;
  min-height: 38px;
}

.btn-sm {
  min-height: 32px;
}

.btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

.btn-outline-primary {
  border-color: #9dc7d1;
  color: var(--app-primary);
}

.btn-outline-primary:hover {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #ffffff;
}

.btn-outline-primary:focus {
  background: #ffffff;
  border-color: #9dc7d1;
  color: var(--app-primary);
}

.form-control,
.form-select {
  border-color: #cfd8e3;
  border-radius: 7px;
  min-height: 38px;
}

.date-picker-input {
  background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2345515f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
  padding-right: 42px;
}

.date-picker {
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  padding: 12px;
  position: absolute;
  z-index: 2000;
}

.date-picker-header,
.date-picker-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.date-picker-header {
  margin-bottom: 10px;
}

.date-picker-title {
  color: #17202a;
  font-size: 15px;
  font-weight: 850;
}

.date-picker-nav,
.date-picker-quick {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  color: #45515f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
}

.date-picker-nav {
  font-size: 20px;
  height: 32px;
  line-height: 1;
  width: 32px;
}

.date-picker-quick {
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

.date-picker-nav:hover,
.date-picker-quick:hover,
.date-picker-days button:hover {
  background: var(--app-primary-soft);
  border-color: #b9d7df;
  color: var(--app-primary-hover);
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
  color: #687587;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 5px;
  text-align: center;
}

.date-picker-days button,
.date-picker-empty {
  border-radius: 7px;
  height: 34px;
}

.date-picker-days button {
  background: #ffffff;
  border: 1px solid transparent;
  color: #263241;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.date-picker-days button.is-today {
  border-color: #9dc7d1;
  color: var(--app-primary);
}

.date-picker-days button.is-selected {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #ffffff;
}

.date-picker-days button:disabled {
  background: #f5f7f9;
  color: #b0bac5;
  cursor: not-allowed;
}

.date-picker-footer {
  border-top: 1px solid #e7ebf0;
  margin-top: 10px;
  padding-top: 10px;
}

.form-label {
  color: #45515f;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.row-actions form {
  margin: 0;
}

.subtle-text {
  color: #687587;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.access-panel {
  max-width: 620px;
}

.signature-form-panel {
  margin-bottom: 18px;
}

.mail-preview-panel {
  border-top: 1px solid #e7ebf0;
  margin-top: 8px;
  padding-top: 18px;
}

.mail-preview-frame {
  background: #f8fafb;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  overflow: hidden;
}

.mail-preview-meta {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e7ebf0;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.mail-preview-meta span,
.mail-preview-note {
  color: #687587;
  font-size: 12px;
}

.mail-preview-subject {
  background: #ffffff;
  border-bottom: 1px solid #e7ebf0;
  font-weight: 800;
  padding: 12px 14px;
}

.mail-preview-body {
  color: #263241;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mail-preview-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mail-preview-body dl div {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 1fr;
}

.mail-preview-body dt {
  color: #687587;
  font-weight: 800;
}

.mail-preview-body dd {
  margin: 0;
}

.mail-preview-consent {
  background: #ffffff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  line-height: 1.6;
  padding: 12px;
}

.mail-preview-button {
  align-self: start;
  background: #0d6efd;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.signature-share-box {
  display: grid;
  gap: 8px;
}

.signature-share-box label,
.signature-summary span {
  color: #687587;
  font-size: 13px;
  font-weight: 800;
}

.signature-share-box strong {
  border: 1px solid #f2d48d;
  border-radius: 8px;
  color: #8a5b12;
  display: block;
  font-size: 32px;
  letter-spacing: 4px;
  padding: 12px;
  text-align: center;
}

.signature-share-box span {
  color: #687587;
  font-size: 12px;
}

.hash-text {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.signature-public-shell {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
  padding: 26px 0;
}

.signature-public-panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, 0.08);
  max-width: 780px;
  padding: 24px;
  width: 100%;
}

.signature-step-card {
  background: #f8fafb;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.signature-step-card span {
  color: #006b8f;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signature-step-card strong {
  display: block;
  font-size: 18px;
  margin-top: 3px;
}

.signature-step-card p {
  color: #687587;
  margin: 5px 0 0;
}

.signature-public-heading h1 {
  font-size: 30px;
  font-weight: 750;
  margin: 0 0 8px;
}

.signature-public-heading p:last-child {
  color: #687587;
  margin-bottom: 18px;
}

.signature-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.signature-summary div {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  padding: 12px;
}

.signature-summary strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.signature-otp-form {
  display: grid;
  gap: 12px;
}

.signature-otp-input {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
}

.signature-consent-box {
  background: #ffffff;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 16px;
}

.signature-consent-box p {
  color: #4b5663;
  line-height: 1.6;
  margin: 8px 0 12px;
}

.signature-pad-wrap {
  border: 2px dashed #cbd5df;
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
}

.signature-pad-wrap canvas {
  background: #ffffff;
  display: block;
  height: 280px;
  width: 100%;
}

.signature-pad-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.signature-complete-message {
  border: 1px solid #bfe6ca;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

.signature-complete-message h2 {
  font-size: 22px;
  font-weight: 750;
}

.pending-message {
  color: #687587;
  font-weight: 700;
  margin: 24px 0 0;
}

.empty-cell,
.empty-note {
  color: #687587;
  font-weight: 700;
  text-align: center;
}

.empty-cell {
  padding: 28px !important;
}

.empty-note {
  margin: 14px 0;
}

.support-center-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-ticket-list {
  display: grid;
  gap: 16px;
}

.support-ticket {
  align-items: flex-start;
  border: 1px solid var(--app-border-soft);
  border-radius: var(--app-radius);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.support-ticket-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-ticket-title-row h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.support-ticket-meta,
.support-ticket-answer span {
  color: var(--app-subtle);
  font-size: 13px;
  margin: 6px 0 12px;
}

.support-ticket-body,
.support-ticket-answer {
  display: grid;
  gap: 6px;
}

.support-ticket-body strong,
.support-ticket-answer strong {
  color: var(--app-text);
  font-size: 14px;
}

.support-ticket-body p,
.support-ticket-answer p {
  margin: 0;
  white-space: pre-wrap;
}

.support-ticket-answer {
  background: var(--app-surface-muted);
  border-radius: var(--app-radius);
  margin-top: 16px;
  padding: 14px;
}

.support-ticket-actions {
  justify-content: flex-end;
  min-width: 128px;
}

.support-answer-subject {
  color: var(--app-muted);
  font-weight: 800;
  margin-bottom: 16px;
}

.company-logo-preview {
  max-width: 220px;
  max-height: 96px;
  object-fit: contain;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--app-border);
  bottom: 0;
  color: var(--app-subtle);
  font-size: 13px;
  line-height: 56px;
  min-height: 56px;
  position: absolute;
  width: 100%;
}

.muted-text {
  color: var(--app-subtle);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

@media (max-width: 960px) {
  .navbar-brand {
    min-width: 0;
  }

  .navbar-collapse {
    padding: 12px 0 4px;
  }

  .navbar-nav {
    gap: 4px;
  }

  .nav-link {
    background: var(--app-surface-muted);
  }

  .page-heading,
  .detail-grid {
    align-items: flex-start;
    display: grid;
    gap: 18px;
  }

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

  .workflow-panel {
    display: none;
  }

  .heading-actions {
    justify-content: flex-start;
    margin-top: 0;
    width: 100%;
  }

  .metric-grid,
  .work-grid,
  .case-command-panel,
  .case-command-grid,
  .case-work-pair,
  .signature-stack-list,
    .form-grid,
    .case-search-grid,
    .policy-search-grid,
    .policy-search-layout,
    .feature-grid,
    .task-calendar-grid,
    .support-ticket,
  .quickwin-grid,
  .workflow-steps,
  .signature-summary {
    grid-template-columns: 1fr;
  }

  .module-strip {
    grid-template-columns: 1fr;
  }

  .compact-row,
  .upload-form.wide .compact-row:first-child,
  .report-generate-summary {
    grid-template-columns: 1fr;
  }

  .template-picker-filter {
    grid-template-columns: 1fr;
  }

  .equal-scroll-panel {
    height: auto;
    max-height: none;
  }

  .panel-scroll-body {
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .app-shell {
    padding: 14px;
  }

  .page-heading {
    padding: 18px;
  }

  .page-heading h1 {
    font-size: 23px;
    line-height: 1.25;
  }

  .heading-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  .heading-actions .btn,
  .heading-actions button,
  .form-actions .btn,
  .case-search-actions .btn {
    flex: 1 1 140px;
  }

  .nav-auth {
    align-items: flex-start;
    display: grid;
    margin: 12px 0 0;
  }

  .metric-card,
  .work-panel {
    box-shadow: 0 8px 18px rgba(22, 34, 51, 0.06);
  }

  .work-panel {
    padding: 16px;
  }

  .panel-header,
  .risk-review-heading,
  .report-attachment-heading,
  .stack-item,
  .case-task-strip,
  .integration-strip {
    align-items: flex-start;
    display: grid;
    gap: 10px;
  }

  .panel-header {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .panel-action-group,
  .row-actions,
  .form-actions,
  .case-search-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .row-actions .btn,
  .row-actions a:not(.status-pill),
  .row-actions button {
    flex: 1 1 auto;
  }

  .definition-list div,
  .mail-preview-body dl div {
    grid-template-columns: 1fr;
  }

  .app-table th,
  .app-table td {
    font-size: 13px;
    padding: 10px;
  }

  .share-page {
    margin: -14px;
  }

  .share-main {
    padding: 24px 12px;
  }

  .share-summary {
    align-items: flex-start;
    display: grid;
    gap: 16px;
    padding: 20px;
  }

  .share-summary-actions {
    justify-content: flex-start;
  }

  .share-file-row {
    grid-template-columns: 1fr;
  }

  .share-file-head {
    display: none;
  }

  .case-memo-modal .modal-dialog {
    margin: 10px;
  }

  .case-memo-modal .modal-header,
  .case-memo-modal .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer {
    line-height: 1.4;
    padding: 14px;
    position: static;
  }

  body {
    margin-bottom: 0;
  }
}
