/* MWD Cards - blank/neutral template.
   Deliberately unbranded: white surfaces, dark ink, one accent from the logo. */

:root {
  --ink:        #16161a;
  --ink-2:      #45454f;
  --muted:      #74747f;
  --line:       #e4e4ea;
  --line-2:     #eeeef2;
  --surface:    #ffffff;
  --canvas:     #f4f4f7;
  --accent:     #ff7a45;
  --accent-ink: #b23c10;
  --accent-sub: #fff2ec;
  --violet:     #a03cf0;
  --violet-sub: #f6eeff;
  --ok:         #147a4a;
  --ok-sub:     #e8f6ee;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(20,20,30,.05), 0 8px 24px rgba(20,20,30,.06);
  --shadow-lg:  0 2px 4px rgba(20,20,30,.06), 0 18px 48px rgba(20,20,30,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Every inline icon ships at one size unless a component says otherwise. */
.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -2px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Shared atoms ------------------------------------------------ */

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s ease, border-color .13s ease, transform .06s ease;
}
.btn:hover { background: #fafafc; border-color: #d6d6de; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #2a2a32; border-color: #2a2a32; }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #f56a32; border-color: #f56a32; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #ebebf0; border-color: transparent; }

.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-danger { color: #b3261e; }
.btn-danger:hover { background: #fdf0ef; border-color: #f2c9c6; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--line-2);
  color: var(--ink-2);
}
.pill-accent  { background: var(--accent-sub); color: var(--accent-ink); }
.pill-violet  { background: var(--violet-sub); color: #6b1fb0; }
.pill-ok      { background: var(--ok-sub); color: var(--ok); }

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field .help { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=password], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  transition: border-color .13s ease, box-shadow .13s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,122,69,.16);
}
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }

.row { display: flex; gap: 14px; }
.row > * { flex: 1; min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
}
.panel-head h2 { font-size: 16px; }
.panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.panel-body { padding: 22px; }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfbfd;
}

/* ---------- Toggle switch ---------------------------------------------- */

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: #d3d3dc;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s ease;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
  transition: transform .16s ease;
}
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- App shell --------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.topbar .wordmark { font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.topbar .sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.topbar .spacer { flex: 1; }
.topbar .who { text-align: right; line-height: 1.25; white-space: nowrap; }
.topbar .who .name { font-size: 13.5px; font-weight: 600; }
.topbar .who .role { font-size: 12px; color: var(--muted); }
.topbar .btn, .topbar .pill { white-space: nowrap; }

.shell { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 23px; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.split { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.sticky-col { position: sticky; top: 82px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* ---------- Login ------------------------------------------------------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(900px 500px at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 70%),
    var(--canvas);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 28px;
}
.login-card .brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; }
.login-card .brand img { width: 56px; height: 56px; border-radius: 15px; }
.login-card .brand h1 { margin-top: 14px; font-size: 20px; }
.login-card .brand p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }

.seg { display: flex; padding: 3px; background: var(--line-2); border-radius: 11px; margin-bottom: 22px; }
.seg button {
  flex: 1;
  white-space: nowrap;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.09); }

