/* iGel Beauty Partners. Colors follow igelbeauty.com: white, a blush band, soft pink cards,
   a pink-to-lavender ring and the gold logo. Jost stands in for their licensed Futura PT. */
@font-face {
  font-family: "Jost";
  src: url("jost.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --pink: #eb4c89;
  --pink-hover: #d93d79;
  --pink-text: #b8296a;
  --blush: #fff5f8;
  --blush-2: #fdeef4;
  --pink-card: #f9dfe9;
  --line: #f6dbe6;
  --ring-a: #ec8cc6;
  --ring-b: #c7a6f2;
  --lavender: #f4eefd;
  --lavender-text: #6a3fb5;
  --gold-wash: #fff6e0;
  --gold-text: #8a5d00;
  --text: #2b2b2b;
  --muted: #6b6470;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(150, 60, 100, .05), 0 6px 20px rgba(150, 60, 100, .06);
  --ring: linear-gradient(135deg, var(--ring-a), var(--ring-b));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.5 "Jost", "Futura PT", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}
svg:not(.chip):not(.dot-chip) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--pink-text); text-underline-offset: 2px; }
h1, h2, h3 { color: #1f1a22; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.warn { color: var(--pink-text); }
.mt { margin-top: 18px; }
:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 2px; }

/* Sign-in pages */
.public { background: #fff; }
.band { height: 64px; background: var(--blush); border-bottom: 1px solid var(--line); }
.auth { max-width: 420px; margin: -40px auto 48px; padding: 0 16px; text-align: center; }
.auth-logo img { width: 150px; height: auto; display: block; margin: 0 auto; background: #fff; border-radius: 50%; padding: 6px 10px; }
.auth-kicker { margin: 2px 0 18px; letter-spacing: .28em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: left; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.auth-card > p { margin: 0 0 18px; }
.auth-foot { text-align: center; margin: 16px 0 0; }

/* Sign-in page: photo on the left on wide screens, a short strip above the form on phones. */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--blush); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.auth-art-line {
  position: absolute; right: 32px; bottom: 32px; margin: 0 0 0 32px; padding: 14px 20px; max-width: 360px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); border-radius: 14px;
  font-size: 18px; font-weight: 500; color: #3d3640;
}
.auth-side { display: flex; flex-direction: column; background: #fff; }
.auth-side .auth { margin-top: -40px; }

/* Application form (the front page) */
.apply-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; }
.apply-art { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--blush); }
.apply-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.apply-art-text {
  position: absolute; left: 28px; right: 28px; bottom: 28px; padding: 20px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(8px); color: #3d3640;
}
.apply-art-text p { margin: 0; }
.apply-art-title { font-size: 22px; font-weight: 600; color: #1f1a22; margin: 4px 0 10px !important; }
.apply-art-text ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.apply-art-text li::marker { color: var(--pink); }
.apply-side { background: #fff; display: flex; flex-direction: column; min-width: 0; }
.apply-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: var(--blush); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.apply-top img { width: 92px; height: auto; display: block; }
.apply-main { padding: 28px 32px 56px; max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.apply-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.apply-head p { margin: 0; }
.apply-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.apply-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--ring); }
.apply-group { border: 0; padding: 0 0 6px; margin: 0; }
.apply-group + .apply-group { border-top: 1px solid #f6e4ec; padding-top: 16px; }
.apply-group legend { font-size: 16px; font-weight: 600; color: #1f1a22; margin-bottom: 12px; }
.req { color: var(--pink-text); font-weight: 600; }
.field-error { font-size: 13px; font-weight: 400; color: #a3123f; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e7a4b9; background: #fff7fa; }
.check.has-error { color: #a3123f; }
.apply-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--lavender); color: #3d3640; }
.apply-note svg { color: var(--lavender-text); margin-top: 2px; }
.apply-note p { margin: 2px 0 0; font-size: 14px; }
.apply-submit { margin-top: 6px; min-height: 50px; font-size: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.applied { align-items: center; text-align: center; padding: 44px 28px; }
.applied h1 { margin: 0; font-size: 26px; }
.applied p { margin: 0; max-width: 460px; }
.applied-icon { width: 56px !important; height: 56px !important; color: var(--pink); stroke-width: 1.6 !important; }
.application .facts { grid-template-columns: 110px 1fr; }

/* Site editor (admins only, while editing) */
.edit-bar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px; background: #2f0f1b; color: #fbe3ee; font-size: 14px;
}
.edit-bar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(235, 76, 137, .3); flex: none; }
.edit-bar-text { flex: 1; min-width: 220px; }
.edit-bar-text strong { color: #fff; }
.edit-bar-as { display: block; color: #f3c9da; font-size: 13px; }
.edit-bar a.edit-bar-link { color: #fbe3ee; }
.edit-bar form { margin: 0; }
.edit-bar-done { background: var(--pink); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.edit-bar-done:hover { background: var(--pink-hover); }
body.editing .cms-edit { outline: 1.5px dashed rgba(235, 76, 137, .6); outline-offset: 2px; border-radius: 4px; cursor: text; }
body.editing .cms-edit:hover { background: rgba(251, 219, 232, .55); }
body.editing .cms-edit:focus { outline: 2px solid var(--pink); background: #fff; color: #1f1a22; }
body.editing .btn .cms-edit:focus, body.editing .nav a[aria-current="page"] .cms-edit:focus { color: #1f1a22; }
.cms-saving { opacity: .55; }
.cms-photo { position: relative; }
.apply-art.cms-photo { position: sticky; }
.cms-photo-button {
  position: absolute; top: 14px; right: 14px; z-index: 5; border: 0; border-radius: 999px; padding: 9px 16px;
  background: rgba(47, 15, 27, .82); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.cms-photo-button:hover { background: #2f0f1b; }
.edit-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 999px;
  background: #1f6b47; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.edit-toast-bad { background: #a3123f; border-radius: 14px; max-width: min(92vw, 520px); text-align: center; }
.edit-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: min(360px, calc(100vw - 36px)); max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px;
}
.edit-panel summary { margin: 0; color: var(--pink-text); }
.edit-panel[open] summary { margin-bottom: 8px; }
.edit-panel label { margin-top: 10px; font-size: 13px; color: var(--muted); }
.site-pages { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.site-pages li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f8e8ee; }
.site-pages li:last-child { border-bottom: 0; }
.site-pages form { margin: 0; }
.site-partner label { margin-top: 4px; }
.site-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }

/* Welcome banners */
.hello {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch;
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(120deg, #fde6ef, #f1e8fd);
  border: 1px solid var(--line); min-height: 170px;
}
.hello-text { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.hello-text h2 { margin: 2px 0 6px; font-size: 26px; font-weight: 600; }
.hello-text p { margin: 0; color: #4b4350; }
.hello-kicker { font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-text) !important; font-weight: 500; }
.hello img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 170px; }
.hello-cover { display: block; position: relative; min-height: 210px; }
.hello-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hello-cover .hello-text { position: relative; z-index: 1; max-width: 46%; min-height: 210px; }
.hello-package { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hello-package img { max-height: 220px; }
.demo-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-text); border: 1px solid #f3dfa8; margin-right: 14px; }
.topbar .demo-tag { margin-left: auto; }
.topbar .top-links .demo-tag { margin-left: 0; }
.topbar .top-tag-near { margin-left: 0; }

/* Layout */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px;
  flex: none;
  background: var(--blush);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { text-align: center; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand img { width: 124px; height: auto; display: block; margin: 0 auto 10px; }
.who { display: flex; flex-direction: column; gap: 2px; }
.who .name { font-weight: 600; color: #1f1a22; }
.who .status, .who .role { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.who .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b2bd; }
.who .status-active .dot { background: #3aa877; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .logout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #3d3640;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--blush-2); color: var(--pink-text); }
.nav a[aria-current="page"] { background: linear-gradient(90deg, #fbe1ed, #f1e8fd); color: var(--pink-text); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--ring); }
.nav .count, .threads .count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.logout-form { margin-top: auto; padding-top: 12px; }
.logout { width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; }
.logout:hover { background: var(--blush-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fffbfc; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 21px; font-weight: 600; }
.top-links { margin-left: auto; font-size: 14px; }
.top-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--pink-text); }
.top-links svg { width: 17px !important; height: 17px !important; }
.top-tag { margin-left: auto; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--lavender); color: var(--lavender-text); font-weight: 500; }
.menu { display: none; background: none; border: 0; padding: 6px; margin: -6px 0 -6px -6px; color: #1f1a22; cursor: pointer; border-radius: 8px; }
.menu svg { width: 24px !important; height: 24px !important; }
.content { padding: 26px 32px 56px; max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 20px; }

/* Cards and blocks */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; min-width: 0; }
.card h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card h2.tab { display: inline-block; font-size: 15px; font-weight: 500; color: var(--pink-text); padding-bottom: 8px; margin-bottom: 20px; border-bottom: 2px solid transparent; border-image: var(--ring) 1; }
.card h2.mt { margin-top: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.small-head { font-size: 15px; margin: 18px 0 8px; }
.empty { margin: 0; color: var(--muted); }
.empty.warn { color: var(--pink-text); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.brief { white-space: normal; line-height: 1.6; margin: 8px 0 0; }
.address { margin: 0; line-height: 1.6; }
.more { display: inline-block; margin-top: 12px; font-weight: 500; }
.hint {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--ring-a); color: var(--pink-text); font-size: 11px; font-weight: 600; cursor: help;
}

.notice { display: flex; align-items: center; gap: 18px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice-icon { width: 46px !important; height: 40px !important; color: var(--pink); stroke-width: 2.2 !important; }
.notice p { margin: 0; flex: 1; }
.notice-soft { background: var(--blush); box-shadow: none; }
.notice-soft .notice-icon { width: 34px !important; height: 34px !important; color: var(--lavender-text); stroke-width: 1.6 !important; }

.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 15px; margin: 0; }
.flash p { margin: 0 0 8px; }
.flash-ok { background: #eff8f3; border-color: #cfe9db; color: #1f5c40; }
.flash-error { background: #fdeef3; border-color: #f6c9d8; color: #9c1e52; }
.flash-warn { background: var(--gold-wash); border-color: #f3dfa8; color: #6f4b00; }
.auth-card .flash { margin-bottom: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px; border: 1px solid var(--pink); border-radius: 999px;
  background: var(--pink); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--pink-hover); border-color: var(--pink-hover); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--pink-text); border-color: #f0b8cf; }
.btn-ghost:hover { background: var(--blush-2); color: var(--pink-text); border-color: var(--pink); }
.btn-danger { background: #fff; color: #a3123f; border-color: #e7a4b9; }
.btn-danger:hover { background: #fdeef3; color: #a3123f; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button-row form { margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-button:hover { color: #a3123f; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.form h2 { margin: 10px 0 0; }
.form h2:first-of-type { margin-top: 0; }
.form-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.span-2 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: #3d3640; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  padding: 10px 12px; border: 1px solid #ead0db; border-radius: 12px; background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring-a); box-shadow: 0 0 0 3px rgba(236, 140, 198, .25); }
input:disabled { background: var(--blush); color: var(--muted); }
input[type="color"] { width: 64px; height: 44px; padding: 4px; border: 1px solid #ead0db; border-radius: 12px; background: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--pink); width: 18px; height: 18px; }
textarea { resize: vertical; }
.hint-text { font-weight: 400; font-size: 13px; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 500; color: #3d3640; padding: 0; margin-bottom: 8px; }
details summary { cursor: pointer; color: var(--pink-text); font-weight: 500; margin: 6px 0 14px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 4px 0 8px; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline select { width: auto; min-width: 220px; }

/* Commission numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: center; }
.stat { padding: 18px 8px; border-radius: 14px; }
.stat .amount { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .label { display: block; font-size: 16px; font-weight: 500; margin-top: 4px; }
.stat.pending { background: var(--gold-wash); color: var(--gold-text); }
.stat.approved { background: var(--blush-2); color: var(--pink-text); }
.stat.paid { background: var(--lavender); color: var(--lavender-text); }
.stats-small .amount { font-size: 22px; }
.stats-small { margin-bottom: 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--radius); background: var(--pink-card); color: #1f1a22; text-decoration: none; transition: transform .15s ease; }
.tile:nth-child(2n) { background: var(--lavender); }
.tile:hover { transform: translateY(-2px); }
.tile-num { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-label { font-size: 14px; color: #4b4350; }

/* Codes */
.codes { display: flex; flex-direction: column; gap: 10px; }
.code-chip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--blush); border: 1px dashed var(--ring-a); }
.code-text { font-size: 20px; font-weight: 700; letter-spacing: .08em; color: var(--pink-text); }
.code-meta { color: var(--muted); font-size: 14px; flex: 1; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #f8e8ee; vertical-align: top; }
td.empty { text-align: center; padding: 26px 12px; }
td form { margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.dim td { opacity: .55; }
tfoot td { border-bottom: 0; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #f1edf3; color: #4b4350; }
.badge-active, .badge-approved, .badge-delivered { background: #e9f6ef; color: #1f6b47; }
.badge-pending, .badge-preparing, .badge-assigned, .badge-requested { background: var(--gold-wash); color: var(--gold-text); }
.badge-submitted, .badge-shipped, .badge-open { background: var(--lavender); color: var(--lavender-text); }
.badge-changes, .badge-paused { background: var(--blush-2); color: var(--pink-text); }
.badge-paid { background: #e8f1fd; color: #1d4f91; }
.badge-closed, .badge-cancelled, .badge-void { background: #f1edf3; color: #5d5562; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { padding: 6px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.pills a[aria-current="page"] { background: var(--blush-2); color: var(--pink-text); border-color: var(--ring-a); }

.facts { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid #f8e8ee; }
.list li:last-child { border-bottom: 0; }

/* Colors */
.collection { font-size: 15px; font-weight: 600; margin: 18px 0 10px; color: #4b4350; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 12px; }
.swatches-small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.swatch-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.swatch-cell[hidden] { display: none; }
.swatch-link { font-size: 12px; color: var(--muted); }
.swatch-link:hover { color: var(--pink-text); }
.search { max-width: 420px; margin-bottom: 4px; }
.search-small { width: 220px; padding: 8px 12px; font: inherit; font-size: 15px; border: 1px solid #ead0db; border-radius: 999px; }
.hex-form { display: inline; margin: 0; }
.hex-form input[type="color"] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; vertical-align: middle; margin-right: 8px; cursor: pointer; background: none; }
tr[hidden] { display: none; }
.swatch { position: relative; align-items: center; text-align: center; gap: 4px; cursor: pointer; font-weight: 400; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ring { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: #f1e6ec; transition: background .15s ease, transform .15s ease; }
.swatches-small .ring { width: 60px; height: 60px; }
.chip { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; display: block; }
.swatch:hover .ring { transform: scale(1.04); }
.swatch input:checked + .ring { background: var(--ring); }
.swatch input:checked + .ring::after { content: "✓"; position: absolute; top: 0; right: calc(50% - 40px); width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.swatch input:focus-visible + .ring { outline: 2px solid var(--pink-text); outline-offset: 2px; }
.swatch-name { font-size: 14px; color: var(--text); line-height: 1.3; }
.swatch-code { font-size: 12px; color: var(--muted); }
.dot-chip { width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.sticky-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px -26px -22px; padding: 14px 26px; background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); backdrop-filter: blur(6px); }
.pick-count { font-weight: 500; color: var(--muted); }
.pick-count.over { color: #a3123f; }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.items li { display: flex; align-items: center; }
.timeline { list-style: none; display: flex; margin: 6px 0 16px; padding: 0; counter-reset: step; }
.timeline li { flex: 1; position: relative; padding-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #efe3ea; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #efe3ea; }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--pink-text); font-weight: 500; }
.timeline li.done::before { background: var(--ring); }
.timeline li.done::after { background: var(--ring-a); }

.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.steps li::marker { color: var(--pink); font-weight: 600; }

.send-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-color: var(--ring-a); background: linear-gradient(120deg, #fff, var(--blush)); }
.send-card h2 { margin-bottom: 4px; }
.send-card p { margin: 0; }
.send-card .flash { margin-top: 10px; }

/* Assignments review */
.review-list { display: flex; flex-direction: column; }
.review { padding: 14px 0; border-bottom: 1px solid #f8e8ee; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review p { margin: 6px 0 0; overflow-wrap: anywhere; }
.review-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.review-form input { flex: 1 1 260px; }
.inline-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f8e8ee; }

/* Messages */
.chat { display: flex; flex-direction: column; padding-bottom: 18px; }
.chat-intro { margin: 0; }
.chat-log { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; min-height: 240px; overflow-y: auto; padding: 16px; margin: 0 -10px; background: #fffbfc; border: 1px solid #f8e8ee; border-radius: 14px; }
.chat-empty { margin: auto; }
.msg { max-width: 78%; align-self: flex-start; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: #fff; border: 1px solid var(--line); }
.msg-team { background: var(--lavender); border-color: #e3d6fa; }
.msg-mine { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--pink-card); border-color: #f3c9da; }
.msg-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg-meta strong { color: #1f1a22; font-weight: 600; font-size: 13px; }
.team-tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--lavender-text); font-size: 11px; font-weight: 600; margin-left: 2px; }
.msg-body { overflow-wrap: anywhere; line-height: 1.45; }
.msg-removed { font-style: italic; color: var(--muted); }
.msg-remove { margin: 4px 0 0; text-align: right; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.chat-form textarea { flex: 1; min-height: 48px; max-height: 180px; }

.threads { list-style: none; margin: 0; padding: 0; }
.threads a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 8px; border-bottom: 1px solid #f8e8ee; text-decoration: none; color: var(--text); border-radius: 10px; }
.threads a:hover { background: var(--blush); }
.thread-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.threads .count { margin-left: 0; }
.thread-time { font-size: 13px; color: var(--muted); grid-row: 1; grid-column: 2; }
.thread-last { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.threads .unread .thread-last { color: var(--text); }

.scrim { position: fixed; inset: 0; background: rgba(60, 30, 50, .35); z-index: 20; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-split { grid-template-columns: 1fr; }
  .apply-split { grid-template-columns: 1fr; }
  .apply-art { position: relative; height: 200px; }
  .apply-art-text { display: none; }
  .apply-top { padding: 10px 16px; }
  .apply-main { padding: 20px 16px 40px; }
  .apply-head h1 { font-size: 24px; }
  .apply-card { padding: 22px 16px; }
  .auth-art { height: 180px; }
  .auth-art-line { display: none; }
  .auth-side .band { display: none; }
  .auth-side .auth { margin-top: -54px; }
  .hello, .hello-package { grid-template-columns: 1fr; }
  .hello img { order: -1; max-height: 140px; min-height: 0; }
  .hello-cover { display: flex; flex-direction: column; }
  .hello-cover img { position: static; height: 140px; object-position: 70% center; }
  .hello-cover .hello-text { max-width: none; min-height: 0; }
  .hello-text { padding: 18px 18px 20px; }
  .hello-text h2 { font-size: 22px; }
}

/* Phones and small tablets: the menu slides in from the left. */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(60, 30, 50, .15); }
  .sidebar.open { transform: none; }
  .menu { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 16px 16px 40px; gap: 16px; }
  .card { padding: 18px 16px; }
  .grid-2, .form { grid-template-columns: 1fr; }
  .notice { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .notice p { flex-basis: calc(100% - 64px); }
  .notice .btn { width: 100%; }
  .stats { gap: 8px; }
  .stat { padding: 14px 4px; }
  .stat .amount { font-size: 20px; }
  .stat .label { font-size: 14px; }
  .sticky-save { margin: 18px -16px -18px; padding: 12px 16px; }
  .swatches, .swatches-small { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 14px 6px; }
  .ring, .swatches-small .ring { width: 62px; height: 62px; }
  .swatch input:checked + .ring::after { right: calc(50% - 34px); }
  .swatch-name { font-size: 13px; }
  .msg { max-width: 90%; }
  .chat-log { margin: 0 -6px; padding: 12px; }
  .facts { grid-template-columns: 110px 1fr; }
  .form-inline { width: 100%; }
  .form-inline select { flex: 1; min-width: 0; }
  .auth-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
