:root {
    --bg: #08111d;
    --bg-raised: #0d1928;
    --panel: rgba(17, 31, 48, 0.94);
    --panel-strong: #142338;
    --panel-soft: #101e30;
    --border: rgba(154, 177, 205, 0.14);
    --border-strong: rgba(154, 177, 205, 0.25);
    --text: #f1f5f9;
    --muted: #93a4ba;
    --subtle: #687d96;
    --blue: #52a9ff;
    --blue-strong: #2389f0;
    --green: #45d49e;
    --amber: #f5b942;
    --red: #ff6b78;
    --violet: #aa8cff;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% -10%, rgba(37, 137, 240, 0.16), transparent 34rem),
        radial-gradient(circle at 100% 16%, rgba(69, 212, 158, 0.08), transparent 28rem),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

button,
input,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(82, 169, 255, 0.42);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #06101c;
    background: var(--text);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 17, 29, 0.82);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, 1280px);
    min-height: 74px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(82, 169, 255, 0.42);
    border-radius: 12px;
    color: #07111e;
    background: linear-gradient(145deg, #74c1ff, #3a91f1);
    box-shadow: 0 8px 25px rgba(35, 137, 240, 0.28);
    font-size: 17px;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sync-state {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 130px;
}

.sync-state strong,
.sync-state small {
    display: block;
}

.sync-state strong {
    font-size: 12px;
}

.sync-state small {
    color: var(--muted);
    font-size: 11px;
}

.connection-dot,
.large-status-dot {
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--subtle);
}

.connection-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px rgba(104, 125, 150, 0.12);
}

.connection-dot.is-online {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(69, 212, 158, 0.12);
}

.connection-dot.is-error {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 107, 120, 0.12);
}

.main {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 34px 0 48px;
}

.notice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid rgba(82, 169, 255, 0.3);
    border-radius: var(--radius-sm);
    color: #cfe8ff;
    background: rgba(35, 137, 240, 0.12);
    font-size: 13px;
}

.notice.is-success {
    border-color: rgba(69, 212, 158, 0.3);
    color: #b9f7df;
    background: rgba(69, 212, 158, 0.11);
}

.notice.is-error {
    border-color: rgba(255, 107, 120, 0.32);
    color: #ffd0d5;
    background: rgba(255, 107, 120, 0.11);
}

.notice-dismiss {
    flex: 0 0 auto;
    padding: 0 2px;
    color: currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.state-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 220px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.state-card strong,
.state-card p {
    display: block;
}

.state-card p {
    margin: 4px 0 14px;
    color: var(--muted);
}

.state-card-error {
    justify-content: flex-start;
    max-width: 620px;
    margin: 70px auto;
}

.state-symbol {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--red);
    background: rgba(255, 107, 120, 0.12);
    font-size: 22px;
    font-weight: 800;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(82, 169, 255, 0.18);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

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

.overview-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr);
    overflow: hidden;
    border: 1px solid rgba(82, 169, 255, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(125deg, rgba(25, 49, 76, 0.95), rgba(13, 27, 44, 0.98)),
        var(--panel);
    box-shadow: var(--shadow);
}

.overview-card::before {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: rgba(82, 169, 255, 0.09);
    content: "";
    filter: blur(4px);
    pointer-events: none;
    right: 23%;
    top: -210px;
}

.overview-copy {
    min-width: 0;
    padding: 30px 32px 32px;
}

.overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.14;
}

h2 {
    font-size: 20px;
}

