.ts {
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  background: var(--color-surface-soft);
  padding: 6px 10px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
}

.leg {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
}

.leg-sq {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.alert-list {
  display: flex;
  flex-direction: column;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

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

.alert-item:hover {
  background: var(--color-hover);
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.alert-dot.red { background: #000000; }
.alert-dot.amber { background: #4a4f5a; border: 1px solid #1f2430; }
.alert-dot.blue { background: #ffffff; border: 2px solid #1f2430; }

.alert-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.alert-sub {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.score-track,
.strk {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #e8edf3;
  overflow: hidden;
}

.score-fill,
.sfil {
  height: 100%;
  border-radius: var(--radius-pill);
}

.snum {
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  min-width: 26px;
  text-align: right;
}

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

.action-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  min-height: 82px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  background: var(--color-surface);
}

.action-tile:hover {
  border-color: var(--color-border-strong);
  background: var(--color-hover);
}

.action-tile.selected {
  border-color: var(--color-accent-900);
  background: #edf1f6;
}

.action-tile.is-disabled,
.action-tile:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  background: #f8fafc;
}

.action-tile.is-disabled:hover,
.action-tile:disabled:hover {
  border-color: var(--color-border);
  background: #f8fafc;
}

.action-tile .lbl {
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  line-height: 1.2;
}

.action-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  opacity: 0.78;
}

.action-tile.selected .action-icon {
  opacity: 1;
}

.action-tile .sub {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.scan-mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-10);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  margin-bottom: 10px;
}

.scan-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: var(--radius-8);
  padding: 0 12px;
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
}

.scan-mode-btn.active {
  color: #fff;
  background: var(--color-accent-900);
}

.scan-mode-pane {
  display: none;
}

.scan-mode-pane.active {
  display: block;
  animation: fadeUp 180ms var(--ease-enter) both;
}

.scan-summary-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-tertiary);
  background: var(--color-surface-soft);
}

.scan-operational-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-14);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scan-context-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--color-border);
}

.scan-context-cell:last-child {
  border-right: 0;
}

.scan-context-label {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  line-height: var(--lh-16);
}

.scan-context-cell strong {
  color: var(--color-text-primary);
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-tertiary);
}

.scan-confirm-row {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--color-border-tertiary);
  border-bottom: 1px solid var(--color-border-tertiary);
}

.scan-confirm-row:nth-child(2n),
.scan-confirm-row-wide {
  border-right: 0;
}

.scan-confirm-row-wide {
  grid-column: 1 / -1;
}

.scan-confirm-row span {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  line-height: var(--lh-16);
}

.scan-confirm-row strong {
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.scan-confirm-emphasis {
  color: var(--color-success-500) !important;
}

.action-pop-static {
  min-height: 36px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
  background: #fcfcfd;
  font-size: var(--fs-13);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.bulk-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: 12px;
  background: var(--color-surface-soft);
}

.bulk-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.85fr) minmax(170px, auto);
  gap: 12px;
  align-items: end;
}

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

.bulk-field .audit-setup-lbl {
  margin-bottom: 0;
}

.bulk-field select {
  min-height: 40px;
  height: 40px;
  border-radius: var(--radius-10);
  background-color: var(--color-surface);
}

.bulk-field select:focus {
  border-color: #d6dde8;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.05);
}

.bulk-qty-wrap {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  overflow: hidden;
  background: var(--color-surface);
}

.bulk-qty-btn {
  border: 0;
  background: transparent;
  min-height: 40px;
  font-size: 18px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.bulk-qty-btn:hover {
  background: var(--color-hover);
}

.bulk-qty-wrap input {
  border: 0;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  min-height: 40px;
  height: 40px;
  text-align: center;
  border-radius: 0;
  background: var(--color-surface);
  font-weight: var(--fw-600);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.bulk-qty-wrap input::-webkit-outer-spin-button,
.bulk-qty-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bulk-add-wrap {
  display: flex;
  align-self: end;
}

.bulk-add-wrap .btn {
  height: 40px;
  min-width: 170px;
  border-radius: var(--radius-10);
}

.bulk-stock-hint,
.bulk-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  padding: 8px 10px;
}

.bulk-stock-hint {
  font-weight: var(--fw-600);
}

.bulk-stock-hint.is-error,
.bulk-preview.is-error {
  border-color: rgba(185, 28, 28, 0.25);
  color: var(--color-danger-500);
  background: rgba(254, 242, 242, 0.72);
}

.qr-feedback,
.scan-item-validation {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.qr-feedback {
  margin-top: 10px;
  padding: 8px 10px;
}

.scan-item-validation {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  font-size: 11px;
}

.qr-feedback-ready,
.scan-item-validation-ready {
  border-color: rgba(22, 101, 52, 0.22);
  color: var(--color-success-500);
  background: rgba(240, 253, 244, 0.72);
}

.qr-feedback-warning,
.scan-item-validation-warning {
  border-color: rgba(180, 83, 9, 0.24);
  color: var(--color-warning-text);
  background: rgba(255, 251, 235, 0.78);
}

.qr-feedback-blocked,
.scan-item-validation-blocked {
  border-color: rgba(185, 28, 28, 0.25);
  color: var(--color-danger-500);
  background: rgba(254, 242, 242, 0.72);
}

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

.bulk-empty {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-10);
  padding: 12px;
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
  background: var(--color-surface-soft);
}

.bulk-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-subtle);
  display: grid;
  gap: 8px;
}

.bulk-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.bulk-item-name {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.bulk-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bulk-remove {
  border: 0;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bulk-remove:hover {
  color: var(--color-danger-text);
}

.bulk-item-meta {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}

.bulk-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bulk-mini-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-soft);
  border-radius: var(--radius-8);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.bulk-item-val {
  min-width: 30px;
  text-align: center;
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
}

.bulk-item-unit {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
}

.pindai-flow {
  grid-template-columns: 1fr;
  gap: 14px;
}

.audit-main,
.pindai-main,
.audit-flow,
.pindai-flow,
.audit-main > *,
.pindai-main > *,
.audit-flow > *,
.pindai-flow > *,
.audit-flow .card,
.pindai-flow .card {
  min-width: 0;
  max-width: 100%;
}

.audit-main > *,
.pindai-main > *,
.audit-flow,
.pindai-flow {
  width: 100%;
}

.pindai-flow .card {
  border-radius: var(--radius-14);
}

.pindai-flow .ch {
  min-height: 50px;
}

.project-main {
  gap: 14px;
}

.project-create-form,
.user-create-form {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
}

.project-create-form {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 160px auto;
}

.user-create-form {
  grid-template-columns: minmax(0, 1.1fr) 150px minmax(0, 1.2fr) minmax(0, 1fr) 150px auto;
}

.project-create-field,
.user-create-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.project-create-field input,
.project-create-field select,
.user-create-field input,
.user-create-field select {
  min-height: 36px;
  height: 36px;
  line-height: var(--lh-20);
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
  background-color: #fcfcfd;
  font-size: var(--fs-13);
  color: var(--color-text-primary);
}

.project-create-field input::placeholder,
.user-create-field input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.user-create-field select:required:invalid {
  color: var(--color-text-tertiary);
}

.user-create-field select option {
  color: var(--color-text-primary);
}

.project-create-actions,
.user-create-actions {
  display: flex;
  justify-content: flex-end;
}

.project-list-card {
  overflow: hidden;
}

.project-list {
  display: grid;
}

.project-list-item {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 118px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard);
}

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

.project-list-item:hover {
  background: var(--color-hover);
}

.project-list-item.is-active {
  background: var(--color-surface-soft);
}

