/* Scoped manual wallet work area; shared admin chrome is not changed. */
.wallet-page { min-width: 0; color: #193a57; font-size: 16px; }
.wallet-page .wallet-icon { flex: 0 0 auto; display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.wallet-page .wallet-eyebrow { display: block; margin-bottom: 9px; color: #5c7a95; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.wallet-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.wallet-heading h1 { font-size: 31px; line-height: 1.45; font-weight: 650; letter-spacing: -.4px; }
.wallet-heading p { margin-top: 11px; color: #6a7f92; font-size: 16px; line-height: 1.8; }
.wallet-scope-badge { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 9px 13px; color: #47749c; border: 1px solid #cadff2; border-radius: 5px; background: #edf6ff; font-size: 14px; }
.wallet-scope-badge .wallet-icon { width: 18px; height: 18px; }
.wallet-scope-note { margin-bottom: 22px; padding: 18px 21px; border: 1px solid #d4e5f5; border-left: 3px solid #5e9fdc; border-radius: 6px; background: #f3f8fe; }
.wallet-scope-note strong { color: #3e6587; font-size: 15px; font-weight: 600; }
.wallet-scope-note p { margin-top: 7px; color: #688198; font-size: 14px; line-height: 1.9; }
.wallet-page .wallet-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.wallet-page .wallet-button.primary { color: #fff; background: #0066cc; }
.wallet-page .wallet-button.primary:hover { color: #fff; background: #0053a7; }
.wallet-page .wallet-button.secondary { color: #3e6385; border-color: #c2d4e6; background: #fff; }
.wallet-page .wallet-button.secondary:hover { color: #0066cc; border-color: #76a8d8; background: #f1f7ff; }
.wallet-page .wallet-button:disabled { cursor: default; opacity: .55; }
.wallet-page .wallet-text-button { display: inline-flex; align-items: center; min-height: 48px; margin-right: 14px; padding: 8px 0; border: 0; color: #0066cc; background: transparent; font-size: 14px; text-align: left; }
.wallet-page .wallet-text-button:hover { color: #004f9f; text-decoration: underline; }
.wallet-page .wallet-text-button.warning { color: #97641b; }
.wallet-page .wallet-text-button:disabled { cursor: default; opacity: .55; }
.wallet-page .wallet-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 43px; min-height: 43px; padding: 8px; color: #597b98; border: 1px solid #dce7f1; border-radius: 5px; background: #fff; }
.wallet-page .wallet-icon-button:hover { color: #0066cc; background: #edf5fd; }
.wallet-page .wallet-icon-button:disabled { opacity: .5; }
.wallet-actions-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 23px 24px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.wallet-actions-panel h2 { font-size: 20px; font-weight: 600; }
.wallet-actions-panel p { margin-top: 6px; color: #7a8fa2; font-size: 14px; line-height: 1.8; }
.wallet-action-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 11px; }
.wallet-muted { color: #72899e; font-size: 14px; }
.wallet-editor { scroll-margin-top: 95px; margin-bottom: 26px; padding: 25px 27px; border: 1px solid #bed7ef; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #0066cc06; }
.wallet-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.wallet-editor h2 { font-size: 21px; font-weight: 600; line-height: 1.5; }
.wallet-editor header p { max-width: 800px; margin-top: 9px; color: #71869b; font-size: 15px; line-height: 1.85; }
.wallet-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 24px; }
.wallet-page .wallet-field { min-width: 0; }
.wallet-page .wallet-field > label { display: block; margin-bottom: 9px; color: #44627c; font-size: 15px; font-weight: 600; }
.wallet-page input { min-width: 0; width: 100%; min-height: 50px; padding: 11px 14px; color: #254a69; border: 1px solid #bed0e1; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; line-height: 1.6; }
.wallet-page input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px #0066cc0c; }
.wallet-page input[readonly], .wallet-page input:disabled { color: #55758f; background: #f4f8fc; }
.wallet-page input::placeholder { color: #8597a9; opacity: 1; }
.wallet-page input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: #0066cc; }
.wallet-page .wallet-field > small { display: block; margin-top: 7px; color: #8092a3; font-size: 14px; line-height: 1.8; }
.wallet-fields > .full-width { grid-column: 1 / -1; }
.wallet-page .fingerprint-input { font-family: Consolas, "Segoe UI", monospace; font-size: 14px; }
.wallet-confirm { display: flex; align-items: flex-start; gap: 11px; margin-top: 23px; padding: 15px 17px; color: #486b89; border: 1px solid #d9e7f5; border-radius: 6px; background: #f5f9ff; font-size: 15px; line-height: 1.85; cursor: pointer; }
.wallet-request-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; margin-top: 21px; color: #7b91a6; font-size: 14px; }
.wallet-request-key code { color: #67849e; font-family: Consolas, "Segoe UI", monospace; font-size: 14px; overflow-wrap: anywhere; }
.wallet-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 21px; }
.wallet-new-draft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #e5edf5; }
.wallet-new-draft > label { display: flex; align-items: flex-start; gap: 9px; color: #8396a7; font-size: 14px; line-height: 1.8; cursor: pointer; }
.wallet-form-message { margin-top: 15px; color: #aa3b45; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.wallet-form-message:empty { margin: 0; }
.wallet-form-message.is-error { padding: 13px 15px; border: 1px solid #ebc8cc; border-radius: 5px; background: #fff2f3; }
.wallet-storage-note { margin-top: 12px; color: #92682c; font-size: 14px; line-height: 1.8; }
.wallet-retry-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 16px 18px; color: #8c682f; border: 1px solid #f0debb; border-radius: 6px; background: #fff9ed; }
.wallet-retry-note > .wallet-icon { margin-top: 3px; }
.wallet-retry-note strong { font-size: 15px; font-weight: 600; }
.wallet-retry-note p { margin-top: 6px; color: #947c54; font-size: 14px; line-height: 1.85; }
.wallet-review-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 21px 24px; margin: 0 0 25px; padding: 22px 24px; border-radius: 6px; background: #f4f8fc; }
.wallet-review-summary > .full-width { grid-column: 1 / -1; }
.wallet-review-summary dt { color: #7a90a4; font-size: 14px; }
.wallet-review-summary dd { margin: 7px 0 0; color: #365c7d; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.wallet-result { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 16px 18px; color: #2e7553; border: 1px solid #c4dfcf; border-radius: 6px; background: #f0faf4; font-size: 15px; line-height: 1.85; }
.wallet-result > .wallet-icon { margin-top: 3px; }
.wallet-result > p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wallet-result > .wallet-icon-button { width: 33px; min-height: 33px; padding: 5px; border: 0; background: transparent; }
.wallet-result.error { color: #a7474e; border-color: #e8c7cc; background: #fff3f4; }
.wallet-record-panel { min-width: 0; overflow: hidden; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.wallet-record-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 24px; }
.wallet-record-panel h2 { font-size: 21px; font-weight: 600; }
.wallet-record-panel > header p { margin-top: 7px; color: #7d91a3; font-size: 14px; line-height: 1.85; }
.wallet-filter { display: flex; align-items: flex-end; gap: 17px; padding: 20px 24px 23px; border-top: 1px solid #eaf0f6; background: #fcfdff; }
.wallet-filter > .wallet-field { flex: 1; max-width: 480px; }
.wallet-filter > div:last-child { display: flex; flex-wrap: wrap; gap: 11px; }
.wallet-search-input { position: relative; }
.wallet-search-input > .wallet-icon { position: absolute; top: 15px; left: 13px; width: 20px; height: 20px; color: #91a6b8; pointer-events: none; }
.wallet-search-input input { padding-left: 42px; }
.wallet-tabs { display: flex; gap: 26px; padding: 0 24px; overflow-x: auto; border-top: 1px solid #e7eef6; scrollbar-width: thin; }
.wallet-tabs > button { position: relative; flex: 0 0 auto; min-height: 59px; padding: 12px 3px; color: #7790a6; border: 0; background: transparent; font-size: 16px; white-space: nowrap; }
.wallet-tabs > button.is-active { color: #0066cc; font-weight: 600; }
.wallet-tabs > button.is-active::after { position: absolute; inset: auto 0 0; height: 3px; background: #0066cc; border-radius: 2px 2px 0 0; content: ""; }
.wallet-table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bdcedf #f4f7fb; overscroll-behavior-inline: contain; }
.wallet-page table { width: 100%; min-width: 1000px; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 15px; }
.wallet-page th { padding: 15px 21px; color: #56738f; border-block: 1px solid #e0e9f3; background: #f0f5fc; font-size: 14px; font-weight: 600; }
.wallet-page td { padding: 17px 21px; color: #55738d; border-bottom: 1px solid #eaf0f6; vertical-align: middle; line-height: 1.7; }
.wallet-page tbody tr:last-child td { border-bottom: 0; }
.wallet-page td > strong { display: block; color: #3a6080; font-weight: 550; }
.wallet-page td > small { display: block; margin-top: 5px; color: #8a9dad; font-size: 14px; }
.wallet-page .number { text-align: right; font-variant-numeric: tabular-nums; }
.wallet-page td.wallet-balance { color: #245a88; font-size: 16px; font-weight: 600; }
.wallet-page .wallet-fingerprint { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, "Segoe UI", monospace; }
.wallet-page td.wallet-reason { min-width: 220px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.wallet-status { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 9px; color: #7990a3; border-radius: 4px; background: #eff3f7; font-size: 14px; line-height: 1.5; }
.wallet-status.draft { color: #8e651c; background: #fff3dc; }
.wallet-status.approved { color: #28754e; background: #e8f6ee; }
.wallet-status.rejected { color: #98616a; background: #f9eef0; }
.wallet-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; }
.wallet-review-actions .wallet-text-button { margin-right: 0; }
.wallet-self-review { color: #8d9dad; font-size: 14px; }
.wallet-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-top: 1px solid #e9eff5; }
.wallet-pagination > span { color: #7d92a6; font-size: 14px; }
.wallet-pagination > div { display: flex; gap: 11px; }
.wallet-pagination .wallet-button { min-height: 46px; padding: 9px 15px; font-size: 14px; }
.wallet-record-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 24px; color: #7c92a6; border-top: 1px solid #eaf0f6; background: #fbfdff; font-size: 14px; line-height: 1.9; }
.wallet-record-note .wallet-icon { width: 19px; height: 19px; margin-top: 3px; }
.wallet-page .wallet-empty { height: 230px; padding: 32px; text-align: center; white-space: normal; }
.wallet-empty > span { display: block; margin-bottom: 13px; color: #9bb1c4; }
.wallet-empty > span > .wallet-icon { width: 32px; height: 32px; }
.wallet-page .wallet-empty > strong { color: #658299; font-size: 16px; }
.wallet-empty p { max-width: 650px; margin: 9px auto 0; color: #8a9eaf; font-size: 14px; }
.wallet-loading, .wallet-permission-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; padding: 32px 25px; text-align: center; border-top: 1px solid #e8eff6; }
.wallet-loading h3, .wallet-permission-empty h3 { margin-top: 16px; color: #65829a; font-size: 18px; }
.wallet-loading p, .wallet-permission-empty p { max-width: 640px; margin-top: 10px; color: #8a9faf; font-size: 14px; overflow-wrap: anywhere; }
.wallet-permission-empty > .wallet-icon { width: 34px; height: 34px; color: #8eabc2; }
.wallet-permission-empty .wallet-button { margin-top: 22px; }
.wallet-loading > span { width: 29px; height: 29px; border: 3px solid #dfebf6; border-top-color: #568dbe; border-radius: 50%; animation: wallet-spin 1s linear infinite; }
@keyframes wallet-spin { to { transform: rotate(360deg); } }
@media (max-width: 1320px) {
  .wallet-actions-panel { align-items: flex-start; flex-direction: column; gap: 17px; }
  .wallet-action-buttons { justify-content: flex-start; }
  .wallet-review-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .wallet-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .wallet-heading h1 { font-size: 29px; }
  .wallet-filter { flex-wrap: wrap; }
  .wallet-filter > .wallet-field { flex: 1 1 270px; }
  .wallet-filter > div:last-child { flex: 0 1 auto; }
  .wallet-fields { column-gap: 20px; }
}
@media (max-width: 560px) {
  .wallet-heading h1 { font-size: 26px; }
  .wallet-heading p { font-size: 15px; line-height: 1.85; }
  .wallet-scope-note { padding: 15px 16px; }
  .wallet-scope-note p { line-height: 1.9; }
  .wallet-actions-panel { padding: 20px 18px; gap: 17px; }
  .wallet-action-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 12px; }
  .wallet-action-buttons .wallet-button { padding-inline: 11px; font-size: 15px; }
  .wallet-action-buttons > .wallet-muted { grid-column: 1 / -1; }
  .wallet-editor { padding: 21px 18px; scroll-margin-top: 85px; }
  .wallet-editor > header { gap: 13px; margin-bottom: 22px; }
  .wallet-editor h2 { font-size: 20px; }
  .wallet-editor header p { font-size: 14px; line-height: 1.9; }
  .wallet-fields { grid-template-columns: 1fr; gap: 21px; }
  .wallet-confirm { gap: 10px; padding: 14px; font-size: 14px; }
  .wallet-form-actions { gap: 11px; }
  .wallet-form-actions .wallet-button:first-child { flex: 1; }
  .wallet-form-actions .wallet-button { padding-inline: 12px; font-size: 15px; }
  .wallet-new-draft { align-items: flex-start; flex-direction: column; }
  .wallet-new-draft > label { font-size: 14px; }
  .wallet-request-key { gap: 4px; }
  .wallet-request-key code { font-size: 14px; }
  .wallet-review-summary { gap: 20px; padding: 18px; }
  .wallet-review-summary dd { font-size: 15px; }
  .wallet-retry-note { gap: 10px; padding: 14px; }
  .wallet-retry-note .wallet-icon { width: 19px; height: 19px; }
  .wallet-record-panel > header { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px 18px; }
  .wallet-record-panel > header .wallet-button { width: 100%; }
  .wallet-filter { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .wallet-filter > .wallet-field { flex: 1 1 auto; }
  .wallet-filter > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .wallet-filter .wallet-button { padding-inline: 13px; font-size: 15px; }
  .wallet-tabs { gap: 22px; padding-inline: 18px; }
  .wallet-tabs > button { min-height: 57px; font-size: 15px; }
  .wallet-page th { padding-inline: 17px; }
  .wallet-page td { padding-inline: 17px; }
  .wallet-pagination { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .wallet-pagination > div { width: 100%; }
  .wallet-pagination .wallet-button { flex: 1; min-height: 48px; font-size: 15px; }
  .wallet-record-note { gap: 9px; padding: 15px 18px; }
  .wallet-record-note .wallet-icon { width: 18px; height: 18px; }
  .wallet-result { padding: 14px; gap: 9px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-page *, .wallet-page *::before, .wallet-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.wallet-page .wallet-audit-key { max-width: 260px; color: #5f7e99; font-family: Consolas, "Segoe UI", monospace; font-size: 14px; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
