:root {
  --bg: #eef3f8;              /* cool light blue-gray */
  --card: #ffffff;
  --ink: #1f2733;
  --muted: #6b7480;
  --line: #d8e2ec;
  --accent: #0d1484;         /* Morningside navy (sampled from the logo) */
  --accent-dark: #090e5e;
  --accent-light: #c0e0f0;   /* Morningside powder blue */
  --accent-tint: #eef6fb;    /* very light blue for panels */
  --green: #2e7d4f;
  --red: #b23b3b;
  --amber: #b7791f;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.site-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.5rem;
  background: var(--accent);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .3px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-sub { font-weight: 600; opacity: .9; border-left: 1px solid rgba(255,255,255,.45); padding-left: .6rem; font-size: .95rem; }
.badge { font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; font-weight: 700; }
.badge-demo { background: #ffd27a; color: #6b4b00; }

.container { max-width: 760px; margin: 2rem auto; padding: 0 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card-narrow { max-width: 380px; margin: 0 auto; }
.card-wide { max-width: 100%; }

h1 { margin-top: 0; font-size: 1.5rem; }
h3 { margin-bottom: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem;
  font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }
.btn-approve { background: var(--green); color: #fff; border-color: var(--green); }
.btn-reject { background: var(--red); color: #fff; border-color: var(--red); }

.alert { padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.alert-error { background: #fbeaea; color: var(--red); border: 1px solid #f0c9c9; }
.alert-warn { background: #fdf3e2; color: var(--amber); border: 1px solid #f3e0b8; }
.alert-etsy { background: #fdeede; color: #a0521a; border: 1px solid #f2c99a; }
.alert ul { margin: 0; padding-left: 1.2rem; }

.eligible-banner { background: #e9f5ee; color: var(--green); padding: .6rem .9rem; border-radius: 8px; }

table { width: 100%; border-collapse: collapse; }
.items th, .items td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.items th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.row-disabled { opacity: .5; }
.qty { color: var(--muted); font-weight: 600; }
.radio { display: inline-flex; align-items: center; gap: .3rem; margin-right: .9rem; font-weight: 500; }

.boxes { display: flex; flex-direction: column; gap: .3rem; margin: 1.25rem 0; font-weight: 600; max-width: 320px; }

.estimate { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; }
.breakdown, .breakdown-full { width: 100%; margin: .5rem 0; }
.breakdown td { padding: .35rem 0; }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown .deduct td { color: var(--muted); }
.breakdown .total td { border-top: 2px solid var(--line); font-weight: 700; font-size: 1.1rem; padding-top: .6rem; }
.breakdown-full th, .breakdown-full td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.breakdown-full td:nth-child(n+3), .breakdown-full th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }

.actions { display: flex; gap: .75rem; margin-top: 1rem; }

.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.pill-opened { background: #fdf3e2; color: var(--amber); }
.pill-unopened { background: #e9f5ee; color: var(--green); }
.pill-status-pending { background: #eef1f6; color: #4b5b76; }
.pill-status-approved { background: #e9f5ee; color: var(--green); }
.pill-status-rejected { background: #fbeaea; color: var(--red); }
.pill-etsy { background: #fdeede; color: #a0521a; }

.reference { font-size: 1.6rem; font-weight: 800; letter-spacing: 2px; color: var(--accent); background: var(--accent-tint); padding: .75rem; border-radius: 10px; text-align: center; }
.success-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.next-steps ol { padding-left: 1.2rem; }

.labels-block { background: var(--accent-tint); border: 1px solid #c3ddf0; border-radius: 10px; padding: 1rem 1.2rem; margin: 1.25rem 0; }
.labels-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.labels-list li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid #d3e6f5; }
.labels-list li:first-child { border-top: none; }
.box-tag { font-weight: 700; }
.carrier { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; font-size: .78rem; font-weight: 700; }

.demo-hint { margin-top: 1.5rem; padding: .9rem 1.1rem; background: var(--accent-tint); border: 1px dashed #a9d3ec; border-radius: 8px; font-size: .9rem; }
.demo-hint ul { margin: .4rem 0 0; }

.admin-bar { display: flex; justify-content: space-between; align-items: center; }
.filters { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.chip { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .85rem; }
.chip-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-table th, .admin-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table tr.clickable:hover { background: var(--accent-tint); cursor: pointer; }
.flag { color: var(--amber); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0; }
.decide-form { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.decide-form textarea { font-family: inherit; }

.site-footer { max-width: 760px; margin: 1rem auto 3rem; padding: 0 1rem; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer a { color: var(--accent); }
