:root { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif; color: #222; background: #efece8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { max-width: 1040px; padding: 52px 28px 24px; margin: auto; }
header { margin-bottom: 28px; }
.brand { color: #b85c46; font-weight: 700; letter-spacing: .12em; }
h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.4; margin: 12px 0; }
h2 { font-size: 20px; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 20px 0 12px; }
p { line-height: 1.7; }
.notice { padding: 10px 14px; border: 1px solid #c89a71; background: #fff5e9; border-radius: 10px; }
#message { padding: 12px 16px; border-left: 3px solid #b85c46; background: #f8f5f1; overflow-wrap: anywhere; }
#message.error { color: #9f302b; border-color: #9f302b; }
#content { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 36px; align-items: start; }
.summary { padding: 18px 0; position: sticky; top: 24px; }
.balance strong { font-size: 64px; font-weight: 650; font-variant-numeric: tabular-nums; }
.balance { margin: 4px 0 10px; }
.muted, footer { color: #6f6862; font-size: 14px; }
.operations { background: #fff; border: 1px solid #e5e0db; border-radius: 22px; padding: 28px; min-width: 0; }
form { display: grid; gap: 10px; padding: 20px 0; border-bottom: 1px solid #e5e0db; margin-bottom: 22px; }
label { font-size: 15px; font-weight: 550; }
input, select, button { font: inherit; font-size: 16px; }
input, select { padding: 12px; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #c7beb6; background: #fff; border-radius: 10px; color: #222; }
button { min-height: 46px; border: 0; border-radius: 12px; padding: 12px 18px; background: #b85c46; color: white; cursor: pointer; font-weight: 600; }
button:hover { background: #9f4835; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: #f1eeeb; color: #754638; }
button.quiet { background: transparent; color: #6f6862; margin-top: 10px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b85c46; outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: start; font-weight: 400; line-height: 1.6; margin: 6px 0; }
.check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #b85c46; }
.order { padding: 18px 0; border-top: 1px solid #e5e0db; }
.order p { margin: 6px 0; }
.order-id, .order-detail, output { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order-id { font-size: 13px; color: #6f6862; }
.order-detail { white-space: pre-line; padding: 14px; background: #f8f5f1; border-radius: 10px; }
output { display: block; padding-top: 14px; font-size: 19px; font-weight: 600; line-height: 1.6; user-select: all; }
footer { border-top: 1px solid #d9d1ca; padding-top: 20px; margin-top: 48px; }
@media (max-width: 650px) { .shell { padding: 24px 18px; } #content { grid-template-columns: 1fr; gap: 16px; } .summary { position: static; padding: 6px 0 12px; } .balance strong { font-size: 52px; } .operations { padding: 20px 18px; border-radius: 18px; } }
@media (max-width: 650px) { #content[data-mode="purchase"] .operations { grid-row: 1; } }

.connection-code{font-size:clamp(24px,6vw,36px);font-variant-numeric:tabular-nums;letter-spacing:2px;user-select:all;overflow-wrap:anywhere}