.project-list-name {
  min-width: 0;
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-meta {
  min-width: 0;
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
}

.project-list-item .badge {
  justify-self: start;
}

.project-delete-btn {
  justify-self: end;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  cursor: pointer;
}

.project-delete-btn:hover {
  background: var(--color-hover);
  color: var(--color-text-primary);
}

.project-detail-panel {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

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

.project-detail-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.project-detail-lbl {
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  font-weight: var(--fw-600);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-detail-val {
  min-width: 0;
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-pic-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.project-pic-chip,
.project-pic-more,
.project-pic-empty {
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  font-weight: var(--fw-600);
}

.project-pic-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-pic-more,
.project-pic-empty {
  color: var(--color-text-tertiary);
}

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

.user-main {
  gap: 14px;
}

.user-list-card {
  overflow: hidden;
}

.user-list-tools {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.user-list-tools input {
  width: 100%;
  min-height: 36px;
  height: 36px;
  line-height: var(--lh-20);
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
  background-color: #fcfcfd;
  font-size: var(--fs-13);
  color: var(--color-text-primary);
}

.user-list-tools input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.user-list {
  display: grid;
}

.user-list-footer {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.user-list-item {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1.2fr) 130px 110px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard);
}

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

.user-list-item:hover {
  background: var(--color-hover);
}

.user-list-item.is-active {
  background: var(--color-surface-soft);
}

.user-list-name {
  min-width: 0;
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-list-email {
  min-width: 0;
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-list-item .badge {
  justify-self: start;
}

.user-list-main {
  display: contents;
}

.user-list-badges {
  display: contents;
}

.user-role-badge {
  background: #f5f6f8;
  color: #3a3f48;
  border: 1px solid #d7dae0;
}

.user-detail-panel {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: end;
  gap: 10px;
}

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

.user-detail-lbl {
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  font-weight: var(--fw-600);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.user-role-select {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  line-height: var(--lh-20);
}

.user-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.user-activity-card {
  overflow: hidden;
}

.user-activity-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 16px 10px;
}

.user-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.user-activity-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: -10px;
  width: 1px;
  background: var(--color-border);
}

.user-activity-item:last-child::before {
  display: none;
}

.user-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
}

.user-activity-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.user-activity-primary {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: var(--fs-13);
  line-height: var(--lh-20);
}

.user-activity-name {
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
}

.user-activity-action {
  color: var(--color-text-secondary);
}

.user-activity-time {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-tertiary);
}

.db2-main {
  gap: 14px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.db2-main .card {
  overflow: hidden;
  min-width: 0;
}

.db2-main .cb {
  min-width: 0;
}

.db2-main .ch {
  min-height: 52px;
  padding: 13px 16px;
}

.db2-main .cb {
  padding: 14px 16px;
}

.db2-filter-strip {
  display: none;
}

.db2-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.db2-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 188px;
  text-align: center;
  padding: 14px 10px 12px;
  border-radius: var(--radius-12);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}

.db2-kpi-label {
  width: 100%;
  font-size: var(--fs-12);
  line-height: var(--lh-16);
  font-weight: var(--fw-600);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.db2-kpi-gauge {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.db2-kpi-gauge svg {
  display: block;
  max-width: 128px;
  height: auto;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.db2-kpi-sub {
  width: 100%;
  margin-top: 8px;
  font-size: var(--fs-12);
  line-height: 1.35;
  color: var(--color-text-secondary);
  font-weight: var(--fw-500);
}

.db2-kpi:hover {
  border-color: var(--color-border-strong);
  background: #fbfcfd;
}

.db2-kpi.is-active {
  border-color: #1f2430;
  background: #fbfcfd;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.db2-alert-list {
  padding: 4px 0;
}

button.db2-alert-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  align-items: center;
  padding: 12px 16px;
}

.db2-alert-item .badge {
  margin-left: auto;
  align-self: center;
}

.db2-health-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db2-health-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.25fr) minmax(120px, 1fr) 56px 136px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 12px 14px;
  cursor: pointer;
}

.db2-health-row:hover {
  border-color: var(--color-border-strong);
  background: var(--color-hover);
}

.db2-health-name {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db2-health-score {
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.db2-health-row .score-track {
  width: 100%;
}

.db2-health-row .badge {
  min-width: 126px;
  justify-content: center;
  justify-self: end;
}

.db2-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.db2-project-chart-wrap {
  min-height: 0;
}

.db2-risk-chart-wrap {
  min-height: 0;
}

.db2-chart-filter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: auto;
}

.db2-chart-filter label {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  line-height: var(--lh-16);
}

.db2-chart-filter select {
  width: auto;
  min-width: 112px;
  max-width: 164px;
  height: 30px;
  padding: 0 var(--sp-12);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.db2-row-risk .db2-chart-wrap {
  min-height: 0;
}

.db2-row-core--single {
  display: block;
}

.db2-feed-head {
  align-items: center;
  gap: 12px;
}

.db2-feed-head span {
  flex-shrink: 0;
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  color: var(--color-text-tertiary);
  text-align: right;
}

.db2-feed-tools {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.db2-activity-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.db2-activity-chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  min-height: 20px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  line-height: var(--lh-16);
  color: var(--color-text-secondary);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  flex: 0 0 auto;
}

.db2-activity-chip:hover {
  background: var(--color-hover);
}

.db2-activity-chip.is-active {
  background: var(--color-surface-soft);
  border-color: #d5dce8;
  color: var(--color-text-primary);
}

.db2-activity-chip.good.is-active { border-color: #1f2430; }
.db2-activity-chip.warn.is-active { border-color: #1f2430; }
.db2-activity-chip.caution.is-active { border-color: #000000; border-width: 2px; padding: 0 5px; }
.db2-activity-chip.info.is-active { border-color: #1f2430; }

.db2-activity-chip-lbl {
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  white-space: nowrap;
}

.db2-activity-chip-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f1f4f8;
  color: var(--color-text-primary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  line-height: var(--lh-16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

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

.db2-summary-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
  padding: 14px 14px 12px;
}

.db2-summary-item.good { border-color: #d7dae0; }
.db2-summary-item.info { border-color: #d7dae0; }
.db2-summary-item.warn { border-color: #c9ccd3; }
.db2-summary-item.caution { border-color: #9aa1ac; }
.db2-summary-item.danger { border-color: #1f2430; border-width: 2px; }

.db2-summary-lbl {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.db2-summary-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.db2-summary-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db2-summary-icon-img {
  width: 12px;
  height: 12px;
}

.db2-summary-val {
  font-size: 24px;
  line-height: 1;
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.db2-summary-sub {
  margin-top: 3px;
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
}

.db2-feed-table td:nth-child(3),
.db2-audit-table td:nth-child(1) {
  white-space: nowrap;
}

.db2-feed-wrap,
.db2-audit-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.db2-feed-wrap {
  padding: 0;
}

.db2-feed-table {
  min-width: 1060px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.activity-table {
  min-width: 1130px;
}

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

.db2-feed-col-time {
  width: 140px;
}

.db2-feed-table th,
.db2-feed-table td {
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle;
}

/* Timestamp column: never truncate — rely on row-level horizontal scroll. */
.db2-feed-table th:first-child,
.db2-feed-table td:first-child {
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 140px;
}

.db2-feed-table th {
  padding: 12px 16px;
}

.db2-feed-table td {
  padding: 16px;
}

.db2-feed-table tbody tr {
  transition: background-color var(--motion-fast) var(--ease-standard);
}

.db2-feed-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.52);
}

.db2-feed-table tbody tr:hover td {
  background: var(--color-hover);
}

.db2-feed-table .badge {
  vertical-align: middle;
}

.db2-feed-table .badge-icon {
  width: var(--badge-icon-size);
  height: var(--badge-icon-size);
}

.db2-feed-action-badge {
  justify-content: flex-start;
  max-width: 100%;
}

.db2-feed-action-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db2-feed-table td:nth-child(2) {
  min-width: 0;
}

.db2-feed-table td:nth-child(3) {
  min-width: 0;
}

.db2-feed-table td:nth-child(4) {
  min-width: 0;
}

.db2-feed-table td:nth-child(5) {
  min-width: 0;
}

.activity-table td:nth-child(5) {
  min-width: 0;
}

.db2-feed-time,
.db2-feed-code,
.db2-feed-user {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  font-weight: var(--fw-400);
  line-height: var(--lh-20);
}

.db2-feed-code {
  margin-right: 4px;
}

.db2-feed-asset-name,
.db2-feed-table td:nth-child(4) {
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.db2-feed-user {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-table th,
.activity-table td {
  white-space: normal;
  overflow: visible !important;
  text-overflow: clip !important;
}

.activity-table th:first-child,
.activity-table td:first-child {
  white-space: nowrap;
}

.activity-table .db2-feed-action-title,
.activity-table .db2-feed-asset-name,
.activity-table .db2-feed-user {
  white-space: normal;
}

.db2-audit-table {
  min-width: 812px;
  table-layout: fixed;
}

.db2-audit-table th,
.db2-audit-table td {
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle;
  padding-left: 14px;
  padding-right: 14px;
}

.db2-audit-table td:nth-child(2),
.db2-audit-table td:nth-child(3),
.db2-audit-table td:nth-child(4),
.db2-audit-table td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}

.db2-audit-table td:first-child {
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.db2-audit-table th:nth-child(3),
.db2-audit-table th:nth-child(4),
.db2-audit-table th:nth-child(5),
.db2-audit-table td:nth-child(3),
.db2-audit-table td:nth-child(4),
.db2-audit-table td:nth-child(5) {
  text-align: center;
}

.db2-audit-table td:last-child {
  overflow: visible;
}

.db2-ops-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c9ccd3 transparent;
}

.db2-ops-list::-webkit-scrollbar {
  width: 8px;
}

.db2-ops-list::-webkit-scrollbar-track {
  background: transparent;
}

.db2-ops-list::-webkit-scrollbar-thumb {
  background: #c9ccd3;
  border-radius: 999px;
}

.db2-ops-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
  padding: 12px 14px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.db2-ops-row:hover {
  background: #fbfcfe;
  border-color: #d7deea;
  transform: translateY(-1px);
}

.db2-ops-main {
  min-width: 0;
}

.db2-ops-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.db2-ops-code {
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.db2-ops-name {
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.db2-ops-meta {
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.db2-ops-empty {
  min-height: 200px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-tertiary);
  background: var(--color-surface-soft);
  padding: 20px;
}

.db2-ops-more {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.db2-ops-more-link {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  background: var(--color-surface-soft);
  color: var(--color-text-primary);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  cursor: pointer;
}

.db2-ops-more-link:hover {
  background: var(--color-hover);
}

.trace-chart-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.trace-project-chart,
.trace-condition-chart {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.trace-project-chart,
.trace-condition-chart {
  /* Biarkan label rotated / value outside menonjol keluar bounding tanpa ke-clip. */
  overflow: visible;
}

/* Hilangkan default tap highlight (kotak abu/biru) di iOS / Android Chrome
   saat user tap chart. Active state bar (dark fill) JADI focus indikator,
   bukan default browser frame. Scope ketat ke chart, tidak global. */
.trace-chart-scroll,
.trace-chart-hit {
  -webkit-tap-highlight-color: transparent;
}

/* Hilangkan focus outline default di Group chart (yang tabIndex=0 untuk
   keyboard accessibility). Replacement focus indikator = active dark fill
   bar (lihat `CHART_ACTIVE_FILL` di dashboard-charts.tsx). */
.trace-chart-hit {
  outline: none;
}
.trace-chart-hit:focus,
.trace-chart-hit:focus-visible {
  outline: none;
}

/* Smooth fill transition saat active state berpindah dari satu bar ke bar lain.
   Fill di-set via `style={{ fill: barFill }}` di motion.rect supaya CSS
   transition apply (SVG attribute fill tidak konsisten di-transition CSS). */
.trace-chart-bar {
  transition: fill 180ms ease;
}

.trace-project-chart {
  min-width: 0;
}

.trace-chart-grid {
  /* Stroke softer pakai rgba — dominasi visual berkurang vs solid #e5e7eb. */
  stroke: rgba(15, 23, 42, 0.06);
  stroke-width: 1;
}

.trace-chart-axis-text {
  /* Tick angka — paling muted di hierarchy chart.
     - font-size 11px (turun dari 12) → kurangi dominasi visual
     - tabular-nums → angka align kolom rata (0/100/1000 sejajar)
     - letter-spacing tipis → ringan tapi tetap readable di small size
     - fill lebih lembut + opacity 0.85 → terasa "menyatu" dengan grid */
  fill: #98a0ad;
  font-size: 11px;
  font-weight: var(--fw-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* Tick angka di-host SVG yang punya `text-rendering` optimization — pastikan
   text rendering tetap geometric agar tidak shift saat resize. */
.trace-project-chart .trace-chart-axis-text,
.trace-condition-chart .trace-chart-axis-text {
  text-rendering: geometricPrecision;
}

.trace-chart-label {
  /* Label sumbu X (nama proyek) — sedikit lebih gelap dari tick, weight 500.
     Smooth transition saat berpindah ke active state. */
  fill: #6b7280;
  font-size: 12px;
  font-weight: var(--fw-500);
  transition: fill 180ms ease, font-weight 180ms ease;
}

/* Active label (project chart) — emphasis hanya saat bar aktif. */
.trace-chart-label.is-active {
  fill: #1f2430;
  font-weight: var(--fw-600);
}

.trace-chart-hit {
  cursor: pointer;
}

.trace-condition-label {
  /* Kategori (Rusak/Perbaikan/Hilang) di kiri condition chart.
     Default: muted secondary. Active state (lihat di bawah) override saat
     bar terkait sedang di-interact — bukan static index-0 lagi. */
  fill: #6b7280;
  font-size: 13px;
  font-weight: var(--fw-500);
  transition: fill 180ms ease, font-weight 180ms ease;
}

/* Active label (condition chart) — emphasis dinamis driven oleh interaksi.
   Menggantikan `.is-critical` yang hardcoded ke index 0. */
.trace-condition-label.is-active {
  fill: #1f2430;
  font-weight: var(--fw-600);
}

.trace-chart-value {
  /* Nilai di bar — weight turun dari 700 → 600 supaya tidak terlalu dominan. */
  font-size: 12px;
  font-weight: var(--fw-600);
}

.trace-chart-value-inside {
  fill: #ffffff;
}

.trace-chart-note {
  margin: -14px 0 0 116px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.camera-box {
  border-radius: var(--radius-10);
  overflow: hidden;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-box.scan-r43 {
  aspect-ratio: 4 / 3;
}

.camera-box.scan-r169 {
  aspect-ratio: 16 / 9;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-frame {
  width: 120px;
  height: 120px;
  position: relative;
}

.qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #c9d2df;
  border-style: solid;
}

.qr-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 3px 0 0 3px; }
.qr-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 3px 0 0; }
.qr-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 3px; }
.qr-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 3px 0; }

.asset-header {
  padding: 16px 16px 10px;
  border-bottom: none;
}

.asset-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.asset-code {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.asset-cover-wrap {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--color-border);
}

.asset-cover-btn {
  display: block;
  width: 100%;
  position: relative;
  border: 1px solid var(--color-border);
  border-top-color: transparent;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--color-surface-soft);
  cursor: zoom-in;
}

.asset-photo {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--color-surface-soft);
}

.asset-cover-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
}

.asset-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.asset-photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  border: none;
}

.asset-photo-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 36px);
  border-radius: var(--radius-14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0f172a;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.34);
}

.asset-photo-preview {
  display: block;
  width: 100%;
  max-height: calc(100vh - 36px);
  object-fit: contain;
}

.asset-photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.asset-note-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.asset-note-text {
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  white-space: pre-wrap;
}

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

.meta-cell {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.meta-cell:nth-child(even) {
  border-right: none;
}

.meta-lbl {
  font-size: var(--fs-11);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.meta-val {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.bulk-meta-health {
  display: grid;
  gap: 8px;
}

.bulk-meta-health-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bulk-meta-health-main strong {
  font-size: var(--fs-20);
  line-height: 1;
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
}

.bulk-meta-health-main span {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  line-height: 1.35;
  text-align: right;
}

.bulk-meta-health-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef0f4;
}

.bulk-meta-health-fill {
  height: 100%;
  border-radius: 999px;
  transition: width var(--motion-fast, 200ms) ease;
}

.bulk-meta-health-fill.is-green {
  background: #16a34a;
}

.bulk-meta-health-fill.is-yellow {
  background: #d97706;
}

.bulk-meta-health-fill.is-red {
  background: #b42318;
}

.bulk-meta-health.is-green strong {
  color: #15803d;
}

.bulk-meta-health.is-yellow strong {
  color: #b54708;
}

.bulk-meta-health.is-red strong {
  color: #b42318;
}

.asset-distribution-panel {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--color-border);
}

.asset-distribution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-distribution-title {
  color: var(--color-text-primary);
  font-size: var(--fs-16);
  font-weight: var(--fw-700);
  line-height: var(--lh-24);
}

.asset-distribution-subtitle {
  color: var(--color-text-tertiary);
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
  text-align: right;
}

.asset-distribution-chart-wrap {
  min-height: 0;
  margin-top: 12px;
}

.asset-distribution-warning {
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid #f0c36d;
  border-radius: var(--radius-10);
  background: #fff8e6;
  color: #8a5a00;
  font-size: var(--fs-12);
  line-height: var(--lh-18);
}

.asset-distribution-empty {
  padding: 14px 12px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-13);
  text-align: center;
}

/* === Timeline location filter chips (Phase 3) ===
   Chip filter di atas timeline aset bulk. Bahasa visual: pill rounded,
   monokrom; active state = filled dark untuk kontras tinggi. */
.bulk-timeline-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.bulk-timeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color var(--motion-fast, 160ms) ease,
    background-color var(--motion-fast, 160ms) ease,
    color var(--motion-fast, 160ms) ease;
}

.bulk-timeline-chip:hover {
  border-color: var(--color-border-strong, #c6cad0);
  color: var(--color-text-primary);
}

.bulk-timeline-chip:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.bulk-timeline-chip.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.bulk-timeline-chip-count {
  font-size: var(--fs-11);
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.bulk-timeline-chip.is-active .bulk-timeline-chip-count {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .asset-distribution-head {
    align-items: flex-start;
  }
  .asset-distribution-subtitle {
    max-width: 54%;
    font-size: var(--fs-12);
  }
  .bulk-meta-health-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .bulk-meta-health-main span {
    text-align: left;
  }
  .bulk-timeline-chip {
    padding: 5px 10px;
    font-size: var(--fs-11);
  }
}

.tl-wrap {
  padding: 12px 16px;
}

.tl-lbl {
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.tl-row {
  display: flex;
  gap: 10px;
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
}

.tl-dot.amber { background: #4a4f5a; border: 1px solid #1f2430; }
.tl-dot.red { background: #000000; }
.tl-dot.green { background: #ffffff; border: 2px solid #1f2430; }
.tl-dot.blue { background: #6b7280; border: 1px solid #1f2430; }

.tl-line {
  width: 1px;
  flex: 1;
  background: var(--color-border);
  min-height: 18px;
  margin: 2px 0;
}

.tl-content {
  padding-bottom: 14px;
  min-width: 0;
  flex: 1;
}

.tl-event-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tl-event {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
}

.tl-actor {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  text-align: right;
}

.tl-meta {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
}

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

.tl-audit-grid span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: var(--radius-8);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: var(--fs-11);
  line-height: 1.35;
}

.tl-audit-grid b {
  display: block;
  margin-bottom: 2px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-10);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-context {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.tl-note {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: var(--radius-8);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .tl-event-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .tl-actor {
    text-align: left;
  }

  .tl-audit-grid {
    grid-template-columns: 1fr;
  }
}

/* Aset page */
.aset-main {
  gap: 14px;
}

.asset-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.asset-global-search input {
  min-height: 36px;
  height: 36px;
}

.asset-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  min-height: 36px;
  line-height: var(--lh-20);
}

.asset-filter-toggle-icon {
  width: 16px;
  height: 16px;
}

.asset-filter-toggle[aria-expanded="true"] .asset-filter-toggle-icon {
  filter: brightness(0) invert(1);
}

.asset-filter-toggle[aria-expanded="true"] {
  background: var(--color-accent-900);
  color: #fff;
  border-color: var(--color-accent-900);
}

.aset-filters.report-asset-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: var(--radius-14);
  padding: 10px 12px;
}

.asset-table-card {
  border-radius: var(--radius-14);
}

.asset-table-head {
  align-items: center;
}

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

.asset-table-head-actions .btn {
  height: 32px;
}

.asset-table-card .tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.asset-table-card .tbl {
  table-layout: auto;
  min-width: 1360px;
}

.asset-table-card .asset-table-readonly {
  width: max(100%, 1070px);
  min-width: max(100%, 1070px);
  table-layout: fixed;
  background: var(--color-surface);
}

.asset-table-card .tbl th,
.asset-table-card .tbl td {
  padding: 11px 14px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
}

.asset-table-card .asset-table-readonly th,
.asset-table-card .asset-table-readonly td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.asset-table-card .asset-table-readonly th:last-child,
.asset-table-card .asset-table-readonly td:last-child {
  padding-right: 22px;
  text-align: right;
}

.asset-table-card .asset-table-readonly .asset-col-loc {
  min-width: 190px;
  padding-right: 22px;
}

.asset-table-card .tbl td:nth-child(2) {
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.asset-col-cat {
  font-size: var(--fs-12);
  font-weight: var(--fw-400);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
}

.asset-col-loc {
  font-size: var(--fs-12);
  font-weight: var(--fw-400);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
}

.asset-col-kind {
  min-width: 150px;
}

.asset-type-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  font-weight: var(--fw-700);
  margin-right: 7px;
}

.asset-type-pill.qr {
  color: var(--color-text-secondary);
  background: #eef2f7;
}

.asset-type-pill.bulk {
  color: #112033;
  background: #dfe7f3;
}

.asset-qty-text {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-18);
}

.asset-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  padding: 16px 12px;
}

.asset-table-footer {
  border-top: 1px solid var(--color-border-tertiary);
  border-bottom: 0;
}

.audit-table-footer,
.report-table-footer {
  padding-top: 10px;
  padding-bottom: 10px;
}

.asset-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.asset-page-indicator {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.asset-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-10);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}

.asset-page-btn:hover {
  background: var(--color-hover);
  border-color: #cfd6e1;
}

.asset-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.asset-page-btn:disabled:hover {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.asset-page-btn.is-active,
.asset-page-btn[aria-current="page"] {
  background: var(--color-accent-900);
  border-color: var(--color-accent-900);
  color: #fff;
}

.project-empty,
.user-empty {
  padding: 16px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-13);
}

.asset-row {
  cursor: pointer;
}

.asset-row td:nth-child(2),
#audit-result-body td:nth-child(2) {
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.asset-row td:nth-child(3),
.asset-row td:nth-child(5) {
  font-size: var(--fs-12);
  font-weight: var(--fw-400);
  line-height: var(--lh-20);
  color: var(--color-text-secondary);
}

.asset-row.selected td {
  background: #f4f7fc;
}

.asset-row:hover td {
  background: #f8fafd;
}

.asset-row.is-checked td {
  background: #eef0f3;
}

.asset-table-card .tbl th.asset-col-check,
.asset-table-card .tbl td.asset-col-check,
.asset-table-card .tbl th.asset-col-action,
.asset-table-card .tbl td.asset-col-action {
  text-align: center;
  width: 56px;
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: middle;
  overflow: visible;
}

.asset-check {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #1f2430;
  vertical-align: middle;
}

.asset-check:focus-visible {
  outline: 2px solid #1f2430;
  outline-offset: 2px;
}

.asset-row-trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #d7dae0;
  background: #ffffff;
  color: #4a4f5a;
  line-height: var(--lh-20);
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
  vertical-align: middle;
}

.asset-row-trash-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.asset-row-trash:hover {
  color: #ffffff;
  background: #1f2430;
  border-color: #1f2430;
}

.asset-row-trash:focus-visible {
  outline: 2px solid #1f2430;
  outline-offset: 2px;
}

.asset-bulk-delete-btn {
  border-color: #1f2430;
  color: #1f2430;
  font-weight: var(--fw-600);
}

.asset-bulk-delete-btn:hover {
  background: #1f2430;
  color: #ffffff;
}

.asset-head-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.asset-head-copy {
  min-width: 0;
  flex: 1;
}

.asset-score-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.asset-score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-score-text {
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
}

.asset-score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.asset-score-sub {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.asset-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-tertiary);
}

.asset-action-error {
  flex-basis: 100%;
  font-size: var(--fs-12);
}

.aset-detail-main {
  gap: 14px;
}

.asset-detail-page-card {
  border-radius: var(--radius-14);
}

.aset-create-main {
  gap: 14px;
}

.asset-create-card {
  border-radius: var(--radius-14);
}

.asset-create-card .ch {
  align-items: center;
}

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

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

.asset-create-field input:not([type="hidden"]):not(.asset-photo-file-input),
.asset-create-field select,
.asset-create-field textarea {
  width: 100%;
}

.asset-create-field textarea {
  min-height: 92px;
  resize: vertical;
}

.asset-create-field.full {
  grid-column: 1 / -1;
}

.asset-auto-code {
  min-height: 40px;
  border-radius: var(--radius-10);
  border: 1px solid var(--color-border);
  background: #f9fafc;
  color: var(--color-text-primary);
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.asset-auto-code-help {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.asset-cat-manager {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: #fbfcfe;
  padding: 12px;
  display: grid;
  gap: 9px;
}

.asset-cat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.asset-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 116px;
  overflow: auto;
  padding-right: 2px;
}

.asset-cat-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  min-height: 20px;
  padding: 2px 7px;
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  font-weight: var(--fw-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.asset-cat-chip.is-selected {
  border-color: #ccd4e2;
  background: #eef2f7;
}

.asset-cat-chip-main {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: var(--fw-500);
  cursor: pointer;
  line-height: inherit;
}

.asset-cat-chip-remove {
  border: 0;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  width: 12px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.asset-cat-chip-remove:hover,
.asset-cat-chip-remove:focus-visible {
  background: #f3f5f8;
}

.asset-cat-chip-remove:hover {
  color: var(--color-danger-500);
}

.asset-cat-selected {
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
  min-height: 18px;
}

.asset-photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.asset-photo-dropzone {
  border: 1px dashed #cfd6e2;
  border-radius: var(--radius-12);
  background: #fcfdff;
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.asset-photo-dropzone:hover,
.asset-photo-dropzone.is-dragover {
  border-color: #b8c3d3;
  background: #f7f9fd;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.03);
}

.asset-photo-dropzone:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.1);
  outline-offset: 3px;
}

.asset-photo-drop-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 1px;
}

.asset-photo-drop-icon .icon-img {
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.asset-photo-drop-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.asset-photo-drop-subtitle {
  font-size: var(--fs-13);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.asset-photo-drop-meta {
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.asset-photo-dropzone .btn {
  min-height: 36px;
  height: 36px;
  border-radius: var(--radius-10);
  min-width: 138px;
  padding: 0 14px;
  font-weight: var(--fw-600);
  font-size: var(--fs-13);
  background: #ffffff;
  border-color: #c3ccda;
}

.asset-photo-file-name {
  min-height: 20px;
  padding: 0 2px;
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-photo-preview-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  overflow: hidden;
  background: var(--color-surface-soft);
  margin-top: 10px;
  position: relative;
}

.asset-photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #2f3643;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.asset-photo-remove-btn:hover {
  background: #fff;
}

.asset-photo-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.asset-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 1199px) {
  .asset-query-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.scan-auto-note {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
}

.scan-auto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f2430;
  box-shadow: 0 0 0 4px rgba(31, 36, 48, 0.1);
}

.scan-auto-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.scan-auto-hint {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}

.audit-baseline-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.audit-bulk-breakdown-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
}

.audit-bulk-breakdown-table {
  min-width: 620px;
  table-layout: fixed;
}

.audit-bulk-breakdown-table th,
.audit-bulk-breakdown-table td {
  padding: 9px 10px;
  font-size: var(--fs-12);
  text-align: right;
  white-space: nowrap;
}

.audit-bulk-breakdown-table th:first-child,
.audit-bulk-breakdown-table td:first-child {
  text-align: left;
  width: 34%;
}

.audit-bulk-breakdown-table td:last-child {
  text-align: center;
}

.audit-setup-form {
  display: grid;
  gap: 10px;
}

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

.audit-setup-lbl {
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  color: var(--color-text-secondary);
}

.audit-setup-field input,
.audit-setup-field select {
  min-height: 36px;
  height: 36px;
  line-height: var(--lh-20);
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
  background-color: #fcfcfd;
  font-size: var(--fs-13);
  color: var(--color-text-primary);
}

.audit-setup-field input:focus,
.audit-setup-field select:focus {
  border-color: #d6dde8;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.05);
}

.audit-baseline-tbl {
  table-layout: auto;
  min-width: 560px;
}

.audit-baseline-tbl th,
.audit-baseline-tbl td {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.audit-baseline-tbl td:nth-child(2) {
  min-width: 180px;
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: var(--lh-20);
}

.audit-baseline-tbl td:last-child {
  text-align: left;
}

.audit-baseline-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.audit-flow {
  grid-template-columns: 1fr;
}

.audit-stat-grid,
.audit-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.audit-stat,
.audit-report-stat {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  background: var(--color-surface);
  box-shadow: var(--shadow-subtle);
}

.audit-stat span,
.audit-report-stat span {
  display: block;
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  letter-spacing: 0.03em;
  line-height: var(--lh-16);
  text-transform: uppercase;
}

.audit-stat strong,
.audit-report-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--color-text-primary);
  font-size: 28px;
  font-weight: var(--fw-700);
  line-height: 1;
}

.audit-mobile-actions {
  display: none;
}

.audit-scope-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  background: var(--color-surface);
}

.audit-scope-strip div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.audit-scope-strip span,
.audit-scope-strip small,
.audit-rbac-note {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  line-height: var(--lh-16);
}

.audit-scope-strip span {
  font-weight: var(--fw-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.audit-scope-strip strong {
  color: var(--color-text-primary);
  font-size: var(--fs-14);
  line-height: var(--lh-20);
}

.audit-history-body {
  padding: 0;
}

.audit-history-table-wrap {
  border: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.audit-history-table {
  min-width: 860px;
  table-layout: auto;
}

.audit-history-table th,
.audit-history-table td {
  overflow: visible;
  text-overflow: clip;
}

.audit-history-table th:nth-child(1),
.audit-history-table td:nth-child(1) {
  min-width: 180px;
}

.audit-history-table th:nth-child(2),
.audit-history-table td:nth-child(2) {
  min-width: 120px;
}

.audit-history-table th:nth-child(3),
.audit-history-table td:nth-child(3) {
  min-width: 150px;
}

.audit-history-table th:nth-child(4),
.audit-history-table td:nth-child(4) {
  min-width: 130px;
}

.audit-history-table th:nth-child(5),
.audit-history-table td:nth-child(5) {
  min-width: 220px;
}

.audit-history-table th:nth-child(6),
.audit-history-table td:nth-child(6) {
  min-width: 96px;
}

.audit-history-table-scoped {
  min-width: 720px;
}

.audit-auditor-cell {
  display: inline-block;
  max-width: 260px;
  color: var(--color-text-primary);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  line-height: var(--lh-20);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.audit-history-table-scoped th:nth-child(3),
.audit-history-table-scoped td:nth-child(3) {
  min-width: 280px;
}

.audit-history-table-scoped th:nth-child(4),
.audit-history-table-scoped td:nth-child(4) {
  min-width: 220px;
}

.audit-history-table-scoped th:nth-child(5),
.audit-history-table-scoped td:nth-child(5) {
  min-width: 132px;
  text-align: center;
}

.audit-history-action-cell {
  text-align: center;
}

.audit-document-icon-btn {
  display: inline-flex;
  width: 38px;
  justify-content: center;
  padding-inline: 0;
  margin-inline: auto;
}

.audit-history-result {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
}

.audit-process-shell,
.audit-report-flow {
  display: grid;
  gap: 16px;
}

.audit-create-form {
  max-width: 640px;
  display: grid;
  gap: 14px;
}

.audit-auto-start {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  background: var(--color-surface);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.audit-auto-start span {
  display: block;
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.audit-auto-start h1 {
  margin: 4px 0;
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1.2;
}

.audit-auto-start p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-13);
}

.audit-auto-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent-900);
  border-radius: 999px;
  animation: audit-spin 0.8s linear infinite;
}

@keyframes audit-spin {
  to {
    transform: rotate(360deg);
  }
}

.audit-process-grid {
  align-items: start;
}

.audit-process-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.audit-progress-card .cb {
  display: grid;
  gap: 12px;
}

.audit-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.audit-progress-top strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  line-height: 1;
}

.audit-progress-top span,
.audit-report-notes {
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.audit-progress-label {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.audit-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

.audit-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent-900);
  transition: width var(--motion-base) var(--ease-standard);
}

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

.audit-stat {
  box-shadow: none;
  background: var(--color-surface-soft);
}

.audit-stat-good strong,
.audit-report-stat-good strong {
  color: var(--color-success-text);
}

.audit-stat-warn strong,
.audit-report-stat-warn strong {
  color: var(--color-warning-text);
}

.audit-stat-info strong,
.audit-report-stat-info strong {
  color: var(--color-info-text);
}

.audit-scan-body {
  display: grid;
  gap: 12px;
}

.audit-feedback {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-10);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.audit-feedback-good {
  color: var(--color-success-text);
  background: var(--color-success-bg);
  border-color: var(--color-border);
}

.audit-feedback-warn {
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border-color: var(--color-border);
}

.audit-feedback-info {
  color: var(--color-info-text);
  background: var(--color-info-bg);
  border-color: var(--color-border);
}

.audit-summary-row {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
}

.audit-bulk-input-list,
.audit-scan-list,
.audit-baseline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audit-bulk-input-list {
  display: grid;
  gap: 8px;
}

.audit-bulk-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
}

.audit-bulk-input-row > span:first-child,
.audit-scan-list li > span,
.audit-baseline-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--color-text-primary);
}

.audit-bulk-input-row code,
.audit-scan-list code,
.audit-baseline-list code {
  font-size: var(--fs-12);
}

.audit-bulk-input-row strong,
.audit-scan-list small,
.audit-baseline-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-bulk-input-row small,
.audit-baseline-copy small {
  color: var(--color-text-secondary);
  font-size: var(--fs-11);
}

.audit-bulk-input-control {
  display: grid;
  gap: 4px;
}

.audit-bulk-input-control input {
  text-align: right;
}

.audit-bulk-input-control small {
  text-align: right;
}

.audit-bulk-input-control small.ok {
  color: var(--color-success-text);
}

.audit-bulk-input-control small.warn {
  color: var(--color-warning-text);
}

.audit-scan-list li,
.audit-baseline-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
}

.audit-scan-list li:first-child,
.audit-baseline-list li:first-child {
  border-top: 0;
}

.audit-scan-list li.is-ready,
.audit-baseline-list li.is-done {
  border-color: var(--color-border);
  background: var(--color-success-bg);
}

.audit-scan-list li.is-extra {
  border-color: var(--color-border);
  background: var(--color-info-bg);
}

.audit-scan-list li.is-warning,
.audit-baseline-list li.is-remaining {
  border-color: var(--color-border);
  background: var(--color-warning-bg);
}

.audit-baseline-drawer-handle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
}

.audit-drawer-backdrop,
.audit-drawer-cta {
  display: none;
}

.audit-baseline-drawer-handle span:first-child {
  display: grid;
  gap: 2px;
}

.audit-baseline-drawer-handle small {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
}

.audit-baseline-drawer-body {
  max-height: 520px;
  overflow: auto;
}

.audit-baseline-list li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  color: var(--color-text-primary);
}

.audit-baseline-kind {
  min-width: 44px;
  padding: 3px 6px;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  text-align: center;
  font-size: 10px;
  font-weight: var(--fw-700);
}

.audit-baseline-list li.is-done .audit-baseline-kind {
  border-color: var(--color-border-strong);
  color: var(--color-success-text);
  background: var(--color-surface);
}

.audit-baseline-list li.is-remaining .audit-baseline-kind {
  border-color: var(--color-border-strong);
  color: var(--color-warning-text);
  background: var(--color-surface);
}

.audit-report-preview {
  display: grid;
  gap: 14px;
}

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

.audit-report-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  background: var(--color-success-bg);
}

.audit-report-success > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success-500);
  color: var(--color-surface);
  font-weight: var(--fw-700);
}

.audit-report-success p {
  margin: 2px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
}

.audit-document-card {
  max-width: 760px;
}

.audit-document-body {
  display: grid;
  gap: 16px;
}

.audit-document-body p {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-13);
  line-height: var(--lh-20);
}

.audit-document-actions,
.audit-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-document-actions {
  justify-content: flex-start;
}

.audit-status-actions {
  justify-content: flex-end;
}

.audit-status-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.audit-status-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
}

.audit-status-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.audit-status-dialog h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--fs-18);
  line-height: var(--lh-24);
}

.audit-status-dialog p {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-13);
  line-height: var(--lh-20);
}