.overview-description {
    max-width: 680px;
    margin: 10px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.badge-neutral,
.badge-idle,
.badge-cancelled {
    border-color: rgba(147, 164, 186, 0.2);
    color: #b2bfd0;
    background: rgba(147, 164, 186, 0.09);
}

.badge-scheduled,
.badge-captured {
    border-color: rgba(82, 169, 255, 0.22);
    color: #8dcbff;
    background: rgba(82, 169, 255, 0.1);
}

.badge-preparing,
.badge-processing,
.badge-recovering {
    border-color: rgba(170, 140, 255, 0.25);
    color: #c4afff;
    background: rgba(170, 140, 255, 0.1);
}

.badge-running,
.badge-completed,
.badge-succeeded {
    border-color: rgba(69, 212, 158, 0.25);
    color: #82e7bf;
    background: rgba(69, 212, 158, 0.1);
}

.badge-stopping,
.badge-uncertain {
    border-color: rgba(245, 185, 66, 0.25);
    color: #ffd479;
    background: rgba(245, 185, 66, 0.1);
}

.badge-error,
.badge-failed {
    border-color: rgba(255, 107, 120, 0.25);
    color: #ffabb3;
    background: rgba(255, 107, 120, 0.1);
}

.progress-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.progress-header strong {
    margin-right: 9px;
    font-size: 16px;
}

.progress-header div span,
.progress-header > span {
    color: var(--muted);
    font-size: 12px;
}

progress {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 9px;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
}

progress::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-strong), var(--green));
    transition: width 350ms ease;
}

progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-strong), var(--green));
}

.overview-side {
    position: relative;
    padding: 30px 28px;
    border-left: 1px solid var(--border);
    background: rgba(6, 15, 26, 0.28);
}

.overview-side-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.overview-side > strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.overview-side > p {
    min-height: 40px;
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: 12px;
}

.mini-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.mini-details div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 9px;
    border-top: 1px solid var(--border);
}

.mini-details dt {
    color: var(--muted);
    font-size: 11px;
}

.mini-details dd {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 110px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.metric-card > div {
    min-width: 0;
}

.metric-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 900;
}

.metric-blue {
    color: #84c8ff;
    background: rgba(82, 169, 255, 0.12);
}

.metric-violet {
    color: #c1acff;
    background: rgba(170, 140, 255, 0.12);
}

.metric-green {
    color: #7be2b8;
    background: rgba(69, 212, 158, 0.12);
}

.metric-amber {
    color: #ffd175;
    background: rgba(245, 185, 66, 0.12);
}

.metric-label,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-label {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card strong {
    margin: 1px 0 0;
    font-size: 27px;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.metric-card small {
    overflow: hidden;
    color: var(--subtle);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.control-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.detail-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 18px;
}

.secondary-control-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-header-row {
    align-items: center;
}

.saved-label {
    min-height: 18px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8, 17, 29, 0.36);
}

.switch-row label {
    font-size: 13px;
    font-weight: 750;
}

.switch-row p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-track {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #24344a;
    transition: background 160ms ease, border-color 160ms ease;
}

.switch-thumb {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d5deea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease;
}

.switch input:checked + .switch-track {
    border-color: rgba(69, 212, 158, 0.5);
    background: #1f8b69;
}

.switch input:checked + .switch-track .switch-thumb {
    transform: translateX(20px);
    background: #effff8;
}

.switch input:focus-visible + .switch-track {
    outline: 3px solid rgba(82, 169, 255, 0.42);
    outline-offset: 3px;
}

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

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #cbd7e5;
    font-size: 11px;
    font-weight: 700;
}

.field input,
.field select,
.login-form input {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--text);
    background: rgba(7, 16, 27, 0.7);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover,
.field select:hover,
.login-form input:hover {
    border-color: rgba(154, 177, 205, 0.4);
}

.field input:focus,
.field select:focus,
.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.1);
}

.field small {
    display: block;
    margin-top: 5px;
    color: var(--subtle);
    font-size: 10px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 3px;
}

.form-footer p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 120ms ease,
        border-color 160ms ease,
        background 160ms ease,
        opacity 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.button-primary {
    color: #06101c;
    background: linear-gradient(145deg, #69baff, #3798f5);
    box-shadow: 0 8px 22px rgba(35, 137, 240, 0.17);
}

.button-secondary,
.button-quiet {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.035);
}

.button-quiet {
    color: var(--muted);
}

.button-success {
    border-color: rgba(69, 212, 158, 0.28);
    color: #a6f0d2;
    background: rgba(69, 212, 158, 0.13);
}

.button-danger {
    border-color: rgba(255, 107, 120, 0.28);
    color: #ffbcc2;
    background: rgba(255, 107, 120, 0.11);
}

.button-compact {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
}

.button-full {
    width: 100%;
}

.manual-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8, 17, 29, 0.36);
}

.large-status-dot {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    box-shadow: 0 0 0 5px rgba(104, 125, 150, 0.1);
}

