@font-face {
  font-family: "Cruyff Sans";
  src: url("assets/fonts/CruyffSans-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

/* KICK OFF — atalhos e exclusão segura dos dias */
.kick-shortcuts {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  margin: 0 0 12px;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.kick-shortcuts::-webkit-scrollbar { display: none; }

.kick-shortcuts button {
  min-height: 34px;
  padding: 0 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #d7d7d7;
  background: rgba(0, 0, 0, 0.94);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.kick-shortcuts button:hover,
.kick-shortcuts button:focus-visible {
  border-color: #fff;
  color: #000;
  background: #fff;
}

.chat-history-list { gap: 3px; overflow-x: hidden; }

.chat-history-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  color: #979b9e;
  background: transparent;
}

.chat-history-row .chat-history-item {
  min-width: 0;
  min-height: 50px;
}

.chat-history-delete {
  position: relative;
  display: grid;
  width: 38px;
  min-height: 50px;
  place-items: center;
  color: #777b7e;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transition: color 130ms ease, opacity 130ms ease, background 130ms ease;
}

.chat-history-delete svg { width: 17px; height: 17px; }

.chat-history-row:hover .chat-history-delete,
.chat-history-row:focus-within .chat-history-delete,
.chat-history-row.is-active .chat-history-delete { opacity: 1; }

.chat-history-row:hover,
.chat-history-row.is-active { color: #000; background: #fff; }

.chat-history-row:hover .chat-history-item,
.chat-history-row.is-active .chat-history-item { color: #000; background: transparent; }

.chat-history-row:hover .chat-history-item small,
.chat-history-row.is-active .chat-history-item small { color: #555; }

.chat-history-delete:hover,
.chat-history-delete:focus-visible { color: #fff; background: #b91d2d; }

.confirm-dialog,
.calendar-dialog {
  max-width: none;
  padding: 0;
  border: 1px solid #34383c;
  color: #fff;
  background: #0a0b0d;
  font-family: "Cruyff Sans", Arial, sans-serif;
}

.confirm-dialog::backdrop,
.calendar-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(5px); }

.confirm-dialog__shell {
  width: min(520px, calc(100vw - 34px));
  padding: 36px;
}

.confirm-dialog__eyebrow,
.calendar-dialog header span {
  color: #858a8e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.confirm-dialog h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.confirm-dialog p { margin: 0; color: #a7aaad; line-height: 1.55; }

.confirm-dialog__actions {
  display: flex;
  margin-top: 34px;
  justify-content: flex-end;
  gap: 9px;
}

.confirm-dialog__actions button,
.calendar-dialog footer button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #4c5054;
  color: #fff;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

#confirmDeleteDay,
.calendar-event-delete { border-color: #fff; color: #000; background: #fff; }

#confirmDeleteDay:hover,
#confirmDeleteDay:focus-visible,
.calendar-event-delete:hover,
.calendar-event-delete:focus-visible { border-color: #b91d2d; color: #fff; background: #b91d2d; }

/* Relationships — importação das fichas completas */
.relationships-actions { display: flex; align-items: center; gap: 22px; }

.relationship-import {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.relationship-import input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.relationship-import > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 300;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.relationship-import:hover > span,
.relationship-import:focus-within > span { color: #000; background: #fff; transform: translateY(-2px); }

/* PLAYER CAREER — cabeçalho e calendário canônico */
.app-main .page--player-career {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100svh;
  max-width: none;
  padding: clamp(25px, 3.8vh, 43px) clamp(24px, 4.2vw, 78px) 28px;
  overflow: hidden;
  color: #fff;
  background: #050607;
}

.app-main .page--player-career.is-active { display: flex; flex-direction: column; }

.page--player-career .career-tabs {
  display: grid;
  width: min(650px, calc(100% - 130px));
  height: 48px;
  min-height: 48px;
  margin: 0 auto 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-bottom: 2px solid #fff;
  background: #000;
}

.page--player-career .career-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  box-shadow: none;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 800;
  cursor: pointer;
}

.page--player-career .career-tabs button.is-active { color: #000; background: #fff; box-shadow: none; }

.career-surface {
  width: min(1540px, 100%);
  min-height: 0;
  margin: 0 auto;
  flex: 1 1 auto;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #080a0c;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.career-surface::-webkit-scrollbar { width: 4px; height: 4px; }
.career-surface::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); }

.career-surface .finance-layout,
.career-surface .hall-layout { min-height: 100%; }

.career-calendar { display: flex; min-height: 100%; flex-direction: column; }

.calendar-toolbar {
  display: flex;
  min-height: 92px;
  padding: 18px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.calendar-story-date { position: relative; display: grid; gap: 4px; }
.calendar-story-date span { color: #777c80; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; }
.calendar-story-date strong { font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 600; text-transform: capitalize; }
.calendar-story-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.calendar-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.calendar-toolbar__actions > button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #3e4246;
  color: #d8dadd;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-toolbar__actions > button:hover,
.calendar-toolbar__actions > button:focus-visible { border-color: #fff; color: #000; background: #fff; }

.calendar-add-event { display: flex; align-items: center; gap: 9px; }
.calendar-add-event span { font-size: 1.2rem; font-weight: 300; }

.calendar-workspace {
  display: grid;
  min-height: 570px;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.27fr);
}

.calendar-board { min-width: 0; padding: 20px 22px 22px; }

.calendar-month-nav {
  display: grid;
  min-height: 56px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
}

.calendar-month-nav button {
  width: 38px;
  height: 38px;
  border: 1px solid #3d4145;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
}

.calendar-month-nav button:hover { color: #000; background: #fff; }
.calendar-month-nav div { text-align: center; }
.calendar-month-nav strong { display: block; font-size: 1.08rem; letter-spacing: 0.06em; }
.calendar-month-nav span { color: #777b7f; font-size: 0.67rem; }

.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.calendar-weekdays span {
  min-height: 30px;
  padding: 8px;
  color: #767b7f;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.calendar-grid { border-top: 1px solid rgba(255, 255, 255, 0.17); border-left: 1px solid rgba(255, 255, 255, 0.17); }

.calendar-day {
  position: relative;
  min-height: clamp(74px, 11.6vh, 112px);
  padding: 8px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  background: #090b0d;
  cursor: pointer;
  transition: background 130ms ease;
}

.calendar-day:hover,
.calendar-day:focus-visible { background: #111417; outline: 0; }
.calendar-day.is-outside { color: #3f4346; background: #070809; }
.calendar-day.is-current::after { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #fff; content: ""; }
.calendar-day.is-selected { box-shadow: inset 0 0 0 2px #fff; }
.calendar-day__number { font-size: 0.78rem; font-weight: 600; }

.calendar-day__events {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 5px;
}

.calendar-day-event {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #111417;
  cursor: pointer;
}

.calendar-day-event:hover { border-color: #fff; background: #fff; }
.calendar-day-event img { width: 17px; height: 17px; object-fit: contain; filter: grayscale(1); }
.calendar-day-event:hover img { filter: grayscale(1) invert(1); }
.calendar-day-event--match img { filter: grayscale(0); }
.calendar-day-event--match:hover img { filter: grayscale(0); }
.calendar-day-event small { position: absolute; right: -4px; bottom: -5px; padding: 1px 3px; color: #000; background: #fff; font-size: 0.43rem; font-weight: 800; }
.calendar-day-more { margin-left: auto; color: #8b8f92; font-size: 0.58rem; }

.calendar-rail {
  min-width: 0;
  padding: 28px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  background: #060708;
}

.calendar-rail__date strong { display: block; color: #fff; font-size: clamp(3rem, 5vw, 5.2rem); font-weight: 300; letter-spacing: -0.07em; line-height: 0.9; }
.calendar-rail__date span { display: block; margin-top: 9px; font-size: 1rem; font-weight: 800; }
.calendar-selected { display: grid; margin-top: 34px; gap: 0; border-top: 1px solid #33373a; }
.calendar-selected > span { padding: 12px 0; color: #85898c; font-size: 0.66rem; font-weight: 700; text-transform: capitalize; }
.calendar-selected > button {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid #232629;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.calendar-selected > button i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #3b3f42; border-radius: 50%; }
.calendar-selected > button i img { width: 18px; height: 18px; object-fit: contain; filter: grayscale(1); }
.calendar-selected > button span { min-width: 0; }
.calendar-selected > button strong { display: block; overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-selected > button small { display: block; margin-top: 3px; overflow: hidden; color: #767a7d; font-size: 0.56rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-selected p { margin: 15px 0; color: #73777a; font-size: 0.76rem; line-height: 1.55; }

.calendar-legend { display: grid; margin-top: 30px; gap: 9px; }
.calendar-legend span { display: flex; align-items: center; gap: 8px; color: #777b7f; font-size: 0.56rem; font-weight: 700; }
.calendar-legend i { display: grid; width: 20px; height: 20px; place-items: center; }
.calendar-legend img { width: 16px; height: 16px; object-fit: contain; filter: grayscale(1); }

.calendar-dialog { width: min(900px, calc(100vw - 36px)); max-height: calc(100svh - 34px); overflow: hidden; }
.calendar-dialog__shell { display: flex; max-height: calc(100svh - 34px); flex-direction: column; }
.calendar-dialog header { display: flex; min-height: 82px; padding: 20px 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid #303438; }
.calendar-dialog header h2 { margin: 6px 0 0; font-size: 1.35rem; }
.calendar-dialog header button { width: 42px; height: 42px; border-radius: 50%; color: #fff; background: #141619; font-size: 1.3rem; cursor: pointer; }
.calendar-dialog__content { min-height: 0; padding: 24px; overflow-y: auto; }
.calendar-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.calendar-form-grid label { display: grid; min-width: 0; gap: 8px; }
.calendar-form-grid label.is-wide { grid-column: 1 / -1; }
.calendar-form-grid label > span { color: #8a8e91; font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; }
.calendar-form-grid input,
.calendar-form-grid select,
.calendar-form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid #696d70;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.92rem;
}
.calendar-form-grid textarea { min-height: 94px; resize: vertical; }
.calendar-form-grid option { color: #fff; background: #111315; }
.calendar-dialog footer { display: flex; min-height: 74px; padding: 14px 24px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #303438; }
.calendar-dialog footer > div { display: flex; gap: 9px; }
.calendar-dialog footer .calendar-event-save { border-color: #fff; color: #000; background: #fff; }

@media (max-width: 980px) {
  .relationships-controls { width: 100%; }
  .relationships-actions { gap: 13px; }
  .relationship-import,
  .relationship-add { font-size: 0; gap: 0; }
  .relationship-import > span,
  .relationship-add > span { font-size: 1.15rem; }
  .calendar-workspace { grid-template-columns: minmax(0, 1fr) 210px; }
  .calendar-board { padding: 14px; }
  .calendar-day { min-height: 82px; }
  .calendar-rail { padding: 24px 17px; }
}

@media (max-width: 760px) {
  .kick-shortcuts { margin-bottom: 8px; }
  .kick-shortcuts button { min-height: 30px; padding: 0 12px; font-size: 0.64rem; }
  .app-main .page--player-career { padding: 76px 12px 12px; overflow-y: auto; }
  .page--player-career .career-tabs { width: 100%; margin-bottom: 12px; }
  .career-surface { overflow: visible; flex: none; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar__actions { width: 100%; }
  .calendar-toolbar__actions > button { flex: 1 1 0; }
  .calendar-workspace { display: block; }
  .calendar-board { overflow-x: auto; }
  .calendar-weekdays,
  .calendar-grid { min-width: 660px; }
  .calendar-rail { border-top: 1px solid rgba(255, 255, 255, 0.17); border-left: 0; }
  .calendar-form-grid { grid-template-columns: 1fr; }
  .calendar-form-grid label.is-wide { grid-column: auto; }
  .calendar-dialog footer { align-items: stretch; flex-direction: column-reverse; }
  .calendar-dialog footer > div { width: 100%; }
  .calendar-dialog footer button { flex: 1 1 0; }
}

@font-face {
  font-family: "FYX News 701";
  src: url("assets/fonts/fyxnews/news-701-bt.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-ExtraLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "FYX Source Sans";
  src: url("assets/fonts/fyxnews/SourceSansPro-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* InyffX interface refresh — login, onboarding and full-screen hub */

body,
body * {
  font-family: "Cruyff Sans", Arial, sans-serif !important;
}

[hidden] {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.auth-gate .auth-panel {
  display: none;
}

.auth-gate .auth-panel.is-active {
  display: block;
}

.login-screen {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  color: #fff;
  background: #04080c url("mod/pics/login/inyffx-background-initial.webp") center center / cover no-repeat;
  scrollbar-width: none;
}

.login-screen::-webkit-scrollbar { width: 0; height: 0; }

.login-screen__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0.13) 44%, rgba(0, 0, 0, 0.08) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.26), transparent 38%);
}

.login-screen__logo {
  position: absolute;
  z-index: 2;
  top: 9.6vh;
  left: 5.3vw;
  width: clamp(145px, 14.3vw, 390px);
  height: auto;
  object-fit: contain;
}

.login-card {
  position: absolute;
  z-index: 3;
  top: 15.2vh;
  right: 10.1vw;
  display: flex;
  width: 29.25vw;
  min-width: 440px;
  height: 69.2vh;
  min-height: 610px;
  margin: 0;
  padding: 5.2vh 3.15vw 4.8vh;
  flex-direction: column;
  color: #080808;
  background: #fff;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  margin: 0 0 7.2vh;
  color: #050505;
  font-size: clamp(2rem, 2.05vw, 3.7rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.login-field {
  display: block;
  margin-bottom: 4.6vh;
}

.login-field span {
  display: block;
  margin-bottom: 1.15vh;
  color: #a7a7a7;
  font-size: clamp(0.75rem, 0.83vw, 1.35rem);
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 4.6vh;
  min-height: 42px;
  padding: 0;
  color: #070707;
  border: 0;
  border-bottom: 2px solid #090909;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(1rem, 1.04vw, 1.45rem);
  box-shadow: none;
}

.login-field input:focus {
  border-bottom-color: #ff004f;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: -0.5vh;
  color: #0b0b0b;
  font-size: clamp(0.95rem, 1.03vw, 1.55rem);
  cursor: pointer;
}

.login-remember input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #000;
}

.login-card .form-error,
.login-hint {
  min-height: 18px;
  margin: 1vh 0 0;
  color: #c6003d;
  font-size: 0.78rem;
  text-align: center;
}

.login-hint {
  color: #999;
}

.ball-submit {
  display: grid;
  width: clamp(74px, 5.6vw, 126px);
  aspect-ratio: 1;
  margin: auto auto 4.8vh;
  padding: clamp(14px, 1.15vw, 24px);
  place-items: center;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ball-submit img {
  display: block;
  width: 100%;
  height: 100%;
}

.ball-submit:hover,
.ball-submit:focus-visible {
  color: #fff;
  background: #ff004f;
  transform: translateY(-3px);
}

.login-create {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: center;
  border: 0;
  color: #090909;
  background: transparent;
  cursor: pointer;
}

.login-card h1 { margin-bottom: 6.1vh; }
.login-field { margin-bottom: 3.8vh; }
.ball-submit { margin-bottom: 3.2vh; }

.login-create span {
  color: #9f9f9f;
  font-size: clamp(0.72rem, 0.82vw, 1.2rem);
  font-weight: 700;
}

.login-create strong {
  font-size: clamp(0.78rem, 0.87vw, 1.25rem);
  font-weight: 700;
}

.login-create:hover strong,
.login-create:focus-visible strong {
  color: #ff004f;
}

.login-save-import {
  display: grid;
  min-height: 42px;
  margin-top: 1.6vh;
  justify-items: center;
}

.login-import {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: center;
  border: 0;
  color: #090909;
  background: transparent;
  cursor: pointer;
}

.login-import span {
  color: #9f9f9f;
  font-size: clamp(0.65rem, 0.72vw, 1.05rem);
  font-weight: 700;
}

.login-import strong {
  font-size: clamp(0.72rem, 0.78vw, 1.12rem);
  font-weight: 700;
}

.login-import:hover strong,
.login-import:focus-visible strong {
  color: #ff004f;
}

.login-import:disabled {
  opacity: 0.45;
  cursor: wait;
}

.login-save-import small {
  min-height: 14px;
  margin-top: 5px;
  color: #777;
  font-size: 0.68rem;
  text-align: center;
}

.login-footer {
  position: absolute;
  z-index: 2;
  bottom: 6.7vh;
  left: 5.3vw;
  display: flex;
  max-width: 58vw;
  flex-direction: column;
  gap: 0.5vh;
  color: #fff;
  font-size: clamp(0.7rem, 0.95vw, 1.3rem);
}

.login-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.register-screen {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background: #000;
  scrollbar-width: none;
}

.register-screen::-webkit-scrollbar { width: 0; height: 0; }

.register-screen__logo {
  position: fixed;
  z-index: 3;
  top: 6.4vh;
  left: 50%;
  width: clamp(145px, 10.5vw, 290px);
  height: auto;
  transform: translateX(-50%);
}

.registration-wizard {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: clamp(170px, 24vh, 300px) 10.8vw 10vh;
}

.registration-progress {
  position: fixed;
  z-index: 4;
  top: 6.2vh;
  right: 5vw;
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.registration-question {
  width: min(77vw, 2050px);
  animation: question-in 320ms ease both;
}

@keyframes question-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-heading {
  position: relative;
}

.question-heading > span {
  display: none;
}

.question-heading h1 {
  max-width: 74vw;
  margin: 0 0 clamp(54px, 7.5vh, 105px);
  color: #fff;
  font-size: clamp(2.6rem, 4.25vw, 7.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.question-optional {
  position: absolute;
  top: -28px;
  left: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.wizard-input {
  position: relative;
  display: flex;
  width: min(47vw, 1450px);
  align-items: flex-end;
  border-bottom: 2px solid rgba(255, 255, 255, 0.88);
}

.wizard-input input,
.wizard-input textarea {
  width: 100%;
  min-height: 70px;
  padding: 0 4px 18px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(1.55rem, 2vw, 3rem);
  font-weight: 400;
  box-shadow: none;
}

.wizard-input input::placeholder,
.wizard-input textarea::placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.wizard-input:focus-within {
  border-bottom-color: #ff0050;
}

.wizard-input--textarea {
  align-items: stretch;
}

.wizard-input textarea {
  min-height: 150px;
  resize: vertical;
}

.wizard-input__suffix {
  padding: 0 4px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.question-hint {
  max-width: min(47vw, 1000px);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(0.82rem, 0.9vw, 1.1rem);
}

.question-choices,
.question-multi {
  display: grid;
  width: min(68vw, 1500px);
  max-height: 45vh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-right: 12px;
  overflow-y: auto;
}

.question-choice,
.multi-choice {
  display: flex;
  min-height: 54px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: clamp(0.95rem, 1.12vw, 1.45rem);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.question-choice i,
.multi-choice i {
  opacity: 0;
  font-style: normal;
}

.question-choice:hover,
.multi-choice:hover,
.question-choice.is-selected,
.multi-choice.is-selected {
  border-color: #fff;
  color: #000;
  background: #fff;
}

.question-choice.is-selected i,
.multi-choice.is-selected i {
  opacity: 1;
}

.wizard-autocomplete {
  position: relative;
  width: min(47vw, 1450px);
}

.wizard-autocomplete .wizard-input {
  width: 100%;
}

.autocomplete-suggestions {
  position: relative;
  z-index: 5;
  display: none;
  max-height: 250px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: #090909;
}

.autocomplete-suggestions.is-visible {
  display: block;
}

.autocomplete-suggestions button {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  background: transparent;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.autocomplete-suggestions button:hover,
.autocomplete-suggestions button:focus-visible {
  color: #000;
  background: #fff;
}

.autocomplete-manual {
  display: none;
  margin-top: 17px;
  color: #fff;
}

.autocomplete-manual.is-visible {
  display: block;
}

.autocomplete-manual p {
  margin: 0 0 10px;
  color: #ff668e;
}

.autocomplete-manual label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.photo-upload {
  display: flex;
  width: min(420px, 90vw);
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.photo-upload img,
.photo-upload__placeholder {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  object-fit: cover;
  color: rgba(255, 255, 255, 0.55);
  font-size: 3rem;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.skip-photo,
.register-login-link {
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.registration-error {
  position: fixed;
  z-index: 5;
  right: 11vw;
  bottom: 9.5vh;
  max-width: 43vw;
  margin: 0;
  color: #ff668e;
  font-size: 0.92rem;
  text-align: right;
}

.registration-navigation {
  position: fixed;
  z-index: 6;
  right: 5vw;
  bottom: 5.2vh;
  display: flex;
  gap: 12px;
}

.wizard-arrow {
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.wizard-arrow:hover,
.wizard-arrow:focus-visible,
.wizard-finish:hover,
.wizard-finish:focus-visible {
  color: #000;
  background: #fff;
}

.wizard-finish {
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.register-login-link {
  position: fixed;
  bottom: 5.8vh;
  left: 5vw;
  margin: 0;
}

.registration-review {
  display: grid;
  width: min(76vw, 1800px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.registration-review section {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.registration-review h2 {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-grid div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.review-grid span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.review-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 500;
}

.review-confirm {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.review-confirm input {
  width: 20px;
  height: 20px;
  accent-color: #ff0050;
}

.app-shell {
  position: fixed;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.hub-background,
.hub-background__layer,
.hub-background__vignette {
  position: absolute;
  inset: 0;
}

.hub-background__layer {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  transition: opacity 1900ms ease;
}

.hub-background__layer.is-visible {
  opacity: 1;
}

.hub-background__vignette {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.43), transparent 48%), linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent 42%);
}

.hub-sidebar {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  display: block;
  width: min(49vw, 810px);
  min-height: 100svh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.98) 0%, rgba(13, 13, 13, 0.92) 49%, rgba(12, 12, 12, 0.58) 73%, rgba(8, 8, 8, 0) 100%);
  backdrop-filter: none;
  box-shadow: none;
  transform: none;
}

.hub-sidebar::after,
.hub-sidebar::before {
  display: none;
}

.hub-utility {
  position: absolute;
  top: 3.6vh;
  left: 2.5vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-utility__button,
.hub-avatar {
  display: grid;
  width: clamp(32px, 2.25vw, 48px);
  aspect-ratio: 1;
  padding: 4px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  cursor: pointer;
}

.hub-utility__button svg {
  width: 82%;
  fill: currentColor;
}

.hub-avatar {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.hub-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hub-utility__button:hover,
.hub-avatar:hover,
.hub-utility__button:focus-visible,
.hub-avatar:focus-visible {
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.7);
}

.hub-sidebar__content {
  position: absolute;
  inset: 0 auto 0 7.25vw;
  display: flex;
  width: min(28vw, 440px);
  padding: 5.7vh 0 5.3vh;
  flex-direction: column;
}

.hub-logo {
  width: clamp(130px, 9.4vw, 200px);
  margin: 0 0 8.7vh;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hub-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hub-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.3vh, 32px);
}

.hub-nav__item {
  position: static;
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  font-size: clamp(1rem, 1.34vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease;
}

.hub-nav__item::after,
.hub-nav__item::before {
  display: none !important;
}

.hub-nav__item.is-active,
.hub-nav__item:hover,
.hub-nav__item:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.spotify-now {
  position: static;
  display: grid;
  width: min(27vw, 420px);
  min-height: 92px;
  margin-top: auto;
  padding: 0;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.spotify-disc {
  width: 74px;
  background-color: #838383;
}

.spotify-copy {
  gap: 0;
}

.spotify-copy small {
  display: none;
}

.spotify-copy strong {
  color: #fff;
  font-size: clamp(1rem, 1.28vw, 1.55rem);
}

.spotify-copy em {
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(0.95rem, 1.16vw, 1.4rem);
  font-style: normal;
}

.app-main {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  margin: 0;
  overflow-y: auto;
  background: #090b0d;
}

.app-shell.is-page-open .app-main {
  display: block;
}

.app-shell.is-page-open .hub-sidebar,
.app-shell.is-page-open .hub-background {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-back {
  position: fixed;
  z-index: 30;
  top: max(22px, env(safe-area-inset-top));
  left: max(26px, env(safe-area-inset-left));
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 10, 12, 0.8);
  font-size: 1.55rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.page-back:hover,
.page-back:focus-visible {
  color: #000;
  background: #fff;
}

.app-main .page {
  display: none;
  width: 100%;
  min-height: 100svh;
  padding: 5.7vh 5.4vw 4.5vh;
}

.app-main .page.is-active {
  display: block;
}

.app-main .page--kick-off {
  height: 100svh;
  min-height: 720px;
}

.page-topline {
  padding-left: 58px;
}

.prompt-template-box pre,
.template-box pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "Cruyff Sans", Arial, sans-serif !important;
}

.template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.download-example {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
}

.profile-page {
  position: fixed;
  z-index: 40;
  inset: 0;
  min-height: 100svh;
  padding: 10vh 7vw 7vh;
  overflow-y: auto;
  color: #fff;
  background: #050607;
}

.profile-page__back {
  position: fixed;
}

.profile-hero {
  display: flex;
  max-width: 1500px;
  margin: 0 auto 7vh;
  align-items: center;
  gap: clamp(22px, 3vw, 55px);
}

.profile-hero__avatar {
  display: grid;
  width: clamp(110px, 10vw, 190px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: #151719;
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 700;
}

.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero > div:last-child > span,
.profile-section header span,
.profile-edit-form header span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.profile-hero h1 {
  margin: 3px 0 2px;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.95;
}

.profile-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1.05rem;
}

.profile-page__content {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  gap: 24px;
}

.profile-section {
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

.profile-section header,
.profile-edit-form header {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-section header h2,
.profile-edit-form header h2 {
  margin: 3px 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2.8rem);
}

.profile-section header button,
.profile-form-actions button,
.profile-logout {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-user-summary {
  display: flex;
  flex-direction: column;
}

.profile-user-summary strong {
  font-size: 1.4rem;
}

.profile-user-summary span {
  color: rgba(255, 255, 255, 0.45);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-item {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 19px;
  flex-direction: column;
  justify-content: center;
  background: #0a0c0e;
}

.profile-item--wide {
  grid-column: span 2;
}

.profile-item span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.profile-item strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
}

.profile-edit-form {
  padding: clamp(25px, 3.5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-edit-form header p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.45);
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.profile-edit-field--wide {
  grid-column: 1 / -1;
}

.profile-edit-field span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-edit-field input,
.profile-edit-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 1rem;
}

.profile-edit-field textarea {
  min-height: 92px;
  resize: vertical;
}

.profile-edit-avatar {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.profile-edit-avatar__preview {
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #16191b;
}

.profile-edit-avatar__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-avatar input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-form-actions {
  display: flex;
  margin-top: 34px;
  justify-content: flex-end;
  gap: 12px;
}

.profile-form-actions button:last-child {
  color: #000;
  background: #fff;
}

.profile-logout {
  display: block;
  margin: 40px auto 0;
  border-color: rgba(255, 93, 125, 0.5);
  color: #ff7591;
}

.settings-modal .modal__shell {
  width: min(760px, calc(100vw - 32px));
}

@media (max-width: 1000px) {
  .login-card {
    right: 4vw;
    width: 42vw;
    min-width: 390px;
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .login-footer { max-width: 50vw; }
  .hub-sidebar { width: min(68vw, 680px); }
  .hub-sidebar__content { left: 11vw; width: min(42vw, 390px); }
  .hub-utility { left: 3vw; }
  .spotify-now { width: 40vw; }
  .registration-wizard { padding-right: 7vw; padding-left: 7vw; }
  .registration-question { width: 86vw; }
  .question-heading h1 { max-width: 84vw; }
  .wizard-input, .wizard-autocomplete { width: min(70vw, 950px); }
  .question-choices, .question-multi { width: min(82vw, 1100px); }
  .registration-review { width: 86vw; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .login-screen { overflow-y: auto; background-position: 39% center; }
  .login-screen__shade { background: rgba(0, 0, 0, 0.38); }
  .login-screen__logo { position: relative; top: auto; left: auto; display: block; width: 150px; margin: 28px auto 22px 24px; }
  .login-card { position: relative; top: auto; right: auto; width: calc(100% - 30px); min-width: 0; height: auto; min-height: 610px; margin: 0 auto 22px; padding: 42px 28px 36px; }
  .login-card h1 { margin-bottom: 55px; font-size: 2.25rem; }
  .login-field { margin-bottom: 40px; }
  .login-remember { font-size: 1rem; }
  .ball-submit { margin-top: 42px; margin-bottom: 40px; }
  .login-footer { position: relative; right: auto; bottom: auto; left: auto; max-width: none; margin: 0 22px 26px; font-size: 0.72rem; }

  .register-screen__logo { position: absolute; top: 30px; width: 130px; }
  .registration-wizard { padding: 150px 22px 120px; }
  .registration-progress { position: absolute; top: 96px; right: 22px; left: 22px; justify-content: space-between; }
  .registration-question { width: 100%; }
  .question-heading h1 { max-width: 100%; margin-bottom: 48px; font-size: clamp(2.35rem, 11vw, 4rem); }
  .wizard-input, .wizard-autocomplete, .question-choices, .question-multi { width: 100%; }
  .wizard-input input, .wizard-input textarea { font-size: 1.45rem; }
  .question-choices, .question-multi { max-height: none; grid-template-columns: 1fr; }
  .registration-navigation { right: 20px; bottom: 24px; }
  .registration-error { right: 22px; bottom: 90px; max-width: calc(100% - 44px); }
  .register-login-link { bottom: 38px; left: 22px; }
  .registration-review { width: 100%; grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }

  .hub-sidebar { width: 100%; background: linear-gradient(90deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.7) 52%, rgba(8, 8, 8, 0.08) 100%); }
  .hub-utility { top: 24px; left: 20px; gap: 10px; }
  .hub-utility__button, .hub-avatar { width: 38px; }
  .hub-sidebar__content { left: 82px; width: calc(100% - 104px); padding-top: 28px; padding-bottom: 30px; }
  .hub-logo { width: 124px; margin-bottom: 9vh; }
  .hub-nav { gap: clamp(19px, 3.1vh, 30px); }
  .hub-nav__item { font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .spotify-now { width: 100%; grid-template-columns: 62px minmax(0, 1fr); }
  .spotify-disc { width: 60px; }

  .app-main .page { padding: 94px 16px 28px; }
  .page-back { top: 18px; left: 16px; width: 44px; }
  .page-topline { padding-left: 0; }
  .app-main .page--kick-off { min-height: 100svh; }
  .template-actions { align-items: flex-start; flex-direction: column; }

  .profile-page { padding: 92px 18px 50px; }
  .profile-hero { margin-bottom: 42px; align-items: flex-start; flex-direction: column; }
  .profile-hero__avatar { width: 104px; }
  .profile-grid, .profile-edit-grid { grid-template-columns: 1fr; }
  .profile-item--wide, .profile-edit-field--wide { grid-column: auto; }
  .profile-section { padding: 22px 16px; }
  .profile-section header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-background__layer,
  .registration-question {
    transition: none;
    animation: none;
  }
}

@font-face {
  font-family: "Cruyff Sans";
  src: url("assets/fonts/CruyffSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cruyff Sans";
  src: url("assets/fonts/CruyffSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cruyff Sans";
  src: url("assets/fonts/CruyffSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cruyff Sans Expanded";
  src: url("assets/fonts/CruyffSansExpanded-Heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f5f7f6;
  --muted: #969c9d;
  --muted-2: #666d70;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  --glass: rgba(7, 9, 11, 0.76);
  --glass-deep: rgba(6, 8, 10, 0.92);
  --surface: rgba(14, 17, 20, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --accent: #ffffff;
  --accent-blue: #77b7ff;
  --danger: #ff7777;
  --success: #ffffff;
  --sidebar: clamp(300px, 23vw, 380px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.38);
  --backdrop-overlay: 0.58;
  --backdrop-blur: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #080a0c;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #080a0c;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open,
body.is-nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
select,
input[type="range"],
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.world-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(82, 106, 216, 0.85), transparent 31%),
    radial-gradient(circle at 58% 74%, rgba(20, 111, 137, 0.64), transparent 38%),
    #050608;
}

.world-backdrop__image,
.world-backdrop__shade,
.world-backdrop__grain,
.world-backdrop__orb {
  position: absolute;
  inset: 0;
}

.world-backdrop__image {
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(var(--backdrop-blur));
  transform: scale(1.03);
}

.world-backdrop__orb {
  z-index: 0;
  width: 62vw;
  height: 112vh;
  inset: auto;
  border: 1px solid rgba(171, 223, 255, 0.22);
  border-radius: 50% 42% 62% 38%;
  background:
    radial-gradient(circle at 30% 25%, rgba(163, 200, 255, 0.72), transparent 12%),
    linear-gradient(140deg, rgba(11, 14, 18, 0.05) 12%, rgba(42, 94, 126, 0.85) 44%, rgba(74, 67, 171, 0.88) 82%);
  box-shadow:
    inset 24px 8px 64px rgba(171, 223, 255, 0.44),
    inset -30px -36px 90px rgba(4, 8, 15, 0.86),
    0 0 80px rgba(50, 113, 168, 0.18);
  opacity: 0.76;
  filter: saturate(0.82);
}

.world-backdrop__orb--one {
  top: -30vh;
  right: -10vw;
  transform: rotate(31deg);
}

.world-backdrop__orb--two {
  right: 38vw;
  bottom: -70vh;
  width: 52vw;
  transform: rotate(-24deg);
  opacity: 0.5;
}

.world-backdrop__grain {
  z-index: 3;
  opacity: 0.075;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.world-backdrop__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.96) 0%, rgba(4, 5, 7, 0.66) 27%, rgba(4, 5, 7, calc(var(--backdrop-overlay) * 0.35)) 66%, rgba(4, 5, 7, var(--backdrop-overlay)) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.25), rgba(4, 5, 7, calc(var(--backdrop-overlay) * 0.85)));
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.08em;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(1.7rem, 2.3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}

.wordmark b {
  color: var(--accent);
  font: inherit;
  transform: skewX(-12deg);
}

.eyebrow,
.section-number,
.read-only-tag,
.optional-tag,
.status-chip,
.field > span,
.module-picker legend {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(24px, 3.6vw, 58px);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-topbar p {
  margin: 0;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 600px);
  gap: clamp(48px, 9vw, 150px);
  width: min(1520px, 100%);
  min-height: calc(100vh - 150px);
  margin: 30px auto 0;
  align-items: center;
}

.auth-intro {
  max-width: 770px;
  padding-bottom: 6vh;
}

.auth-intro h1 {
  max-width: 760px;
  margin: 22px 0 28px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: #c0c5c5;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.65;
}

.auth-principle {
  display: flex;
  gap: 18px;
  max-width: 470px;
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-principle span {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
}

.auth-principle p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.025em;
}

.auth-card {
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 9, 11, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(34px) saturate(0.8);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  min-height: 64px;
  padding: 0 20px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.auth-tab + .auth-tab {
  border-left: 1px solid var(--line);
}

.auth-tab::after {
  position: absolute;
  right: 28px;
  bottom: -1px;
  left: 28px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: 180ms ease;
}

.auth-tab.is-active {
  color: var(--ink);
}

.auth-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.auth-panel {
  display: none;
  padding: clamp(28px, 4vw, 52px);
}

.auth-panel.is-active {
  display: block;
  animation: reveal 240ms ease both;
}

.panel-heading {
  margin-bottom: 30px;
}

.panel-heading h2 {
  margin: 10px 0 9px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field--wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}

.field-grid .field {
  margin-bottom: 0;
}

.field input,
.field select,
.field textarea,
.search-field input,
.wheel-entry input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: auto;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder,
.search-field input::placeholder,
.wheel-entry input::placeholder {
  color: #666d70;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.wheel-entry input:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.module-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.module-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
}

.module-picker label,
.consent-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #c9cdcd;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
}

.module-picker input,
.consent-row input {
  accent-color: var(--accent);
}

.consent-row {
  margin-top: 20px;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 32px;
}

.form-progress span {
  height: 2px;
  background: var(--line);
  transition: background 180ms ease;
}

.form-progress span.is-active {
  background: var(--accent);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: reveal 220ms ease both;
}

.form-error {
  min-height: 21px;
  margin: 18px 0 4px;
  color: var(--danger);
  font-size: 0.84rem;
}

.form-navigation,
.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.primary-action,
.secondary-action,
.subtle-button,
.text-action {
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: 160ms ease;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
}

.primary-action {
  color: #0b0d08;
  background: var(--accent);
}

.primary-action:hover {
  background: #e4ff7a;
  transform: translateY(-1px);
}

.primary-action:disabled,
.secondary-action:disabled,
.text-action:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.primary-action--full {
  width: 100%;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.text-action {
  padding: 9px 0;
  color: #c4c8c8;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 5px;
}

.text-action:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.text-action--danger:hover {
  color: var(--danger);
  text-decoration-color: var(--danger);
}

.auth-panel > .primary-action,
.auth-panel > .text-action {
  width: 100%;
  margin-top: 9px;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hub-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: clamp(26px, 3.2vw, 50px) clamp(26px, 3vw, 48px) 28px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(6, 7, 9, 0.94), rgba(6, 7, 9, 0.73));
  backdrop-filter: blur(26px) saturate(0.8);
}

.hub-sidebar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 35%, rgba(0, 0, 0, 0.22));
  content: "";
  pointer-events: none;
}

.hub-sidebar__top {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(26px, 4vh, 54px);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: #c7cccc;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 1.2rem;
  transition: 160ms ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  position: absolute;
  z-index: 100;
  top: calc(100% + 9px);
  left: 50%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dfe3e3;
  background: #111417;
  content: attr(data-tooltip);
  font-family: "Cruyff Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: 140ms ease;
  white-space: nowrap;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wordmark--hub {
  align-self: flex-start;
  margin-bottom: clamp(24px, 3.5vh, 42px);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
}

.career-stamp {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.career-stamp span {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}

.career-stamp strong {
  overflow: hidden;
  margin-top: 3px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.career-stamp p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-nav {
  display: grid;
  gap: 1px;
  margin-top: clamp(28px, 4vh, 54px);
}

.hub-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: clamp(46px, 5.7vh, 64px);
  padding: 0;
  color: #777d7e;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.hub-nav__item::before {
  position: absolute;
  top: 50%;
  left: -48px;
  width: 3px;
  height: 0;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
  transition: 180ms ease;
}

.hub-nav__item span {
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.58rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: 180ms ease;
}

.hub-nav__item strong {
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.24rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.hub-nav__item:hover {
  color: #cdd1d1;
  transform: translateX(4px);
}

.hub-nav__item.is-active {
  color: #fff;
}

.hub-nav__item.is-active::before {
  height: 26px;
}

.hub-nav__item.is-active span {
  color: var(--accent);
  opacity: 1;
  transform: translateX(0);
}

.spotify-now {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.spotify-disc {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  background:
    radial-gradient(circle, #090b0d 0 8%, transparent 9% 14%, rgba(255, 255, 255, 0.08) 15% 17%, transparent 18% 36%, rgba(255, 255, 255, 0.07) 37% 39%, transparent 40%),
    conic-gradient(from 20deg, #33383a, #777e7d, #202326, #707777, #33383a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.spotify-disc::before {
  position: absolute;
  inset: 0;
  background-image: var(--album-art, none);
  background-position: center;
  background-size: cover;
  content: "";
}

.spotify-disc i {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #0a0c0e;
  transform: translate(-50%, -50%);
}

.spotify-disc.is-playing {
  animation: spin 6s linear infinite;
}

.spotify-copy {
  display: grid;
  min-width: 0;
}

.spotify-copy small {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.spotify-copy strong,
.spotify-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-copy strong {
  margin: 1px 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  letter-spacing: -0.01em;
}

.spotify-copy em {
  color: var(--muted);
  font-size: 0.69rem;
  font-style: normal;
}

.mobile-header {
  display: none;
}

.app-main {
  position: relative;
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.page {
  display: none;
  min-height: 100vh;
  padding: clamp(34px, 4.6vw, 76px) clamp(30px, 5vw, 90px) 42px;
  animation: pageIn 260ms ease both;
}

.page.is-active {
  display: block;
}

.page--kick-off {
  height: 100vh;
  overflow: hidden;
}

.page-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3.8vh, 46px);
}

.page-topline h1 {
  margin: 5px 0 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(2.25rem, 4.4vw, 5.15rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.read-only-tag,
.optional-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8adad;
  background: rgba(5, 7, 9, 0.4);
}

.optional-tag {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--accent);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9bebe;
  background: rgba(5, 7, 9, 0.46);
}

.status-chip i,
.connection-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777d7e;
  box-shadow: 0 0 0 4px rgba(119, 125, 126, 0.08);
}

.status-chip.is-connected i,
.connection-row.is-connected i {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(101, 230, 168, 0.1);
}

.kick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - clamp(135px, 18vh, 188px));
  transition: grid-template-columns 240ms ease;
}

.kick-layout.has-tools {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.chat-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 9, 11, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(0.82);
}

.chat-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.chat-context > div {
  display: grid;
}

.chat-context span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
}

.chat-context strong {
  font-size: 0.89rem;
  font-weight: 500;
}

.subtle-button {
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
}

.subtle-button:hover {
  color: var(--ink);
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.empty-state {
  display: grid;
  justify-items: start;
  max-width: 620px;
  padding: clamp(40px, 7vw, 100px);
}

.empty-state--chat {
  min-height: 100%;
  align-content: center;
}

.empty-state__index {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.7rem;
}

.empty-state h2 {
  margin: 13px 0 13px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chat-message {
  display: grid;
  grid-template-columns: 90px minmax(0, 760px);
  gap: 22px;
  padding: 28px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.chat-message__meta {
  display: grid;
  align-content: start;
  gap: 5px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chat-message__meta strong {
  color: var(--ink);
  font-size: 0.65rem;
}

.chat-message--assistant .chat-message__meta strong {
  color: var(--accent);
}

.chat-message__body {
  min-width: 0;
  color: #e4e7e6;
  font-size: 0.97rem;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message--assistant {
  background: rgba(255, 255, 255, 0.023);
}

.chat-message.is-pending .chat-message__body::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 900ms ease infinite alternate;
  content: "";
}

.chat-composer {
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(11, 14, 16, 0.93);
}

.chat-composer textarea {
  display: block;
  width: 100%;
  max-height: 190px;
  padding: 17px 18px 5px;
  resize: none;
  outline: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  line-height: 1.5;
}

.chat-composer textarea::placeholder {
  color: #6f7576;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 5px 8px 8px 12px;
}

.composer-tools {
  display: flex;
  gap: 4px;
}

.composer-tools button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.composer-tools button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.composer-tools svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.composer-hint {
  margin-left: auto;
  color: #676d6e;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.04em;
}

.send-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #0b0d08;
  background: var(--accent);
  cursor: pointer;
  font-size: 1.2rem;
  transition: 160ms ease;
}

.send-button:hover {
  transform: translateY(-2px);
}

.tool-drawer {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 9, 11, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.tool-drawer.is-open {
  display: flex;
  flex-direction: column;
  animation: drawerIn 220ms ease both;
}

.tool-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
}

.tool-drawer__header h2 {
  margin: 3px 0 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tool-tabs,
.filter-line,
.career-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-tabs {
  padding: 11px;
  border-bottom: 1px solid var(--line);
}

.tool-tabs button,
.filter-line button,
.career-tabs button {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.tool-tabs button.is-active,
.filter-line button.is-active,
.career-tabs button.is-active {
  color: #0b0d08;
  background: var(--accent);
}

.tool-panel {
  display: none;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
}

.tool-panel.is-active {
  display: block;
  animation: reveal 180ms ease both;
}

.tool-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.compact-form .field {
  margin-bottom: 15px;
}

.compact-form .field-grid {
  gap: 12px;
}

.compact-form .field input,
.compact-form .field textarea {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 0.84rem;
}

.compact-form .button-row {
  margin-top: 20px;
}

.wheel-wrap {
  position: relative;
  width: min(270px, 74vw);
  margin: 14px auto 26px;
}

.wheel {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: conic-gradient(#263036 0 25%, #41525b 25% 50%, #2b4852 50% 75%, #4e4162 75%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 3.8s cubic-bezier(0.12, 0.69, 0.12, 1);
}

.wheel::after {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #111518;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.38);
  content: "";
}

.wheel span {
  z-index: 2;
  max-width: 25%;
  overflow: hidden;
  color: var(--ink);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-right: 20px solid var(--accent);
  border-bottom: 11px solid transparent;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.34));
  transform: translateY(-50%);
}

.wheel-entries {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.wheel-entry {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 31px;
  gap: 7px;
  align-items: center;
}

.wheel-entry > span {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: var(--entry-color);
}

.wheel-entry input {
  min-height: 39px;
  padding: 7px 10px;
  font-size: 0.81rem;
}

.wheel-entry button {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.wheel-entry button:hover {
  color: var(--danger);
  background: rgba(255, 119, 119, 0.08);
}

.dice-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dice-picker button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
}

.dice-picker button.is-active {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.dice-result {
  display: grid;
  justify-items: center;
  margin: 18px 0;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dice-result span,
.dice-result p {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dice-result strong {
  margin: 3px 0;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 4.4rem;
  font-weight: 300;
  line-height: 1;
}

.dice-result p {
  margin: 5px 0 0;
}

.dice-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.dice-history span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.61rem;
}

.filter-line {
  margin: -8px 0 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.content-surface {
  min-height: 420px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.52), rgba(6, 8, 10, 0.18));
  backdrop-filter: blur(16px);
}

.content-surface > .empty-state {
  min-height: 420px;
  align-content: center;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
}

.news-feature {
  min-height: 430px;
  padding: clamp(28px, 4vw, 58px);
  border-right: 1px solid var(--line);
}

.news-feature__type,
.news-item__type {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-feature h2 {
  max-width: 800px;
  margin: 18px 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

.news-feature p {
  max-width: 630px;
  color: #bcc1c1;
  line-height: 1.7;
}

.news-feature footer,
.news-item footer {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.62rem;
}

.news-stream {
  display: grid;
  align-content: start;
}

.news-item {
  padding: 25px;
  border-bottom: 1px solid var(--line);
}

.news-item h3 {
  margin: 10px 0 8px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.relationship-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.relationship-toolbar > span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.search-field {
  display: flex;
  align-items: center;
  width: min(330px, 100%);
  border-bottom: 1px solid var(--line-strong);
}

.search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-field input {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.relationship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.relationship-card {
  min-height: 260px;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 11, 0.34);
}

.relationship-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.relationship-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Cruyff Sans", Arial, sans-serif;
}

.relationship-level {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.relationship-card h3 {
  margin: 21px 0 4px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.relationship-card > span {
  color: var(--accent-blue);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relationship-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.season-selector {
  display: grid;
  gap: 4px;
}

.season-selector span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.season-selector select {
  min-width: 140px;
  padding: 7px 32px 7px 10px;
  outline: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(8, 10, 12, 0.7);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.8rem;
}

.season-overview {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.4fr);
}

.season-stats {
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.season-stats h2 {
  margin: 4px 0 26px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-cell {
  display: grid;
  gap: 5px;
  min-height: 105px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-cell strong {
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
}

.stat-cell span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-list {
  display: grid;
  align-content: start;
}

.match-list__heading {
  padding: 28px 30px 15px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.match-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 82px;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
}

.match-row__date,
.match-row__meta {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.61rem;
  text-transform: uppercase;
}

.match-row__fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 0.89rem;
}

.match-row__fixture span:last-child {
  text-align: right;
}

.match-row__score {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: "Cruyff Sans", Arial, sans-serif;
  white-space: nowrap;
}

.match-row__meta {
  text-align: right;
}

.career-tabs {
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.career-tabs button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 0;
}

.career-tabs button.is-active {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -2px var(--accent);
}

.career-tabs button span {
  margin-right: 8px;
  color: var(--muted);
}

.finance-layout,
.hall-layout,
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.7fr) minmax(0, 1.3fr);
}

.balance-panel,
.career-side-panel {
  min-height: 430px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.balance-panel > span,
.career-side-panel > span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balance-panel strong {
  display: block;
  margin: 15px 0 34px;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 1;
}

.pocket-list,
.record-list,
.calendar-list,
.transaction-list {
  display: grid;
}

.pocket-item,
.record-item,
.transaction-item,
.calendar-item {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.pocket-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pocket-item strong,
.transaction-item strong {
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.88rem;
}

.pocket-item span,
.record-item span,
.transaction-item span,
.calendar-item span {
  color: var(--muted);
  font-size: 0.77rem;
}

.transaction-item,
.calendar-item {
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
}

.career-side-panel h2 {
  margin: 13px 0 25px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.hall-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hall-counts div {
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hall-counts strong {
  display: block;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
}

.hall-counts span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.59rem;
  text-transform: uppercase;
}

.offpitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.offpitch-intro {
  min-height: 620px;
  padding: clamp(30px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 10, 0.38);
  backdrop-filter: blur(16px);
}

.giant-index {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.offpitch-intro h2 {
  max-width: 800px;
  margin: 19px 0 25px;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: clamp(2rem, 4.3vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

.offpitch-intro > p {
  max-width: 690px;
  color: #b7bcbc;
  line-height: 1.72;
}

.offpitch-intro ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.offpitch-intro li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  min-height: 90px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #c4c8c8;
  font-size: 0.84rem;
}

.offpitch-intro li span {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.62rem;
}

.offpitch-side {
  display: grid;
  gap: 18px;
}

.template-box,
.residence-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 11, 0.72);
  backdrop-filter: blur(20px);
}

.template-box__heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.template-box h3,
.residence-box h3 {
  margin: 5px 0 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.template-box pre {
  margin: 22px 0 10px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #bdc3c2;
  background: rgba(0, 0, 0, 0.22);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.residence-box__place {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.residence-box__place strong {
  font-size: 1.1rem;
}

.residence-box__place span {
  color: var(--muted);
  font-size: 0.82rem;
}

.modal {
  width: min(700px, calc(100vw - 30px));
  max-height: min(880px, calc(100vh - 30px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: rgba(8, 10, 12, 0.95);
  box-shadow: 0 45px 130px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(34px);
}

.modal::backdrop {
  background: rgba(2, 3, 4, 0.72);
  backdrop-filter: blur(7px);
}

.modal__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}

.modal__header,
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal__header h2 {
  margin: 4px 0 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1.4rem;
}

.modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal__footer .text-action--danger {
  margin-right: auto;
}

.modal__content {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.settings-section {
  padding: 27px 25px;
  border-bottom: 1px solid var(--line);
}

.settings-section__heading {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.settings-section__heading > span {
  color: var(--accent);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.65rem;
}

.settings-section__heading h3 {
  margin: 0;
  font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif;
  font-size: 1rem;
}

.settings-section__heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.upload-zone {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 106px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.035);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone strong {
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.upload-zone span {
  color: var(--muted);
  font-size: 0.73rem;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 10px;
}

.range-grid label {
  display: grid;
  gap: 8px;
}

.range-grid label > span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.range-grid output {
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.79rem;
}

.integration-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.integration-card > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: rgba(10, 12, 13, 0.94);
}

.integration-card span {
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.integration-card strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.integration-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.copy-field input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.copy-field button {
  padding: 0 13px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.62rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-item {
  min-height: 86px;
  padding: 17px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-item strong {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: pre-wrap;
}

.profile-item--wide {
  grid-column: 1 / -1;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #e3e6e6;
  background: rgba(13, 16, 18, 0.94);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  animation: toastIn 200ms ease both;
  backdrop-filter: blur(18px);
}

.toast::before {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.toast.is-error::before {
  background: var(--danger);
}

.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 14;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1240px) {
  :root { --sidebar: 292px; }

  .hub-sidebar { padding-right: 30px; padding-left: 30px; }
  .hub-nav__item::before { left: -30px; }
  .page { padding-right: 36px; padding-left: 36px; }
  .kick-layout.has-tools { grid-template-columns: minmax(0, 1fr) 380px; }
  .relationship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offpitch-layout { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); gap: 24px; }
}

@media (max-width: 1040px) {
  .auth-layout { grid-template-columns: 1fr; width: min(680px, 100%); gap: 28px; padding: 70px 0 34px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
  .auth-principle { margin-top: 32px; }
  .hub-sidebar { transform: translateX(-102%); transition: transform 220ms ease; }
  body.is-nav-open .hub-sidebar { transform: translateX(0); }
  .mobile-header { position: fixed; inset: 0 0 auto 0; z-index: 13; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(6, 8, 10, 0.76); backdrop-filter: blur(22px); }
  .mobile-header .wordmark { font-size: 1.45rem; }
  .app-main { margin-left: 0; }
  .page { padding-top: 102px; }
  .page--kick-off { height: 100svh; }
  .kick-layout { height: calc(100svh - 190px); }
  .kick-layout.has-tools { grid-template-columns: minmax(0, 1fr); }
  .tool-drawer.is-open { position: absolute; z-index: 9; top: 150px; right: 30px; bottom: 24px; width: min(440px, calc(100% - 60px)); }
  .news-layout, .season-overview, .finance-layout, .hall-layout, .calendar-layout { grid-template-columns: 1fr; }
  .news-feature, .season-stats, .balance-panel, .career-side-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .offpitch-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .auth-gate { padding: 20px 14px; }
  .auth-topbar p { display: none; }
  .auth-layout { padding-top: 44px; }
  .auth-intro h1 { font-size: clamp(2.3rem, 12.5vw, 4rem); }
  .auth-intro br { display: none; }
  .auth-card { min-height: 0; border-radius: 20px; }
  .auth-panel { padding: 28px 20px; }
  .field-grid--two { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .module-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-navigation { align-items: stretch; flex-direction: column-reverse; }
  .form-navigation button { width: 100%; }
  .hub-sidebar { width: min(86vw, 340px); }
  .page { padding: 92px 15px 24px; }
  .page-topline { align-items: flex-start; margin-bottom: 24px; }
  .page-topline h1 { font-size: clamp(2rem, 12vw, 3.3rem); }
  .read-only-tag, .optional-tag { display: none; }
  .status-chip { padding: 0 8px; }
  .status-chip span { display: none; }
  .kick-layout { height: calc(100svh - 156px); }
  .chat-context { min-height: 55px; padding: 0 15px; }
  .chat-message { grid-template-columns: 1fr; gap: 9px; padding: 22px 18px; }
  .chat-message__meta { grid-template-columns: auto auto; justify-content: start; }
  .chat-composer { margin: 8px; }
  .composer-hint { display: none; }
  .tool-drawer.is-open { position: fixed; z-index: 30; inset: 76px 10px 10px; width: auto; border-radius: 20px; }
  .relationship-toolbar { align-items: stretch; flex-direction: column; }
  .relationship-grid { grid-template-columns: 1fr; }
  .news-feature { min-height: 340px; padding: 28px 20px; }
  .news-feature h2 { font-size: clamp(1.8rem, 10vw, 3rem); }
  .season-selector { max-width: 130px; }
  .season-overview { display: block; }
  .season-stats { padding: 25px 18px; }
  .match-row { grid-template-columns: 1fr; gap: 7px; padding: 18px; }
  .match-row__fixture { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .match-row__meta { text-align: left; }
  .career-tabs button { padding: 0 12px; }
  .career-tabs button span { display: none; }
  .transaction-item, .calendar-item { grid-template-columns: 1fr; }
  .offpitch-intro { min-height: 0; padding: 30px 20px; }
  .offpitch-intro h2 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .offpitch-intro ol { grid-template-columns: 1fr; }
  .template-box, .residence-box { padding: 19px; }
  .template-box__heading { align-items: stretch; flex-direction: column; }
  .template-box__heading .secondary-action { align-self: flex-start; }
  .range-grid { grid-template-columns: 1fr; }
  .modal { max-height: calc(100svh - 16px); width: calc(100vw - 16px); }
  .modal__header, .modal__footer { padding: 17px; }
  .settings-section { padding: 24px 17px; }
  .modal__footer { flex-wrap: wrap; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-item--wide { grid-column: auto; }
  .toast-region { right: 16px; bottom: 16px; }
}

@media (max-height: 760px) and (min-width: 1041px) {
  .hub-sidebar { padding-top: 24px; }
  .hub-sidebar__top { margin-bottom: 18px; }
  .wordmark--hub { margin-bottom: 18px; }
  .hub-nav { margin-top: 20px; }
  .hub-nav__item { min-height: 42px; }
  .spotify-disc { width: 50px; height: 50px; }
  .spotify-now { grid-template-columns: 50px minmax(0, 1fr); }
  .page { padding-top: 30px; }
  .page-topline { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Auditoria 2026-09 — persistência, recibos e transparência local */
.chat-delivery {
  display: flex;
  margin-top: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5d6265;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.chat-delivery > div { display: flex; flex-wrap: wrap; gap: 7px; }
.chat-delivery button { padding: 7px 9px; border: 1px solid #aeb2b4; color: #111; background: transparent; font-size: 0.58rem; font-weight: 800; cursor: pointer; }
.chat-delivery button:hover,
.chat-delivery button:focus-visible { border-color: #111; background: #111; color: #fff; }
.chat-delivery.is-failed { color: #a01734; }
.chat-delivery.is-sending span::after { display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%; background: currentColor; animation: pulse 900ms ease infinite alternate; content: ""; }
.chat-message--user.has-failed { box-shadow: inset 0 0 0 1px rgba(163, 23, 54, 0.45); }

.chat-memory-receipt {
  display: flex;
  width: fit-content;
  margin-top: 13px;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid #303437;
  color: #899094;
  background: #090b0c;
  font-size: 0.62rem;
  letter-spacing: 0.035em;
}

.chat-memory-receipt.is-verified { border-color: #4e595f; color: #d4d8da; }
.chat-memory-receipt span { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #000; background: #fff; font-size: 0.56rem; }

.settings-consent {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #90979b;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.settings-consent button { padding: 7px 10px; border: 1px solid #34393c; color: #d7dbdd; background: transparent; font-size: 0.58rem; font-weight: 700; cursor: pointer; }
.settings-consent button:disabled { opacity: 0.35; cursor: default; }
.settings-data-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.settings-data-actions .text-action--danger { margin-left: auto; padding: 10px 4px; border: 0; color: #ff718e; background: transparent; font-size: 0.65rem; font-weight: 700; cursor: pointer; }
.settings-data-status { min-height: 18px; margin: 12px 0 0 36px; color: #90979b; font-size: 0.72rem; }

.legal-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #34383b;
  color: #f5f5f5;
  background: #090b0c;
}

.legal-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(5px); }
.legal-dialog article { display: grid; max-height: inherit; grid-template-rows: auto minmax(0, 1fr); }
.legal-dialog header { display: flex; padding: 22px 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid #2b2f31; }
.legal-dialog h2 { margin: 0; font-family: "Cruyff Sans Expanded", "Cruyff Sans", sans-serif; font-size: 1.15rem; }
.legal-dialog header button { width: 38px; height: 38px; border: 1px solid #34383b; border-radius: 50%; color: #fff; background: transparent; font-size: 1.4rem; cursor: pointer; }
.legal-dialog #legalContent { padding: 24px; overflow-y: auto; color: #b9bec1; font-size: 0.9rem; line-height: 1.65; }
.legal-dialog #legalContent p { margin: 0 0 18px; }
.legal-dialog #legalContent strong { color: #fff; }

@media (max-width: 700px) {
  .chat-delivery { align-items: flex-start; flex-direction: column; }
  .settings-consent { align-items: flex-start; flex-direction: column; }
  .settings-data-actions { align-items: stretch; flex-direction: column; }
  .settings-data-actions button { width: 100%; }
  .settings-data-actions .text-action--danger { margin-left: 0; }
  .settings-data-status { margin-left: 0; }
}

/* Final cascade precedence for the full-screen shell. */
.auth-gate {
  position: fixed;
  inset: 0;
  display: block;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.auth-gate .auth-panel { display: none; }
.auth-gate .auth-panel.is-active { display: block; }

.app-shell {
  position: fixed;
  inset: 0;
  display: block;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hub-sidebar {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  display: block;
  width: min(49vw, 810px);
  min-height: 100svh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.98) 0%, rgba(13, 13, 13, 0.92) 49%, rgba(12, 12, 12, 0.58) 73%, rgba(8, 8, 8, 0) 100%);
  backdrop-filter: none;
  box-shadow: none;
  transform: none;
}

.hub-sidebar::after,
.hub-sidebar::before { display: none; }

.hub-nav {
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.3vh, 32px);
}

.hub-nav__item {
  position: static;
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  font-size: clamp(1rem, 1.34vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  transform: none;
}

.hub-nav__item::after,
.hub-nav__item::before { display: none; }
.hub-nav__item.is-active,
.hub-nav__item:hover,
.hub-nav__item:focus-visible { color: #fff; background: transparent; transform: translateX(3px); }

.spotify-now {
  position: static;
  display: grid;
  width: min(27vw, 420px);
  min-height: 92px;
  margin: auto 0 0;
  padding: 0;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.spotify-disc { width: 74px; height: 74px; }

.app-main {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  margin: 0;
  overflow-y: auto;
  background: #090b0d;
}

.app-shell.is-page-open .app-main { display: block; }
.app-shell.is-page-open .hub-sidebar,
.app-shell.is-page-open .hub-background { visibility: hidden; opacity: 0; pointer-events: none; }

.app-main .page {
  display: none;
  width: 100%;
  min-height: 100svh;
  padding: 5.7vh 5.4vw 4.5vh;
}

.app-main .page.is-active { display: block; }
.app-main .page--kick-off { height: 100svh; min-height: 720px; }
.page-topline { padding-left: 58px; }

@media (max-width: 1000px) {
  .hub-sidebar { width: min(68vw, 680px); padding: 0; transform: none; }
  .hub-nav { margin: 0; }
  .spotify-now { width: 40vw; grid-template-columns: 78px minmax(0, 1fr); }
  .app-main { margin-left: 0; }
}

@media (max-width: 700px) {
  .hub-sidebar { width: 100%; padding: 0; transform: none; }
  .hub-nav { margin: 0; gap: clamp(19px, 3.1vh, 30px); }
  .hub-nav__item { min-height: 0; font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .spotify-now { width: 100%; grid-template-columns: 62px minmax(0, 1fr); }
  .spotify-disc { width: 60px; height: 60px; }
  .app-main .page { padding: 94px 16px 28px; }
  .app-main .page--kick-off { min-height: 100svh; }
  .page-topline { padding-left: 0; }
}

/* InyffX refinement — viewport-safe onboarding, hover hub and KICK OFF */

.register-screen {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.register-screen__logo {
  position: absolute;
  top: clamp(20px, 4vh, 48px);
  width: clamp(112px, 8.2vw, 180px);
}

.registration-wizard {
  display: flex;
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding: clamp(88px, 13vh, 138px) clamp(28px, 7vw, 110px) clamp(66px, 8.5vh, 92px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.registration-progress {
  top: clamp(25px, 4.3vh, 48px);
}

.registration-question {
  display: flex;
  width: min(86vw, 1800px);
  min-height: 0;
  max-height: 100%;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.question-heading {
  flex: 0 0 auto;
}

.question-heading h1 {
  max-width: min(86vw, 1650px);
  margin: 0 0 clamp(18px, 3.5vh, 42px);
  font-size: clamp(2rem, 3.65vw, 5rem);
  line-height: 0.98;
}

.question-hint {
  margin-top: clamp(8px, 1.5vh, 18px);
  line-height: 1.25;
}

.question-choices,
.question-multi {
  width: min(86vw, 1740px);
  max-height: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(5px, 0.8vh, 10px) clamp(7px, 1vw, 16px);
  padding: 0;
  overflow: visible;
}

.registration-question.is-dense .question-choices,
.registration-question.is-dense .question-multi {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.registration-question.is-ultra-dense .question-choices,
.registration-question.is-ultra-dense .question-multi {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.question-choice,
.multi-choice {
  min-height: clamp(38px, 5.1vh, 54px);
  padding: clamp(7px, 1vh, 12px) clamp(9px, 0.9vw, 16px);
  font-size: clamp(0.78rem, 0.94vw, 1.18rem);
  line-height: 1.12;
}

.registration-question.is-dense .question-choice,
.registration-question.is-dense .multi-choice {
  min-height: clamp(34px, 4.5vh, 46px);
  padding: 6px 9px;
  font-size: clamp(0.7rem, 0.78vw, 0.98rem);
}

.registration-question.is-ultra-dense .question-choice,
.registration-question.is-ultra-dense .multi-choice {
  min-height: clamp(30px, 4vh, 42px);
  padding: 4px 7px;
  font-size: clamp(0.64rem, 0.68vw, 0.86rem);
}

.wizard-input,
.wizard-autocomplete {
  width: min(62vw, 1050px);
}

.wizard-input input,
.wizard-input textarea {
  min-height: clamp(48px, 7vh, 68px);
  padding-bottom: clamp(9px, 1.6vh, 17px);
  font-size: clamp(1.25rem, 1.75vw, 2.25rem);
}

.wizard-input textarea {
  height: clamp(92px, 17vh, 150px);
  min-height: 0;
  max-height: 18vh;
  resize: none;
}

.autocomplete-suggestions {
  display: none;
  max-height: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
  overflow: hidden;
}

.autocomplete-suggestions.is-visible {
  display: grid;
}

.autocomplete-suggestions button {
  min-height: clamp(30px, 4.2vh, 42px);
  padding: 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  font-size: clamp(0.72rem, 0.85vw, 0.95rem);
}

.autocomplete-manual {
  margin-top: 9px;
  font-size: 0.83rem;
}

.photo-upload {
  gap: 9px;
}

.photo-upload img,
.photo-upload__placeholder {
  width: clamp(88px, 13vh, 130px);
}

.skip-photo {
  margin-top: 10px;
}

.registration-review {
  width: min(88vw, 1880px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 0.75vw, 14px);
}

.registration-review section {
  min-width: 0;
  padding: clamp(8px, 1vw, 15px);
}

.registration-review h2 {
  margin-bottom: 8px;
  font-size: 0.65rem;
}

.review-grid {
  grid-template-columns: 1fr;
  gap: 5px;
}

.review-grid span {
  font-size: 0.56rem;
}

.review-grid strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.65rem, 0.7vw, 0.82rem);
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-confirm {
  min-height: 28px;
  font-size: 0.8rem;
}

.hub-background__layer {
  transition: opacity 520ms ease !important;
}

.hub-utility__button img,
.hub-avatar img {
  display: block;
  width: 66%;
  height: 66%;
  margin: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.72;
}

.hub-utility__button:hover img,
.hub-avatar:hover img {
  opacity: 1;
}

.page--kick-off {
  background: #000;
}

.app-main .page--kick-off {
  position: relative;
  height: 100svh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.app-shell[data-route="kick-off"] .app-main {
  overflow: hidden;
  background: #000;
}

.app-shell[data-route="kick-off"] .page-back {
  top: clamp(24px, 4.8vh, 50px);
  left: clamp(22px, 3.1vw, 62px);
  width: clamp(46px, 4.1vw, 64px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #30353a;
  border-radius: 50%;
  color: #d7d9da;
  background: #080a0c;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.kick-new-day {
  position: fixed;
  z-index: 14;
  top: clamp(35px, 6.5vh, 68px);
  right: clamp(30px, 7.5vw, 145px);
  display: flex;
  padding: 8px 0;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: transparent;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 700;
  cursor: pointer;
}

.kick-new-day img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.chat-history-control {
  position: fixed;
  z-index: 20;
  top: clamp(105px, 16vh, 168px);
  left: clamp(24px, 3.25vw, 64px);
}

.chat-history-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  align-content: center;
  gap: 5px;
  border-radius: 50%;
  color: #fff;
  background: #080a0c;
  cursor: pointer;
}

.chat-history-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #c7cacc;
}

.chat-history-panel {
  position: absolute;
  top: -8px;
  left: 52px;
  width: min(310px, calc(100vw - 100px));
  max-height: 62vh;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #25282b;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  background: rgba(12, 13, 15, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: translateX(-8px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.chat-history-control.has-chats:hover .chat-history-panel,
.chat-history-control.has-chats:focus-within .chat-history-panel,
.chat-history-control.has-chats.is-open .chat-history-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.chat-history-panel header {
  display: flex;
  margin-bottom: 12px;
  align-items: baseline;
  justify-content: space-between;
  color: #73777a;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.chat-history-panel header strong {
  color: #fff;
  font-size: 0.68rem;
}

.chat-history-list {
  display: grid;
  max-height: calc(62vh - 70px);
  gap: 3px;
  overflow-y: auto;
}

.chat-history-item {
  display: grid;
  width: 100%;
  min-height: 50px;
  padding: 9px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #979b9e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-item small {
  color: #5f6366;
  font-size: 0.56rem;
}

.chat-history-item:hover,
.chat-history-item.is-active {
  color: #000;
  background: #fff;
}

.chat-history-item:hover small,
.chat-history-item.is-active small {
  color: #555;
}

.kick-layout,
.kick-layout.has-tools {
  display: block;
  width: 100%;
  height: 100svh;
}

.chat-stage {
  position: relative;
  display: flex;
  width: min(58vw, 1040px);
  height: 100svh;
  min-width: 560px;
  margin: 0 auto;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  backdrop-filter: none;
  transition: width 220ms ease, margin 220ms ease;
}

.kick-layout.has-tools .chat-stage {
  width: min(52vw, 900px);
  margin-right: min(32vw, 470px);
}

.chat-messages {
  display: flex;
  min-height: 0;
  padding: clamp(105px, 14vh, 150px) 0 clamp(142px, 19vh, 190px);
  flex: 1 1 auto;
  flex-direction: column;
  gap: clamp(34px, 5vh, 60px);
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.kick-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  color: #727578;
  font-size: clamp(1.15rem, 1.55vw, 1.7rem);
  text-align: center;
}

.kick-empty strong {
  margin-left: 0.28ch;
  color: #fff;
  font-weight: 500;
}

.chat-message {
  display: block;
  width: fit-content;
  max-width: 72%;
  padding: 0;
  border: 0;
}

.chat-message--user {
  width: min(61%, 610px);
  margin-left: auto;
  padding: clamp(18px, 1.6vw, 27px);
  color: #080808;
  background: #fff;
}

.chat-message--assistant {
  margin-right: auto;
  color: #f2f2f2;
  background: transparent;
}

.chat-message__body {
  position: relative;
  color: inherit;
  font-size: clamp(0.96rem, 1.08vw, 1.22rem);
  font-weight: 500;
  line-height: 1.47;
  white-space: pre-wrap;
}

.chat-message--assistant .chat-message__body {
  font-weight: 400;
  line-height: 1.58;
}

.chat-message--user.is-collapsed .chat-message__body {
  display: -webkit-box;
  max-height: 7.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.chat-message--user.is-collapsed .chat-message__body::after {
  position: absolute;
  inset: auto 0 0;
  height: 3.4em;
  background: linear-gradient(transparent, #fff 82%);
  content: "";
}

.chat-message__more {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 12px;
  padding: 0;
  align-items: center;
  gap: 7px;
  color: #676767;
  background: transparent;
  font-size: 0.83rem;
  cursor: pointer;
}

.chat-message.is-pending .chat-message__body {
  color: #7d8183;
}

.chat-message.is-pending .chat-message__body::after {
  background: #fff;
}

.kick-composer-dock {
  position: absolute;
  z-index: 11;
  right: 0;
  bottom: clamp(34px, 7vh, 72px);
  left: 0;
}

.chat-composer {
  display: flex;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 7px 8px 7px 12px;
  align-items: center;
  gap: 8px;
  overflow: visible;
  border: 1px solid #898d90;
  border-radius: 999px;
  background: #000;
}

.composer-plus {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.composer-plus img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}

.chat-composer textarea {
  width: 100%;
  height: 29px;
  min-height: 29px;
  max-height: 124px;
  padding: 4px 8px;
  color: #fff;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.35;
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-composer textarea::-webkit-scrollbar {
  display: none;
}

.send-button {
  width: 46px;
  height: 46px;
  color: #000;
  background: #fff;
}

.kick-tools-menu {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 0;
  display: none;
  gap: 8px;
}

.kick-tools-menu.is-open {
  display: flex;
}

.kick-tool-card {
  display: flex;
  width: clamp(112px, 9vw, 145px);
  aspect-ratio: 1;
  padding: 13px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #7d7f81;
  background: #202020;
  text-align: left;
  cursor: pointer;
  transition: color 130ms ease, background 130ms ease;
}

.kick-tool-card strong {
  font-size: clamp(0.78rem, 0.93vw, 1rem);
  line-height: 1.05;
}

.kick-tool-card img {
  width: 31px;
  height: 31px;
  margin-left: auto;
  filter: invert(0.5);
}

.kick-tool-card:hover,
.kick-tool-card:focus-visible {
  color: #000;
  background: #fff;
}

.kick-tool-card:hover img,
.kick-tool-card:focus-visible img {
  filter: none;
}

.tool-drawer {
  position: fixed;
  z-index: 18;
  top: 0;
  right: 0;
  bottom: 0;
  display: none;
  width: min(31vw, 460px);
  min-width: 360px;
  padding: clamp(28px, 4vh, 46px) clamp(20px, 2vw, 32px);
  overflow-y: auto;
  border: 0;
  border-left: 1px solid #292b2e;
  border-radius: 0;
  background: #0d0e10;
  box-shadow: -26px 0 70px rgba(0, 0, 0, 0.46);
  backdrop-filter: none;
}

.tool-drawer.is-open {
  display: flex;
}

.tool-drawer__header {
  min-height: 60px;
  padding: 0 0 18px;
}

.tool-drawer__header h2 {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
}

@media (max-width: 1000px) {
  .registration-question.is-dense .question-choices,
  .registration-question.is-dense .question-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registration-question.is-ultra-dense .question-choices,
  .registration-question.is-ultra-dense .question-multi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .registration-review { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-stage { width: min(68vw, 780px); min-width: 500px; }
  .kick-layout.has-tools .chat-stage { width: calc(100vw - 410px); min-width: 420px; margin-right: 390px; }
}

@media (max-width: 700px) {
  .register-screen__logo { top: 18px; width: 98px; }
  .registration-wizard { padding: 76px 12px 60px; }
  .registration-progress { top: 23px; right: 14px; gap: 8px; font-size: 0.55rem; }
  .registration-question { width: 100%; }
  .question-heading h1 { max-width: 100%; margin-bottom: 15px; font-size: clamp(1.45rem, 7.5vw, 2.25rem); }
  .question-optional { top: -17px; font-size: 0.55rem; }
  .wizard-input, .wizard-autocomplete, .question-choices, .question-multi { width: 100%; }
  .question-choices, .question-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .registration-question.is-dense .question-choices,
  .registration-question.is-dense .question-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registration-question.is-ultra-dense .question-choices,
  .registration-question.is-ultra-dense .question-multi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .question-choice, .multi-choice { min-height: 34px; padding: 5px 7px; font-size: 0.68rem; }
  .registration-question.is-dense .question-choice,
  .registration-question.is-dense .multi-choice,
  .registration-question.is-ultra-dense .question-choice,
  .registration-question.is-ultra-dense .multi-choice { min-height: 28px; padding: 3px 5px; font-size: 0.58rem; }
  .wizard-input input, .wizard-input textarea { min-height: 42px; padding-bottom: 7px; font-size: 1.05rem; }
  .wizard-input textarea { height: 82px; max-height: 14vh; }
  .question-hint { margin-top: 7px; font-size: 0.66rem; }
  .autocomplete-suggestions button { min-height: 27px; padding: 4px 6px; font-size: 0.62rem; }
  .registration-navigation { right: 12px; bottom: 10px; }
  .wizard-arrow { width: 42px; font-size: 1.15rem; }
  .register-login-link { bottom: 22px; left: 12px; font-size: 0.67rem; }
  .registration-error { right: 12px; bottom: 58px; max-width: calc(100% - 24px); font-size: 0.7rem; }
  .registration-review { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .registration-review section { padding: 5px; }
  .registration-review h2 { margin-bottom: 3px; font-size: 0.48rem; }
  .review-grid { gap: 2px; }
  .review-grid span { display: none; }
  .review-grid strong { font-size: 0.55rem; line-height: 1.05; -webkit-line-clamp: 1; }
  .review-confirm { min-height: 22px; gap: 6px; font-size: 0.58rem; }
  .review-confirm input { width: 14px; height: 14px; }
  .photo-upload img, .photo-upload__placeholder { width: 76px; }

  .app-main .page--kick-off { padding: 0; }
  .app-shell[data-route="kick-off"] .page-back { top: 16px; left: 14px; width: 44px; }
  .kick-new-day { top: 18px; right: 18px; font-size: 0.9rem; }
  .kick-new-day img { width: 23px; height: 23px; }
  .chat-history-control { top: 72px; left: 15px; }
  .chat-history-panel { left: 47px; width: min(270px, calc(100vw - 70px)); }
  .chat-stage, .kick-layout.has-tools .chat-stage { width: calc(100vw - 32px); min-width: 0; margin: 0 16px; }
  .chat-messages { padding: 86px 0 116px; gap: 28px; }
  .chat-message { max-width: 86%; }
  .chat-message--user { width: 78%; padding: 15px; }
  .chat-message__body { font-size: 0.91rem; }
  .kick-composer-dock { bottom: 18px; }
  .chat-composer { min-height: 56px; padding: 5px 6px 5px 8px; }
  .composer-plus { width: 38px; height: 38px; }
  .composer-plus img { width: 21px; height: 21px; }
  .send-button { width: 40px; height: 40px; }
  .kick-tool-card { width: calc((100vw - 48px) / 3); max-width: 118px; padding: 9px; }
  .kick-tools-menu { gap: 4px; }
  .tool-drawer, .tool-drawer.is-open { position: fixed; inset: 68px 8px 8px; width: auto; min-width: 0; padding: 20px 16px; border: 1px solid #292b2e; }
}

@media (max-height: 690px) and (min-width: 701px) {
  .registration-wizard { padding-top: 78px; padding-bottom: 56px; }
  .register-screen__logo { top: 18px; width: 105px; }
  .registration-progress { top: 25px; }
  .question-heading h1 { margin-bottom: 14px; font-size: clamp(1.8rem, 3.2vw, 3rem); }
  .question-choice, .multi-choice { min-height: 31px; padding: 4px 8px; }
  .registration-question.is-dense .question-choice,
  .registration-question.is-dense .multi-choice,
  .registration-question.is-ultra-dense .question-choice,
  .registration-question.is-ultra-dense .multi-choice { min-height: 27px; padding: 3px 6px; }
  .question-hint { margin-top: 6px; font-size: 0.68rem; }
}

/* KICK OFF — refinamento de leitura e ferramentas */
.chat-messages {
  --composer-clearance: 190px;
  padding-bottom: var(--composer-clearance);
  overflow-x: hidden;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar,
.tool-drawer::-webkit-scrollbar,
.tool-panel::-webkit-scrollbar {
  width: 4px;
  height: 0;
}

.chat-messages::-webkit-scrollbar-track,
.tool-drawer::-webkit-scrollbar-track,
.tool-panel::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.tool-drawer::-webkit-scrollbar-thumb,
.tool-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.chat-message__body {
  overflow-wrap: anywhere;
}

.kick-composer-dock::before {
  position: absolute;
  z-index: 0;
  right: -4px;
  bottom: calc(100% - 2px);
  left: -4px;
  height: clamp(82px, 12vh, 126px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 88%);
  content: "";
}

.chat-composer {
  position: relative;
  z-index: 2;
}

.kick-tools-menu {
  z-index: 3;
}

.chat-composer {
  border-radius: var(--composer-radius, 999px);
  transition: border-radius 150ms ease;
}

.chat-composer.is-multiline {
  align-items: flex-end;
}

.chat-composer textarea {
  max-height: 190px;
  overflow-x: hidden;
}

.tool-drawer__header {
  position: sticky;
  z-index: 6;
  top: 0;
  flex: 0 0 auto;
  border-bottom: 0;
  background: #0d0e10;
}

.tool-drawer__header h2 {
  margin: 0;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
}

.tool-panel {
  flex: 1 1 auto;
  padding: 10px 0 24px;
}

.tool-intro {
  max-width: 36ch;
  margin: 0 0 26px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.62;
  opacity: 0.88;
}

.prompt-template-box pre {
  max-height: 56vh;
  margin: 0;
  padding: 0 2px 18px;
  overflow: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  scrollbar-width: thin;
}

.tool-action-row {
  display: flex;
  margin-top: 22px;
  align-items: center;
  gap: 10px;
}

.tool-icon-action {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.tool-icon-action:hover,
.tool-icon-action:focus-visible {
  color: #000;
  background: #fff;
  transform: translateY(-1px);
}

.tool-icon-action svg,
.tool-icon-action img {
  width: 21px;
  height: 21px;
}

.tool-icon-action img {
  filter: invert(1);
}

.tool-icon-action:hover img,
.tool-icon-action:focus-visible img {
  filter: none;
}

.wheel-wrap {
  width: min(245px, 72vw);
  margin-top: 4px;
}

.wheel-pointer {
  border-right-color: #fff;
}

.wheel-entries {
  gap: 12px;
  margin: 4px 0 0;
}

.wheel-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 52px 34px;
  gap: 10px;
  align-items: end;
}

.wheel-entry label {
  min-width: 0;
}

.wheel-entry input {
  width: 100%;
  min-height: 36px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.87rem;
}

.wheel-entry input:focus {
  border-bottom-color: #fff;
  box-shadow: 0 1px #fff;
}

.wheel-weight input {
  text-align: center;
}

.wheel-weight input::-webkit-inner-spin-button,
.wheel-weight input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.wheel-entry output {
  padding-bottom: 9px;
  color: #c8c8c8;
  font-size: 0.76rem;
  text-align: right;
}

.wheel-entry > button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: #9b9b9b;
  background: transparent;
}

.wheel-entry > button svg {
  width: 18px;
  height: 18px;
}

.wheel-entry > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dice-picker {
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 10px;
}

.dice-picker button {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
}

.dice-picker button.is-active {
  border-color: #fff;
  color: #000;
  background: #fff;
}

.dice-result {
  min-height: 148px;
  margin: 14px 0 0;
  padding: 24px;
  place-content: center;
  border: 0;
}

.dice-result strong {
  margin: 0;
  color: #fff;
  font-size: clamp(4.5rem, 8vw, 6.4rem);
  font-weight: 500;
}

.dice-history {
  margin-top: 24px;
}

.filter-line button.is-active,
.career-tabs button.is-active,
.tool-tabs button.is-active {
  color: #000;
  background: #fff;
}

@media (max-width: 700px) {
  .chat-messages { padding-bottom: var(--composer-clearance); }
  .tool-panel { padding-right: 2px; }
  .wheel-entry { grid-template-columns: 44px minmax(0, 1fr) 46px 32px; gap: 7px; }
}

/* KICK OFF — refinamento final de leitura */
.chat-stage {
  --chat-column-width: min(58vw, 1040px);
  width: var(--chat-column-width);
}

.kick-layout.has-tools .chat-stage {
  --chat-column-width: min(52vw, 900px);
}

.chat-messages {
  --composer-clearance: 280px;
  width: 100vw;
  margin-left: calc((var(--chat-column-width) - 100vw) / 2);
  padding-right: max(26px, calc((100vw - var(--chat-column-width)) / 2));
  padding-bottom: var(--composer-clearance);
  padding-left: max(26px, calc((100vw - var(--chat-column-width)) / 2));
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.chat-messages::-webkit-scrollbar {
  width: 3px;
}

.kick-composer-dock::before {
  right: -10px;
  bottom: calc(100% - 1px);
  left: -10px;
  height: clamp(170px, 25vh, 280px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 24%, rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.88) 84%, #000 100%);
}

.kick-composer-dock::after {
  position: absolute;
  z-index: 0;
  top: 48%;
  right: -10px;
  bottom: -180px;
  left: -10px;
  pointer-events: none;
  background: #000;
  content: "";
}

.chat-composer {
  min-height: 54px;
  padding: 4px 6px 4px 9px;
  gap: 6px;
}

.composer-plus {
  width: 38px;
  height: 38px;
}

.composer-plus img {
  width: 23px;
  height: 23px;
}

.chat-composer textarea {
  height: 27px;
  min-height: 27px;
  padding: 3px 7px;
  font-size: clamp(0.93rem, 1vw, 1.08rem);
}

.send-button {
  width: 40px;
  height: 40px;
}

.send-button svg {
  width: 21px;
  height: 21px;
}

.kick-new-day span {
  color: transparent;
  background: linear-gradient(105deg, #fff 0%, #fff 42%, #858585 49%, #fff 56%, #fff 100%);
  background-position: 100% 50%;
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
}

.kick-new-day:hover span,
.kick-new-day:focus-visible span {
  animation: kick-new-day-shine 820ms ease-out;
}

@keyframes kick-new-day-shine {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

.wheel {
  position: relative;
  overflow: hidden;
  border: 0;
  outline: 7px solid rgba(255, 255, 255, 0.2);
  outline-offset: -1px;
  background-clip: padding-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.wheel::after {
  z-index: 1;
}

.tool-icon-action::after,
.wheel-entry > button::after {
  top: auto;
  right: 0;
  bottom: calc(100% + 9px);
  left: auto;
  transform: translateY(-3px);
}

.tool-icon-action:hover::after,
.tool-icon-action:focus-visible::after,
.wheel-entry > button:hover::after,
.wheel-entry > button:focus-visible::after {
  transform: translateY(0);
}

.tool-action-row {
  padding-top: 18px;
  padding-bottom: 22px;
}

.dice-picker {
  grid-template-columns: repeat(3, minmax(74px, 106px));
  justify-content: start;
}

.dice-picker button {
  max-width: 106px;
}

/* As fontes editoriais pertencem somente ao jornal FYX NEWS. */
.fyx-paper,
.fyx-paper * {
  font-family: "FYX Source Sans", Arial, sans-serif !important;
}

.app-main .page--fyx-news {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100svh;
  max-width: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background: #000;
}

.app-main .page--fyx-news.is-active {
  display: block;
}

.app-shell[data-route="fyx-news"] .page-back {
  z-index: 45;
  top: clamp(24px, 4.8vh, 50px);
  left: clamp(22px, 3.1vw, 62px);
  width: clamp(46px, 4.1vw, 64px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #30353a;
  border-radius: 50%;
  color: #d7d9da;
  background: #080a0c;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.fyx-news-tabs {
  position: sticky;
  z-index: 40;
  top: 34px;
  display: grid;
  width: min(560px, calc(100vw - 210px));
  height: 48px;
  margin: 34px auto 50px;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid #fff;
  background: #000;
}

.fyx-news-tabs button {
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  font-size: clamp(0.82rem, 1.05vw, 1.08rem);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.fyx-news-tabs button.is-active {
  color: #000;
  background: #fff;
}

.fyx-news-surface {
  width: min(82vw, 1740px);
  min-height: calc(100svh - 160px);
  margin: 0 auto 44px;
}

.fyx-news-empty {
  display: grid;
  min-height: 62vh;
  padding: 50px;
  place-content: center;
  border: 1px solid #fff;
  text-align: center;
}

.fyx-news-empty strong {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
}

.fyx-news-empty p {
  max-width: 560px;
  margin: 16px auto 0;
  color: #aaa;
  font-size: 1rem;
}

.fyx-paper {
  overflow: hidden;
  border: 2px solid #fff;
  background: #000;
}

.fyx-paper__masthead {
  display: grid;
  min-height: clamp(150px, 18vh, 205px);
  grid-template-columns: minmax(0, 59%) minmax(0, 41%);
  border-bottom: 2px solid #fff;
}

.fyx-paper__brand {
  display: grid;
  padding: 16px 34px 10px;
  place-content: center;
  overflow: hidden;
  color: #000;
  background: #fff;
  font-family: "FYX News 701", Georgia, serif !important;
  font-size: clamp(4.6rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.8;
  white-space: nowrap;
}

.fyx-paper__lead {
  display: flex;
  padding: clamp(22px, 2.5vw, 40px);
  align-items: center;
}

.fyx-paper__lead h2 {
  max-width: 19ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.25vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.fyx-paper__kicker {
  min-height: 40px;
  margin-left: 0;
  padding: 8px 24px;
  overflow: hidden;
  border-bottom: 2px solid #fff;
  color: #050505;
  background: #fff;
  font-size: clamp(0.72rem, 0.9vw, 0.98rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fyx-paper__story {
  display: grid;
  min-height: clamp(360px, 48vh, 540px);
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
}

.fyx-paper__copy {
  padding: clamp(28px, 3.4vw, 50px) clamp(26px, 2.7vw, 44px);
}

.fyx-paper__copy i {
  display: block;
  width: 96%;
  height: 8px;
  margin-bottom: clamp(24px, 3vh, 36px);
  background: #565656;
}

.fyx-paper__copy h3 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.fyx-paper__copy p {
  max-width: 48ch;
  margin: 0;
  color: #fff;
  font-size: clamp(0.95rem, 1.08vw, 1.22rem);
  line-height: 1.42;
}

.fyx-paper__visual {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 18px 18px 22px 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.fyx-paper__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.fyx-paper__visual figcaption {
  padding: 12px 0 0;
  color: #fff;
  font-size: clamp(0.82rem, 0.98vw, 1.05rem);
  line-height: 1.25;
}

.fyx-social-board {
  display: grid;
  width: 100%;
  min-height: clamp(560px, 65vh, 650px);
  margin-top: clamp(42px, 6vh, 72px);
  grid-template-columns: minmax(240px, 25%) minmax(0, 37%) minmax(0, 38%);
  color: #050505;
}

.fyx-social-phone {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: -14px 22px -14px 0;
  pointer-events: none;
}

.fyx-social-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.fyx-social-feed {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d0d0d0;
  background: #fff;
}

.fyx-social-feed.is-empty {
  display: grid;
  padding: 36px;
  place-content: center;
  text-align: center;
}

.fyx-social-feed-empty strong {
  color: #111;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 900;
}

.fyx-social-feed-empty p {
  max-width: 390px;
  margin: 10px auto 0;
  color: #888;
  font-size: 0.95rem;
  line-height: 1.4;
}

.fyx-social-post {
  display: flex;
  min-height: 0;
  padding: clamp(18px, 1.65vw, 28px);
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #c7c7c7;
}

.fyx-social-post:last-child {
  border-bottom: 0;
}

.fyx-social-post strong {
  margin-bottom: 7px;
  font-size: clamp(0.92rem, 1vw, 1.12rem);
  font-weight: 700;
}

.fyx-social-post p {
  margin: 0;
  color: #080808;
  font-size: clamp(0.84rem, 0.92vw, 1rem);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.fyx-social-post.is-empty {
  color: #999;
}

.fyx-social-post.is-empty strong,
.fyx-social-post.is-empty p {
  color: #aaa;
}

.fyx-social-side {
  display: grid;
  min-width: 0;
  grid-template-rows: 45% 55%;
  border: 1px solid #c7c7c7;
  border-left: 0;
  background: #fff;
}

.fyx-today,
.fyx-trending {
  padding: clamp(20px, 1.8vw, 30px);
}

.fyx-today {
  overflow: hidden;
  border-bottom: 1px solid #c7c7c7;
}

.fyx-today h2 {
  margin: 0 0 20px;
  color: #050505;
  font-size: clamp(1.7rem, 2.1vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.fyx-today article {
  display: grid;
  margin-bottom: 14px;
}

.fyx-today article strong {
  display: -webkit-box;
  overflow: hidden;
  color: #050505;
  font-size: clamp(0.94rem, 1.08vw, 1.2rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fyx-today article span {
  color: #111;
  font-size: clamp(0.76rem, 0.88vw, 0.94rem);
}

.fyx-trending {
  display: grid;
  align-content: space-between;
  gap: 13px;
  overflow: hidden;
}

.fyx-trend {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.fyx-trend span {
  color: #171717;
  font-size: clamp(0.74rem, 0.82vw, 0.9rem);
}

.fyx-trend strong {
  display: -webkit-box;
  overflow: hidden;
  color: #050505;
  font-size: clamp(0.94rem, 1.08vw, 1.2rem);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fyx-social-empty-copy {
  color: #888;
}

@media (max-width: 1180px) {
  .fyx-news-surface { width: min(88vw, 1100px); }
  .fyx-paper__brand { font-size: clamp(4.6rem, 9.5vw, 7.4rem); }
  .fyx-social-board {
    grid-template-columns: minmax(220px, 25%) minmax(0, 37%) minmax(0, 38%);
    min-height: 570px;
  }
  .fyx-social-post { padding: 18px; }
  .fyx-today, .fyx-trending { padding: 22px; }
}

@media (max-width: 1040px) and (min-width: 821px) {
  .fyx-social-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .fyx-social-phone {
    display: none;
  }
}

@media (max-width: 820px) {
  .chat-stage,
  .kick-layout.has-tools .chat-stage {
    --chat-column-width: calc(100vw - 32px);
  }
  .chat-messages {
    width: 100vw;
    margin-left: -16px;
    padding-right: 24px;
    padding-left: 16px;
  }
  .kick-composer-dock::before { height: 180px; }
  .dice-picker { grid-template-columns: repeat(3, minmax(62px, 92px)); }
  .dice-picker button { max-width: 92px; }

  .app-shell[data-route="fyx-news"] .page-back {
    top: 16px;
    left: 14px;
    width: 44px;
  }
  .fyx-news-tabs {
    top: 18px;
    width: calc(100% - 90px);
    height: 42px;
    margin: 18px 16px 34px 74px;
  }
  .fyx-news-tabs button {
    padding: 0 7px;
    font-size: 0.67rem;
  }
  .fyx-news-surface {
    width: calc(100% - 24px);
    margin-bottom: 16px;
  }
  .fyx-paper__masthead {
    grid-template-columns: 1fr;
  }
  .fyx-paper__brand {
    min-height: 128px;
    padding: 20px;
    font-size: clamp(3.9rem, 19vw, 7rem);
  }
  .fyx-paper__lead {
    min-height: 145px;
    padding: 24px;
  }
  .fyx-paper__lead h2 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  .fyx-paper__kicker {
    padding: 9px 12px;
    font-size: 0.68rem;
  }
  .fyx-paper__story {
    grid-template-columns: 1fr;
  }
  .fyx-paper__copy {
    padding: 28px 22px 36px;
  }
  .fyx-paper__copy i {
    height: 7px;
    margin-bottom: 26px;
  }
  .fyx-paper__visual {
    padding: 0 14px 20px;
  }
  .fyx-paper__visual img {
    min-height: 230px;
  }
  .fyx-social-board {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin-top: 42px;
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .fyx-social-phone {
    display: none;
  }
  .fyx-social-feed {
    width: 100%;
    min-width: 0;
    min-height: 560px;
  }
  .fyx-social-side {
    width: 100%;
    min-width: 0;
    min-height: 620px;
    border-top: 0;
    border-left: 1px solid #c7c7c7;
  }
  .fyx-social-post,
  .fyx-today,
  .fyx-trending,
  .fyx-today article,
  .fyx-trend {
    min-width: 0;
  }
  .fyx-social-post p,
  .fyx-social-feed-empty p,
  .fyx-social-empty-copy {
    overflow-wrap: anywhere;
  }
}

/* KICK OFF — biblioteca contextual e bloqueio integral atrás do compositor */
.kick-composer-dock {
  isolation: isolate;
}

.kick-composer-dock::before {
  height: clamp(220px, 31vh, 340px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.32) 46%, rgba(0, 0, 0, 0.76) 72%, #000 100%);
}

.kick-composer-dock::after {
  top: 0;
}

.kick-shortcuts,
.kick-tools-menu,
.chat-composer {
  position: relative;
  z-index: 2;
}

.shortcut-library {
  display: grid;
  padding: 2px 2px 30px;
  gap: 8px;
}

.shortcut-library button {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #393d40;
  color: #d9dbdc;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.shortcut-library button:hover,
.shortcut-library button:focus-visible {
  border-color: #fff;
  color: #000;
  background: #fff;
  outline: 0;
  transform: translateX(3px);
}

@media (max-width: 700px) {
  .kick-tool-card {
    width: calc((100vw - 54px) / 4);
    max-width: 104px;
    min-width: 0;
  }

  .kick-tool-card strong { font-size: 0.68rem; }
  .kick-tool-card img { width: 25px; height: 25px; }
}

/* PLAYER CAREER — calendário amplo, estável e legível */
@media (min-width: 761px) {
  .app-main .page--player-career { overflow: clip; }
}

.career-surface.is-calendar {
  width: min(1680px, 100%);
  height: calc(100svh - clamp(25px, 3.8vh, 43px) - 100px);
  min-height: 590px;
  flex: 0 0 auto;
  overflow: hidden;
}

.career-surface.is-calendar .career-calendar {
  height: 100%;
  min-height: 0;
  --calendar-training: #39ef25;
  --calendar-romantic: #e20064;
  --calendar-party: #762cff;
  --calendar-rest: #10bde2;
  --calendar-birthday: #b7a7ff;
}

.career-surface.is-calendar .calendar-toolbar {
  min-height: 56px;
  padding: 7px 18px;
  justify-content: flex-end;
}

.career-surface.is-calendar .calendar-workspace {
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 19vw, 340px);
}

.career-surface.is-calendar .calendar-board {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 11px 18px 16px;
  flex-direction: column;
}

.career-surface.is-calendar .calendar-month-nav {
  min-height: 48px;
  flex: 0 0 48px;
}

.career-surface.is-calendar .calendar-month-nav button {
  width: 36px;
  height: 36px;
}

.career-surface.is-calendar .calendar-weekdays {
  flex: 0 0 29px;
}

.career-surface.is-calendar .calendar-weekdays span {
  min-height: 29px;
  padding: 7px 9px;
}

.career-surface.is-calendar .calendar-grid {
  min-height: 432px;
  flex: 1 1 auto;
  grid-template-rows: repeat(var(--calendar-weeks, 5), minmax(72px, 1fr));
}

.career-surface.is-calendar .calendar-day {
  min-height: 72px;
  padding: 9px;
  isolation: isolate;
}

.career-surface.is-calendar .calendar-day__number {
  position: relative;
  z-index: 3;
  color: inherit;
  pointer-events: none;
}

.calendar-day__events {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.calendar-day-event {
  pointer-events: auto;
}

.calendar-day.has-completed-match {
  color: #fff;
  background: #10161a;
}

.calendar-day.has-completed-match:hover,
.calendar-day.has-completed-match:focus-visible { background: #151d22; }

.calendar-day.has-scheduled-match,
.calendar-day.has-scheduled-match.is-outside {
  color: #050607;
  background: #fff;
}

.calendar-day.has-scheduled-match:hover,
.calendar-day.has-scheduled-match:focus-visible { color: #050607; background: #eceeef; }

.calendar-day.has-scheduled-match.is-current::after { background: #050607; }

.calendar-day.calendar-day--training { --calendar-event-color: var(--calendar-training); --calendar-event-ink: #050607; }
.calendar-day.calendar-day--romantic { --calendar-event-color: var(--calendar-romantic); --calendar-event-ink: #fff; }
.calendar-day.calendar-day--party { --calendar-event-color: var(--calendar-party); --calendar-event-ink: #fff; }
.calendar-day.calendar-day--rest { --calendar-event-color: var(--calendar-rest); --calendar-event-ink: #050607; }
.calendar-day.calendar-day--birthday { --calendar-event-color: var(--calendar-birthday); --calendar-event-ink: #050607; }
.calendar-day.calendar-day--personal { --calendar-event-color: #8e969b; --calendar-event-ink: #050607; }

.calendar-day.has-event:not(.calendar-day--match),
.calendar-day.has-event:not(.calendar-day--match).is-outside {
  color: var(--calendar-event-ink);
  background: var(--calendar-event-color);
}

.calendar-day.has-event:not(.calendar-day--match):hover,
.calendar-day.has-event:not(.calendar-day--match):focus-visible {
  color: var(--calendar-event-ink);
  background: color-mix(in srgb, var(--calendar-event-color) 88%, #fff);
}

.career-surface.is-calendar .calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px currentColor;
}

.calendar-day-event {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.calendar-day-event:hover,
.calendar-day-event:focus-visible {
  border: 0;
  color: inherit;
  background: transparent;
  outline: 0;
}

.calendar-day-event--match img,
.calendar-day-event--match:hover img,
.calendar-day-event--match:focus-visible img {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: clamp(38px, 3.2vw, 52px);
  height: clamp(38px, 3.2vw, 52px);
  object-fit: contain;
  filter: none;
  transition: transform 150ms ease;
}

.calendar-day-event--match:hover img,
.calendar-day-event--match:focus-visible img { transform: scale(1.06); }

.calendar-match-copy {
  position: absolute;
  top: 29px;
  left: 9px;
  display: grid;
  gap: 2px;
  line-height: 1;
}

.calendar-match-copy strong {
  font-size: clamp(0.8rem, 0.9vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.calendar-match-copy small {
  position: static;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(0.5rem, 0.58vw, 0.62rem);
  font-weight: 800;
  text-transform: uppercase;
  transform: none;
}

.calendar-match-copy--kit small {
  font-size: clamp(0.58rem, 0.68vw, 0.72rem);
  letter-spacing: 0.05em;
  text-transform: none;
}

.calendar-event-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--calendar-event-icon) center / contain no-repeat;
  mask: var(--calendar-event-icon) center / contain no-repeat;
}

.calendar-event-glyph--match { --calendar-event-icon: url("mod/calendar/shield-time-not-found.svg"); }
.calendar-event-glyph--training { --calendar-event-icon: url("mod/calendar/cone-treino.svg"); }
.calendar-event-glyph--romantic { --calendar-event-icon: url("mod/calendar/heart-encontros.svg"); }
.calendar-event-glyph--party { --calendar-event-icon: url("mod/calendar/party.svg"); }
.calendar-event-glyph--rest,
.calendar-event-glyph--personal { --calendar-event-icon: url("mod/calendar/home-days.svg"); }
.calendar-event-glyph--birthday { --calendar-event-icon: url("mod/calendar/birthday.svg"); }

.calendar-day-event:not(.calendar-day-event--match) .calendar-event-glyph {
  position: absolute;
  top: 30px;
  left: 9px;
  width: 27px;
  height: 27px;
}

.calendar-day-more {
  position: absolute;
  right: 8px;
  bottom: 5px;
  z-index: 4;
  color: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  pointer-events: none;
}

.calendar-day--match .calendar-day-more { right: 66px; }

.calendar-rail {
  min-width: 0;
  min-height: 0;
  padding: 25px 24px;
  overflow-y: auto;
  contain: inline-size;
}

.calendar-rail__date strong {
  font-size: clamp(3.2rem, 4.5vw, 5rem);
}

.calendar-selected {
  min-width: 0;
  margin-top: 28px;
  border-top: 0;
}

.calendar-selected > button {
  min-width: 0;
  min-height: 72px;
  padding: 10px 0;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 14px;
  border-top: 1px solid #232629;
}

.calendar-selected > button:first-child { border-top: 0; }

.calendar-selected > button i {
  display: grid;
  width: 52px;
  height: 52px;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
}

.calendar-selected > button span {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.calendar-selected > button i .calendar-event-glyph { width: 27px; height: 27px; }
.calendar-selected-event--training i { color: var(--calendar-training) !important; }
.calendar-selected-event--romantic i { color: var(--calendar-romantic) !important; }
.calendar-selected-event--party i { color: var(--calendar-party) !important; }
.calendar-selected-event--rest i { color: var(--calendar-rest) !important; }
.calendar-selected-event--birthday i { color: var(--calendar-birthday) !important; }

.calendar-selected > button.calendar-selected-event--match i img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: none;
}

.calendar-legend {
  margin-top: 24px;
  gap: 8px;
}

.calendar-legend span {
  color: #c4c7c9;
}

.calendar-legend i {
  width: 20px;
  height: 20px;
  color: #fff;
}

.calendar-legend i .calendar-event-glyph { width: 17px; height: 17px; }
.calendar-legend__training i { color: var(--calendar-training); }
.calendar-legend__romantic i { color: var(--calendar-romantic); }
.calendar-legend__party i { color: var(--calendar-party); }
.calendar-legend__rest i { color: var(--calendar-rest); }
.calendar-legend__birthday i { color: var(--calendar-birthday); }

@media (max-width: 1100px) and (min-width: 761px) {
  .career-surface.is-calendar .calendar-workspace { grid-template-columns: minmax(0, 1fr) 270px; }
  .career-surface.is-calendar .calendar-board { padding-right: 12px; padding-left: 12px; }
  .career-surface.is-calendar .calendar-grid { min-height: 420px; grid-template-rows: repeat(var(--calendar-weeks, 5), minmax(70px, 1fr)); }
  .career-surface.is-calendar .calendar-day { min-height: 70px; }
}

@media (max-width: 760px) {
  .career-surface.is-calendar {
    height: auto;
    min-height: 0;
    overflow: auto;
  }
  .career-surface.is-calendar .career-calendar { height: auto; }
  .career-surface.is-calendar .calendar-workspace { min-height: 760px; overflow: visible; }
  .career-surface.is-calendar .calendar-board { min-height: 620px; }
  .career-surface.is-calendar .calendar-grid { min-height: 492px; flex: 0 0 492px; grid-template-rows: repeat(var(--calendar-weeks, 5), minmax(82px, 1fr)); }
  .career-surface.is-calendar .calendar-day { min-height: 82px; }
}

/* Relationships — memória viva dos personagens */
.app-main .page--relationships {
  padding: clamp(28px, 4.2vh, 54px) clamp(22px, 5vw, 82px) 70px;
  color: #fff;
  background: #050607;
}

.relationships-controls {
  display: flex;
  width: min(1460px, calc(100% - 88px));
  margin: 0 auto 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.relationships-search {
  width: min(390px, 48vw);
  border-bottom-color: rgba(255, 255, 255, 0.48);
}

.relationships-search input {
  color: #fff;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.96rem;
}

.relationships-search input::placeholder { color: #777b7e; }

.relationship-add {
  display: inline-flex;
  min-height: 42px;
  padding: 0;
  align-items: center;
  gap: 11px;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.relationship-add > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 300;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.relationship-add:hover > span,
.relationship-add:focus-visible > span {
  color: #000;
  background: #fff;
  transform: rotate(90deg);
}

.relationship-tabs {
  display: grid;
  width: min(760px, calc(100% - 130px));
  height: 48px;
  margin: 0 auto 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 2px solid #fff;
  background: #000;
}

.relationship-tabs button {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.relationship-tabs button.is-active {
  color: #000;
  background: #fff;
}

.relationships-surface {
  width: min(1460px, 100%);
  margin: 0 auto;
}

.relationship-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: transparent;
}

.relationship-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 365px;
  padding: 0;
  overflow: hidden;
  grid-template-rows: 128px minmax(0, 1fr);
  align-content: stretch;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: #0b0d0f;
  text-align: left;
  cursor: pointer;
}

.relationship-card__banner {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(125deg, #22262a, #0c0e10 68%);
}

.relationship-card__banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  content: "";
}

.relationship-card__banner img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.relationship-card:hover .relationship-card__banner img { transform: scale(1.035); }

.relationship-card__body {
  position: relative;
  min-height: 0;
  padding: 48px 27px 25px;
}

.relationship-avatar {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 4px solid #0b0d0f;
  border-radius: 50%;
  color: #fff;
  background: #24282c;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.relationship-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.relationship-card .relationship-avatar {
  position: absolute;
  top: -34px;
  left: 24px;
}

.relationship-card__meta {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.relationship-card h2 {
  margin: 0;
  overflow: hidden;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(1.18rem, 1.45vw, 1.52rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-card__meta > span {
  flex: 0 0 auto;
  color: #a8abad;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.relationship-card__role {
  display: block;
  margin-top: 6px;
  color: #b5b8ba;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relationship-card p {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  color: #9da1a3;
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.relationship-card__edit {
  position: absolute;
  right: 22px;
  bottom: 19px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.relationship-card:hover .relationship-card__edit,
.relationship-card:focus-visible .relationship-card__edit { opacity: 1; transform: translateX(0); }

.relationships-empty {
  display: grid;
  min-height: 54vh;
  place-items: center;
  text-align: center;
}

.relationships-empty div { max-width: 520px; }
.relationships-empty span { color: #75797b; font-size: 0.68rem; letter-spacing: 0.1em; }
.relationships-empty h2 { margin: 14px 0 8px; font-size: clamp(1.45rem, 2.5vw, 2.35rem); }
.relationships-empty p { margin: 0 auto 24px; color: #8d9193; line-height: 1.55; }

.character-editor[hidden] { display: none; }

.character-editor {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow-y: auto;
  color: #fff;
  background: #050607;
}

body.is-character-editor-open { overflow: hidden; }

.character-editor__shell { min-height: 100svh; }

.character-editor__header {
  position: sticky;
  z-index: 12;
  top: 0;
  display: grid;
  min-height: 92px;
  padding: 16px clamp(22px, 4vw, 64px);
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 7, 0.96);
  backdrop-filter: blur(16px);
}

.character-editor__header > div:nth-child(2) span {
  color: #85898b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.character-editor__header h1 {
  margin: 4px 0 0;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.65rem);
  letter-spacing: -0.02em;
}

.character-editor__back {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: #0b0d0f;
  font-size: 1.45rem;
  cursor: pointer;
}

.character-editor__back:hover { color: #000; background: #fff; }

.character-editor__actions { display: flex; align-items: center; gap: 12px; }

.character-save,
.character-delete {
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 0;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.character-save { color: #000; background: #fff; }
.character-save span { margin-left: 12px; }
.character-delete { color: #c8cbcd; background: transparent; }
.character-delete:hover { color: #fff; border-color: #fff; }

.character-editor__body {
  display: grid;
  width: min(1540px, calc(100% - 64px));
  margin: 0 auto;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(38px, 5vw, 86px);
}

.character-media {
  position: sticky;
  top: 124px;
  height: max-content;
  padding-top: 42px;
}

.character-banner {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  place-items: center;
  color: #65696b;
  background: linear-gradient(130deg, #25292c, #0c0e10 70%);
  background-position: center;
  background-size: cover;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.character-media__identity {
  display: flex;
  margin-top: -38px;
  padding: 0 22px;
  align-items: flex-end;
  gap: 15px;
}

.character-avatar {
  display: grid;
  overflow: hidden;
  place-items: center;
  border-style: solid;
  border-radius: 50%;
  color: #fff;
  background: #24282c;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-weight: 700;
}

.character-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.character-avatar--editor {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-width: 5px;
  border-color: #050607;
  background-position: center;
  background-size: cover;
  font-size: 1.05rem;
}

.character-media__identity > div:last-child { display: grid; gap: 5px; padding-bottom: 7px; }
.character-media__identity strong { font-size: 1.08rem; }
.character-media__identity > div:last-child span { color: #8c9092; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; }

.character-media__buttons {
  display: grid;
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.character-media__buttons label {
  display: grid;
  min-height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #c9ccce;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.character-media__buttons label:hover { color: #000; background: #fff; }
.character-media__buttons input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.character-image-editor {
  width: min(980px, calc(100vw - 32px));
  height: min(760px, calc(100svh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: #fff;
  background: #080a0c;
}

.character-image-editor::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

body.is-character-image-editor-open { overflow: hidden; }

.character-image-editor__shell {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.character-image-editor__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: #121416;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
}

.character-image-editor__close:hover { color: #000; background: #fff; }

.character-image-editor__body {
  display: grid;
  min-height: 0;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) 24px;
  align-content: center;
  justify-items: center;
  gap: 28px;
  overflow: auto;
}

.character-crop-stage {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #111416;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.character-image-editor.is-avatar .character-crop-stage {
  width: min(420px, 80vw, calc(100svh - 265px));
  aspect-ratio: 1;
  border-radius: 50%;
}

.character-crop-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.15%, rgba(255, 255, 255, 0.26) 33.33%, transparent 33.5%, transparent 66.48%, rgba(255, 255, 255, 0.26) 66.66%, transparent 66.83%),
    linear-gradient(to bottom, transparent 33.15%, rgba(255, 255, 255, 0.26) 33.33%, transparent 33.5%, transparent 66.48%, rgba(255, 255, 255, 0.26) 66.66%, transparent 66.83%);
  opacity: 0.58;
}

.character-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
  touch-action: none;
}

.character-crop-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.character-crop-stage canvas.is-dragging { cursor: grabbing; }

.character-crop-controls { display: grid; width: min(760px, 100%); }
.character-image-editor.is-avatar .character-crop-controls { width: min(520px, 100%); }

.character-crop-controls label {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.character-crop-controls input {
  width: 100%;
  accent-color: #fff;
  cursor: pointer;
}

.character-crop-controls output { color: #aeb1b3; text-align: right; letter-spacing: 0; }
.character-image-editor__footer {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 82px;
  padding: 16px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #080a0c;
}

.character-image-editor__footer > div { display: flex; gap: 10px; }
.character-image-editor__footer button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  color: #d0d2d4;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

#applyCharacterCrop { color: #000; background: #fff; }
#applyCharacterCrop span { margin-left: 12px; }
.character-image-editor__footer button:hover { border-color: #fff; color: #fff; }
#applyCharacterCrop:hover { color: #000; }

.character-form-area { min-width: 0; padding: 42px 0 70px; }

.character-mode {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #fff;
}

.character-mode button {
  display: grid;
  min-height: 68px;
  padding: 12px 18px;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  text-align: left;
  cursor: pointer;
}

.character-mode button.is-active { color: #000; background: #fff; }
.character-mode strong { font-size: 0.73rem; }
.character-mode span { color: inherit; font-size: 0.66rem; opacity: 0.62; }

.character-fields { display: grid; gap: 30px; }

.character-form-section {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.character-form-section > summary {
  display: grid;
  padding: 21px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}

.character-form-section > summary::-webkit-details-marker { display: none; }
.character-form-section > summary div { display: grid; gap: 5px; }
.character-form-section > summary strong { font-size: 1.05rem; }
.character-form-section > summary small { color: #85898b; font-size: 0.72rem; }
.character-form-section > summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; }
.character-form-section[open] > summary::after { content: "−"; }

.character-section-fields {
  display: grid;
  padding: 5px 0 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.character-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
}

.character-field.is-wide,
.character-field--multi,
.character-field--events,
.character-field--summary { grid-column: 1 / -1; }

.character-field > span,
.character-field > legend {
  padding: 0;
  color: #b7babc;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.character-field > span em,
.character-field > legend em { color: #fff; font-style: normal; }

.character-field input:not([type="checkbox"]):not([type="range"]),
.character-field select,
.character-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-family: "Cruyff Sans", Arial, sans-serif;
  font-size: 0.91rem;
}

.character-field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.character-field textarea.is-large { min-height: 148px; }
.character-field select { color-scheme: dark; }
.character-field input:focus,
.character-field select:focus,
.character-field textarea:focus { outline: none; border-bottom-color: #fff; }
.character-field small { color: #777b7d; font-size: 0.68rem; line-height: 1.45; }

.character-check {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  color: #c7cacc;
  font-size: 0.8rem;
}
.character-check input { width: 18px; height: 18px; accent-color: #fff; }

.character-multi-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.character-multi-options label {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #9da1a3;
  font-size: 0.7rem;
  cursor: pointer;
}

.character-multi-options input { position: absolute; opacity: 0; }
.character-multi-options label:has(input:checked) { color: #000; background: #fff; border-color: #fff; }
.character-multi-custom { max-width: 360px; margin-top: 3px; }

.character-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 16px;
}
.character-range-row input { width: 100%; accent-color: #fff; }
.character-range-row output { color: #fff; font-size: 0.76rem; font-weight: 700; text-align: right; }

.character-events { display: grid; gap: 12px; }
.character-event-row {
  position: relative;
  display: grid;
  padding: 18px 48px 18px 18px;
  grid-template-columns: 1.15fr 0.8fr 0.72fr;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.character-event-row textarea { min-height: 76px; grid-column: 1 / -1; }
.character-event-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.character-event-add {
  width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.character-summary-box {
  padding: 20px;
  color: #c4c7c9;
  background: #0e1012;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.character-editor__footer {
  display: flex;
  min-height: 108px;
  padding: 24px clamp(22px, 4vw, 64px);
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.character-editor__footer p { max-width: 620px; margin: 0 auto 0 0; color: #85898b; font-size: 0.72rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .relationship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-editor__body { grid-template-columns: 1fr; }
  .character-media { position: relative; top: auto; width: min(650px, 100%); margin: 0 auto; }
  .character-form-area { padding-top: 10px; }
}

@media (max-width: 720px) {
  .app-main .page--relationships { padding: 24px 14px 44px; }
  .relationships-controls { width: calc(100% - 70px); margin: 0 0 26px 68px; }
  .relationships-search { width: 100%; }
  .relationship-add { font-size: 0; gap: 0; }
  .relationship-add > span { font-size: 1.35rem; }
  .relationship-tabs { width: 100%; height: 43px; margin-bottom: 28px; }
  .relationship-tabs button { padding: 0 4px; font-size: 0.58rem; }
  .relationship-grid { grid-template-columns: 1fr; }
  .relationship-card { min-height: 340px; }
  .character-editor__header { min-height: 78px; padding: 10px 14px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; }
  .character-editor__header h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .character-editor__header > div:nth-child(2) span { display: none; }
  .character-editor__back { width: 42px; height: 42px; }
  .character-editor__actions .character-delete { display: none; }
  .character-editor__actions .character-save { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .character-editor__actions .character-save span { margin: 0; font-size: 1rem; }
  .character-editor__body { width: calc(100% - 28px); gap: 28px; }
  .character-media { padding-top: 20px; }
  .character-media__buttons { grid-template-columns: 1fr; }
  .character-image-editor { width: calc(100vw - 18px); height: calc(100svh - 18px); }
  .character-image-editor__body { padding: 20px 14px; gap: 22px; }
  .character-image-editor__close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .character-image-editor.is-avatar .character-crop-stage { width: min(360px, 78vw, calc(100svh - 270px)); }
  .character-crop-controls label { grid-template-columns: auto minmax(80px, 1fr) 42px; gap: 10px; }
  .character-image-editor__footer { padding: 12px; align-items: stretch; flex-direction: column-reverse; }
  .character-image-editor__footer > div { display: grid; grid-template-columns: 1fr 1.4fr; }
  .character-image-editor__footer button { padding: 0 11px; }
  .character-mode { margin-bottom: 28px; }
  .character-mode button { min-height: 62px; padding: 9px; }
  .character-mode span { display: none; }
  .character-section-fields { grid-template-columns: 1fr; }
  .character-field { grid-column: 1 !important; }
  .character-event-row { grid-template-columns: 1fr; padding-right: 48px; }
  .character-event-row textarea { grid-column: 1; }
  .character-editor__footer { align-items: stretch; flex-direction: column; }
  .character-editor__footer .character-save { width: 100%; }
}

.character-import-report {
  margin: 0 0 20px;
  border: 1px solid #2b2f31;
  color: #c9cdcf;
  background: #080a0b;
}

.character-import-report summary { padding: 13px 16px; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.character-import-report ul { display: grid; margin: 0; padding: 0; border-top: 1px solid #2b2f31; list-style: none; }
.character-import-report li { display: flex; padding: 9px 16px; justify-content: space-between; gap: 18px; border-bottom: 1px solid #1d2022; font-size: 0.68rem; }
.character-import-report li:last-child { border-bottom: 0; }
.character-import-report li span { color: #858b8e; text-align: right; }
.character-import-report li.is-rejected strong { color: #ff718e; }

.calendar-day__select {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  padding: 9px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.calendar-day__select:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.calendar-day__events { z-index: 2; }
.calendar-day:focus-within { box-shadow: inset 0 0 0 2px currentColor; }
.calendar-story-date-warning { margin: 0 auto 0 0; color: #92999c; font-size: 0.62rem; letter-spacing: 0.055em; }