.audit-status-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-700);
}

.audit-status-dialog-success .audit-status-icon {
  color: var(--color-success-text);
  background: var(--color-success-bg);
}

.audit-status-dialog-error .audit-status-icon {
  color: var(--color-danger-text);
  background: var(--color-danger-bg);
}

.audit-status-actions {
  grid-column: 1 / -1;
}

.audit-report-stats {
  margin-top: 12px;
}

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

.audit-result-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  background: var(--color-surface-soft);
}

.audit-result-group > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.audit-result-group > div span {
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
}

.audit-result-group ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.audit-result-group li,
.audit-result-group p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-12);
}

.audit-result-group li {
  padding: 3px 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-surface);
}

.audit-main .step-bar,
.pindai-main .step-bar {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.audit-main .tbl-wrap,
.pindai-main .tbl-wrap,
.audit-baseline-wrap {
  max-width: 100%;
}

@media (max-width: 767px) {
  .audit-main,
  .pindai-main {
    overflow-x: hidden;
  }

  .audit-main .step-bar,
  .pindai-main .step-bar {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .audit-main .step,
  .pindai-main .step {
    flex: 0 0 88px;
  }

  .audit-main .step-conn,
  .pindai-main .step-conn {
    flex: 0 0 14px;
  }

  .audit-main .ch,
  .pindai-main .ch,
  .audit-main .scan-summary-row,
  .pindai-main .scan-summary-row {
    flex-wrap: wrap;
  }

  .scan-operational-context {
    grid-template-columns: 1fr;
  }

  .scan-context-cell {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 14px;
  }

  .scan-context-cell:last-child {
    border-bottom: 0;
  }

  .scan-confirm-grid {
    grid-template-columns: 1fr;
  }

  .scan-confirm-row {
    border-right: 0;
    padding: 11px 14px;
  }

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

  .audit-stat-grid,
  .audit-report-stats,
  .audit-report-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-document-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .audit-document-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .audit-process-grid {
    grid-template-columns: 1fr;
  }

  .audit-auto-start-main {
    min-height: 100dvh;
    display: grid;
    place-items: center;
  }

  .audit-auto-start {
    width: 100%;
    min-height: 220px;
  }

  .audit-detail-main.audit-detail-open {
    min-height: 100dvh;
    padding: 0 !important;
    overflow: hidden;
    background: #020408;
    color: #fff;
  }

  .audit-detail-main.audit-detail-open:has(.audit-process-shell[data-scan-mode="bulk"]) {
    overflow: auto;
    background: var(--color-app-bg);
    color: var(--color-text-primary);
  }

  .audit-detail-main.audit-detail-open > .ph {
    display: none;
  }

  .audit-detail-main.audit-detail-open .audit-process-shell,
  .audit-detail-main.audit-detail-open .audit-process-grid,
  .audit-detail-main.audit-detail-open .audit-process-column {
    display: contents;
  }

  .audit-detail-main.audit-detail-open .audit-progress-card,
  .audit-detail-main.audit-detail-open .audit-scanned-card,
  .audit-detail-main.audit-detail-open .audit-report-preview-card,
  .audit-detail-main.audit-detail-open .audit-summary-row {
    display: none;
  }

  .audit-detail-main.audit-detail-open .audit-scan-card {
    position: fixed;
    inset: 0;
    z-index: 45;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #020408;
    color: #fff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .audit-scan-card {
    inset: calc(82px + env(safe-area-inset-top, 0px)) 14px 0;
    min-height: auto;
    border: 1px solid var(--color-border);
    border-radius: 22px 22px 0 0;
    background: var(--color-surface);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-subtle);
  }

  .audit-detail-main.audit-detail-open .audit-scan-card > .ch {
    display: none;
  }

  .audit-detail-main.audit-detail-open .audit-scan-card > .cb {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: calc(92px + env(safe-area-inset-top, 0px)) 20px 150px !important;
    background: transparent;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .audit-scan-card
    > .cb {
    padding: 22px 16px 158px !important;
    background: var(--color-surface);
    overflow-y: auto;
  }

  .audit-detail-main.audit-detail-open .scan-mode-tabs {
    width: 100%;
    max-width: 520px;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .audit-detail-main.audit-detail-open .scan-mode-btn {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    font-weight: 800;
  }

  .audit-detail-main.audit-detail-open .scan-mode-btn.active {
    background: #fff;
    color: var(--color-accent-950);
    box-shadow: none;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .scan-mode-tabs {
    border-color: var(--color-border);
    background: var(--color-surface-soft);
    backdrop-filter: none;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .scan-mode-btn {
    color: var(--color-text-secondary);
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .scan-mode-btn.active {
    background: var(--color-accent-900);
    color: #fff;
  }

  .audit-detail-main.audit-detail-open .scan-mode-pane.active {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .audit-bulk-input-list {
    padding-top: 16px;
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .audit-bulk-input-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: var(--color-surface-soft);
  }

  .audit-detail-main.audit-detail-open
    .audit-process-shell[data-scan-mode="bulk"]
    .audit-bulk-input-control
    input {
    min-height: 52px;
    font-size: 16px;
  }

  .audit-detail-main.audit-detail-open .audit-baseline-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: 24vh;
    display: flex;
    flex-direction: column;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 24px 24px 0 0;
    box-shadow:
      0 -8px 24px rgba(15, 23, 42, 0.08),
      0 -1px 2px rgba(15, 23, 42, 0.04);
    transition: max-height 0.25s ease;
  }

  .audit-detail-main.audit-detail-open .audit-baseline-drawer.is-expanded {
    max-height: min(68vh, calc(100dvh - 120px));
  }

  .audit-detail-main.audit-detail-open .audit-baseline-drawer-handle {
    position: relative;
    padding: 16px 16px 10px;
    background: transparent;
  }

  .audit-detail-main.audit-detail-open .audit-baseline-drawer-handle::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border-strong);
    transform: translateX(-50%);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-drawer-body {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-soft);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-list li {
    margin: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-10);
    color: var(--color-text-primary);
    background: var(--color-surface);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-copy,
  .audit-detail-main.audit-detail-open .audit-baseline-list code,
  .audit-detail-main.audit-detail-open .audit-baseline-copy strong {
    color: var(--color-text-primary);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-copy small {
    color: var(--color-text-secondary);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-list li.is-remaining {
    background: var(--color-warning-bg);
  }

  .audit-detail-main.audit-detail-open .audit-baseline-list li.is-done {
    background: var(--color-success-bg);
  }

  .audit-detail-main.audit-detail-open .audit-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.32);
    cursor: pointer;
  }

  .audit-detail-main.audit-detail-open .audit-drawer-cta {
    display: grid;
    gap: 8px;
    padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .audit-detail-main.audit-detail-open .audit-drawer-cta .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-size: 15px;
  }

  .shell:has(.audit-detail-main.audit-detail-open) .mbn {
    display: none;
  }

  .audit-mobile-actions {
    display: block;
  }

  .audit-mobile-actions .btn {
    width: 100%;
  }

  .audit-scope-strip {
    padding: 12px 14px;
  }

  .audit-progress-top,
  .audit-submit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-submit-actions .btn {
    width: 100%;
  }

  .audit-bulk-input-row,
  .audit-scan-list li {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .audit-scan-list li .badge,
  .audit-scan-list li .btn {
    justify-self: start;
  }

  .audit-baseline-drawer-body {
    max-height: 420px;
  }

  .project-list-item {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .project-delete-btn {
    justify-self: start;
    margin-top: 4px;
  }

  .project-create-form,
  .user-create-form {
    grid-template-columns: 1fr;
  }

  .project-create-actions,
  .project-create-actions .btn,
  .user-create-actions,
  .user-create-actions .btn {
    width: 100%;
  }

  .project-list-name {
    white-space: normal;
  }

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

  .project-detail-val {
    white-space: normal;
  }

  .project-detail-actions,
  .project-detail-actions .btn {
    width: 100%;
  }

  .user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .user-list-name,
  .user-list-email {
    white-space: normal;
  }

  .user-list-main {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .user-list-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 45%;
  }

  .user-list-badges .badge {
    min-width: 0;
    justify-self: auto;
    max-width: 100%;
  }

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

  .user-detail-actions,
  .user-detail-actions .btn {
    width: 100%;
  }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
}

.rg-cell {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface);
}

.rg-lbl {
  font-size: var(--fs-11);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.rg-val {
  font-size: 34px;
  line-height: 1;
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.rg-good { color: #1f2430; font-weight: var(--fw-600); }
.rg-bad { color: #000000; font-weight: var(--fw-700); }
.rg-info { color: #6b7280; font-weight: var(--fw-500); }

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

.report-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  line-height: var(--lh-20);
}

.report-filter-toggle-icon {
  width: 16px;
  height: 16px;
}

.report-filter-toggle[aria-expanded="true"] .report-filter-toggle-icon {
  filter: brightness(0) invert(1);
}

.report-filter-toggle[aria-expanded="true"] {
  background: var(--color-accent-900);
  color: #fff;
  border-color: var(--color-accent-900);
}

.report-filter-summary {
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
}

.report-filter-panel {
  overflow: hidden;
}

.report-filter-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.report-filter-row:last-of-type {
  border-bottom: none;
}

.report-filter-row .field-lbl {
  display: block;
}

.report-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 14px;
  background: var(--color-surface-soft);
  border-top: 1px solid var(--color-border);
}

.mv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 28px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.mv-row:last-child {
  border-bottom: none;
}

.mv-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mv-code {
  font-size: var(--fs-11);
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-name {
  font-size: var(--fs-12);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
}

.mv-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-accent-900);
}

.mv-count {
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  text-align: right;
  color: var(--color-text-primary);
}

.table-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  padding: 16px 12px;
}

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

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

  .action-tile {
    min-width: 0;
    min-height: 74px;
    padding: 9px 6px;
  }

  .action-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
  }

  .action-tile .lbl {
    font-size: var(--fs-12);
  }

  .action-tile .sub {
    font-size: 10px;
    line-height: 1.2;
  }

  .scan-mode-tabs {
    width: 100%;
  }

  .scan-mode-btn {
    flex: 1;
  }

  .scan-summary-row {
    padding: 10px 12px;
    gap: 6px;
  }

  .bulk-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bulk-form {
    padding: 10px;
  }

  .bulk-add-wrap .btn {
    width: 100%;
    min-width: 0;
  }

  .bulk-item {
    padding: 10px;
  }

  .scan-auto-actions {
    flex-direction: column;
  }

  .scan-auto-actions .btn {
    width: 100%;
  }

  .result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .rg-cell {
    padding: 8px 10px;
    border-radius: var(--radius-8);
  }

  .rg-lbl {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .rg-val {
    font-size: 24px;
  }

  .fbar {
    align-items: stretch;
  }

  .fsep {
    width: 100%;
    height: 1px;
  }

  .audit-baseline-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .mv-row {
    grid-template-columns: minmax(0, 1fr) 72px 26px;
    gap: 8px;
    padding: 9px 12px;
  }
}

@media (max-width: 480px) {
  .action-grid {
    gap: 6px;
  }

  .action-tile {
    min-height: 70px;
    padding: 8px 6px;
  }

  .scan-code {
    min-width: 112px;
  }

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

  .rg-val {
    font-size: 22px;
  }

  .report-filter-summary {
    font-size: var(--fs-11);
  }
}

/* Laporan per proyek */
.report-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

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

.report-filter-grid .report-filter-row {
  padding: 14px 16px;
  border-bottom: none;
}

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

.report-audit-history-table {
  min-width: 530px;
  table-layout: fixed;
}

.report-audit-history-table th:nth-child(2),
.report-audit-history-table th:nth-child(3),
.report-audit-history-table th:nth-child(4),
.report-audit-history-table td:nth-child(2),
.report-audit-history-table td:nth-child(3),
.report-audit-history-table td:nth-child(4) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.report-audit-history-table th:nth-child(5),
.report-audit-history-table td:nth-child(5) {
  text-align: center;
}

.report-audit-history-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.audit-detail-row td {
  padding: 0;
  background: var(--color-surface-soft);
}

.tbl tbody tr.audit-detail-row:hover td {
  background: var(--color-surface-soft);
}

.audit-detail-popdown {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--color-border);
}

.audit-detail-col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  overflow: hidden;
}

.audit-detail-col.is-missing {
  border-color: #1f2430;
}

.audit-detail-col.is-extra {
  border-color: #c9ccd3;
}

.audit-detail-head {
  padding: 10px 12px;
  font-size: var(--fs-11);
  font-weight: var(--fw-600);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
}

.audit-detail-col.is-missing .audit-detail-head {
  background: #e6e7ea;
  color: #000000;
  border-bottom-color: #1f2430;
  font-weight: var(--fw-700);
}

.audit-detail-col.is-extra .audit-detail-head {
  background: #ededef;
  color: #1f2430;
  border-bottom-color: #c9ccd3;
}

.audit-detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  max-height: 210px;
  overflow: auto;
}

.audit-detail-item {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-surface);
}

.audit-detail-item-name {
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
}

.audit-detail-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-tertiary);
}

