/* metalcutlist.com — site look. The Order Generator brings its own styles
   (/shared/order-generator.css) and reads the five variables marked "tool". */
:root {
  color-scheme: light;
  --text: #1f2937;                 /* tool */
  --text-muted: #6b7280;           /* tool */
  --border: #e5e7eb;               /* tool */
  --radius-md: 10px;               /* tool */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);   /* tool */
  --bg: #f3f5f7;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --brand: #047857;
  --brand-dark: #065f46;
  --brand-tint: #ecfdf5;
  --steel: #94a3b8;
  --danger: #b91c1c;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }

/* ── brand mark ── */
.mc-mark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 17px; white-space: nowrap; }
.mc-mark svg { width: 30px; height: 30px; flex: 0 0 auto; }
.mc-mark.dark { color: var(--ink); }

/* ── buttons + fields (site screens; the tool has its own .po-btn) ── */
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px var(--font); border-radius: 8px; padding: 10px 18px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; }
.mc-btn:hover { background: #f9fafb; }
.mc-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mc-btn.primary:hover { background: var(--brand-dark); }
.mc-btn.small { padding: 5px 11px; font-size: 13px; }
.mc-btn.danger { color: var(--danger); }
.mc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.mc-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.mc-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mc-field label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.mc-field input, .mc-field select, .mc-field textarea { font: 15px var(--font); padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus { outline: 2px solid #a7f3d0; border-color: var(--brand); }
.mc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mc-note { font-size: 13px; color: var(--text-muted); }
.mc-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; }
.mc-ok { background: var(--brand-tint); border: 1px solid #a7f3d0; color: #065f46; font-size: 14px; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; }
.mc-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 16px; }
.mc-card h2 { margin: 0 0 4px; font-size: 18px; }
.mc-card h3 { margin: 18px 0 8px; font-size: 15px; }
table.mc-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mc-tbl th, table.mc-tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.mc-tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.mc-tbl-wrap { overflow-x: auto; }
.mc-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #eef2f7; color: #334155; }
.mc-pill.on { background: var(--brand-tint); color: #065f46; }
.mc-pill.off { background: #fee2e2; color: #991b1b; }

/* ── signed-in app chrome ── */
.mc-top { background: var(--ink); color: #e2e8f0; display: flex; align-items: center; gap: 14px; padding: 10px 18px; position: sticky; top: 0; z-index: 50; flex-wrap: wrap; }
.mc-top .mc-co { font-size: 13px; color: var(--steel); border-left: 1px solid #334155; padding-left: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.mc-top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.mc-top nav a, .mc-top nav button { font: 600 13px var(--font); color: #cbd5e1; background: none; border: 0; padding: 7px 12px; border-radius: 7px; cursor: pointer; text-decoration: none; }
.mc-top nav a:hover, .mc-top nav button:hover { background: var(--ink-2); color: #fff; }
.mc-top nav a.active { background: var(--brand); color: #fff; }
.mc-main { padding: 18px 16px 40px; }
.mc-panel { max-width: 860px; margin: 0 auto; }
.mc-foot { text-align: center; font-size: 12px; color: var(--steel); padding: 18px 16px 28px; }
.mc-foot a { color: var(--steel); }

/* ── sign-in screens ── */
.mc-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; background: linear-gradient(180deg, var(--ink) 0, var(--ink) 220px, var(--bg) 220px); }
.mc-auth .mc-mark { margin-bottom: 22px; }
.mc-auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 26px 24px; }
.mc-auth-card h1 { font-size: 21px; margin: 0 0 4px; }
.mc-auth-card p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }
.mc-auth-card .mc-btn { width: 100%; }
.mc-auth-links { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* loading */
.mc-spin { width: 28px; height: 28px; border: 3px solid #d1d5db; border-top-color: var(--brand); border-radius: 50%; animation: mcspin .8s linear infinite; margin: 30px auto; }
@keyframes mcspin { to { transform: rotate(360deg); } }

/* logo preview */
.mc-logo-box { display: flex; align-items: center; justify-content: center; width: 240px; height: 80px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fafafa; overflow: hidden; }
.mc-logo-box img { max-width: 100%; max-height: 100%; }

@media (max-width: 640px) {
  .mc-top .mc-co { display: none; }
  .mc-top nav { margin-left: 0; width: 100%; }
}
