/* The account pages (sign-in, orders, queue, settings, admin), on top of site.css. */
.wrap.wide { max-width: 1500px; }
main.app { padding: 32px 20px 64px; }
main.narrow { max-width: 520px; }
main.app h1 { font-size: 2rem; margin: 0 0 18px; }
main.app h2 { font-size: 1.15rem; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.form { display: grid; gap: 14px; margin: 12px 0 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.row-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input, select { font: inherit; color: var(--text); background: #0b0920; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%; }
input:focus, select:focus, [contenteditable]:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
input[readonly] { color: var(--muted); }
input.tiny { width: 150px; padding: 3px 8px; font-size: 0.85rem; }
button { font: inherit; cursor: pointer; }
button.cta { border: 0; margin-top: 4px; justify-self: start; }
button.secondary, .chip { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; }
button.secondary:hover, .chip:hover { border-color: var(--teal); color: var(--teal); }
button.link { background: none; border: 0; color: var(--teal); padding: 0; font-weight: 600; }
.danger { color: #ff7b93 !important; }
button.small { padding: 4px 12px; border-radius: 999px; border: 0; background: var(--blade); color: #0b0820; font-weight: 700; }
form.inline { display: inline; margin: 0; }
nav form.inline button.link { color: var(--muted); }
nav form.inline button.link:hover { color: var(--text); }
.notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; }
.notice.error { background: #ff4d6d18; border-color: #ff4d6d66; }
.notice.ok { background: #2de2c714; border-color: #2de2c766; }
.notice p { margin: 4px 0; }
main.app .card { margin: 0 0 18px; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; font-size: 0.8rem; color: var(--muted); }
.tag.gold { color: var(--gold); border-color: #f0c35a66; }
.tag.red { color: #ff7b93; border-color: #ff4d6d66; }
.tag.green { color: var(--teal); border-color: #2de2c766; }
.scroll { overflow-x: auto; }
table.simple, table.orders { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.simple th, table.simple td, table.orders th, table.orders td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.banned td { opacity: 0.65; }
td.actions { white-space: nowrap; }
td.actions form, td.actions button, td.actions a { margin-right: 8px; }
table.orders { font-size: 0.86rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table.orders td { max-width: 260px; overflow-wrap: anywhere; }
table.orders tbody.add td { background: #ffffff06; }
table.orders tbody.add input { padding: 5px 8px; font-size: 0.85rem; min-width: 90px; }
td.edit { cursor: text; }
td.edit:hover { background: #ffffff0a; }
td.num, td.pos, td.neg { white-space: nowrap; font-weight: 600; }
.pos { color: var(--teal); }
.neg { color: #ff7b93; }
td.empty { text-align: center; padding: 28px; }
.chip { display: inline-block; padding: 2px 10px; font-size: 0.8rem; text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat span { color: var(--muted); font-size: 0.85rem; }
.stat strong { font-size: 1.5rem; }
.stat small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input[type=search] { max-width: 320px; }
.filters label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.filters label input { width: auto; }
.filters select { width: auto; }
.filters .grow { flex: 1; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: 420px; padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid #2de2c766; box-shadow: 0 8px 30px #0008; }
.toast.error { border-color: #ff4d6d99; }
input.copy { font-family: ui-monospace, monospace; font-size: 0.85rem; }
table.orders td.actions > * { display: block; width: max-content; margin: 0 0 4px; }