.audit-detail-diff {
  font-weight: var(--fw-600);
  font-variant-numeric: tabular-nums;
}

.audit-detail-diff.missing {
  color: var(--color-danger-700);
}

.audit-detail-diff.extra {
  color: var(--color-text-primary);
}

.audit-item-empty {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  padding: 10px;
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-tertiary);
}

.report-asset-tools {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.report-filter-field {
  min-width: 0;
}

.report-filter-field.is-search {
  position: relative;
}

.report-filter-field.is-search::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.8px solid #97a0ad;
  border-radius: 50%;
  transform: translateY(-56%);
  pointer-events: none;
}

.report-filter-field.is-search::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 56%;
  width: 6px;
  height: 1.8px;
  background: #97a0ad;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.report-filter-field.is-search input {
  padding-left: 30px;
}

.report-asset-table {
  table-layout: fixed;
  min-width: 920px;
}

.report-asset-col-code {
  width: 13%;
}

.report-asset-col-name {
  width: 25%;
}

.report-asset-col-category {
  width: 11%;
}

.report-asset-col-quantity {
  width: 7%;
}

.report-asset-col-status {
  width: 18%;
}

.report-asset-col-location {
  width: 15%;
}

.report-asset-col-event {
  width: 11%;
}

.report-asset-table th {
  padding: 9px 8px;
}