.large-status-dot.is-active {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(69, 212, 158, 0.1);
}

.large-status-dot.is-warning {
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(245, 185, 66, 0.1);
}

.large-status-dot.is-error {
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(255, 107, 120, 0.1);
}

.manual-status strong {
    display: block;
    font-size: 13px;
}

.manual-status p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.manual-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.operation-note {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(82, 169, 255, 0.07);
}

.operation-note strong {
    color: #bfddf8;
    font-size: 11px;
}

.operation-note p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.manual-code-form {
    display: grid;
    gap: 10px;
}

.inline-field-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.inline-field-action .button {
    min-width: 132px;
}

.inline-feedback {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.inline-feedback.is-success {
    color: var(--green);
}

.inline-feedback.is-error {
    color: #ffb4bb;
}

.account-readiness {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 60px;
}

.account-readiness strong {
    display: block;
    font-size: 13px;
}

.account-readiness p,
.account-note {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.account-summary > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(8, 17, 29, 0.36);
}

.account-summary span,
.account-summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-summary span {
    color: var(--subtle);
    font-size: 9px;
}

.account-summary strong {
    margin-top: 3px;
    font-size: 12px;
}

.account-note {
    text-align: center;
}

.deposit-panel {
    margin-bottom: 18px;
}

.deposit-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 22px;
}

.deposit-form {
    display: grid;
    align-content: start;
    gap: 16px;
}

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

.deposit-form-actions {
    display: grid;
    gap: 9px;
}

.money-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: rgba(7, 16, 27, 0.7);
}

.money-field > span {
    padding-left: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.money-field input {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.money-field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.1);
}

.money-field:focus-within input {
    box-shadow: none;
}

.deposit-note {
    margin: 0;
}

.deposit-output {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8, 17, 29, 0.3);
}

.deposit-results {
    display: grid;
    gap: 10px;
    max-height: 520px;
    padding: 14px;
    overflow-y: auto;
    scrollbar-color: #344963 transparent;
    scrollbar-width: thin;
}

.deposit-item {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, background 160ms ease;
}

.deposit-item.is-pix-copied {
    border-color: rgba(69, 212, 158, 0.42);
    background: rgba(69, 212, 158, 0.055);
}

.deposit-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.deposit-item-heading strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-item-heading span {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.pix-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.pix-copy-row textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: #d7e5f3;
    background: rgba(5, 13, 23, 0.76);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    line-height: 1.45;
}

.deposit-copy-button.is-copied {
    border-color: rgba(69, 212, 158, 0.42);
    color: #b7f5dc;
    background: rgba(69, 212, 158, 0.13);
}

.deposit-item-message {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.data-panel {
    padding-right: 0;
    padding-left: 0;
}

.data-panel > .panel-header,
.data-panel > .empty-state {
    margin-right: 24px;
    margin-left: 24px;
}

.count-chip,
.live-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.live-chip {
    color: #8fe8c4;
}

.live-chip span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(69, 212, 158, 0.1);
}

.table-wrap {
    overflow-x: auto;
    scrollbar-color: #344963 transparent;
    scrollbar-width: thin;
}

.table-footer {
    display: flex;
    justify-content: center;
    padding: 14px 24px 0;
    border-top: 1px solid var(--border);
}

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

th,
td {
    padding: 13px 24px;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--subtle);
    background: rgba(8, 17, 29, 0.28);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: #cbd6e3;
}

tbody tr {
    transition: background 150ms ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.018);
}

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

.code-value {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: var(--text);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-secondary {
    display: block;
    margin-top: 2px;
    color: var(--subtle);
    font-size: 9px;
}

.result-good {
    color: var(--green);
    font-weight: 800;
}

.result-error {
    color: var(--red);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 24px;
    text-align: center;
}

.empty-state-compact {
    min-height: 220px;
}

.empty-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--subtle);
    background: rgba(255, 255, 255, 0.025);
    font-size: 16px;
    font-weight: 900;
}

.empty-state strong {
    font-size: 12px;
}

.empty-state p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.run-list,
.log-list {
    overflow-y: auto;
    max-height: 510px;
    margin: 0;
    padding: 0 24px 4px;
    scrollbar-color: #344963 transparent;
    scrollbar-width: thin;
}

