:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #6b7280;
  --primary: #1f4fd6;
  --primary-dark: #173ca4;
  --border: #e5e7eb;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button span {
  font-size: 18px;
}

.icon-button .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 999px;
}

.notification-wrapper {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 20;
  display: none;
}

.notification-panel.visible {
  display: block;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.notification-action {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 6px;
}

.notification-list {
  max-height: 260px;
  overflow: auto;
}

.notification-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: rgba(31, 79, 214, 0.08);
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notification-message {
  color: var(--text);
}

.notification-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.notification-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
}

.user-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

main {
  flex: 1;
  padding: 28px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card + .card {
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

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

input,
select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  resize: vertical;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(31, 79, 214, 0.2);
  border-color: var(--primary);
}

textarea:focus {
  outline: 2px solid rgba(31, 79, 214, 0.2);
  border-color: var(--primary);
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-review-wrap {
  display: inline-flex;
}

.submit-review-wrap[title] {
  cursor: not-allowed;
}

.submit-review-wrap .btn:disabled {
  pointer-events: none;
}

.btn.secondary {
  background: #e2e8f0;
  color: var(--text);
}

.btn.secondary:hover {
  background: #cbd5f5;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

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

.dashboard-overview-copy {
  min-width: 0;
}

.dashboard-overview-copy h2 {
  margin: 0 0 6px;
}

.dashboard-overview-copy .muted {
  margin: 0;
}

.dashboard-control-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(170px, 0.8fr) minmax(190px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.dashboard-search {
  min-width: 0;
}

.dashboard-select {
  min-width: 0;
}

.dashboard-overview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  flex-wrap: wrap;
}

.dashboard-meta-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
}

.dashboard-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d7e4ff;
  white-space: nowrap;
}

.dashboard-stat-pill + .dashboard-stat-pill::before {
  content: "•";
  margin-right: 6px;
  color: #94a3b8;
}

.dashboard-demo-link {
  margin-left: auto;
  white-space: nowrap;
}

.dashboard-stat-pill strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.dashboard-create-case-btn {
  margin-left: auto;
}

.form-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.form-header h2 {
  margin: 0 0 6px;
}

.form-header .muted {
  margin: 0;
}

.form-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section h3 {
  margin: 0;
}

.form-section .grid {
  align-items: start;
}

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

.numbered-field {
  max-width: 720px;
}

.option-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.option-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.option-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.option-item input {
  width: auto;
  margin: 0;
}

.nested-field-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.conditional-fieldset.is-disabled {
  opacity: 0.55;
}

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

.page-actions {
  display: flex;
  justify-content: flex-end;
}

.field-cell .field-edit {
  width: 100%;
  margin-top: 4px;
}


.tab-list {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f1f5f9;
  min-width: 260px;
}

.tab-button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.active {
  background: var(--primary);
  color: #fff;
}

.sed-section-tabs-wrap {
  margin-bottom: 16px;
}

.sed-section-tabs {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.sed-section-panel {
  display: block;
}

.sed-section-panel[hidden] {
  display: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.table-action-cell {
  white-space: nowrap;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 12px;
}

.status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status.pending {
  background: #fff4e5;
  color: var(--warning);
}

.status.sending {
  background: #e0f2fe;
  color: #0369a1;
}

.status.sent {
  background: #e8f5e9;
  color: #15803d;
}

.status.accepted {
  background: #ede9fe;
  color: #6d28d9;
}

.status.active {
  background: #e0f2f1;
  color: var(--success);
}

.status.closed {
  background: #fdecea;
  color: var(--danger);
}

.status.rejected {
  background: #fdecea;
  color: var(--danger);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

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

.login-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.login-header {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #eaeef4;
}

.login-header .brand {
  gap: 0;
}

.login-header .brand h1 {
  font-size: 18px;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 520px;
  min-height: calc(100vh - 152px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: 100%;
  margin: 0;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.login-panel-head {
  margin-bottom: 28px;
}

.login-panel-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.login-form-grid {
  gap: 18px;
}

.login-form-grid .input-group {
  min-width: 0;
}

.login-form-grid .btn {
  width: 100%;
}

.login-primary,
.login-secondary {
  margin-top: 2px;
}

.login-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
}

.login-secondary:hover {
  background: #f8fafc;
}

.login-help {
  min-height: 20px;
  margin: 0;
}

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

footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: var(--card);
  font-size: 12px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
}

.badge.complete {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

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

.timeline-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.medben-search-group {
  min-width: min(360px, 100%);
  flex: 1 1 360px;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.pagination-info,
.pagination-page {
  font-size: 13px;
}

.sbuc-timeline {
  margin-top: 16px;
}

.sbuc-timeline-header {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sbuc-timeline-empty {
  padding: 8px 0;
}

.sed-timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  position: relative;
  padding: 12px 0 4px;
}

.sed-timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  height: 2px;
  background: #d7deea;
}

.sed-timeline-card {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sed-timeline-time {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.sed-timeline-node-wrap {
  position: relative;
  display: block;
  height: 28px;
}

.sed-timeline-node {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 4px solid #dbe7ff;
  background: var(--primary);
  box-shadow: 0 0 0 4px #fff;
}

.sed-timeline-card.query .sed-timeline-node {
  background: #f59e0b;
  border-color: #fde7b0;
}

.sed-timeline-content {
  display: block;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  width: min(180px, 100%);
  min-height: 62px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sed-timeline-card:hover .sed-timeline-content {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sed-timeline-card.active .sed-timeline-content {
  border-color: var(--primary);
  background: rgba(31, 79, 214, 0.05);
}

.sed-timeline-card.active .sed-timeline-node {
  border-color: #bcd1ff;
  transform: translateX(-50%) scale(1.08);
}

.sed-timeline-code {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sed-timeline-name {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.query-box {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  white-space: pre-wrap;
}

.detail-group {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.detail-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.sed-meta-strip {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
}

.sed-meta-comment {
  margin-top: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sed-version-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
}

.sed-version-record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sed-version-record {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sed-version-record:hover,
.sed-version-record.selected {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.sed-version-record-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sed-version-record-title {
  font-size: 15px;
  font-weight: 700;
}

.sed-version-record-description {
  font-size: 13px;
  color: var(--muted);
}

.sed-version-actions {
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sed-version-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.sed-version-title-row h3 {
  margin: 0 0 4px;
}

.sed-version-title-row .muted {
  margin: 0;
}

.sed-version-field-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.sed-version-warning {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.sed-version-select {
  min-width: 180px;
}

.xml-preview {
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.required-marker {
  margin-left: 4px;
  color: #dc2626;
  font-weight: 700;
}

.ack-meta-strip {
  border-color: #dbe7ff;
  background: #f8fbff;
}

.sed-document {
  display: grid;
  gap: 18px;
}

.sed-review-helper {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe7ff;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.sed-review-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.sed-review-step {
  min-height: 96px;
}

.sed-review-step.locked {
  border-style: dashed;
}

.sed-review-step-index {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.sed-document-card {
  overflow: hidden;
}

.doc-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}

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

.doc-section h4 {
  margin: 0;
  font-size: 15px;
}

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

.doc-subsection h5 {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

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

.doc-group-grid-single {
  grid-template-columns: 1fr;
}

.doc-group-card {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.doc-group-card h5 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}

.doc-required-star {
  color: #dc2626;
  font-weight: 700;
}

.doc-validation-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.doc-validation-summary strong {
  display: block;
  margin-bottom: 6px;
}

.doc-validation-summary ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.doc-validation-summary.is-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.doc-validation-summary.is-complete {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.doc-field-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.doc-field-row:first-child {
  border-top: none;
  padding-top: 0;
}

.doc-field-row-missing {
  border-top-color: #fecaca;
}

.doc-field-row-changed {
  border-top-color: #fca5a5;
  background: #fef2f2;
  box-shadow: inset 4px 0 0 #dc2626;
  border-radius: 8px;
  padding: 12px 10px;
}

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

.doc-field-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.doc-field-value-changed {
  color: #991b1b;
}

.doc-field-previous {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #b91c1c;
}

.doc-field-value-missing {
  color: #b91c1c;
}

.doc-field-input {
  width: 100%;
  min-width: 0;
  font-size: 14px;
}

.doc-field-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.step-card:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.step-card:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.step-card.complete {
  border-color: #16a34a;
  background: #ecfdf5;
}

.step-card.active {
  border-color: var(--primary);
  background: #eef2ff;
}

.step-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

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

.step-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: var(--text);
  font-size: 13px;
  min-height: 46px;
}

.step-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.attachments-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.attachments-no-file-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.attachments-no-file-toggle input {
  width: auto;
}

.btn-link {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.btn-link:hover {
  text-decoration: underline;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.complete {
  background: #dcfce7;
  color: #166534;
}

.text-right {
  text-align: right;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .login-container {
    min-height: auto;
  }

  .login-panel {
    padding: 24px;
  }

  .dashboard-control-row {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-list {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
  }

  .sed-timeline-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sed-timeline-track::before {
    left: 22px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .sed-timeline-time {
    margin-bottom: 8px;
    margin-left: 46px;
    width: calc(100% - 46px);
    text-align: left;
  }

  .sed-timeline-node-wrap {
    position: absolute;
    left: 13px;
    top: 30px;
    width: 18px;
    height: calc(100% - 30px);
  }

  .sed-timeline-node {
    left: 50%;
    top: 0;
  }

  .sed-timeline-content {
    margin-top: 0;
    margin-left: 46px;
    width: calc(100% - 46px);
  }

  .doc-field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .doc-group-grid {
    grid-template-columns: 1fr;
  }
}