.report-asset-table td {
  padding: 11px 8px;
  vertical-align: middle;
}

.report-asset-table th:nth-child(4),
.report-asset-table td:nth-child(4),
.report-asset-table th:nth-child(5),
.report-asset-table td:nth-child(5),
.report-asset-table th:nth-child(7),
.report-asset-table td:nth-child(7) {
  text-align: center;
}

.report-asset-table th:nth-child(5),
.report-asset-table td:nth-child(5) {
  min-width: 150px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.report-asset-table td:nth-child(5) .badge {
  margin-inline: auto;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  padding-inline: 9px;
  white-space: normal;
  overflow: visible;
  text-align: center;
}

.report-asset-table .badge {
  vertical-align: middle;
  flex-shrink: 0;
}

.report-asset-table td:nth-child(3),
.report-asset-table td:nth-child(6) {
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  font-weight: var(--fw-400);
  color: var(--color-text-secondary);
}

.report-asset-row {
  cursor: pointer;
}

.report-asset-row:hover td {
  background: var(--color-hover);
}

.asset-code-muted {
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  font-weight: var(--fw-400);
  color: var(--color-text-tertiary);
}

.asset-name-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asset-name-primary {
  font-size: var(--fs-13);
  line-height: var(--lh-20);
  font-weight: var(--fw-500);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-last-event-date {
  font-size: var(--fs-12);
  line-height: var(--lh-20);
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

.report-bottom-grid {
  align-items: stretch;
}

/* ===== Progressive disclosure (Laporan) ===== */
.report-collapse {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  min-width: 0;
}

.report-collapse-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: 12px 16px;
  user-select: none;
  transition: background-color var(--motion-fast) var(--ease-standard);
}

.report-collapse-summary::-webkit-details-marker {
  display: none;
}

.report-collapse-summary:hover {
  background: var(--color-hover);
}

.report-collapse-title {
  font-size: var(--fs-14);
  line-height: var(--lh-20);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.report-collapse-meta {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-11);
  line-height: var(--lh-16);
  color: var(--color-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-collapse-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  color: var(--color-text-secondary);
  line-height: 1;
  transition: transform var(--motion-base) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}

.report-collapse[open] > .report-collapse-summary {
  border-bottom: 1px solid var(--color-border);
}

.report-collapse[open] > .report-collapse-summary .report-collapse-icon {
  transform: rotate(45deg);
  background: var(--color-surface-soft);
}

.report-collapse-body {
  padding: 12px;
  background: var(--color-surface-soft);
}

.report-collapse-body > .card {
  box-shadow: none;
}

.report-collapse-body > .g3 {
  min-width: 0;
}

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

.movement-metric {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.movement-lbl {
  font-size: var(--fs-11);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.movement-val {
  font-size: 24px;
  line-height: 1;
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

@media (max-width: 1023px) {
  .report-filter-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

@media (max-width: 767px) {
  .asset-query-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .aset-filters.report-asset-tools {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .aset-filters .report-filter-field input,
  .aset-filters .report-filter-field select {
    min-height: 34px;
    height: 34px;
  }

  .asset-table-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .asset-table-head-actions {
    width: 100%;
  }

  .asset-table-head-actions .btn {
    flex: 1;
  }

  .asset-header {
    padding: 12px;
  }

  .asset-head-row {
    gap: 8px;
  }

  .asset-cover-wrap {
    padding: 0 12px 12px;
  }

  .asset-photo {
    height: 180px;
  }

  .asset-photo-modal {
    padding: 10px;
  }

  .asset-photo-dialog,
  .asset-photo-preview {
    max-height: calc(100vh - 20px);
  }

  .asset-table-card .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .asset-action-row .btn {
    flex: 1;
  }

  .asset-create-grid {
    grid-template-columns: 1fr;
  }

  .asset-create-actions {
    flex-direction: column;
  }

  .asset-create-actions .btn {
    width: 100%;
  }

  .asset-cat-input-row {
    grid-template-columns: minmax(0, 1fr) 126px;
  }

  .asset-cat-input-row .btn,
  .asset-photo-dropzone .btn {
    width: auto;
  }

  .asset-photo-dropzone {
    padding: 14px 12px;
  }

  .asset-photo-drop-title {
    font-size: var(--fs-14);
  }

  .asset-photo-drop-subtitle {
    font-size: var(--fs-12);
  }

  .asset-photo-drop-meta {
    font-size: var(--fs-11);
  }

  .report-toolbar {
    gap: 8px;
  }

  .report-filter-summary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .report-filter-panel .report-filter-row {
    padding: 12px;
  }

  .report-filter-panel .report-filter-actions {
    padding: 10px 12px 12px;
  }

  .report-asset-tools {
    grid-template-columns: 1fr;
  }

  .movement-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .asset-query-row {
    grid-template-columns: 1fr;
  }

  .asset-filter-toggle {
    width: 100%;
    justify-content: center;
  }

  .report-custom-range-grid {
    grid-template-columns: 1fr;
  }

  .movement-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .db2-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .db2-health-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 1fr) 44px 124px;
  }

  .db2-chart-wrap,
  .db2-project-chart-wrap,
  .db2-risk-chart-wrap {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .db2-main .g2 {
    grid-template-columns: 1fr;
  }

  .db2-feed-head {
    align-items: center;
  }

  .db2-activity-filters {
    width: 100%;
  }

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

  .db2-kpi {
    min-height: 176px;
    padding: 12px 8px;
  }

  .db2-kpi-gauge svg {
    max-width: 112px;
  }

  .db2-health-row {
    grid-template-columns: minmax(0, 1fr) minmax(78px, 1fr) 38px 114px;
    gap: 6px;
    padding: 9px 10px;
  }

  .db2-health-name {
    font-size: var(--fs-12);
  }

  .db2-chart-wrap,
  .db2-project-chart-wrap,
  .db2-risk-chart-wrap,
  .db2-row-risk .db2-chart-wrap {
    min-height: 0;
  }
}

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

  .db2-kpi {
    min-height: 170px;
  }

  .db2-kpi-gauge svg {
    max-width: 104px;
  }

  .db2-health-row {
    grid-template-columns: minmax(0, 1fr) 64px auto;
    grid-template-areas:
      "name score badge"
      "track track track";
    row-gap: 6px;
  }

  .db2-health-name {
    grid-area: name;
  }

  .db2-health-row .score-track {
    grid-area: track;
  }

  .db2-health-score {
    grid-area: score;
  }

  .db2-health-row .badge {
    grid-area: badge;
    justify-self: end;
    min-width: 0;
  }

  .db2-activity-chip {
    width: auto;
    justify-content: flex-start;
  }
}

/* ===== D3 Charts ===== */
.d3-card {
  min-width: 0;
}

.d3-card .cb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.d3-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
}

.d3-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.d3-legend-sq {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-sizing: border-box;
}

.d3-chart {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 180px;
}

.d3-chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.d3-chart--spaced {
  margin-top: 10px;
}

.d3-chart svg text {
  font-family: var(--font-sans);
}

.d3-chart svg .domain {
  stroke: #cfd4dd;
}

.d3-empty {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: var(--fs-12);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-10);
  background: var(--color-surface-soft);
}

.d3-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  background: #1f2430;
  color: #f4f6fa;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: var(--fs-12);
  line-height: 1.35;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
  max-width: min(320px, calc(100vw - 24px));
  top: 0;
  left: 0;
}

.d3-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.d3-tip-title {
  font-weight: var(--fw-600);
  margin-bottom: 8px;
  color: #ffffff;
}

.d3-tip-row {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  gap: 8px;
  color: #dfe3ea;
}

.trace-chart-tooltip-row + .trace-chart-tooltip-row {
  margin-top: 5px;
}

.trace-chart-tooltip-label {
  color: #aeb6c2;
  font-weight: var(--fw-500);
}

.trace-chart-tooltip-value {
  color: #f8fafc;
  font-weight: var(--fw-600);
  min-width: 0;
}

.trace-chart-tooltip-row.is-emphasis .trace-chart-tooltip-value {
  font-size: var(--fs-13);
}

.trace-chart-tooltip-row.is-warning {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(248, 113, 113, 0.36);
}

.trace-chart-tooltip-row.is-warning .trace-chart-tooltip-label,
.trace-chart-tooltip-row.is-warning .trace-chart-tooltip-value {
  color: #fecaca;
}

.d3-tip-sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  box-sizing: border-box;
}
.login-page {
  min-height: 100vh;
  background: var(--color-app-bg);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 420px);
  background: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-subtle);
  padding: 28px;
}

