:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --blue: #1f6feb;
  --navy: #102a43;
  --teal: #0f766e;
  --green: #15803d;
  --red: #b42318;
  --gold: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

html.app-loading .app-shell {
  opacity: 0;
  visibility: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 16px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-lockup .eyebrow {
  color: var(--blue);
  font-size: 13px;
}

.brand-side-title {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 360px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.language-switch {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.language-switch span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.language-switch select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  min-height: 36px;
  padding: 6px 28px 6px 10px;
}

.cw-mark {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: block;
  height: 58px;
  object-fit: contain;
  padding: 4px;
  width: 58px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
}

.hero-band {
  align-items: center;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

.hero-band h2 {
  font-size: 22px;
  line-height: 1.35;
}

.hero-band p {
  color: #dbeafe;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 720px;
}

.mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 240px;
}

.mode-pills span,
.status-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.status-badge.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: var(--green);
}

.trust-mark {
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  line-height: 1.2;
  margin: 2px 8px 2px 0;
  padding: 6px 10px 6px 7px;
  vertical-align: middle;
}

.trust-icon {
  display: block;
  fill: currentColor;
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.verified-mark {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
}

.suspended-mark {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.neutral-mark {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
}

.trust-date {
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: middle;
}

#ownerValue {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wallet-inline {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.wallet-inline code {
  overflow-wrap: anywhere;
}

.wallet-address-action {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}

.wallet-address-action code {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.wallet-lookup-btn {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  color: #1d4ed8;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}

.wallet-lookup-btn:hover,
.wallet-lookup-btn:focus-visible {
  background: #dbeafe;
  border-color: #60a5fa;
}

.wallet-public-title {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  line-height: 1.2;
  max-width: min(100%, 280px);
  overflow: hidden;
  padding: 6px 9px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.wallet-public-title-label {
  background: #2563eb;
  border-radius: 999px;
  color: #fff;
  display: inline;
  flex: 0 0 auto;
  font-size: 10px;
  margin: 0;
  padding: 2px 5px;
}

.info-block .trust-mark,
.tx-box .trust-mark,
dl .trust-mark {
  align-items: center;
  color: inherit;
  display: inline-flex;
  flex-wrap: nowrap;
  margin-bottom: 2px;
  white-space: nowrap;
}

.info-block .verified-mark,
.tx-box .verified-mark,
dl .verified-mark {
  color: #14532d;
}

.info-block .suspended-mark,
.tx-box .suspended-mark,
dl .suspended-mark {
  color: #991b1b;
}

.info-block .neutral-mark,
.tx-box .neutral-mark,
dl .neutral-mark {
  color: #475569;
}

.info-block .trust-mark > span,
.tx-box .trust-mark > span,
dl .trust-mark > span {
  color: inherit;
  display: inline;
  font-size: inherit;
  margin: 0;
  white-space: nowrap;
}

.info-block .wallet-public-title,
.tx-box .wallet-public-title,
dl .wallet-public-title {
  color: #1e3a8a;
  display: inline-flex;
  margin: 2px 0;
}

.info-block .wallet-public-title-label,
.tx-box .wallet-public-title-label,
dl .wallet-public-title-label {
  color: #fff;
  display: inline;
  margin: 0;
}

.task-switcher {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  width: 100%;
}

.task-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  min-height: 42px;
  padding: 6px 10px;
  text-align: center;
}

.task-chip.active {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.18);
}

.task-chip strong {
  color: var(--navy);
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.task-chip small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.25;
  margin-top: 2px;
}

.workflow-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px;
}

.workflow-bar p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.workflow-actions {
  display: flex;
  gap: 8px;
}

.workflow-bar.initial-step .workflow-actions {
  display: none;
}

.workflow-bar:not(.initial-step) #workflowBackBtn,
.workflow-bar:not(.initial-step) #workflowNextBtn,
#workflowHomeBtn {
  display: none;
}

.workflow-bar.package-download .workflow-actions {
  display: none;
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  min-width: 0;
}

.workspace.single-panel {
  grid-template-columns: 1fr;
}

.workspace.no-controls {
  grid-template-columns: 1fr;
}

.workspace:not(.package-download) .package-only {
  display: none !important;
}

.workspace.result-only {
  grid-template-columns: 1fr !important;
}

.workspace.result-only .results-panel {
  width: 100%;
}

.workspace.single-panel .controls-panel {
  max-width: none;
  width: 100%;
}

.workspace.input-step {
  grid-template-columns: 1fr;
}

.workspace.wallet-gate {
  grid-template-columns: 1fr;
}

.workspace.input-step .controls-panel {
  max-width: none;
  width: 100%;
}

.workspace.wallet-gate .controls-panel {
  max-width: none;
  width: 100%;
}

.workspace.wallet-gate .results-panel {
  display: none;
}

.workspace.input-step .results-panel {
  display: none;
}

.identity-workspace {
  margin-top: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.section-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 4px 0 12px;
}

.section-title span {
  align-items: center;
  background: var(--blue);
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.drop-zone {
  align-items: center;
  border: 1.5px dashed #a8b3c2;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 144px;
  padding: 18px;
  text-align: center;
}

.workspace.single-panel .drop-zone {
  min-height: 280px;
}

.drop-zone.dragging {
  border-color: var(--blue);
  background: #eff6ff;
}

.drop-zone input {
  display: none;
}

.drop-zone small {
  color: var(--muted);
  line-height: 1.5;
}

.identity-source-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.identity-source-grid .drop-zone, .identity-source-card { min-height: 150px; }
.identity-source-card {
  align-items: center; background: #f8fbff; border: 1.5px solid #8ba9d6;
  border-radius: 6px; color: var(--navy); cursor: pointer; display: flex;
  flex-direction: column; gap: 8px; justify-content: center; padding: 18px; text-align: center;
}
.identity-source-card:hover, .identity-source-card:focus-visible { background: #eff6ff; border-color: var(--blue); }
.identity-source-card small { color: var(--muted); line-height: 1.5; }
.identity-lookup-entry {
  align-items: center;
  background: #eef6ff;
  border: 2px solid #2563eb;
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  padding: 14px 18px;
  text-align: center;
  width: 100%;
}
.identity-lookup-entry:hover, .identity-lookup-entry:focus-visible { background: #dbeafe; }
.identity-lookup-entry.active { background: #dbeafe; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.query-field.lookup-focus { background: #eff6ff; border: 2px solid #2563eb; border-radius: 8px; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); padding: 12px; transition: box-shadow .2s ease, background .2s ease; }
.identity-lookup-entry strong { font-size: 16px; }
.identity-lookup-entry small { color: #475569; line-height: 1.45; }
.identity-register-label { color: var(--navy); font-size: 14px; font-weight: 900; margin: 28px 0 6px; }
@media (max-width: 640px) { .identity-source-grid { grid-template-columns: 1fr; } }

.summary-box,
.next-action,
.tx-box,
.transfer-policy {
  background: #f8fafc;
  border: 1px solid var(--line);
  margin: 14px 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.tx-box {
  padding: 18px;
}

.tx-box p {
  line-height: 1.6;
  margin: 8px 0 16px;
}

.summary-box strong {
  color: var(--navy);
  display: block;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-box span {
  display: block;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.summary-box.error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #991b1b;
}

.summary-box.error strong {
  color: #9f1239;
}

.transfer-policy strong {
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.transfer-policy p {
  line-height: 1.55;
}

.transfer-policy.package-required {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.transfer-policy.direct-allowed {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #14532d;
}

.muted {
  color: var(--muted);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.optional-label {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
}

.readonly-info {
  background: #f8fafc;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  padding: 10px;
}

.readonly-info span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.readonly-info strong {
  color: var(--navy);
}

.mint-details {
  border: 1px solid var(--line);
  margin: 12px 0;
  padding: 18px;
}

.mint-details summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.mint-details .field {
  margin-top: 12px;
}

.hint-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

.field textarea {
  line-height: 1.5;
  min-height: 150px;
  padding: 10px;
  resize: vertical;
}

.char-counter {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 5px;
  text-align: right;
}

.checkbox-field {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.checkbox-field input {
  height: 18px;
  width: 18px;
}

.checkbox-field span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.query-field {
  margin-top: 18px;
}

.button-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.button-grid.single-action {
  grid-template-columns: 1fr;
}

.narrow-actions {
  max-width: 420px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.wide-action {
  margin-top: 12px;
  width: 100%;
}

.button-grid .wide-action {
  margin-top: 0;
}

.primary-btn {
  background: var(--blue);
  color: white;
}

.danger-btn {
  background: var(--red);
  color: white;
}

#registerConnectWalletBtn {
  background: var(--green);
  color: white;
}

#identityConnectWalletBtn {
  background: var(--green);
  color: white;
}

#notaryConnectWalletBtn {
  background: var(--green);
  color: white;
}

.wallet-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wallet-choice-empty {
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 12px;
}

.wallet-choice-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.wallet-choice-btn.active {
  background: #ecfdf5;
  border-color: var(--green);
}

.wallet-choice-icon {
  align-items: center;
  background: #e8eef6;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.wallet-choice-icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wallet-choice-icon-qr {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wallet-choice-copy {
  display: grid;
  gap: 2px;
}

.wallet-choice-copy strong {
  font-size: 0.94rem;
}

.wallet-choice-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.wallet-selection-summary {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #14532d;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 12px;
  min-height: 64px;
  padding: 10px 12px;
}

.walletconnect-qr-dialog {
  align-items: center;
  background: rgba(15, 23, 42, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.walletconnect-qr-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  display: grid;
  gap: 14px;
  max-width: 360px;
  padding: 18px;
  width: min(360px, 100%);
}

.walletconnect-qr-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.walletconnect-qr-header h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  margin: 2px 0 0;
}

.walletconnect-qr-close {
  align-items: center;
  background: #e8eef6;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 22px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  line-height: 1;
  width: 36px;
}

.walletconnect-qr-box {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 284px;
  overflow: hidden;
  padding: 12px;
}

.walletconnect-qr-box wui-qr-code {
  display: block;
}

.walletconnect-qr-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.walletconnect-qr-fallback {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  max-height: 120px;
  overflow: auto;
  padding: 8px;
  word-break: break-all;
}

.secondary-btn {
  background: #e8eef6;
  color: var(--navy);
}

.danger-btn {
  background: #fee4e2;
  color: var(--red);
}

.status-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.action-status {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.action-status.tone-registered {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}

.action-status.tone-unregistered {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}

.action-status.tone-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #ea580c;
}

.action-status.tone-revoked,
.action-status.tone-error {
  background: #fff1f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
}

.action-status h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.action-status p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.status-badge.neutral {
  background: #e8eef6;
  border: 0;
  color: var(--navy);
}

.progress-wrap {
  margin: 20px 0;
}

.progress-track {
  background: #e8eef6;
  height: 16px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  height: 100%;
  transition: width 0.18s ease;
  width: 0;
}

.progress-wrap.tone-registered .progress-bar {
  background: linear-gradient(90deg, #16a34a, #0f766e);
}

.progress-wrap.tone-unregistered .progress-bar {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.progress-wrap.tone-warning .progress-bar {
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}

.progress-wrap.tone-revoked .progress-bar,
.progress-wrap.tone-error .progress-bar {
  background: linear-gradient(90deg, #dc2626, #b42318);
}

#originalStatus.tone-registered {
  color: var(--green);
}

#originalStatus.tone-unregistered {
  color: var(--gold);
}

#originalStatus.tone-revoked,
#originalStatus.tone-error {
  color: var(--red);
}

.progress-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.workspace.input-step .result-grid {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-block {
  border: 1px solid var(--line);
  min-height: 92px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.workspace.input-step .info-block {
  min-height: 72px;
  padding: 10px;
}

.workspace.input-step .action-status {
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.workspace.input-step .progress-wrap {
  margin: 10px 0;
}

.workspace.input-step .progress-track {
  height: 8px;
}

.guidance-action {
  display: none !important;
}

.info-block span,
.tx-box span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-block strong,
.owner-identity-summary {
  color: var(--navy);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.owner-identity-summary ul {
  color: var(--muted);
  font-weight: 700;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.public-info-profile {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.public-info-copy { display: block; min-width: 0; }
.public-info-image,
.identity-record-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: 72px;
  object-fit: cover;
  width: 72px;
}
.identity-record-image { height: 96px; width: 96px; }

.public-info-cell strong,
.owner-identity-summary li strong {
  color: var(--navy);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.public-info-cell small,
.owner-identity-summary li small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.public-info-cell em,
.owner-identity-summary li em {
  color: var(--teal);
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 4px;
}

code {
  color: var(--navy);
  display: block;
  font-family: Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.next-action h4 {
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.image-mode-group {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  margin: 8px 0 6px;
}

.nft-image-size-option {
  background: #f8fafc;
  border: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
}
.nft-image-size-option span { color: var(--navy); font-size: 12px; font-weight: 800; }
.nft-image-size-option select { min-height: 40px; width: 100%; }

.image-mode-group label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.image-mode-group input[type="radio"] {
  accent-color: var(--blue);
  border: 0;
  flex: 0 0 16px;
  height: 16px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 16px;
}

#ownerMatchStatus {
  display: none !important;
}

.tx-box a {
  color: var(--blue);
  display: inline-block;
  font-weight: 800;
  margin-top: 16px;
}

.download-link {
  color: var(--blue);
  display: inline-block;
  font-weight: 800;
  margin-top: 10px;
}

.primary-btn.download-link {
  color: #fff;
  margin-top: 0;
  text-align: center;
  text-decoration: none;
}

.package-verify .field {
  margin-top: 10px;
}

.package-panel {
  display: grid;
  gap: 10px;
}

.package-drop-zone {
  min-height: 132px;
}

.package-result-box:not(.hidden) {
  display: block;
}

.verify-text {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}

.record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.record-item {
  border: 1px solid var(--line);
  padding: 12px;
}

.record-item h4 {
  color: var(--navy);
  margin-bottom: 10px;
}

.identity-overview {
  background: #f8fafc;
}

.identity-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.identity-filter-guide {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}

.identity-type-result-heading {
  align-items: center;
  border-bottom: 2px solid #bfdbfe;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.identity-type-result-heading h4 { margin: 0; }

.identity-type-result-heading span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.identity-type-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px 10px;
}

.identity-type-chip strong {
  color: var(--navy);
  font-size: 13px;
}

.identity-type-chip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.identity-type-chip:hover,
.identity-type-chip:focus-visible,
.identity-type-chip.active {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.identity-type-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.identity-latest-badge {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.identity-type-stats {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.identity-record-rows {
  display: grid;
}

.identity-record-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.identity-record-row:first-child {
  border-top: 0;
}

.identity-record-row h5 {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.identity-record-row.latest h5 {
  color: var(--green);
}

.record-item dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 130px minmax(0, 1fr);
  margin: 0;
}

.detail-list {
  display: grid;
  column-gap: 16px;
  row-gap: 14px;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
  min-width: 0;
}

.record-item dt,
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.record-item dd,
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-list > .owner-nft-result-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
}

.owner-nft-result-block + .owner-nft-result-block { margin-top: 4px; }
.owner-nft-result-block > h4 {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 15px;
  gap: 8px;
  margin: 0 0 16px;
}
.owner-nft-result-block > h4 > span {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 12px;
  height: 24px;
  justify-content: center;
}
.owner-nft-result-block > h4 small { color: var(--muted); font-size: 11px; margin-left: auto; }
.owner-nft-result-block > dl,
.owner-result-entry-detail > dl {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
}
.owner-nft-result-block > dl dt,
.owner-result-entry-detail dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.owner-nft-result-block > dl dd,
.owner-result-entry-detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.owner-result-history-list,
.owner-result-category-records { display: grid; gap: 12px; }
.owner-result-history-entry {
  background: #f8fafc;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}
.owner-result-history-entry > header { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.owner-result-history-entry > header strong { color: var(--navy); display: block; font-size: 14px; }
.owner-result-history-entry > header small { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; }
.owner-result-history-entry > p { line-height: 1.55; margin: 10px 0; white-space: pre-wrap; }
.owner-result-history-image { background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 104px; margin-top: 12px; object-fit: contain; width: 104px; }
.owner-result-nft-id { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.owner-result-nft-id > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.owner-result-entry-detail { border-top: 1px solid #dbe5f1; margin-top: 12px; padding-top: 10px; }
.owner-result-entry-detail > summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 800; }
.owner-result-entry-detail[open] > summary { margin-bottom: 12px; }
.owner-result-category-list { display: grid; gap: 16px; }
.owner-result-category { display: grid; gap: 14px; grid-template-columns: 150px minmax(0, 1fr); }
.owner-result-category > header { border-right: 2px solid #dbeafe; padding-right: 14px; }
.owner-result-category > header strong { color: var(--navy); display: block; font-size: 13px; }
.owner-result-category > header small { color: var(--muted); display: block; font-size: 11px; margin-top: 5px; }
.owner-result-empty { color: var(--muted); margin: 0; }
.owner-nft-reference-block > ul { color: var(--muted); line-height: 1.6; margin: 0; padding-left: 20px; }
.owner-nft-reference-block > ul li + li { margin-top: 5px; }

@media (max-width: 640px) {
  .detail-list > .owner-nft-result-block { padding: 14px; }
  .owner-nft-result-block > dl,
  .owner-result-entry-detail > dl,
  .owner-result-category { grid-template-columns: 1fr; }
  .owner-result-category > header { border-bottom: 2px solid #dbeafe; border-right: 0; padding-bottom: 8px; padding-right: 0; }
  .owner-result-history-entry > header { display: grid; }
}

.notary-panel:not(.hidden) {
  display: grid;
  gap: 18px;
}

.notary-target-status,
.notary-registration-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.notary-target-status { border-left: 4px solid var(--teal); }
.notary-registration-input { border-left: 4px solid var(--blue); display: grid; gap: 16px; }
.notary-registration-input.hidden { display: none; }
.notary-registration-input > header h4 { color: var(--navy); margin: 0; }
.notary-registration-input > header p { color: var(--muted); line-height: 1.5; margin: 6px 0 0; }
.notary-registration-input > .wide-action { margin-top: 2px; }

.notary-header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.notary-header p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

.notary-header .status-badge {
  flex: 0 0 auto;
  margin-top: 2px;
  min-width: 54px;
  text-align: center;
  white-space: nowrap;
}

#notaryDetailText.detail-list {
  column-gap: 22px;
  grid-template-columns: 180px minmax(0, 1fr);
  row-gap: 16px;
}

#notaryDetailText dt {
  white-space: nowrap;
}

#notaryDetailText dd {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}

#notaryDetailText code {
  font-size: 13px;
  line-height: 1.45;
}

.notary-section-title {
  align-self: start;
  padding-top: 4px;
}

.notary-record-list {
  display: grid;
  gap: 10px;
}

.notary-record-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.notary-record-row h5 {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.notary-record-row dl {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  margin: 0;
}

.notary-record-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.notary-record-row dd {
  margin: 0;
}

.notary-empty {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.wallet-reference {
  display: grid;
  gap: 8px;
}

.wallet-reference p {
  color: var(--muted);
  line-height: 1.55;
}

.wallet-reference ol {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 8px 0 12px;
  padding-left: 20px;
}

.wallet-reference-value {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
}

.wallet-reference-value code { margin: 0; overflow-wrap: anywhere; }
.wallet-copy-btn { min-height: 34px; padding: 0 10px; white-space: nowrap; }

.wallet-reference span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nft-image-preview {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.nft-image-preview img {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  max-width: 100%;
  width: 100%;
}

.nft-image-preview a {
  color: var(--blue);
  font-weight: 800;
}

dialog {
  border: 0;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.54);
}

.dialog-card {
  padding: 18px;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cost-dialog {
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  width: min(560px, calc(100vw - 32px));
}

.cost-dialog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
}

.cost-dialog-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cost-dialog-header h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.cost-dialog-summary {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #14532d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  padding: 10px 12px;
}

.cost-dialog-summary.fee-due {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.cost-detail-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
}

.cost-detail-list dt,
.cost-detail-list dd {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}

.cost-detail-list dt {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}

.cost-detail-list dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.cost-detail-list dt:last-of-type,
.cost-detail-list dd:last-of-type {
  border-bottom: 0;
}

.cost-dialog-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .image-mode-group {
    grid-template-columns: 1fr;
  }

  .hero-band,
  .status-header,
  .workflow-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .task-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    width: 100%;
  }

  .language-switch {
    justify-content: flex-end;
  }

  .task-chip {
    border-radius: 6px;
  }

  .workspace.single-panel .drop-zone {
    min-height: 220px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .mode-pills {
    justify-content: flex-start;
    min-width: 0;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .notary-header {
    gap: 10px;
  }

  #notaryDetailText.detail-list,
  .notary-record-row dl,
  .record-item dl {
    grid-template-columns: 1fr;
  }

  #notaryDetailText dt,
  .notary-record-row dt,
  .record-item dt {
    white-space: normal;
  }

  .identity-type-heading {
    display: grid;
  }

  .action-status {
    gap: 8px;
    padding: 10px;
  }

  .action-status h3 {
    font-size: 16px;
  }

  .action-status p {
    font-size: 13px;
  }

  .cost-detail-list {
    grid-template-columns: 1fr;
  }

  .cost-detail-list dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .cost-detail-list dd {
    padding-top: 2px;
  }
}

.image-compare-dialog {
  background: transparent;
  border: 0;
  max-height: 94vh;
  max-width: 1180px;
  padding: 0;
  width: min(94vw, 1180px);
}

.image-compare-dialog::backdrop { background: rgba(2, 12, 27, .72); }
.image-compare-card { max-height: 92vh; overflow: auto; padding: 22px; }
.image-compare-note { color: #475569; margin: 10px 0 16px; }
.image-compare-options { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.image-compare-option {
  align-content: start;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  color: var(--navy);
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  position: relative;
  text-align: left;
}
button.image-compare-option { cursor: pointer; }
button.image-compare-option:hover, button.image-compare-option:focus-visible { border-color: #2563eb; }
.image-compare-option.selected { background: #e8f2ff; border-color: #1261d6; box-shadow: 0 0 0 4px rgba(37, 99, 235, .24), 0 12px 26px rgba(15, 56, 120, .18); transform: translateY(-3px); }
.image-compare-option.selected img { border-color: #60a5fa; }
.image-selected-badge { background: #1261d6; border: 2px solid #fff; border-radius: 999px; box-shadow: 0 3px 10px rgba(15, 56, 120, .32); color: #fff; display: none; font-size: 13px; font-weight: 900; padding: 6px 10px; position: absolute; right: 7px; top: 7px; z-index: 2; }
.image-compare-option.selected .image-selected-badge { display: inline-flex; }
.image-compare-option.original { background: #f8fafc; }
.image-compare-option img { background: #fff; border: 1px solid #e2e8f0; height: 220px; object-fit: contain; width: 100%; }
.image-option-label { color: #1e3a8a; font-size: 13px; font-weight: 900; }
.image-compare-option small { color: #475569; line-height: 1.4; }
.image-compare-option em { color: #64748b; font-size: 12px; font-style: normal; }
.image-compare-option.unavailable { opacity: .62; }
.image-unavailable { align-items: center; background: #f1f5f9; color: #64748b; display: flex; height: 220px; justify-content: center; }
.image-compare-selection { background: #e8f2ff; border: 2px solid #60a5fa; border-radius: 8px; color: #123f80; font-size: 15px; font-weight: 900; margin: 18px 0 14px; padding: 13px 15px; }
.image-compare-loading { grid-column: 1 / -1; padding: 50px; text-align: center; }

@media (max-width: 900px) {
  .image-compare-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-compare-option img, .image-unavailable { height: 180px; }
}

@media (max-width: 560px) {
  .image-compare-options { grid-template-columns: 1fr; }
  .image-compare-card { padding: 15px; }
}

.metadata-image-cell { padding-bottom: 12px; }
.metadata-detail-image { background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; display: block; height: auto; max-height: 280px; max-width: min(100%, 320px); object-fit: contain; padding: 6px; }

.identity-record-row h5 { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.identity-info-auth-mark { align-items: center; border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 900; gap: 4px; padding: 4px 8px; white-space: nowrap; }
.identity-verified-info-mark { background: #ecfdf3; border: 1px solid #16a34a; color: #08752f; }
.identity-post-verify-mark { background: #fff7e6; border: 1px solid #e59a16; color: #9a5a00; }
.identity-info-auth-mark .trust-icon { height: 14px; width: 14px; }

/* Owner information: latest public entry per category, expand for full history */
details.identity-type-group { overflow:hidden; }
details.identity-type-group > summary { cursor:pointer;list-style:none;padding:14px 0; }
details.identity-type-group > summary::-webkit-details-marker { display:none; }
.identity-category-latest { display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;min-width:0; }
.identity-category-latest h4,.identity-category-latest p { margin:3px 0; }
.identity-category-latest small { color:var(--muted); }
.identity-category-latest-image { width:72px;height:72px;border:1px solid var(--line);border-radius:8px;background:#fff;object-fit:contain; }
details.identity-type-group[open] > summary { border-bottom:1px solid var(--line); }
details.identity-type-group .identity-record-rows { padding-top:4px; }
@media(max-width:640px){ .identity-category-latest { grid-template-columns:1fr; } .identity-type-heading { display:grid; } }

.package-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.package-download-grid .download-link{display:flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}@media(max-width:720px){.package-download-grid{grid-template-columns:1fr}}

.store-download-card{display:grid;gap:5px;min-height:112px;padding:18px;border:1px solid #c9d8e8;border-radius:10px;background:#f7faff;color:#173a5e}.store-download-card strong{font-size:18px;color:#0f5ead}.store-download-card span{font-weight:800}.store-download-card small{width:max-content;margin-top:4px;padding:4px 8px;border-radius:999px;background:#e8eef5;color:#5d6e80;font-weight:800}.store-download-card[aria-disabled="true"]{cursor:default}.store-download-note{margin:12px 0 0;padding:11px 13px;border-left:4px solid #2d77bf;border-radius:7px;background:#eef6ff;color:#315775;font-size:13px;line-height:1.55}
.identity-nft-id-cell { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.identity-nft-id-cell > span { display: inline-flex; align-items: center; min-height: 32px; min-width: 0; }
.identity-nft-id-cell > span code { color: #0f3f78; font-weight: 800; overflow-wrap: anywhere; word-break: break-all; }
.identity-nft-inline-detail { margin: 0; min-width: 0; }
.identity-nft-inline-detail > summary { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid #93c5fd; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 900; padding: 5px 10px; cursor: pointer; list-style: none; }
.identity-nft-inline-detail > summary::-webkit-details-marker { display: none; }
.identity-nft-inline-detail[open] { flex-basis: 100%; width: 100%; }
.identity-nft-inline-detail[open] > summary { margin-bottom: 8px; }
.identity-nft-inline-detail > dl { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr); gap: 8px 14px; margin: 0; padding: 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.identity-nft-inline-detail > dl dd { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 640px) {
  .identity-nft-inline-detail > dl { grid-template-columns: 1fr; gap: 4px; }
  .identity-nft-inline-detail > dl dd { margin-bottom: 7px; }
}

.notary-header h4 { color: var(--teal); font-size: 12px; letter-spacing: .02em; margin: 0 0 7px; }
.notary-header strong { color: var(--navy); display: block; font-size: 15px; }


/* Original lookup notary history */
.original-notary-history:not(.hidden) { display: block; }
.original-notary-history .notary-target-status { border-left-color: var(--blue); }
.original-notary-details { margin-top: 16px; }
.original-notary-details > summary {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #b8d2f4;
  border-radius: 8px;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
}
.original-notary-details[open] > summary { margin-bottom: 12px; }
.original-notary-list { display: grid; gap: 12px; }
.notary-record-card { background: #fbfdff; }
.notary-record-card > header { border-bottom: 1px solid #e2e8f0; margin-bottom: 12px; padding-bottom: 10px; }
.notary-record-card > header strong { color: var(--navy); display: block; overflow-wrap: anywhere; }
.notary-record-card > header small { color: var(--muted); display: block; margin-top: 4px; }
.notary-record-card dl { grid-template-columns: 150px minmax(0, 1fr); }
.notary-record-card dd { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 640px) {
  .notary-record-card dl { grid-template-columns: 1fr; }
  .notary-record-card dt { margin-top: 5px; }
}


/* Wallet notary activity */
.wallet-notary-activity-section {
  margin-top: 18px;
  border-left: 4px solid #1f79c8;
  background: linear-gradient(180deg,#f7fbff 0%,#fff 100%);
}
.wallet-notary-activity-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.wallet-notary-activity-heading span {
  color: #1670bf;
  font-size: 12px;
  font-weight: 800;
}
.wallet-notary-activity-heading h4 {
  margin: 4px 0;
  color: #173552;
}
.wallet-notary-activity-heading p {
  margin: 0;
  color: #63788e;
}
.wallet-notary-activity-heading > b {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e4f2ff;
  color: #146bb8;
  white-space: nowrap;
}
.wallet-notary-activity-list {
  display: grid;
  gap: 20px;
}
.wallet-notary-activity-card {
  overflow: hidden;
  border: 2px solid #a9bfd5;
  border-left: 5px solid #176fbc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30,74,116,.14);
}
.wallet-notary-activity-card > header {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e2eaf2;
  background: #f3f8fd;
}
.wallet-notary-activity-card header span {
  color: #176fbc;
  font-size: 12px;
  font-weight: 800;
}
.wallet-notary-activity-card header h4,
.wallet-notary-activity-card header p,
.wallet-notary-activity-card header small {
  display: block;
  margin: 4px 0;
}
.wallet-notary-activity-card header p,
.wallet-notary-activity-card header small {
  color: #60758b;
}
.wallet-notary-images {
  display: flex;
}
.wallet-notary-images img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(20,52,84,.14);
}
.wallet-notary-note {
  display: grid;
  grid-template-columns: auto minmax(120px,.35fr) minmax(0,1fr);
  gap: 10px;
  align-items: baseline;
  margin: 14px 16px 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #edf6ff;
}
.wallet-notary-note b {
  color: #176fbc;
  font-size: 12px;
}
.wallet-notary-note p {
  margin: 0;
  color: #566f87;
}
.wallet-notary-activity-card > dl {
  display: grid;
  grid-template-columns: minmax(150px,.28fr) minmax(0,1fr);
  margin: 0;
  padding: 14px 16px 16px;
}
.wallet-notary-activity-card > dl dt,
.wallet-notary-activity-card > dl dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid #edf1f5;
}
.wallet-notary-activity-card > dl dt {
  color: #64778b;
}
.wallet-notary-activity-card > dl dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wallet-notary-activity-card a {
  display: inline-block;
  margin: 6px 0 0 9px;
  color: #126fc3;
  font-weight: 800;
}
.wallet-notary-more {
  width: 100%;
  margin-top: 14px;
}
.wallet-notary-more span {
  margin-left: 7px;
  color: #687c91;
  font-size: 12px;
}
.wallet-notary-warning {
  padding: 10px 12px;
  border: 1px solid #efc66d;
  border-radius: 9px;
  background: #fff8e8;
  color: #79560d;
}
@media (max-width: 720px) {
  .wallet-notary-activity-card > header,
  .wallet-notary-activity-card > dl,
  .wallet-notary-note {
    grid-template-columns: 1fr;
  }
  .wallet-notary-activity-card > dl dt {
    padding-bottom: 2px;
  }
  .wallet-notary-activity-card > dl dd {
    padding-top: 2px;
    border-top: 0;
  }
}
.wallet-notary-period-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.wallet-notary-period-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-notary-period-controls input {
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
