/*
 * 02-composants.css
 * Boutons, cartes, formulaires, tableaux, fenêtres de saisie, messagerie.
 */

/* Page de cours : réglure discrète */
.seyes {
  --mg: 60px;
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 24px 32px calc(var(--mg) + 22px);
  background-image:
    linear-gradient(
      90deg,
      transparent calc(var(--mg) - 1px),
      var(--rose-soft) calc(var(--mg) - 1px),
      var(--rose-soft) calc(var(--mg) + 1px),
      transparent calc(var(--mg) + 1px)
    ),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--line) 31px 32px);
  background-position:
    0 0,
    0 12px;
  line-height: 32px;
  font-size: 16.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.seyes h2 {
  font-size: 26px;
  line-height: 32px;
  color: var(--ink);
  margin: 0 0 32px;
}
.seyes h3 {
  font-size: 19px;
  line-height: 32px;
  color: var(--accent);
  margin: 0;
}
.seyes h4 {
  font-size: 16.5px;
  line-height: 32px;
  margin: 0;
  color: var(--rose);
}
.seyes p {
  margin: 0 0 32px;
  max-width: 68ch;
}
.seyes ul {
  margin: 0 0 32px;
  padding-left: 22px;
  max-width: 66ch;
}
.seyes code {
  font-family: var(--f-mono);
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.92em;
}
.seyes .date {
  position: absolute;
  left: 8px;
  top: 32px;
  width: calc(var(--mg) - 16px);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-faint);
  text-align: right;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.box h3 {
  font-size: 18px;
}
.answer {
  white-space: pre-wrap;
  background: var(--sunk);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.grade {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}
.grade small {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-soft);
}
.g-ok {
  color: var(--ok);
}
.g-warn {
  color: var(--warn);
}
.g-bad {
  color: var(--bad);
}
.code {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--sunk);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  user-select: all;
}

label.f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 0;
}
label.f span.h {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 12px;
}
.in,
textarea.in,
select.in {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 11px;
  font-weight: 400;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-size: 15px;
}
textarea.in {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.frow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  overflow: hidden;
}
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bubble {
  background: var(--sunk);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble.prof {
  background: var(--accent-soft);
}
.bubble .by {
  white-space: normal;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 3px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.bubble .by b {
  color: var(--ink);
  font-size: 13px;
}

.dm {
  display: grid;
  grid-template-columns: 270px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 520px;
  overflow: hidden;
}
.dm-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  max-height: 640px;
}
.dm-list .item {
  padding: 11px 14px;
}
.dm-list .item.on {
  background: var(--accent-soft);
}
.dm-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dm-top {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.msgs {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
}
.msg {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--sunk);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  align-self: flex-start;
}
.msg.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
}
.msg time {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
  font-family: var(--f-mono);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.composer textarea {
  min-height: 44px;
  height: 44px;
}

.vcard .thumb {
  aspect-ratio: 16/9;
  max-width: 100%;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--sunk));
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.vcard .thumb svg {
  width: 44px;
  height: 44px;
}
.vcard .thumb .prov {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  font-family: var(--f-mono);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 1px 6px;
}