.run-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.run-main {
    min-width: 0;
}

.run-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.run-date {
    font-size: 12px;
    font-weight: 800;
}

.run-meta {
    color: var(--muted);
    font-size: 10px;
}

.run-result {
    align-self: center;
    text-align: right;
}

.run-result strong,
.run-result span {
    display: block;
}

.run-result strong {
    font-size: 15px;
}

.run-result span {
    color: var(--subtle);
    font-size: 9px;
}

.log-list {
    list-style: none;
}

.log-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.log-level {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.log-level-warn {
    background: var(--amber);
}

.log-level-error {
    background: var(--red);
}

.log-level-debug {
    background: var(--subtle);
}

.log-copy {
    min-width: 0;
}

.log-copy strong {
    display: block;
    overflow: hidden;
    color: #b7c7d9;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-copy p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.log-time {
    color: var(--subtle);
    font-size: 9px;
    white-space: nowrap;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 2px 0;
    color: var(--subtle);
    font-size: 9px;
}

.login-view {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(35, 137, 240, 0.18), transparent 34rem),
        var(--bg);
}

.login-card {
    width: min(100%, 400px);
    padding: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: rgba(17, 31, 48, 0.96);
    box-shadow: var(--shadow);
}

.brand-login {
    margin-bottom: 28px;
}

.brand-login .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 19px;
}

.login-card h1 {
    font-size: 28px;
}

.login-intro {
    margin: 8px 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.login-form {
    display: grid;
    gap: 8px;
}

.login-form > div {
    display: grid;
    gap: 8px;
}

.login-form label {
    margin-top: 6px;
    color: #cbd7e5;
    font-size: 11px;
    font-weight: 700;
}

.login-form .button {
    margin-top: 12px;
}

.form-error {
    margin: 6px 0 0;
    color: #ffb4bb;
    font-size: 11px;
}

@media (max-width: 960px) {
    .overview-card,
    .control-grid,
    .detail-grid,
    .deposit-layout {
        grid-template-columns: 1fr;
    }

    .overview-side {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .overview-side > p {
        min-height: 0;
    }

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

@media (max-width: 620px) {
    .topbar-inner,
    .main {
        width: min(100% - 24px, 1280px);
    }

    .topbar-inner {
        min-height: 66px;
    }

    .brand small,
    .sync-state small {
        display: none;
    }

    .brand strong {
        font-size: 13px;
    }

    .topbar-actions {
        gap: 9px;
    }

    .sync-state {
        min-width: 0;
    }

    .sync-state strong {
        display: none;
    }

    .main {
        padding-top: 20px;
    }

    .overview-copy,
    .overview-side,
    .panel {
        padding: 20px;
    }

    .data-panel {
        padding-right: 0;
        padding-left: 0;
    }

    .data-panel > .panel-header,
    .data-panel > .empty-state {
        margin-right: 20px;
        margin-left: 20px;
    }

    .overview-heading {
        display: block;
    }

    .overview-heading .badge {
        margin-top: 14px;
    }

    .overview-description {
        margin-bottom: 23px;
    }

    .progress-header {
        align-items: flex-start;
    }

    .progress-header div span {
        display: block;
        margin-top: 2px;
    }

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

    .metric-card {
        display: block;
        min-height: 128px;
        padding: 15px;
    }

    .metric-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }

    .metric-label {
        white-space: normal;
    }

    .metric-card strong {
        font-size: 23px;
    }

    .field-grid,
    .deposit-options-grid,
    .manual-actions,
    .inline-field-action,
    .pix-copy-row {
        grid-template-columns: 1fr;
    }

    .inline-field-action .button {
        width: 100%;
    }

    .pix-copy-row .button {
        width: 100%;
    }

    .account-summary {
        grid-template-columns: 1fr 1fr;
    }

    .account-summary > div:last-child {
        grid-column: 1 / -1;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-footer .button {
        width: 100%;
    }

    th,
    td {
        padding-right: 18px;
        padding-left: 18px;
    }

    .run-list,
    .log-list {
        padding-right: 20px;
        padding-left: 20px;
    }

    .log-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .log-time {
        grid-column: 2;
    }

    .footer {
        align-items: center;
        flex-direction: column;
    }

    .login-card {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
