/* The application shell. The builder has its own stylesheet. */
*{box-sizing:border-box}
body{margin:0;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1f2937;background:#f1f4f8}
a{color:#1e40af}
.topbar{display:flex;align-items:center;gap:16px;padding:10px 20px;background:#0f172a;color:#e2e8f0}
.topbar .brand{font-weight:700;color:#fff;text-decoration:none}
.topbar .brand span{color:#7dd3fc;font-weight:400}
.topbar nav{display:flex;gap:14px}
.topbar nav a{color:#cbd5e1;text-decoration:none;font-weight:600}
.topbar nav a.on{color:#fff}
.topbar .spacer{flex:1}
.topbar .who{color:#94a3b8;font-size:12.5px}
.topbar form{margin:0}
.topbar button{all:unset;cursor:pointer;color:#cbd5e1;font-weight:600}
.wrap{max-width:1180px;margin:18px auto;padding:0 16px}
.wrap.narrow{max-width:440px}
h1{font-size:20px;margin:0 0 14px}
h2{font-size:15px;margin:22px 0 8px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px 20px;margin-bottom:16px}
.flash{border-radius:9px;padding:9px 13px;margin-bottom:14px;font-size:13px}
.flash.ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}
.flash.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
label{display:block;font-size:12px;font-weight:700;color:#475569;margin:10px 0 4px}
input[type=text],input[type=email],input[type=password],select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font:inherit;background:#fff}
.check{display:inline-flex;align-items:center;gap:6px;margin:6px 14px 0 0;font-weight:500;font-size:13px;color:#1f2937}
.check input{margin:0}
.btn{display:inline-block;cursor:pointer;border:0;border-radius:8px;padding:8px 14px;font:inherit;font-weight:700;background:#1e40af;color:#fff;margin-top:14px}
.btn.quiet{background:#e2e8f0;color:#1f2937}
.error{color:#b91c1c;font-size:12px;margin-top:4px}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:7px 8px;border-bottom:1px solid #f0f2f5;font-size:13px}
th{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#94a3b8}
.tag{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;border-radius:4px;padding:1px 6px;background:#e2e8f0;color:#334155;margin-right:4px}
.muted{color:#6b7280}
.shift{display:flex;gap:14px;padding:8px 0;border-bottom:1px solid #f0f2f5}
.shift .when{min-width:150px;font-weight:600}
.badge{display:inline-block;min-width:18px;padding:0 6px;border-radius:999px;background:#f59e0b;color:#1f2937;font-size:11px;font-weight:800;text-align:center;margin-left:4px}
.chip{display:inline-block;font-size:11px;font-weight:800;border-radius:6px;padding:2px 9px}
.chip.is-pending{background:#fef3c7;color:#92400e}.chip.is-approved{background:#dcfce7;color:#166534}
.chip.is-denied{background:#fee2e2;color:#991b1b}.chip.is-cancelled{background:#e5e7eb;color:#4b5563}
.row-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:14px}
.row-form .grow{flex:1;min-width:180px}
.row-form input[type=date],.row-form input[type=text]{width:auto;min-width:150px}
.row-form .grow input[type=text]{width:100%}
.row-form .btn{margin-top:0;margin-bottom:1px}
.btn.small{padding:5px 10px;font-size:12px;margin-top:0}
.actions{white-space:nowrap}.actions form{display:inline-block;margin:0 4px 0 0}
.warn{margin-top:4px;font-size:12px;color:#b45309}
.hist h3{font-size:13px;margin:16px 0 6px;color:#475569}
.hist-list{list-style:none;margin:0;padding:0}
.hist-item{padding:6px 8px;border-bottom:1px solid #f0f2f5;font-size:13px}
.hist-item.is-fail{background:#fcf0f1}
.hist-stamp{color:#94a3b8;font-size:12px;margin-right:8px}
.hist-x{color:#b91c1c;font-weight:800}
.hist details{margin-top:8px}.hist summary{cursor:pointer;font-size:13px;color:#334155}
.hist-snap{margin:6px 0 0;padding-left:18px;font-size:12.5px}.hist-snap li{margin:2px 0}
/* The tradeboard and the trade rows on the approvals page. */
.tb-mode{font-size:12.5px;color:#3730a3;background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:8px 12px;margin:0 0 14px}
.tb-row{display:flex;align-items:center;gap:13px;padding:9px 0;border-bottom:1px solid #f0f2f5}
.tb-row:last-child{border-bottom:0}
.tb-row.is-pending{background:#f5f7ff;border-radius:8px;padding:9px 10px;margin-bottom:6px}
.tb-info{flex:1;min-width:0;font-weight:600}
.tb-info .muted{font-weight:400;font-size:12.5px}
.tb-act{flex:none;display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.tb-act form{margin:0}
.tb-tag{display:inline-block;font-size:10px;font-weight:800;border-radius:5px;padding:2px 7px;margin-left:4px;text-transform:uppercase}
.tb-tag.is-drop{background:#dbeafe;color:#1e40af}.tb-tag.is-trade{background:#ede9fe;color:#6d28d9}
.tb-block{font-size:11.5px;color:#b91c1c;font-weight:600;max-width:220px;text-align:right}
.tb-warn{font-size:11.5px;color:#b45309;font-weight:600;max-width:220px;text-align:right}
.tb-swap{display:inline-flex;gap:6px;align-items:center}.tb-swap select{width:auto;padding:5px 8px;font-size:12.5px}
.btn.go{background:#16a34a}
.chip.is-open{background:#dbeafe;color:#1e40af}.chip.is-claimed,.chip.is-offerer_accepted{background:#fef3c7;color:#92400e}
.chip.is-completed{background:#dcfce7;color:#166534}.chip.is-void{background:#fee2e2;color:#991b1b}
