/* The WAULET chrome: a dark bar over a light page, a card in the middle when
   signed out and a rail beside the page when signed in. It overrides the
   shared sheet rather than replacing it — the runtime's own elements (inputs,
   buttons, the dialog frame) keep their behaviour and take these colours. */

:root {
    --wau-ink: #0b0e17;
    --wau-page: #f1f2f4;
    --wau-card: #ffffff;
    --wau-line: #d8dbe0;
    --wau-text: #1b1d22;
    --wau-quiet: #8b9099;
    --wau-accent: #16a34a;
    --wau-danger: #dc2626;
    --wau-bar: 68px;
}

body {
    margin: 0;
    background: var(--wau-page);
    color: var(--wau-text);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.wau-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- the bar */

.wau-bar {
    height: var(--wau-bar);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
}

.wau-bar-dark {
    background: var(--wau-ink);
    color: #fff;
}

.wau-mark {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}

.wau-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wau-pill {
    display: inline-block;
    padding: 9px 26px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.wau-pill-on {
    background: #fff;
    color: var(--wau-ink);
    border-color: #fff;
}

.wau-company {
    appearance: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 8px 34px 8px 18px;
    font: inherit;
    font-style: italic;
    cursor: pointer;
}

.wau-company option {
    color: var(--wau-text);
}

.wau-who {
    font-size: 14px;
    opacity: 0.85;
}

.wau-icon-button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

/* --- signed out */

.wau-auth {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 56px 20px;
}

.wau-card {
    background: var(--wau-card);
    border: 1px solid var(--wau-line);
    border-radius: 6px;
    padding: 40px 48px 44px;
    width: 100%;
    max-width: 520px;
}

.wau-card h1 {
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 20px;
}

.wau-card p.wau-lede {
    text-align: center;
    margin: 0 0 12px;
    color: var(--wau-text);
}

.wau-field {
    position: relative;
    margin-bottom: 18px;
}

.wau-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 44px 18px 18px;
    border: 1px solid var(--wau-text);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--wau-text);
}

.wau-field input::placeholder {
    color: var(--wau-quiet);
}

.wau-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--wau-quiet);
    padding: 4px;
}

.wau-go {
    display: block;
    margin: 26px auto 0;
    min-width: 150px;
    padding: 12px 34px;
    border: none;
    border-radius: 999px;
    background: var(--wau-ink);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.wau-go:disabled {
    background: var(--wau-quiet);
    cursor: default;
}

.wau-alt {
    text-align: center;
    margin: 18px 0 0;
}

.wau-alt a {
    color: var(--wau-text);
    font-weight: 700;
}

.wau-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
}

.wau-error {
    color: var(--wau-danger);
    text-align: center;
    margin: 16px 0 0;
}

.wau-note {
    color: var(--wau-accent);
    text-align: center;
    margin: 16px 0 0;
}

/* --- signed in */

.wau-body {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    align-items: start;
}

.wau-rail {
    background: var(--wau-card);
    border: 1px solid var(--wau-line);
    border-radius: 8px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wau-rail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--wau-text);
    text-decoration: none;
    font-size: 15px;
}

.wau-rail-item:hover {
    background: var(--wau-page);
}

.wau-rail-on {
    font-weight: 700;
}

.wau-rail-off {
    color: var(--wau-quiet);
    cursor: default;
}

.wau-rail-off:hover {
    background: transparent;
}

.wau-rail-quiet {
    margin-top: auto;
    color: var(--wau-quiet);
}

.wau-rail-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.wau-rail-icon svg {
    width: 18px;
    height: 18px;
}

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

.wau-panel {
    background: var(--wau-card);
    border: 1px solid var(--wau-line);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.wau-panel h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

.wau-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wau-panel-head h2 {
    margin: 0;
}

.wau-button {
    padding: 10px 22px;
    border: 1px solid var(--wau-text);
    border-radius: 999px;
    background: #fff;
    color: var(--wau-text);
    font: inherit;
    cursor: pointer;
}

.wau-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.wau-table {
    width: 100%;
    border-collapse: collapse;
}

.wau-table th {
    text-align: left;
    font-size: 13px;
    color: var(--wau-quiet);
    font-weight: 600;
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--wau-line);
}

.wau-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--wau-line);
    vertical-align: middle;
}

.wau-search {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid var(--wau-text);
    border-radius: 8px;
    font: inherit;
    margin-bottom: 20px;
}

/* The shared sheet dresses an input for a dark console; every input here is
   on white, so the colours are said outright rather than inherited. */
.wau-shell input,
.wau-shell select,
.wau-shell textarea {
    background: #fff;
    color: var(--wau-text);
}

.wau-shell .wau-company {
    background: transparent;
    color: #fff;
}