.meet {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.meet:first-child {
  border-top: 0;
}
.cols .meet {
  grid-template-columns: 62px 1fr;
}
.cols .meet .acts {
  grid-column: 1/-1;
}
.cal {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
}
.cal .m {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 2px 0;
}
.cal .d {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
}
.cal .h {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  padding-bottom: 3px;
}

.sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.5);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}
.sheet {
  background: var(--paper);
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
}
.sheet h2 {
  font-size: 24px;
}
.sheet .err {
  color: var(--bad);
  font-size: 14px;
  min-height: 1em;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 460px;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.toast.err {
  background: var(--bad);
  color: #fff;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  align-self: flex-start;
}
.back:hover {
  color: var(--accent);
}
.split {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  align-items: start;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs button.on {
  color: var(--ink);
  border-color: var(--rose);
}
.join {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.join .in {
  max-width: 220px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reg {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.reg-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.reg-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
}
.rolecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rolecard {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.rolecard:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.rolecard h3 {
  font-size: 21px;
}
.rolecard p {
  margin: 0;
  color: var(--ink-soft);
}
.rolecard .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.rolecard .ico svg {
  width: 22px;
  height: 22px;
}
fieldset.fs {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  background: var(--surface);
}
fieldset.fs legend {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  padding: 0 6px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 6px 12px 6px 10px;
  cursor: pointer;
  font-size: 14px;
  background: var(--surface);
  font-weight: 400;
  color: var(--ink);
}
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.check input {
  accent-color: var(--accent);
  margin: 0;
}
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.price {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--sunk);
}
.price .k {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.price .v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.who2 {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.av.lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
}
.av.xl {
  width: 72px;
  height: 72px;
  font-size: 28px;
}
.loc {
  font-size: 13px;
  color: var(--ink-soft);
}
.pricebar {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.req {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.req:first-child {
  border-top: 0;
}
.req .msgq {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 4px 0 0;
}
.bio {
  white-space: pre-wrap;
  line-height: 1.65;
  max-width: 68ch;
  margin: 0;
}
.app.out {
  grid-template-columns: 1fr;
}
.app.out .side {
  display: none;
}
.authgrid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.authside {
  background: radial-gradient(120% 90% at 100% 100%, #3a2150 0%, var(--night) 55%);
  color: var(--night-ink);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.authside h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--night-ink);
}
.authside p {
  margin: 0;
  color: var(--night-soft);
  max-width: 36ch;
}
.authside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--night-ink);
}
.authside li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}
.authside li svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #e07898;
  margin-top: 2px;
}
.authside .petal {
  position: absolute;
  right: -60px;
  bottom: -60px;
  opacity: 0.22;
  pointer-events: none;
}
.authform {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.authform h2 {
  font-size: 26px;
}
.pwrow {
  position: relative;
}
.pwrow .in {
  padding-right: 84px;
}
.pwrow button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}
.remember input {
  accent-color: var(--accent);
  margin: 0;
}
.authlinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.textbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.formerr {
  color: var(--bad);
  font-size: 14px;
  min-height: 1.2em;
  margin: 0;
}
.formok {
  color: var(--ok);
  font-size: 14px;
  margin: 0;
}
.demoacc {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--sunk);
}
.demoacc button {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
}
.demoacc button span {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.demoacc button:hover {
  color: var(--accent);
}
.logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.logout:hover {
  background: var(--side-on);
  color: var(--accent);
  border-color: var(--rose);
}
.logout svg {
  width: 16px;
  height: 16px;
}
.navbtn.support {
  margin-top: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--teal);
  font-weight: 700;
}
.navbtn.support:hover {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal);
}
.pbar {
  height: 8px;
  border-radius: 99px;
  background: var(--sunk);
  overflow: hidden;
  margin-top: 6px;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rose), var(--accent));
}
.fcover {
  height: 92px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c) 22%, #fff),
    color-mix(in srgb, var(--c) 8%, #fff)
  );
  border: 1px solid color-mix(in srgb, var(--c) 20%, #fff);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 12px;
  color: var(--c);
  position: relative;
  overflow: hidden;
}
.fcover::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -26px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.fcover span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 60%;
}
.fcover b {
  font-family: var(--f-display);
  font-size: 26px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.fhero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, #fff), #fff 70%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
}
.fhero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 8px 0 4px;
}
.fprice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: right;
}
.fprice .k {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 700;
}
.fprice .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
}
.sess {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.sess:first-of-type {
  border-top: 0;
}
.chlist {
  margin: 0;
  padding-left: 22px;
  line-height: 1.9;
}
.chnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chnav button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink-soft);
}
.chnav button span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.chnav button.done span {
  background: var(--ok-soft);
  color: var(--ok);
}
.chnav button.on {
  background: var(--side-on);
  color: var(--accent);
  font-weight: 700;
}
.chnav button.on span {
  background: var(--accent);
  color: #fff;
}
fieldset.qz {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
fieldset.qz legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.qopt {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}
.qopt:has(input:checked) {
  border-color: var(--accent);
  background: var(--side-on);
}
.qopt input {
  accent-color: var(--accent);
  margin: 0;
}
.cert {
  background: linear-gradient(160deg, #fff, #fbf3f6);
}
.cert.ready {
  border-color: var(--rose);
  box-shadow: var(--shadow);
}
.checkl {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkl li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.checkl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
}
.checkl li.ok {
  color: var(--ok);
}
.checkl li.ok::before {
  background: var(--ok);
  border-color: var(--ok);
}
.mdtext p,
.mdtext ul {
  margin: 0 0 8px;
}
.mdtext h3,
.mdtext h4 {
  font-size: 16px;
  margin: 6px 0;
}
@media (max-width: 640px) {
  .fhero {
    grid-template-columns: 1fr;
  }
  .fprice {
    text-align: left;
  }
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 8px;
  background: var(--teal-soft);
  color: var(--teal);
}
.verified svg {
  width: 13px;
  height: 13px;
}
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.steps3 .st {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
}
.steps3 .st b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk);
  flex: none;
}
.steps3 .st.done {
  color: var(--ok);
}
.steps3 .st.done b {
  background: var(--ok-soft);
}
.steps3 .st.now {
  color: var(--accent);
  border-color: var(--rose);
  background: var(--side-on);
  font-weight: 700;
}
.steps3 .st.now b {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .steps3 {
    grid-template-columns: 1fr;
  }
}
.adminlink {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
}
.adminlink svg {
  width: 15px;
  height: 15px;
}
.adminlink:hover {
  color: var(--teal);
}
.supopts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.supopt {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
}
.supopt b {
  font-size: 14px;
}
.supopt span {
  font-size: 13px;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .authgrid {
    grid-template-columns: 1fr;
  }
  .authside {
    padding: 26px 20px;
  }
  .authside ul {
    display: none;
  }
  .authform {
    padding: 26px 20px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 28px;
  background: linear-gradient(120deg, #fde6ee 0%, #f6eefc 55%, #e3f5f2 100%);
  border: 1px solid #f6dbe5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
}
.hero .sub {
  color: #5f5a75;
}
.hero .bloom {
  position: absolute;
  right: -40px;
  top: -50px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.stat {
  position: relative;
  overflow: hidden;
}
.stat .v {
  font-family: var(--f-display);
}
.stat.tint {
  background: linear-gradient(160deg, #fff, #fdf0f4);
}
.monthbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 4px;
}
.monthbar button {
  border: 0;
  background: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.monthbar button:hover {
  background: var(--side-on);
  color: var(--accent);
}
.monthbar b {
  min-width: 150px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 16px;
  text-transform: capitalize;
}
.tablewrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
table.t th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--sunk);
}
table.t td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.t tr:last-child td {
  border-bottom: 0;
}
table.t td.num,
table.t th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--f-mono);
  white-space: nowrap;
}
table.t tbody tr.click {
  cursor: pointer;
}
table.t tbody tr.click:hover td {
  background: #fdf6f9;
}
table.t tfoot td {
  font-weight: 700;
  background: var(--sunk);
  border-top: 1px solid var(--line-strong);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding: 10px 4px 0;
}
.bars .b {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}
.bars .col {
  width: 100%;
  max-width: 46px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--rose), var(--accent));
  min-height: 3px;
}
.bars .b.cur .col {
  background: linear-gradient(180deg, #f3a2b8, #d24b78);
  box-shadow: 0 6px 16px rgba(194, 65, 108, 0.25);
}
.bars .lbl {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: capitalize;
}
.bars .val {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--ink-soft);
  white-space: nowrap;
}
.paycard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.paycard:first-child {
  border-top: 0;
}
.payopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn.wave {
  background: #1dc4ff;
  color: #06243a;
}
.btn.wave:hover {
  filter: brightness(1.05);
}
.btn.cardpay {
  background: var(--ink);
  color: #fff;
}
.method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 9px;
  background: var(--sunk);
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .paycard {
    grid-template-columns: auto 1fr;
  }
  .paycard .pact {
    grid-column: 1/-1;
  }
  .hero {
    padding: 20px;
  }
}
