/* Native Go screens share the original admin design. No legacy runtime scripts. */
.hidden { display: none !important; }
body.admin-app { display: block; padding: 0; }
body.login-page > #login-panel { width: min(980px, 100%); }
.login-page > .icon-sprite { position: absolute; width: 0; height: 0; }
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-search { position: relative; margin: 18px 4px 0; }
.sidebar-search > .icon { position: absolute; top: 11px; left: 10px; width: 15px; height: 15px; color: #8399bb; }
#module-search { width: 100%; min-height: 35px; padding: 7px 10px 7px 32px; border-color: #293950; background: #192840; color: #d6e1f0; font-size: 12px; }
#module-search::placeholder { color: #8396b3; }
.sidebar .nav-item { width: 100%; justify-content: flex-start; border: 0; background: transparent; font-weight: 400; }
.sidebar .nav-item:hover { background: #1a2a42; box-shadow: none; }
.sidebar .nav-item.active { background: #233957; }
.nav-arrow { margin-left: auto; width: 13px; height: 13px; opacity: .55; }
.nav-result-note { padding: 10px 12px; color: #91a2bb; font-size: 12px; }
.sidebar-collapsed .sidebar-search, .sidebar-collapsed .nav-arrow { display: none; }
.sidebar-collapsed .sidebar .nav-item { justify-content: center; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { overflow: hidden; text-overflow: ellipsis; }
.runtime-label { margin-left: 7px; padding-left: 8px; border-left: 1px solid var(--line); color: #8594a9; }
.breadcrumb { white-space: nowrap; }
.breadcrumb strong { max-width: 35vw; overflow: hidden; text-overflow: ellipsis; }
.module-tabs button.module-tab { border: 0; border-right: 1px solid var(--line); background: transparent; color: #78859a; font-size: 13px; font-weight: 400; }
.module-tabs button.module-tab.active { background: var(--accent-soft); color: var(--accent); }
.module-tabs button.module-tab:hover { background: #f4f7fd; color: var(--accent); box-shadow: none; }
.secondary-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 20px; }
.secondary-tabs button { min-height: 32px; padding: 5px 12px; background: transparent; border-color: transparent; color: #73839c; }
.secondary-tabs button.active { background: #e8eef9; color: var(--accent); }
.secondary-tabs button:hover { background: #edf2fa; box-shadow: none; }
#content > section, #content > .stats, #content > .dashboard-flow, #content > .two-col { margin-bottom: 20px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.overview-heading h1 { font-size: 21px; letter-spacing: 0; }
.overview-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.updated-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.todo-panel { display: flex; flex-direction: column; justify-content: space-between; }
.todo-item { cursor: pointer; }
.todo-item > span { min-width: 0; }
.todo-item small { display: block; color: var(--muted); font-size: 12px; }
.todo-count strong { font-size: 32px; }
.quick-link { cursor: pointer; }
.quick-link strong { color: #43546f; }
.panel-head h2 { margin: 0; }
.panel-head .text-button { font-weight: 400; }
.panel-head .count-label { margin-left: 8px; }
.overview-service { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 16px 20px; border: 1px solid var(--line); background: #fff; color: #75849a; font-size: 12px; }
.overview-service > span { display: inline-flex; align-items: center; gap: 7px; }
.service-dot { width: 6px; height: 6px; background: #29a176; }
.service-dot.paused { background: #c19751; }
.scope-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; margin-bottom: 20px; }
.scope-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #edf3ff; color: #6184c9; }
.scope-copy { flex: 1; min-width: 160px; }
.scope-copy strong { display: block; font-size: 14px; }
.scope-copy small { color: var(--muted); font-size: 12px; }
.scope-toolbar select { width: min(300px, 100%); }
.notice, .errorbar { padding: 13px 16px; font-size: 13px; line-height: 1.8; margin-bottom: 20px; border: 1px solid #dae6fa; background: #edf4ff; color: #5c78a3; overflow-wrap: anywhere; }
.errorbar { border-color: #efd4da; background: #fff2f3; color: #b45161; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .search-field { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-field > .icon { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #8d9db5; }
.search-field input { width: 100%; padding-left: 36px; }
.toolbar .spacer { flex: 1; }
.toolbar > select { min-width: 130px; }
.tablewrap { overflow: auto; max-width: 100%; min-width: 0; scrollbar-width: thin; }
.tablewrap table { width: 100%; }
.tablewrap td { max-width: 290px; }
.tablewrap .cell-content { max-width: 270px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablewrap .identity-cell { min-width: 135px; }
.identity-cell strong { display: block; color: #43546f; font-size: 13px; }
.identity-cell small { margin-top: 4px; }
.tablewrap td.row-actions { position: sticky; right: 0; min-width: 170px; background: #fff; box-shadow: -1px 0 var(--line); }
.tablewrap th:last-child { position: sticky; right: 0; z-index: 1; }
.tablewrap tbody tr:hover td.row-actions { background: #fafcff; }
.text-button { min-height: 28px; padding: 3px 5px; border: 0; background: transparent; color: #5a7fca; font-size: 12px; }
.text-button:hover { background: #edf3ff; color: var(--accent-dark); box-shadow: none; }
.pagination-bar { margin: 0; border-width: 1px 0 0; color: var(--muted); }
.pagination-bar button { min-height: 31px; padding: 5px 11px; }
.pagination-bar .pagination-controls { display: flex; align-items: center; gap: 8px; }
.table-scroll-hint { display: none; }
.resource-summary { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 12px 20px; background: #fafcfe; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.resource-summary strong { color: #4d6589; margin-left: 7px; font-weight: 500; }
.empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty .empty-icon { flex-shrink: 0; }
.empty > .ghost { margin-top: 17px; }
.admin-drawer[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 24px; }
.drawer-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 17px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot button { min-width: 82px; }
.drawer-foot .danger { margin-right: auto; }
.form-grid { gap: 22px 18px; }
label.field { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
label.field > span { color: #667a97; font-size: 13px; }
label.field input:not([type=checkbox]), label.field select, label.field textarea { width: 100%; }
label.field small { color: #8d9bb0; font-size: 12px; line-height: 1.7; }
label.field:has(textarea), .field-wide { grid-column: 1 / -1; }
label.field textarea { min-height: 120px; }
label.field.toggle-field { flex-direction: row; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--line); background: #fafcfe; min-height: 44px; align-self: end; }
.field-key { color: #94a1b4; font-size: 11px; overflow-wrap: anywhere; }
.required-mark { color: #c46c7c; }
.form-section-label { grid-column: 1 / -1; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: #4e6588; font-size: 14px; }
.detailrow { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.detailrow > span { color: #8594a9; }
.detailrow > div { white-space: pre-wrap; }
.actiongrid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); background: #f7f9fc; font: 12px/1.8 Consolas, monospace; }
.chatlog { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.bubble { max-width: 90%; padding: 13px 16px; background: #f1f5fb; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.bubble small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.bubble.support { align-self: flex-end; background: #edf6f2; }
.drawer-body > .field { margin-top: 20px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1500; max-width: calc(100vw - 32px); padding: 13px 22px; background: #20334f; color: #fff; font-size: 13px; box-shadow: 0 5px 24px #122b4929; overflow-wrap: anywhere; }
.settings-workspace { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-index { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.settings-index button { justify-content: flex-start; padding: 11px 13px; border: 0; background: transparent; color: #71829c; font-size: 13px; }
.settings-index button.active { background: #edf3ff; color: var(--accent); }
.settings-index button:hover { background: #f4f7fd; box-shadow: none; }
.settings-pane { min-width: 0; border: 1px solid var(--line); background: #fff; }
.settings-pane .panel-head { align-items: flex-start; }
.settings-description { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 22px; padding: 24px; }
.settings-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fbfcfe; }
.settings-actions span { color: var(--muted); font-size: 12px; }
.permissions-picker { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); }
.permissions-picker legend { padding: 0 6px; color: #667a97; font-size: 13px; }
.open-group-preview { margin-top: 24px; padding: 20px; border: 1px solid var(--line); background: #f8fafd; overflow-wrap: anywhere; }
.open-group-preview .preview-label { display: block; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.open-group-preview > div { white-space: pre-wrap; color: #35455f; line-height: 1.8; font-size: 13px; }
.open-group-preview > a { display: inline-block; margin-top: 18px; font-size: 13px; text-decoration: underline; }
.open-group-preview > a:not([href]) { color: var(--muted); text-decoration: none; }
.welcome-preview-buttons { display: grid; gap: 8px; margin-top: 16px; }
.welcome-preview-buttons > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.welcome-preview-buttons button { width: 100%; white-space: normal; }
.welcome-preview-link { display: block; padding: 10px 12px; border: 1px solid var(--line); background: #fff; color: #3864c7; text-align: center; }
.permission-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.permission-options label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #637793; }
@media (max-width: 1180px) { .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dashboard-flow { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .sidebar-collapsed .sidebar-search { display: block; } .sidebar-collapsed :is(.brand-copy,.nav-text,.account-copy,.sidebar-account .avatar) { display: block; } .sidebar-collapsed .sidebar .nav-item { justify-content: flex-start; } .settings-workspace { grid-template-columns: 165px minmax(0,1fr); gap: 14px; } .settings-fields { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .overview-heading { align-items: flex-start; margin-bottom: 18px; }
  .overview-heading h1 { font-size: 19px; }
  .overview-heading .updated-label { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-header h2 { font-size: 18px; }
  .todo-links { grid-template-columns: 1fr; }
  .todo-item { padding: 10px 13px; }
  .todo-item > span { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }
  .todo-item strong { font-size: 18px; margin: 0; }
  .todo-item small { display: none; }
  .scope-toolbar { padding: 16px; gap: 10px; }
  .scope-toolbar select { width: 100%; }
  .toolbar .search-field { max-width: none; flex-basis: 100%; }
  .toolbar .spacer { display: none; }
  .toolbar > button.primary { margin-left: auto; }
  .table-scroll-hint { display: block; }
  .tablewrap td.row-actions { position: static; box-shadow: none; }
  .tablewrap th:last-child { position: static; }
  .pagination-bar { padding-inline: 14px; }
  .secondary-tabs { gap: 4px; }
  .secondary-tabs button { padding-inline: 9px; font-size: 12px; }
  .drawer-head, .drawer-body { padding: 20px; }
  .drawer-foot { padding: 14px 20px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .settings-workspace { grid-template-columns: minmax(0,1fr); }
  .settings-index { display: flex; flex-wrap: wrap; padding: 6px; gap: 2px; }
  .settings-index button { padding: 8px 10px; min-height: 33px; font-size: 12px; }
  .settings-fields { padding: 20px; }
  .settings-actions { padding: 14px 20px; flex-wrap: wrap; }
  .detailrow { grid-template-columns: 100px minmax(0,1fr); gap: 10px; }
  .permission-options { grid-template-columns: minmax(0,1fr); }
  .breadcrumb strong { max-width: 46vw; }
}

.pledge-preview-address{margin-top:24px;overflow-wrap:anywhere;font-family:monospace}.pledge-preview-photo{margin-top:24px}.pledge-preview-photo img{display:block;max-width:100%;max-height:360px;object-fit:contain}

.general-trade-preview-part+.general-trade-preview-part{margin-top:24px;padding-top:20px;border-top:1px solid #dbe4ef}

.trade-summary-preview{max-height:520px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;color:#35455f;line-height:1.8;font-size:13px}