/* Brand zone: logo image dipusatkan, dipisah dari form section dengan
   thin divider line di bawahnya. Konsisten dengan design system (token
   `--color-border` untuk garis halus, `--radius-` untuk shape image). */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.login-logo-img {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  /* Logo PNG asli punya whitespace padding bawaan ~25-30%. Ukuran 72px
     menampilkan mark efektif ~50px — proporsional untuk anchor visual
     pada login panel ≤ 420px wide. */
}

/* Legacy text-mark rules — dipertahankan supaya kalau ada page lain yang
   pakai class ini tidak rusak, tapi sudah tidak digunakan oleh login. */
.login-logo {
  font-size: 20px;
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.login-sub {
  margin-top: 4px;
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
}

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

.login-copy h1 {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: var(--fw-600);
  color: var(--color-text-primary);
}

.login-copy p {
  margin: 6px 0 0;
  font-size: var(--fs-13);
  color: var(--color-text-secondary);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--color-text-tertiary);
  font-size: var(--fs-11);
  font-weight: var(--fw-500);
  line-height: 1;
  text-transform: lowercase;
}

.login-powered-by-logo {
  width: 92px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.72;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-10);
  background: var(--color-surface);
  padding: 0 12px;
  font-size: var(--fs-13);
  color: var(--color-text-primary);
}

.login-field input:focus {
  outline: none;
  border-color: var(--color-accent-900);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap input {
  padding-right: 46px;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  background: var(--color-surface-soft);
}

.login-password-toggle:focus-visible {
  outline: 2px solid var(--color-accent-900);
  outline-offset: 2px;
}

.login-password-toggle img {
  width: 18px;
  height: 18px;
  display: block;
}

.login-error {
  border: 1px solid rgba(196, 107, 107, 0.24);
  border-radius: var(--radius-10);
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  padding: 10px 12px;
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
}

.login-submit {
  width: 100%;
  height: 40px;
  margin-top: 2px;
}
