/* 3D Marvels · Xometry app — brand: amber #FFAA33 + black, Helvetica (matches 3dmarvels.ie) */
:root {
  --amber: #FFAA33; --amber-dark: #c9812a; --amber-soft: #fff4e2;
  --black: #111111; --ink: #222222; --muted: #6b6b6b; --line: #e6e3dd; --bg: #f5f3ef; --card: #ffffff;
  --ok: #1b7f3b; --ok-soft: #e7f5ec; --bad: #b00020; --bad-soft: #fde8ec; --warn: #a86400; --warn-soft: #fff1d6;
  --grey-soft: #eeeeee; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 Helvetica, "Helvetica Neue", Arial, Verdana, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--black); }
a:hover { color: var(--amber-dark); }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* header */
.top { background: var(--black); color: #fff; border-bottom: 4px solid var(--amber); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; color: var(--amber); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: #e9e9e9; text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: 14px; }
.nav a:hover, .nav a.on { background: #262626; color: var(--amber); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfcfcf; }
@media (max-width: 700px) {
  .top-in { gap: 8px 14px; }
  .who { margin-left: auto; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; padding: 6px 9px; }
}
.who form { margin: 0; }
.linkbtn { background: none; border: 0; color: #cfcfcf; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.linkbtn:hover { color: var(--amber); }

main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* flash */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; white-space: pre-line; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }

/* status bar + tiles */
.statusbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.statusbar .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.statusbar .dot.bad { background: var(--bad); }
.statusbar .dot.paused { background: var(--warn); }
.statusbar form { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--black); color: #fff; border-radius: var(--radius); padding: 14px; text-decoration: none; display: block; }
.tile:hover { color: #fff; outline: 2px solid var(--amber); }
.tile .k { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.tile .v { font-size: 30px; font-weight: 700; padding-top: 4px; }
.tile.light { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.tile.light .k { color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filters select, .filters input[type=search] { width: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.filters input[type=search] { min-width: 220px; flex: 1; }

/* table */
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:hover td { background: #fbfaf7; }
table.list td.headline { min-width: 260px; }
table.kv { border-collapse: collapse; width: 100%; }
table.kv td { padding: 5px 0; vertical-align: top; }
table.kv td:first-child { color: var(--muted); width: 46%; padding-right: 10px; }
table.kv tr.total td { border-top: 1px solid var(--line); font-weight: 700; }
@media (max-width: 700px) { .hide-sm { display: none; } }

/* pills */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-ACCEPT { background: var(--ok-soft); color: var(--ok); }
.p-REVIEW { background: var(--warn-soft); color: var(--warn); }
.p-REJECT { background: var(--grey-soft); color: #555; }
.lean { font-size: 12px; color: var(--muted); }
.lean.yes { color: var(--ok); } .lean.no { color: var(--bad); }
.tag { display: inline-block; background: var(--amber-soft); color: #7a4b00; border-radius: 6px; padding: 1px 7px; font-size: 12px; margin: 0 4px 4px 0; }
.st { font-size: 12px; color: var(--muted); }
.st.gone { text-decoration: line-through; }
.st.responded { color: var(--ok); font-weight: 700; }

/* forms + buttons */
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 9px 10px; border: 1px solid #d6d2ca; border-radius: 8px; font: inherit; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
textarea { min-height: 80px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.check input { margin-top: 3px; }
.btn { display: inline-block; background: var(--amber); color: var(--black); border: 0; border-radius: 9px; padding: 10px 16px;
  font: 700 14px Helvetica, Arial, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { background: #ffb84f; color: var(--black); }
.btn.dark { background: var(--black); color: #fff; } .btn.dark:hover { background: #333; color: var(--amber); }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 700px) { .fields2 { grid-template-columns: 1fr; } }

/* respond tabs (pure CSS radio tabs — no JS needed) */
.tabs > input { display: none; }
.tabs > label.tab { display: inline-block; margin: 0 6px 0 0; padding: 8px 14px; border-radius: 9px 9px 0 0; background: var(--grey-soft); cursor: pointer; font-weight: 700; }
.tabs .panel { display: none; border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 14px; background: #fff; }
#t-accept:checked ~ label[for=t-accept], #t-counter:checked ~ label[for=t-counter], #t-decline:checked ~ label[for=t-decline] { background: var(--black); color: var(--amber); }
#t-accept:checked ~ .p-accept, #t-counter:checked ~ .p-counter, #t-decline:checked ~ .p-decline { display: block; }
.warnbox { background: var(--warn-soft); border-left: 5px solid var(--amber); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.bad-box { background: var(--bad-soft); border-left: 5px solid var(--bad); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
pre.payload { background: #1b1b1b; color: #f2f2f2; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; }

/* policy table */
table.policy td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.policy label { display: inline-flex; gap: 4px; font-weight: 400; margin: 0 10px 0 0; }

/* auth pages */
.authwrap { max-width: 420px; margin: 60px auto; }
.authwrap .card { padding: 26px; }
.authhead { background: var(--black); border-radius: var(--radius) var(--radius) 0 0; padding: 18px 22px; border-bottom: 4px solid var(--amber); display: flex; align-items: center; gap: 12px; }
.authhead img { height: 44px; }
.authhead span { color: var(--amber); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; }
.authwrap .card.joined { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
.ev-kind { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* platforms + settings widgets */
.span2 { grid-column: 1 / -1; }
.matgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
.choice-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.choice-card:hover { border-color: var(--amber); }
.override { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.override:first-of-type { border-top: 0; }
.w-auto { width: auto; min-width: 220px; }
table.list tr.newrow td { background: var(--amber-soft); }
table.list td input[type=text], table.list td select { padding: 6px 8px; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