.wau-wallet {
    border: 1px solid var(--wau-text);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wau-wallet-name {
    font-weight: 700;
}

/* What it holds sits with the chevron on the right, so the names line up
   down the left edge and the row reads name-first. */
.wau-wallet .wau-muted {
    margin-left: auto;
}

.wau-wallet-keys {
    color: var(--wau-quiet);
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wau-add {
    display: block;
    width: 220px;
    margin: 28px auto 8px;
    padding: 28px 0;
    border: 1.5px dashed var(--wau-quiet);
    border-radius: 12px;
    background: transparent;
    color: var(--wau-text);
    font: inherit;
    cursor: pointer;
    text-align: center;
}

.wau-empty {
    text-align: center;
    color: var(--wau-quiet);
    padding: 40px 0 0;
}

.wau-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.wau-inline input {
    flex: 1 1 auto;
    max-width: 320px;
    padding: 12px 14px;
    border: 1px solid var(--wau-text);
    border-radius: 8px;
    font: inherit;
}

/* --- the footer */

.wau-foot {
    background: var(--wau-ink);
    color: #fff;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.wau-faq {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 8px 22px;
}

.wau-wallet-act {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wau-network {
    padding: 8px 12px;
    border: 1px solid var(--wau-line);
    border-radius: 999px;
    font: inherit;
}

/* --- the rail's wallet selector, and what a wallet's own page is made of */

.wau-rail-wallet {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--wau-line);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

span.wau-rail-wallet {
    display: block;
    font-weight: 400;
    color: var(--wau-quiet);
}

.wau-wallet {
    border: 1px solid var(--wau-line);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 18px;
    text-decoration: none;
    color: var(--wau-text);
}

.wau-wallet:hover {
    border-color: var(--wau-text);
}

.wau-wallet-go {
    margin-left: auto;
    color: var(--wau-quiet);
    font-size: 22px;
    line-height: 1;
}

.wau-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wau-button-on {
    background: var(--wau-ink);
    color: #fff;
    border-color: var(--wau-ink);
}

.wau-button-small {
    padding: 6px 14px;
    font-size: 13px;
}

.wau-balance {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.wau-balance-figure {
    font-size: 40px;
    font-weight: 300;
}

.wau-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    word-break: break-all;
}

/* A currency reads as its mark and its ticker together, so the two never
   wrap apart from each other. */
.wau-coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.wau-coin img {
    display: block;
    border-radius: 50%;
}

.wau-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wau-icon {
    background: transparent;
    border: 1px solid var(--wau-line);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 15px;
    cursor: pointer;
    color: var(--wau-text);
}

.wau-icon:hover {
    border-color: var(--wau-text);
}

.wau-row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.wau-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.wau-modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
    max-width: 380px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.wau-modal-wide {
    max-width: 520px;
}

.wau-modal-card h2 {
    margin: 0 0 18px;
}

.wau-modal-card .wau-key {
    margin: 18px 0;
}

/* A popup asks, so what it holds reads left to right — only the title and a
   QR are centred, and both say so themselves. */
.wau-modal-card .wau-field,
.wau-modal-card .wau-networks,
.wau-modal-card .wau-label,
.wau-modal-card .wau-error {
    text-align: left;
}

.wau-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wau-modal-head h2 {
    margin: 0;
}

/* A checkbox underneath — the track and the knob are drawn here, so the
   control keeps the keyboard and the screen reader a checkbox has. */
.wau-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}

.wau-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wau-switch-track {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #d7dbe3;
    transition: background 120ms ease;
    flex: none;
}

.wau-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 120ms ease;
}

.wau-switch input:checked + .wau-switch-track {
    background: #f0a500;
}

.wau-switch input:checked + .wau-switch-track::after {
    transform: translateX(16px);
}

.wau-switch input:focus-visible + .wau-switch-track {
    outline: 2px solid #0b0e17;
    outline-offset: 2px;
}

/* What a wallet is, said next to its name. */
.wau-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fdf1d6;
    color: #8a6100;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.wau-wallet-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wau-wallet-head img {
    border-radius: 50%;
    flex: none;
}

/* A link that leaves: underlined on hover only, so a table of them does not
   read as a wall of blue. */
.wau-out {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #b9bec9;
}

.wau-out:hover {
    border-bottom-style: solid;
    color: #0b0e17;
}

/* Three prices to choose between, each a row that is the whole target — a
   radio you have to hit exactly is a radio people mis-click. */
.wau-speeds {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wau-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    cursor: pointer;
}

.wau-speed-on {
    border-color: #0b0e17;
    background: #f7f8fa;
}

.wau-speed-name {
    flex: 1;
    text-transform: capitalize;
    font-weight: 600;
}

/* Money in and money out, told apart at a glance and not only by a sign. */
.wau-move {
    font-weight: 600;
    white-space: nowrap;
}

.wau-move-in {
    color: #1a7f4b;
}

.wau-move-out {
    color: #a8324a;
}

.wau-wallet-mark {
    border-radius: 50%;
    flex: none;
}

.wau-modal-foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 22px;
}

.wau-label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    color: #6b7280;
}

.wau-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dbe3;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.wau-networks {
    margin-top: 6px;
}

.wau-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 1px solid #f1f2f5;
}

.wau-check:last-child {
    border-bottom: 0;
}

.wau-check img {
    border-radius: 50%;
    flex: none;
}

/* The name takes the slack, which is what puts the tick on the right edge
   and lines the column of them up. */
.wau-check-name {
    flex: 1;
    min-width: 0;
}

.wau-check input {
    flex: none;
    margin: 0;
}

.wau-button-go {
    background: #0b0e17;
    color: #fff;
    border-color: #0b0e17;
}