.seg-sm { margin: 0; padding: 2px; border-radius: 9px; }
.seg-sm button { padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.topbar .demo-tag { font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .topbar .wordmark { display: none; } }
@media (max-width: 800px) { .topbar .demo-tag, .topbar .pill { display: none; } }
@media (max-width: 660px) {
  .topbar .sep, .topbar .who { display: none; }
  .topbar { gap: 9px; padding: 10px 13px; }
  .shell { padding: 20px 14px 60px; }
  .stat-strip { gap: 18px; padding: 12px 14px; }
}

.login-error {
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fdf0ef;
  border: 1px solid #f2c9c6;
  color: #b3261e;
  font-size: 13px;
}

.demo-keys {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.demo-keys .label { margin-bottom: 10px; }
.demo-key {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.demo-key:hover { background: #fafafc; }
.demo-key .k-name { font-size: 13.5px; font-weight: 600; }
.demo-key .k-sub { font-size: 12px; color: var(--muted); }

/* ---------- Team roster ------------------------------------------------- */

.roster { display: grid; gap: 12px; }
.roster-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.roster-row:hover { border-color: #d0d0da; box-shadow: var(--shadow); }
.roster-row .who .t code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.stat-strip { display: flex; gap: 26px; padding: 14px 18px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat-strip .s-v { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.stat-strip .s-l { font-size: 12px; color: var(--muted); }
.roster-row .avatar { width: 44px; height: 44px; flex: none; }
.roster-row .who { flex: 1; min-width: 0; }
.roster-row .who .n { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.roster-row .who .t {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-row .acts { display: flex; gap: 7px; }

/* Narrow screens: let the buttons drop to their own full-width row rather than
   squeezing the name column until it wraps mid-word. */
@media (max-width: 620px) {
  .roster-row { flex-wrap: wrap; }
  .roster-row .acts { flex: 1 0 100%; }
  .roster-row .acts .btn { flex: 1; }
}

.avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.demo-key .avatar { width: 34px; height: 34px; }

/* No headshot yet: show the mark inset on a neutral field, so it reads as a
   placeholder on purpose rather than as a badly cropped photograph. */
.avatar.is-placeholder {
  display: grid;
  place-items: center;
  background: var(--line-2);
  overflow: hidden;
}
.avatar.is-placeholder img {
  width: 56%;
  height: 56%;
  border-radius: 22%;
  opacity: .55;
}
.card-avatar.is-placeholder { background: #f2f2f6; }

/* ---------- Module toggle list ------------------------------------------ */

.mod-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
}
.mod-row:last-child { border-bottom: 0; }
.mod-row .mod-copy { flex: 1; min-width: 0; }
.mod-row .mod-copy .t {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 600; font-size: 14.5px;
}
.mod-row .mod-copy .d { font-size: 13px; color: var(--muted); margin-top: 2px; }

.ovr { display: flex; gap: 3px; padding: 3px; background: var(--line-2); border-radius: 9px; flex: none; }
.ovr button { white-space: nowrap; }
@media (max-width: 560px) {
  .mod-row { flex-wrap: wrap; }
  .ovr { flex: 1 0 100%; }
  .ovr button { flex: 1; }
}
.ovr button {
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.ovr button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.09); }
.ovr button.is-active[data-v="on"]  { color: var(--ok); }
.ovr button.is-active[data-v="off"] { color: #b3261e; }

/* ---------- Repeatable list editors ------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 11px;
  background: var(--line-2);
  border-radius: 999px;
  font-size: 13px;
}
.chip button {
  border: 0;
  background: #d9d9e2;
  color: var(--ink-2);
  width: 17px; height: 17px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.chip button:hover { background: #c6c6d2; }

.list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 10px;
  background: #fcfcfd;
}
.list-item > .grow { flex: 1; min-width: 0; }

.hours-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}
.hours-row .day { font-size: 13.5px; font-weight: 550; }

/* ---------- The card itself --------------------------------------------- */

/* The stage must carry a width of its own: it is a shrink-to-fit flex item,
   so a percentage width on the scene inside it would resolve to zero. */
.card-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }

.preview-cap { display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-bottom: 12px; }
.preview-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-sub); }

.card-scene { width: 360px; max-width: 100%; height: 620px; perspective: 1800px; }
.card-flip {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.3,.7,.3,1);
  transform-style: preserve-3d;
}
.card-flip.is-back { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-face.back { transform: rotateY(180deg); }

/* Front */
.card-cover {
  height: 116px;
  flex: none;
  background-color: #edecf2;
  /* A real cover photo replaces the placeholder wash. */
  background-image: var(--cover, linear-gradient(135deg, #f5f4f9 0%, #e6e5ee 100%));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
}
/* Sits to the side so it never collides with the headshot that overlaps this
   band; centred, the two marks read as a doubled logo. */
.card-cover .watermark { width: 42px; height: 42px; opacity: .2; border-radius: 11px; }
.card-front-body {
  flex: 1;
  padding: 0 22px 20px;
  display: flex;
  flex-direction: column;
  /* No overflow clipping here: the avatar is pulled up by a negative margin so
     it straddles the cover band, and clipping would slice its top half off.
     .card-face already clips to the rounded card outline. */
  min-height: 0;
}
.card-avatar {
  /* Positioned so it paints above the cover band it overlaps. */
  position: relative;
  z-index: 1;
  width: 92px; height: 92px;
  margin: -46px auto 0;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: #fff;
  box-shadow: 0 2px 10px rgba(20,20,30,.12);
  object-fit: cover;
  display: block;
}
.card-identity { text-align: center; margin-top: 12px; }
.card-identity .nm { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.card-identity .pn { font-size: 12.5px; color: var(--muted); }
.card-identity .ttl { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; font-weight: 550; }
.card-identity .org {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 9px; padding: 4px 11px;
  border-radius: 999px;
  background: var(--line-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}
.act {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
}
.act:hover { background: #fafafc; border-color: #d6d6de; }
.act .ic { width: 17px; height: 17px; color: var(--muted); }
.act.wide { grid-column: 1 / -1; justify-content: center; }
.act.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.act.primary .ic { color: rgba(255,255,255,.8); }
.act.primary:hover { background: #2a2a32; }

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
}
.flip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.flip-btn:hover { background: #fafafc; }

/* Back */
.card-back-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
}
.card-back-head .avatar { width: 34px; height: 34px; }
.card-back-head .h-nm { font-size: 14px; font-weight: 600; line-height: 1.2; }
.card-back-head .h-ttl { font-size: 12px; color: var(--muted); }
.card-back-head .spacer { flex: 1; }

.card-back-body { flex: 1; overflow-y: auto; padding: 6px 20px 22px; }
.card-back-body::-webkit-scrollbar { width: 8px; }
.card-back-body::-webkit-scrollbar-thumb { background: #dcdce4; border-radius: 4px; }

.blk { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.blk:last-child { border-bottom: 0; }
.blk > .label { margin-bottom: 8px; }
.blk p { margin: 0; font-size: 14px; color: var(--ink-2); }

.promo {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.promo:last-child { border-bottom: 0; }
.promo .b {
  flex: none;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-sub);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.promo .t { font-size: 14px; font-weight: 600; }
.promo .d { font-size: 13px; color: var(--muted); margin-top: 1px; }

.hours-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13.5px;
}
.hours-line.today { font-weight: 650; }
.hours-line .h-d { color: var(--ink-2); }
.hours-line .h-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-line.today .h-t { color: var(--ink); }

.blk ul.plain { margin: 0; padding: 0; list-style: none; }
.blk ul.plain li {
  padding: 5px 0 5px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  position: relative;
}
.blk ul.plain li::before {
  content: '';
  position: absolute;
  left: 3px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.link-row:last-child { border-bottom: 0; }
.link-row .ic { color: var(--muted); }
.link-row .arrow { margin-left: auto; color: #c2c2cd; display: inline-flex; }
.link-row .arrow .ic { width: 15px; height: 15px; }
.teammate .arrow .ic { width: 15px; height: 15px; }

.teammate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
}
.teammate .avatar { width: 32px; height: 32px; }
.teammate .tm-n { font-size: 13.5px; font-weight: 550; }
.teammate .tm-t { font-size: 12px; color: var(--muted); }

.announce {
  margin: 14px 0 2px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--accent-sub);
  border: 1px solid #ffdfd0;
  font-size: 13.5px;
  color: var(--accent-ink);
}

/* ---------- Public card page -------------------------------------------- */

.public-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 18px 44px;
  background:
    radial-gradient(700px 400px at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 65%),
    var(--canvas);
}
.public-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); }
.public-foot img { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; border-radius: 4px; }
@media (max-width: 400px) {
  .card-scene { height: 600px; }
  .card-front-body { padding: 0 18px 16px; }
  .card-back-body { padding: 6px 18px 20px; }
}

/* ---------- Share sheet -------------------------------------------------- */

.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .share-grid { grid-template-columns: 1fr; } }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qr-box canvas { border-radius: 10px; border: 1px solid var(--line-2); }

.url-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 9px 9px 13px;
  background: #fafafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.url-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2);
}

.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 34px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line-2);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- Toast + banner ---------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(14px);
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.banner {
  padding: 10px 24px;
  background: #fff8e6;
  border-bottom: 1px solid #f2e2b8;
  color: #7a5b12;
  font-size: 13px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
