:root {
  --ink: #16324f;
  --blue: #1686e8;
  --sky: #40b5ff;
  --pale: #eaf6ff;
  --bg: #f5f8fc;
  --muted: #78899c;
  --line: #e7edf4;
  --green: #17856c;
  --red: #d25760;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: #eaf2fa;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.shell {
  margin-left: 248px;
  max-width: 1500px;
  padding: 0 44px 50px;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 1.4px;
  line-height: 1.3;
}
.bolt {
  display: inline-block;
  width: 33px;
  height: 43px;
  background: var(--sky);
  clip-path: polygon(
    53% 0,
    4% 58%,
    44% 58%,
    28% 100%,
    100% 35%,
    58% 35%,
    76% 0
  );
  flex-shrink: 0;
}
.subbrand {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.side-nav {
  display: grid;
  gap: 7px;
}
.side-nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  color: #77879a;
  font-size: 14px;
}
.side-nav .active {
  background: var(--pale);
  color: var(--blue);
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9ba8b6;
  margin: 12px 12px;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.header-title {
  font-size: 17px;
  font-weight: 650;
  margin-top: 6px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e4f2fc;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar.big {
  width: 78px;
  height: 78px;
  font-size: 24px;
}
.notification-button {
  position: relative;
}
.notification-button i {
  position: absolute;
  right: 12px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--bg);
  background: var(--sky);
  border-radius: 50%;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-bar {
  margin: 22px 0 30px;
  padding: 12px 16px;
  border: 1px solid #d9eaf7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
  background: #f0f8ff;
}
.demo-bar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 0 15px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  margin-right: 5px;
}
.role-switch {
  display: flex;
  padding: 3px;
  background: #e4eef8;
  border-radius: 11px;
}
.role-switch button {
  padding: 8px 12px;
  font-size: 11px;
  min-height: 36px;
}
.role-switch button.active {
  background: white;
  box-shadow: 0 2px 6px #16324f12;
  color: var(--blue);
}
main {
  animation: appear 0.25s ease;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0 10px;
  line-height: 1.15;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 18px;
}
h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
p {
  line-height: 1.6;
  margin: 8px 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.intro p {
  color: var(--muted);
  font-size: 13px;
}
.date-pill {
  font-size: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 12px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metrics {
  margin-bottom: 26px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 5px 22px #16324f03;
  min-width: 0;
}
.metric .metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric strong {
  font-size: 31px;
  letter-spacing: -1px;
  display: block;
  margin: 15px 0 8px;
  font-weight: 650;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.metric.tint {
  background: var(--pale);
  border-color: #dbefff;
}
.green {
  color: var(--green) !important;
}
.red {
  color: var(--red) !important;
}
.amber {
  color: #b18232 !important;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
}
.stack {
  display: grid;
  gap: 22px;
  align-content: start;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
}
.section-top h2 {
  margin: 0;
}
.text-button {
  color: var(--blue);
  font-size: 11px;
  padding: 5px;
  min-height: 44px;
}
.event-card {
  position: relative;
  overflow: hidden;
}
.event-card.featured {
  background: linear-gradient(130deg, #eaf6ff, #f6fbff);
  border-color: #d9edfc;
}
.event-card.featured:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 38px;
  width: 140px;
  height: 180px;
  background: #40b5ff0d;
  clip-path: polygon(55% 0, 0 60%, 40% 60%, 23% 100%, 100% 35%, 60% 35%, 80% 0);
  pointer-events: none;
}
.event-type {
  display: inline-block;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #deefff;
  color: var(--blue);
  margin-bottom: 17px;
}
.event-type.match {
  background: #eeebff;
  color: #7b66bd;
}
.event-meta {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 10px;
  margin: 15px 0 20px;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.event-meta .icon {
  width: 15px;
  height: 15px;
}
.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #dbe8f5;
  font-size: 11px;
  gap: 8px;
}
.mini-avatars {
  display: flex;
  padding-left: 5px;
}
.mini-avatars .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
  border: 2px solid white;
  margin-left: -5px;
}
.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 5px 12px #1686e81a;
}
.primary:hover {
  background: #0874d0;
}
.secondary {
  background: var(--pale);
  color: var(--blue);
}
.danger {
  color: var(--red);
  background: #fff0f1;
}
.full {
  width: 100%;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.list {
  display: grid;
  gap: 0;
}
.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eff3f7;
  width: 100%;
  text-align: left;
  border-radius: 0;
  min-width: 0;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
}
.list-row strong {
  font-size: 12px;
  display: block;
}
.list-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.list-row .amount {
  font-size: 13px;
  white-space: nowrap;
  font-weight: 650;
}
.attention-icon {
  width: 36px;
  height: 36px;
  background: #fff4e5;
  color: #c39349;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.attention-icon.blue {
  background: var(--pale);
  color: var(--blue);
}
.attention-icon.red {
  background: #fff0f1;
  color: var(--red);
}
.chevron {
  font-size: 20px;
  color: #a9b6c3;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-grid button {
  background: var(--bg);
  font-size: 10px;
  font-weight: 500;
  padding: 14px 4px;
  display: grid;
  place-items: center;
  gap: 9px;
  border-radius: 15px;
  line-height: 1.4;
}
.quick-grid button .icon {
  color: var(--blue);
}
.tag {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--muted);
  display: inline-block;
}
.tag.green {
  background: #eaf8f2;
}
.tag.amber {
  background: #fff5e6;
}
.score {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
}
.match-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 8px;
  margin: 18px 0;
}
.match-line > div {
  flex: 1;
  font-size: 12px;
}
.match-symbol {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--pale);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}
.score small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.set-list {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 15px 0;
}
.set-list span {
  font-size: 12px;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px;
}
.rsvp {
  display: flex;
  gap: 6px;
  margin: 16px 0 0;
  position: relative;
  z-index: 1;
}
.rsvp button {
  flex: 1;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 5px;
}
.rsvp button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.tabs {
  display: flex;
  gap: 6px;
  background: #eaf0f6;
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow: auto;
  margin-bottom: 20px;
}
.tabs button {
  min-height: 36px;
  font-size: 11px;
  white-space: nowrap;
  padding: 8px 13px;
}
.tabs button.active {
  background: white;
  box-shadow: 0 2px 7px #16324f08;
  color: var(--blue);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input,
select,
textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #dfe7f0;
  color: var(--ink);
  border-radius: 12px;
  padding: 13px;
  min-height: 46px;
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0 7px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}
input[type="file"] {
  font-size: 12px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 8px 0;
}
.check-row label {
  margin: 0;
}
.search {
  flex: 1;
  min-width: 140px;
  max-width: 320px;
  font-size: 13px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.day-name {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 10px 0;
}
.calendar-day {
  min-height: 85px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  font-size: 12px;
  background: white;
  overflow: hidden;
}
.calendar-day.today {
  border-color: var(--sky);
  background: #f2faff;
}
.calendar-day .dot-event {
  display: block;
  width: 100%;
  font-size: 8px;
  line-height: 1.3;
  border-radius: 4px;
  color: var(--blue);
  background: var(--pale);
  padding: 4px 2px;
  margin: 3px 0 0;
  min-height: 24px;
  overflow-wrap: anywhere;
}
.calendar-day.blank {
  opacity: 0.25;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}
.week-grid .card {
  padding: 12px;
  border-radius: 15px;
}
.week-grid h3 {
  font-size: 12px;
}
.empty {
  padding: 35px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed #dbe5ee;
  border-radius: 18px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-head h2 {
  margin: 0 0 7px;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.player-tile {
  text-align: left;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.player-tile h3 {
  margin: 15px 0 7px;
  font-size: 14px;
}
.player-tile .number {
  float: right;
  color: #a7c9e3;
  font-weight: 700;
  font-size: 24px;
}
.note {
  padding: 14px 16px;
  background: #fff8e9;
  color: #98762e;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.6;
  margin: 15px 0;
}
.telegram-preview {
  background: #dbe8e2;
  padding: 22px;
  border-radius: 20px;
  margin: 15px 0;
}
.telegram-bubble {
  background: white;
  max-width: 330px;
  padding: 15px;
  border-radius: 15px 15px 15px 3px;
  box-shadow: 0 2px 5px #00000008;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.telegram-bubble strong {
  color: var(--blue);
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
.telegram-bubble small {
  display: block;
  text-align: right;
  color: #a5b2af;
  font-size: 9px;
  margin-top: 8px;
}
.progress {
  height: 7px;
  background: #eaf0f7;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--sky);
}
.stats-bar {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 120px;
}
.stats-bar > div {
  flex: 1;
  background: var(--pale);
  border-radius: 6px 6px 0 0;
  min-height: 10px;
  position: relative;
}
.stats-bar small {
  position: absolute;
  bottom: 5px;
  font-size: 9px;
  left: 5px;
}
.footer-note {
  text-align: center;
  color: #9aa9b7;
  font-size: 10px;
  margin-top: 25px;
  letter-spacing: 0.3px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  width: min(540px, 95vw);
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 25px 100px #16324f30;
}
dialog::backdrop {
  background: #16324f65;
  backdrop-filter: blur(4px);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: -26px;
  background: white;
  z-index: 2;
  padding-top: 5px;
}
.modal-top h2 {
  margin: 0;
  font-size: 21px;
}
.modal-top button {
  font-size: 25px;
}
#form-error {
  color: var(--red);
  font-size: 12px;
}
#submit {
  margin-top: 20px;
}
.set-row {
  display: grid;
  grid-template-columns: 30px 1fr 20px 1fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.set-row input {
  text-align: center;
}
.set-row span {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 90vw;
  z-index: 100;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#bottom {
  display: none;
}
.skeleton {
  height: 150px;
  border-radius: 24px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #e9f0f7, #fff, #e9f0f7);
  background-size: 200%;
  animation: shimmer 1.3s infinite;
}
.section-space {
  margin-top: 25px;
}
.auth {
  max-width: 430px;
  margin: 30px auto;
}
.auth .brand {
  margin-bottom: 30px;
}
.inline-link {
  color: var(--blue);
  font-size: 12px;
}
.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.finance-table td,
.finance-table th {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}
.finance-table th {
  color: var(--muted);
  font-weight: 500;
}
.finance-table-wrap {
  overflow: auto;
}
.status-pill {
  font-size: 10px;
  border-radius: 20px;
  padding: 6px 10px;
  background: var(--pale);
  color: var(--blue);
}
.top-gap {
  margin-top: 20px;
}
#fields .hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.screen-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-back {
  font-size: 12px;
  color: var(--blue);
  padding-left: 0;
  margin-bottom: 12px;
}
@keyframes appear {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  to {
    background-position: -200%;
  }
}
@media (min-width: 1600px) {
  .shell {
    margin: 0 auto;
    padding-left: 290px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding: 0 25px 35px;
    margin-left: 210px;
  }
  #sidebar {
    width: 210px;
    padding: 28px 16px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric strong {
    font-size: 26px;
  }
}
@media (max-width: 767px) {
  #sidebar {
    display: none;
  }
  .shell {
    margin: 0;
    padding: 0 20px calc(100px + env(safe-area-inset-bottom));
  }
  header {
    height: 86px;
    padding-top: env(safe-area-inset-top);
    border-bottom: 0;
  }
  .header-title {
    font-size: 14px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .person-name {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  .demo-bar {
    margin: 2px 0 24px;
    padding: 10px 11px;
    display: block;
  }
  .demo-bar > div:first-child {
    font-size: 10px;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }
  .demo-bar small {
    display: none;
  }
  .role-switch {
    margin-top: 9px;
  }
  .role-switch button {
    flex: 1;
    font-size: 11px;
    min-height: 33px;
  }
  .intro {
    margin-bottom: 22px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .intro p {
    font-size: 11px;
    margin-top: 5px;
  }
  .date-pill {
    display: none;
  }
  .grid {
    gap: 9px;
  }
  .card {
    padding: 20px;
    border-radius: 22px;
  }
  .metric {
    padding: 15px 12px;
    border-radius: 18px;
  }
  .metric strong {
    font-size: 23px;
    letter-spacing: -0.8px;
    margin: 12px 0 6px;
  }
  .metric .metric-label {
    font-size: 10px;
  }
  .metric .metric-label .icon {
    display: none;
  }
  .metric small {
    font-size: 9px;
  }
  .grid.metrics {
    margin-bottom: 24px;
  }
  .layout,
  .stack {
    gap: 20px;
  }
  .section-top h2,
  h2 {
    font-size: 17px;
  }
  .section-top {
    margin-bottom: 15px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .event-card h3 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  .event-meta {
    font-size: 12px;
  }
  .quick-grid button {
    font-size: 10px;
  }
  .player-grid {
    gap: 10px;
  }
  .player-tile {
    padding: 16px;
    border-radius: 19px;
  }
  .player-tile h3 {
    font-size: 12px;
    line-height: 1.4;
  }
  .player-tile .muted {
    font-size: 10px;
  }
  .player-tile .number {
    font-size: 21px;
  }
  .profile-head {
    gap: 14px;
  }
  .profile-head h2 {
    font-size: 18px;
  }
  .calendar-day {
    min-height: 70px;
    border-radius: 7px;
    padding: 4px;
    font-size: 10px;
  }
  .calendar-day .dot-event {
    font-size: 7px;
    padding: 3px 1px;
  }
  .month-grid {
    gap: 3px;
  }
  .calendar-card {
    padding: 12px;
  }
  .toolbar .primary {
    font-size: 11px;
  }
  .toolbar {
    gap: 8px;
  }
  .tag {
    font-size: 9px;
  }
  #bottom {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    background: #ffffffed;
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
    justify-content: space-around;
  }
  #bottom button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 500;
    min-width: 0;
    padding: 8px 2px;
    color: #96a4b3;
    border-radius: 12px;
  }
  #bottom button.active {
    color: var(--blue);
    background: #f1f9ff;
  }
  #bottom .icon {
    width: 21px;
    height: 21px;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    border-radius: 26px 26px 0 0;
    margin: auto 0 0;
    bottom: 0;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }
  .note {
    font-size: 10px;
  }
  .list-row strong {
    font-size: 12px;
  }
  .list-row small {
    font-size: 10px;
  }
  .finance-table {
    font-size: 10px;
  }
  .finance-table td,
  .finance-table th {
    padding: 12px 4px;
  }
  .full-mobile {
    width: 100%;
  }
  .profile-head .big {
    width: 65px;
    height: 65px;
  }
  .score {
    font-size: 30px;
  }
  .match-line > div {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
progress.progress {
  display: block;
  width: 100%;
  border: 0;
  appearance: none;
}
progress.progress::-webkit-progress-bar {
  background: #eaf0f7;
  border-radius: 8px;
}
progress.progress::-webkit-progress-value {
  background: var(--sky);
  border-radius: 8px;
}
progress.progress::-moz-progress-bar {
  background: var(--sky);
  border-radius: 8px;
}
.metric strong {
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .metric strong {
    font-size: 21px;
  }
  .metrics {
    align-items: stretch;
  }
  .metric {
    min-height: 115px;
  }
}
.header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-title .bolt {
  width: 15px;
  height: 20px;
}
[hidden] {
  display: none !important;
}
.list-row:has([data-action="personal-invite"]) {
  flex-wrap: wrap;
}
.list-row:has([data-action="personal-invite"]) .grow {
  min-width: 160px;
}
.list-row:has([data-action="personal-invite"]) button {
  font-size: 11px;
  padding: 8px 9px;
}
@media (max-width: 767px) {
  .role-switch button {
    min-height: 44px;
  }
  .calendar-day .dot-event {
    min-height: 44px;
    font-size: 9px;
    line-height: 1.4;
  }
  .calendar-day {
    font-size: 12px;
  }
}
.network-status {
  padding: 13px 16px;
  margin: 12px 0;
  background: #fff4dd;
  border: 1px solid #eedbb0;
  border-radius: 14px;
  color: #75530d;
  font-size: 12px;
  line-height: 1.6;
}
.network-status[hidden] {
  display: none;
}
.list-row:has([data-action="access"]) {
  flex-wrap: wrap;
}
.list-row:has([data-action="access"]) .grow {
  min-width: 160px;
}
.list-row:has([data-action="access"]) button {
  font-size: 11px;
  padding: 8px 9px;
}
#app[aria-busy="true"] button {
  pointer-events: none;
}
#app[aria-busy="true"] {
  cursor: progress;
}
/* Shared file-backed media components. */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.media-tile {
  border: 1px solid var(--line, #dce8f2);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.media-tile > div {
  padding: 12px;
}
.media-preview {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4/3;
  border-radius: 0;
  overflow: hidden;
  background: #eaf6ff;
}
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-review {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: auto;
  border-radius: 12px;
}
.media-album + .media-album {
  border-top: 1px solid #e0eaf2;
  margin-top: 30px;
  padding-top: 20px;
}
.media-grid canvas {
  max-width: 100%;
  border-radius: 12px;
}
.avatar-crop {
  width: 220px;
  height: 220px;
  display: block;
  max-width: 100%;
  margin: 15px auto;
  border-radius: 50%;
  background: #eaf6ff;
}
input[type="range"] {
  padding: 0;
  min-height: 44px;
}
#modal:has(.media-review) {
  max-width: 1000px;
  width: 95vw;
}
.media-tile .row {
  flex-wrap: wrap;
}
.media-tile .row button {
  font-size: 12px;
  padding: 9px 12px;
}
@media (max-width: 650px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .media-tile > div {
    padding: 10px;
  }
  .media-tile .tag {
    font-size: 10px;
  }
  .media-tile .row {
    gap: 6px;
  }
  .media-tile .row button {
    width: 100%;
  }
  .media-album .row {
    flex-wrap: wrap;
  }
}

.avatar {
  position: relative;
}
.avatar img {
  position: absolute;
  inset: 0;
}
.avatar img[hidden] {
  display: none;
}
