:root {
  --bg:#f4f5f6;
  --card:#fff;
  --text:#293b47;
  --muted:#9ba5ad;
  --line:#eef1f4;
  --green:#4b9bd3;
  --tint:#edf6fd;
  --red:#bc6961;
  color-scheme:light;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:#edf0f3;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-size:14px;
  -webkit-font-smoothing:antialiased
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  opacity:.45;
  cursor:default
}

a {
  color:inherit;
  text-decoration:none
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #90bfa77a;
  outline-offset:3px
}

svg {
  width:21px;
  height:21px;
  flex-shrink:0;
  vertical-align:middle
}

h1,h2,h3,p {
  margin-top:0
}

h1 {
  font-size:25px;
  letter-spacing:-.6px;
  margin-bottom:9px
}

h2 {
  font-size:14px;
  margin:0;
  font-weight:600
}

h3 {
  font-size:15px
}

small {
  font-size:11px
}

.app-shell {
  max-width:560px;
  min-height:100dvh;
  margin:0 auto;
  background:var(--bg);
  position:relative;
  box-shadow:0 0 60px #2c4a3610
}

.app-header {
  height:65px;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  align-items:center;
  gap:10px
}

.brand>span {
  width:29px;
  height:34px;
  border:1px solid #d9e5dd;
  background:#f3f8f4;
  box-shadow:0 2px 0 #e3ede6;
  border-radius:7px;
  display:grid;
  place-items:center;
  color:var(--green);
  font-size:21px;
  font-weight:600
}

.brand strong {
  font-size:17px;
  letter-spacing:2px
}

#header-label {
  font-size:11px;
  color:#95a69b
}

main {
  padding:26px 18px calc(100px + env(safe-area-inset-bottom));
  min-height:calc(100dvh - 65px)
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
  gap:15px
}

.page-heading p {
  font-size:12px;
  color:var(--muted);
  margin-bottom:0;
  line-height:1.8
}

.tabbar {
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  max-width:560px;
  width:100%;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  background:#fffffff5;
  backdrop-filter:blur(12px);
  border-top:1px solid #eef1f4;
  display:flex;
  gap:8px;
  z-index:20
}

.tabbar a {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:10px;
  padding:9px 0;
  color:#97a89c;
  border-radius:11px
}

.tabbar a.active {
  color:var(--green);
  background:var(--tint);
  font-weight:600
}

.tabbar svg {
  width:22px;
  height:22px
}

.card {
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  overflow:hidden
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:17px
}

.section-heading h2 span {
  display:inline-block;
  padding:2px 6px;
  border-radius:5px;
  background:#edf6fd;
  color:var(--green);
  font-size:10px;
  margin-left:5px;
  font-weight:500
}

.small-muted,.muted {
  color:var(--muted);
  font-size:11px
}

.primary,.secondary {
  border:1px solid transparent;
  border-radius:10px;
  padding:13px 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  white-space:nowrap
}

.primary {
  background:var(--green);
  color:white
}

.primary:hover {
  background:#268abb
}

.primary svg {
  width:17px;
  height:17px
}

.secondary {
  background:white;
  border-color:#e4ece6;
  color:#6b8574;
  padding:10px 14px;
  font-size:12px
}

.full {
  width:100%
}

.text-btn {
  padding:8px 4px;
  border:0;
  background:none;
  color:#7c9986;
  font-size:11px;
  white-space:nowrap
}

.text-btn:hover {
  color:var(--green)
}

.icon-primary {
  width:38px;
  height:38px;
  border:0;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:white
}

.icon-btn {
  width:30px;
  height:30px;
  background:#f2f6f3;
  border:0;
  border-radius:8px;
  font-size:24px;
  color:#8a9f90;
  line-height:1
}

.small-add {
  border:0;
  background:#edf6fd;
  color:var(--green);
  border-radius:7px;
  padding:8px 12px;
  font-size:11px;
  white-space:nowrap
}

.small-add:disabled {
  opacity:.65;
  background:#f5f7f5;
  color:#9aaba0
}

.avatar {
  width:38px;
  height:38px;
  border-radius:11px;
  object-fit:cover;
  background:#f0f6fa;
  flex-shrink:0
}

.avatar.large {
  width:48px;
  height:48px;
  border-radius:14px
}

.name-avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  word-break:break-all;
  padding:4px;
  font-size:10px;
  font-weight:500;
  line-height:1.35;
  color:#6f9bb2;
  max-height:38px
}

.name-avatar.large {
  font-size:11px;
  max-height:48px
}

.ellipsize {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.search-box {
  display:flex;
  gap:9px;
  align-items:center;
  padding:11px 12px;
  background:#f5f8fa;
  border:1px solid #edf2ed;
  border-radius:10px;
  color:#9eb0a3
}

.search-box svg {
  width:17px;
  height:17px
}

.search-box input {
  border:0;
  outline:none;
  padding:0;
  background:none;
  min-width:0;
  flex:1;
  width:100%;
  font-size:12px;
  color:var(--text)
}

input::placeholder {
  color:#a5b4a9
}

input,select {
  padding:12px;
  border:1px solid #e8eee9;
  border-radius:10px;
  background:#fafcfb;
  color:var(--text);
  min-width:0;
  max-width:100%
}

.roster-section {
  padding:18px;
  margin-bottom:24px;
  overflow:visible
}

.roster-list {
  display:flex;
  gap:13px;
  overflow-x:auto;
  padding:18px 2px 3px;
  scrollbar-width:thin;
  scrollbar-color:#d8e6db transparent
}

.roster-person {
  width:60px;
  flex-shrink:0;
  position:relative
}

.roster-select {
  display:flex;
  flex-direction:column;
  gap:7px;
  align-items:center;
  position:relative;
  width:100%;
  background:none;
  border:0;
  padding:0;
  color:#748e7c;
  font-size:10px
}

.roster-select>.ellipsize {
  width:100%;
  text-align:center
}

.roster-select>.avatar {
  width:43px;
  height:43px;
  max-height:43px;
  border-radius:13px
}

.roster-remove {
  position:absolute;
  right:1px;
  top:-6px;
  width:18px;
  height:18px;
  padding:0;
  border:2px solid white;
  border-radius:50%;
  background:#e6eeE8;
  color:#7f9989;
  font-size:12px;
  line-height:14px;
  z-index:1
}

.roster-select b {
  position:absolute;
  bottom:19px;
  right:3px;
  background:var(--green);
  color:white;
  font-size:9px;
  border:2px solid white;
  border-radius:50%;
  width:18px;
  height:18px;
  display:grid;
  place-items:center
}

.roster-person.chosen .avatar {
  outline:2px solid #77badb;
  outline-offset:2px
}

.roster-empty {
  width:100%;
  text-align:center;
  padding:8px 0 6px;
  color:#a0b2a4
}

.roster-empty svg {
  width:26px;
  height:26px;
  opacity:.7
}

.roster-empty p {
  font-size:12px;
  margin:8px 0
}

.roster-empty span {
  font-size:11px
}

.roster-empty a {
  color:var(--green);
  margin-left:4px
}

.search-results {
  margin-top:12px;
  border:1px solid #e5ede6;
  background:white;
  border-radius:10px;
  max-height:290px;
  overflow:auto
}

.search-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-bottom:1px solid #f1f5f1;
  font-size:12px
}

.search-row>.ellipsize {
  flex:1
}

.search-row:last-child {
  border:0
}

.search-tip {
  padding:20px 12px;
  color:#94a69a;
  text-align:center;
  font-size:11px;
  line-height:1.8
}

.search-tip a {
  color:var(--green)
}

.score-heading {
  padding:0 2px
}

.seat-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.seat-card {
  padding:14px;
  background:white;
  border:1px solid var(--line);
  border-radius:14px
}

.seat-card.active {
  border-color:#bddfef;
  box-shadow:0 0 0 2px #eaf3ed
}

.seat-card header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  font-size:10px;
  color:#9db0a2;
  min-height:20px
}

.seat-card header .text-btn {
  font-size:10px;
  padding:0;
  color:#a0b1a5
}

.seat-player {
  display:flex;
  align-items:center;
  gap:10px;
  background:none;
  border:0;
  padding:0;
  width:100%;
  min-width:0;
  min-height:48px;
  text-align:left;
  color:#678ca2
}

.seat-player strong {
  font-size:12px;
  font-weight:500
}

.seat-add {
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border:1px dashed #d9e7dd;
  background:#f7faf7;
  border-radius:13px;
  flex-shrink:0
}

.seat-add svg {
  width:18px;
  height:18px;
  color:#9fbaA8
}

.score-input {
  margin-top:17px;
  display:flex;
  gap:4px;
  align-items:center;
  background:#f8faf8;
  border:1px solid #eef3ee;
  border-radius:9px;
  padding:11px 10px
}

.score-input input {
  padding:0;
  border:0;
  background:none;
  outline:none;
  width:100%;
  font-size:18px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.5px
}

.score-input input::placeholder {
  font-size:12px;
  font-weight:400;
  letter-spacing:0
}

.score-input>span {
  font-size:10px;
  color:#abb9ae
}

.total-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 2px 5px;
  font-size:12px;
  color:#809c89
}

.total-row small {
  font-size:10px;
  color:#abb8af
}

.total-row strong {
  font-size:22px;
  letter-spacing:-.4px;
  color:var(--green);
  font-variant-numeric:tabular-nums
}

.total-row strong.invalid {
  color:#bca79e
}

.form-error {
  font-size:11px;
  line-height:1.7;
  min-height:15px;
  color:var(--red);
  margin:10px 0
}

.footnote {
  font-size:10px;
  color:#a2b2a7;
  text-align:center;
  margin:18px 0 0
}

.preview {
  padding:18px;
  margin:16px 0 0
}

.preview-row {
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}

.preview-row>span {
  font-size:10px;
  color:#9bacA0
}

.preview-row strong {
  font-weight:500;
  flex:1
}

.preview-row b {
  font-size:15px;
  font-weight:600
}

.preview .primary {
  margin-top:18px
}

.positive {
  color:var(--green)
}

.negative {
  color:var(--red)
}

.search-form {
  display:flex;
  gap:9px;
  margin-bottom:18px
}

.search-form>.search-box,.search-form>input {
  flex:1;
  min-width:0
}

.player-list .empty {
  border:0
}

.player-row {
  padding:15px;
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--line)
}

.player-row:last-child {
  border:0
}

.player-info {
  background:none;
  border:0;
  text-align:left;
  flex:1;
  min-width:0;
  padding:0;
  color:var(--text)
}

.player-info strong {
  font-size:12px;
  font-weight:500;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.player-row .edit-player {
  font-size:10px
}

.import-row {
  display:flex;
  justify-content:center;
  margin:18px 0
}

.field {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:20px;
  font-size:12px;
  color:#7c9685
}

.field small {
  font-size:10px;
  color:#a0b0a5;
  line-height:1.7
}

.field input[type=file] {
  font-size:11px;
  background:white
}

.current-avatar {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px
}

.import-description {
  font-size:13px;
  line-height:1.9;
  color:#748d7c
}

.period-tabs {
  display:flex;
  padding:4px;
  border-radius:11px;
  background:#eaf0eb;
  margin-bottom:17px;
  gap:4px
}

.period-tabs button {
  flex:1;
  border:0;
  background:none;
  padding:10px 0;
  font-size:12px;
  color:#8ca293;
  border-radius:8px
}

.period-tabs button.active {
  background:white;
  color:var(--green);
  font-weight:600;
  box-shadow:0 2px 5px #263e2f06
}

.rank-filters {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px
}

.rank-filters select {
  font-size:11px;
  padding:9px 10px;
  background:transparent;
  max-width:60%
}

.rank-list-header {
  display:flex;
  justify-content:space-between;
  padding:14px 18px;
  background:#fcfdfc;
  color:#9bad9f;
  font-size:10px;
  border-bottom:1px solid var(--line)
}

.rank-row {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  border:0;
  border-bottom:1px solid var(--line);
  background:white;
  padding:16px;
  text-align:left
}

.rank-row:last-child {
  border:0
}

.rank-row:hover {
  background:#fbfdfb
}

.rank-position {
  color:#acb9af;
  font-size:11px;
  min-width:18px;
  font-weight:500
}

.rank-position.top {
  color:#b59b69
}

.rank-player {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px
}

.rank-player>strong {
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden
}

.rank-player small {
  font-size:10px;
  color:#a2b2a7
}

.rank-value {
  font-size:15px;
  font-variant-numeric:tabular-nums;
  font-weight:600
}

.pager {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:19px;
  gap:12px
}

.pager span {
  color:#99ae9f;
  font-size:11px
}

.pager .secondary {
  font-size:11px;
  padding:9px 13px
}

.matches-list {
  display:flex;
  flex-direction:column;
  gap:14px
}

.match-card {
  padding:17px 13px
}

.match-card>header {
  display:flex;
  justify-content:space-between;
  margin-bottom:17px;
  color:#9eb0a3;
  font-size:10px
}

.result-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px
}

.result-player {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  border:0;
  background:#f8fbf8;
  border-radius:10px;
  padding:12px 4px;
  min-width:0
}

.result-player>.ellipsize {
  font-size:10px;
  width:100%;
  text-align:center;
  color:#668573
}

.result-player small {
  font-size:9px;
  color:#a2b4a7
}

.result-player strong {
  font-size:16px;
  font-weight:600;
  letter-spacing:-.5px
}

.match-note {
  font-size:11px;
  color:#91a598;
  margin:16px 3px 0
}

.empty {
  padding:48px 15px;
  text-align:center;
  color:#9aaa9e
}

.empty-icon {
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  width:49px;
  height:49px;
  background:#f0f6f1;
  color:#a9c0af;
  border-radius:16px
}

.empty-icon svg {
  width:24px;
  height:24px
}

.empty h3 {
  font-size:14px;
  font-weight:500;
  color:#749280;
  margin-bottom:10px
}

.empty p {
  font-size:11px;
  line-height:1.9;
  margin-bottom:20px
}

.empty .primary {
  font-size:12px;
  padding:11px 17px
}

.picker-list {
  max-height:55vh;
  overflow:auto
}

.picker-row {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid var(--line);
  background:white;
  width:100%;
  padding:14px 0;
  text-align:left;
  color:var(--text);
  font-size:13px
}

.picker-row>span:not(.avatar) {
  flex:1
}

.picker-row>svg {
  margin-left:auto;
  width:18px;
  height:18px;
  color:#a2b7a9
}

.picker-row:hover {
  background:#f7fbf7
}

.profile-intro {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px
}

.profile-intro h3 {
  margin:0;
  font-size:19px
}

.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  background:#f5f9f5;
  padding:17px 8px;
  border-radius:11px;
  margin-bottom:24px
}

.stats-grid>div {
  text-align:center
}

.stats-grid strong {
  font-size:17px;
  font-weight:600;
  display:block;
  margin-bottom:7px;
  color:#398db5
}

.stats-grid small {
  font-size:10px;
  color:#9aae9f
}

.section-title {
  font-size:13px;
  margin:24px 0 17px
}

.rank-bars {
  display:grid;
  gap:13px
}

.rank-bars>div {
  display:flex;
  align-items:center;
  gap:12px;
  color:#93a89a;
  font-size:11px
}

.rank-bars i {
  display:block;
  flex:1;
  height:6px;
  background:#eff5ef;
  border-radius:6px;
  overflow:hidden
}

.rank-bars b {
  display:block;
  height:100%;
  border-radius:6px;
  background:#8eb69b
}

.rank-bars small {
  font-size:10px;
  width:38px;
  text-align:right
}

.recent-list>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:11px
}

.recent-list time {
  color:#a1b1a5;
  font-size:10px
}

.recent-list span {
  color:#819d8b
}

.recent-list strong {
  font-size:13px;
  font-weight:500
}

dialog {
  border:0;
  border-radius:22px;
  padding:23px 22px;
  max-width:520px;
  width:calc(100% - 26px);
  max-height:86dvh;
  color:var(--text);
  box-shadow:0 20px 90px #172d2140
}

dialog::backdrop {
  background:#1a322750;
  backdrop-filter:blur(4px)
}

dialog>header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:25px
}

dialog>header h2 {
  font-size:17px
}

#toast {
  position:fixed;
  bottom:calc(100px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%) translateY(10px);
  opacity:0;
  background:#315b72f0;
  border-radius:11px;
  color:white;
  padding:12px 18px;
  font-size:12px;
  max-width:90%;
  width:max-content;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:100;
  line-height:1.7
}

#toast.visible {
  opacity:1;
  transform:translateX(-50%) translateY(0)
}

.sign-btn {
  border:0;
  background:none;
  padding:0 5px 0 0;
  color:#9cb1a2;
  font-size:15px;
  line-height:1;
  flex-shrink:0
}

.score-input input {
  min-width:0
}

.roster-empty {
  padding-top:2px
}

.roster-empty>svg {
  display:none
}

@media(max-width:350px) {
  main {
    padding-inline:12px
  }
  .roster-section {
    padding:15px
  }
  .seat-card {
    padding:12px
  }
  .seat-player {
    gap:6px
  }
  .seat-player strong {
    font-size:11px
  }
  .seat-player .avatar.large {
    width:37px;
    height:37px;
    border-radius:10px
  }
  .rank-row {
    padding:13px 10px;
    gap:8px
  }
  .rank-player>strong {
    font-size:11px
  }
  .rank-value {
    font-size:13px
  }
  .player-row {
    gap:7px;
    padding:13px 10px
  }
  .player-row .small-add {
    padding:7px 8px
  }
  .player-row .edit-player {
    font-size:9px
  }
  .small-muted {
    font-size:10px
  }
  .score-input input {
    font-size:17px
  }
}

@media(min-width:761px) {
  body {
    padding:22px 0
  }
  .app-shell {
    border-radius:22px 22px 0 0;
    min-height:calc(100dvh - 22px);
    overflow:hidden;
    box-shadow:0 12px 80px #2e4c3515
  }
  .tabbar {
    border-inline:1px solid #eef1f4
  }
  .app-header {
    height:70px
  }
  main {
    min-height:calc(100dvh - 92px);
    padding:30px 22px 110px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}

/* Light blue app theme: three destinations, with tools inside pages. */
:root {
  --bg:#f4f5f6;
  --green:#4b9bd3;
  --tint:#edf6fd;
  --text:#293b47;
  --muted:#9ba5ad;
  --line:#eef1f4
}

.header-left {
  display:flex;
  align-items:center;
  gap:10px
}

.app-header {
  background:var(--bg);
  border:0;
  height:66px;
  padding:16px 24px
}

.brand>span {
  color:#4b9bd3;
  background:white;
  border-color:#e1e8ed;
  box-shadow:0 2px 0 #dfe9ee
}

.brand strong {
  font-size:16px;
  color:#34454e;
  letter-spacing:1.5px
}

#header-label {
  font-size:10px;
  color:#a3acb2
}

.back-button {
  border:0;
  background:transparent;
  font-size:29px;
  line-height:1;
  color:#7c9caf;
  padding:0 6px 3px 0
}

.back-button[hidden] {
  display:none
}

main {
  padding-bottom:calc(120px + env(safe-area-inset-bottom))
}

.tabbar {
  width:calc(100% - 72px);
  max-width:450px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  padding:8px 12px;
  background:#fff;
  border:1px solid #f0f3f5;
  border-radius:40px;
  box-shadow:0 9px 35px #3350660c;
  gap:5px
}

.tabbar a {
  flex-direction:row;
  gap:8px;
  font-size:13px;
  padding:13px 5px;
  color:#a5adb3;
  border-radius:30px;
  white-space:nowrap
}

.tabbar a.active {
  background:none;
  color:#4b9bd3
}

.tabbar a.active svg {
  stroke-width:2.2
}

.tabbar a[data-nav=home].active svg {
  fill:#4b9bd3;
  stroke:#4b9bd3
}

.tabbar svg {
  width:21px;
  height:21px
}

.page-home {
  padding:8px 20px 125px
}

.home-hero {
  display:block;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:365px;
  background:#e7f3fa;
  border-radius:22px;
  padding:21px 23px 19px;
  color:#304b5b;
  border:1px solid #deedf5
}

.hero-topline {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:7px;
  letter-spacing:1.2px;
  color:#7cabc2
}

.hero-copy {
  position:relative;
  z-index:2;
  margin-top:39px;
  pointer-events:none
}

.hero-tag {
  display:inline-block;
  font-size:8px;
  letter-spacing:2px;
  color:#4599c2;
  margin-bottom:11px
}

.hero-copy h1 {
  font-size:44px;
  line-height:1.18;
  font-weight:650;
  letter-spacing:1px;
  color:#2996c9;
  margin:0 0 16px
}

.hero-copy h1>span {
  color:#89c8e6
}

.hero-copy p {
  font-size:10px;
  color:#7ca0b4;
  margin:0
}

.hero-tiles {
  position:absolute;
  top:100px;
  right:-48px;
  width:230px;
  height:205px;
  z-index:1;
  transform:rotate(-7deg);
  filter:drop-shadow(0 9px 12px #84adc511)
}

.hero-bottom {
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:43px;
  padding-top:16px;
  border-top:1px solid #cfe3ee;
  font-size:10px;
  color:#71a2ba
}

.hero-arrow {
  width:27px;
  height:27px;
  border-radius:50%;
  background:white;
  color:#3098c6;
  display:grid;
  place-items:center;
  font-size:19px
}

.hero-decoration {
  position:absolute;
  top:72px;
  right:29px;
  color:#8cbfd6;
  font-size:23px;
  font-weight:300
}

.home-panel {
  background:#fff;
  border-radius:23px;
  margin-top:19px;
  padding:23px 21px 21px
}

.hello-row {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.hello-row h2 {
  font-size:28px;
  letter-spacing:-.8px;
  font-weight:600;
  line-height:1.1;
  color:#35434c;
  margin:0 0 10px
}

.hello-star {
  display:inline-block;
  color:#86bcd3;
  font-size:17px;
  margin-left:10px;
  vertical-align:middle
}

.hello-row p {
  font-size:10px;
  color:#a2aab0;
  margin:0
}

.hello-tile {
  display:grid;
  place-items:center;
  width:36px;
  height:43px;
  background:#f3f9fd;
  border:1px solid #e3eff6;
  border-radius:9px;
  color:#70b3d2;
  font-size:24px;
  font-weight:500;
  transform:rotate(9deg);
  box-shadow:2px 3px 0 #edf3f7
}

.home-actions {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:25px
}

.home-actions>a {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center
}

.action-symbol {
  width:49px;
  height:49px;
  display:grid;
  place-items:center;
  color:#399ece;
  background:#f1f8fc;
  border-radius:15px;
  margin-bottom:11px
}

.action-symbol svg {
  width:27px;
  height:27px;
  stroke-width:1.5
}

.home-actions strong {
  font-size:12px;
  font-weight:500;
  color:#528baa
}

.home-actions small {
  font-size:9px;
  color:#b2bdc4;
  margin-top:5px
}

.home-rank-link {
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border-radius:16px;
  padding:18px;
  margin-top:13px
}

.rank-link-icon {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  background:#f4f9fc;
  color:#79b3cd;
  border-radius:10px
}

.home-rank-link>span:nth-child(2) {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:5px
}

.home-rank-link strong {
  font-size:11px;
  font-weight:500;
  color:#688393
}

.home-rank-link small {
  font-size:9px;
  color:#acb7bd
}

.home-rank-link>svg {
  width:15px;
  height:15px;
  color:#adc4cf
}

.home-signature {
  font-size:9px;
  color:#b5bec4;
  letter-spacing:1px;
  text-align:center;
  margin:21px 0 0
}

.page-me {
  padding-top:20px
}

.me-welcome {
  padding:26px 22px;
  background:linear-gradient(135deg,#e8f4fb,#f5faff);
  border:1px solid #e4eff5;
  border-radius:21px
}

.me-eyebrow {
  font-size:8px;
  letter-spacing:2px;
  color:#85afc4
}

.me-identity {
  display:flex;
  align-items:center;
  gap:14px;
  margin:25px 0
}

.me-identity h1 {
  font-size:22px;
  letter-spacing:-.3px;
  margin-bottom:10px
}

.me-identity p {
  font-size:10px;
  color:#90a9b8;
  margin:0;
  line-height:1.7
}

.me-empty-avatar {
  width:55px;
  height:55px;
  background:#fff;
  border-radius:18px;
  color:#8ec4dd;
  display:grid;
  place-items:center;
  flex-shrink:0
}

.me-empty-avatar svg {
  width:27px;
  height:27px
}

.me-welcome .primary {
  font-size:11px;
  padding:11px 16px;
  border-radius:10px
}

.me-welcome .secondary {
  font-size:10px;
  padding:9px 13px;
  background:#fff9
}

.me-welcome button svg {
  width:13px;
  height:13px
}

.me-menu {
  margin-top:20px;
  padding:0 18px;
  border:0
}

.me-menu>a {
  display:flex;
  align-items:center;
  gap:12px;
  padding:19px 0;
  border-bottom:1px solid #f1f4f6
}

.me-menu>a:last-child {
  border:0
}

.menu-symbol {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  background:#f3f9fc;
  border-radius:10px;
  color:#6daecf
}

.menu-symbol svg {
  width:19px;
  height:19px
}

.me-menu strong {
  font-size:12px;
  font-weight:500;
  flex:1;
  color:#687c89
}

.me-menu>a>svg {
  width:15px;
  height:15px;
  color:#b0c1ca
}

.me-note {
  text-align:center;
  margin:45px 0 10px
}

.me-note>span {
  font-size:27px;
  color:#bad8e7
}

.me-note p {
  font-size:11px;
  line-height:2.1;
  color:#a7b4bc;
  letter-spacing:1px;
  margin-top:15px
}

.my-performance {
  padding:22px 17px;
  margin-top:20px
}

.my-performance>.profile-intro {
  display:none
}

.my-performance .stats-grid {
  background:#f4f9fd
}

.my-search-results {
  max-height:50dvh;
  overflow:auto;
  margin-top:14px
}

.picker-hint {
  font-size:11px;
  text-align:center;
  color:#a4b5bf;
  padding:25px 0
}

.primary,.icon-primary {
  background:#4b9bd3
}

.small-add {
  color:#3a96c1;
  background:#edf7fc
}

.text-btn {
  color:#8ba9b9
}

.period-tabs {
  background:#e9eff4
}

.period-tabs button.active {
  color:#4b9bd3
}

.positive {
  color:#4b9bd3
}

.name-avatar {
  background:#f0f7fb;
  color:#7da7bd
}

.rank-row:hover {
  background:#fbfdff
}

.stats-grid strong {
  color:#529bbf
}

.rank-bars b {
  background:#93c6df
}

.preview {
  border-color:#e3eff6
}

.seat-card.active {
  border-color:#c2e0ef;
  box-shadow:0 0 0 2px #eaf5fb
}

.seat-add {
  background:#f7fbfe;
  border-color:#d9eaf4
}

.empty-icon {
  background:#edf6fb;
  color:#afd1e2
}

.total-row strong {
  color:#389bc5
}

#toast {
  bottom:calc(110px + env(safe-area-inset-bottom))
}

@media(max-width:350px) {
  .tabbar {
    width:calc(100% - 40px)
  }
  .tabbar a {
    font-size:12px;
    gap:6px
  }
  .page-home {
    padding-inline:14px
  }
  .home-hero {
    padding-inline:19px;
    min-height:350px
  }
  .hero-copy h1 {
    font-size:40px
  }
  .hero-tiles {
    right:-66px;
    width:220px
  }
  .hero-topline {
    font-size:6px
  }
  .home-panel {
    padding:21px 18px
  }
  .home-actions {
    gap:10px
  }
  .me-identity h1 {
    font-size:20px
  }
}

@media(min-width:761px) {
  .app-shell {
    max-width:480px;
    border-radius:24px 24px 0 0
  }
  .tabbar {
    max-width:382px;
    border-inline:0
  }
  .page-home {
    padding:12px 23px 125px
  }
  .home-hero {
    min-height:405px
  }
  .hero-copy h1 {
    font-size:52px
  }
  .hero-copy {
    margin-top:47px
  }
  .hero-tiles {
    width:265px;
    height:230px;
    right:-30px;
    top:110px
  }
  .hero-bottom {
    margin-top:47px
  }
  .home-panel {
    padding:27px 25px
  }
  .home-actions {
    margin-top:29px
  }
}

.me-menu>button {
  display:flex;
  align-items:center;
  gap:12px;
  padding:19px 0;
  border:0;
  border-bottom:1px solid #f1f4f6;
  background:white;
  width:100%;
  text-align:left
}

.me-menu>button>svg {
  width:15px;
  height:15px;
  color:#b0c1ca
}
/* Fresh blue: compact, functional home. */
:root { --bg:#f4f7fb; --green:#4b9bd3; --tint:#edf6fd; --text:#334657; --muted:#96a5b3; --line:#edf1f6; }
.home-hero { min-height:262px; padding:23px; border:1px solid #e3eff9; background:linear-gradient(120deg,#e8f4ff,#f4faff); border-radius:21px; }
.hero-topline { font-size:10px; letter-spacing:1px; color:#87a8c0; }
.hero-copy { margin-top:25px; }
.hero-copy h1 { font-size:31px; line-height:1.38; letter-spacing:0; color:#468cbd; margin-bottom:12px; font-weight:600; }
.hero-copy p { font-size:10px; color:#8ba8bd; }
.hero-tiles { width:163px; height:149px; right:-4px; top:60px; transform:rotate(-3deg); opacity:.92; }
.hero-bottom { margin-top:24px; padding-top:14px; border-top:1px solid #dceaf6; color:#689ec1; font-size:11px; }
.hero-arrow { background:white; color:#4b9bd3; }
.home-panel { margin-top:16px; padding:23px 21px; border:1px solid #edf1f6; border-radius:20px; }
.hello-row h2 { font-size:17px; font-weight:600; letter-spacing:0; margin-bottom:8px; color:#536b7d; }
.hello-row p { color:#a4b1bd; font-size:10px; }
.home-actions { margin-top:23px; gap:15px; }
.action-symbol { width:48px; height:48px; border-radius:15px; background:#edf6fe; color:#66a7d6; }
.home-actions strong { font-size:12px; color:#6b91ad; }
.home-actions small { color:#b1bdc8; }
.home-rank-link { border:1px solid #edf1f6; border-radius:16px; margin-top:14px; padding:18px; }
.home-rank-link strong { color:#7391a8; }
.home-rank-link small { color:#b0bdc8; }
.tabbar a.active { color:#4b9bd3; }
.tabbar a.active svg { stroke:#4b9bd3; }
.tabbar a[data-nav=home].active svg { fill:#4b9bd3; stroke:#4b9bd3; }
.brand>span { color:#4b9bd3; background:#f7fbff; border-color:#e0ebf4; box-shadow:0 2px 0 #e3edf5; }
@media(max-width:350px) { .hero-copy h1{font-size:28px} .hero-tiles{right:-24px;width:151px} .home-hero{padding:20px;min-height:250px} }
@media(min-width:761px) { .home-hero{min-height:290px;padding:25px} .hero-copy{margin-top:29px} .hero-copy h1{font-size:36px} .hero-tiles{width:195px;height:175px;top:66px;right:2px} .hero-bottom{margin-top:28px} .home-panel{padding:25px} }

dialog.player-dialog{max-width:380px;width:calc(100% - 44px);max-height:72dvh;padding:15px 17px;border-radius:20px;overflow:auto}dialog.player-dialog>header{margin-bottom:10px}dialog.player-dialog>header h2{font-size:15px}.player-profile .avatar.large{width:46px;height:46px;border-radius:15px}.player-profile .profile-intro{gap:10px}.player-profile .profile-intro h3{font-size:16px;margin:0}.player-profile .stats-grid{grid-template-columns:repeat(3,1fr);margin:16px 0;gap:8px;padding:0}.player-profile .stats-grid strong{font-size:18px}.player-profile .stats-grid small{font-size:10px}.player-profile .section-title{font-size:13px;margin:18px 0 12px}.player-records{display:block;text-align:center;border-radius:12px;padding:9px;background:#edf6fd;color:#4b9bd3;font-size:12px;text-decoration:none}.player-distribution{display:flex;height:9px;overflow:hidden;border-radius:6px;background:#f1f5f8}.player-distribution i{height:100%;flex:none}.rank-color-1{background:#69a9dc}.rank-color-2{background:#8ecbc4}.rank-color-3{background:#e5c685}.rank-color-4{background:#dca3b1}.player-legend{display:flex;text-align:center;margin:12px 0}.player-legend>div{width:25%;font-size:11px}.player-legend span,.player-legend strong,.player-legend small{display:block}.player-legend span,.player-legend small{color:#96a5b3;font-size:10px}.player-legend strong{font-size:13px;font-weight:600;margin:5px 0}.player-trend{display:block;width:100%;height:auto}.player-trend line{stroke:#e9eff4;stroke-dasharray:3 3}.player-trend text{fill:#9baeba;font-size:10px}.player-trend polyline{stroke:#85b8df;stroke-width:2;fill:none;stroke-linejoin:round}.player-trend circle{fill:#98c1e1}.player-trend circle.latest{fill:#4b9bd3}.player-metrics{font-size:12px;border-top:1px solid #edf1f6;margin-top:12px;padding-top:6px}.player-metrics>div{display:flex;justify-content:space-between;padding:7px 0}.player-metrics span{color:#96a5b3}.player-metrics strong{font-weight:500;color:#536b7e}

dialog.player-dialog{position:fixed;left:50%;top:50%;margin:0;max-width:360px;max-height:none;overflow:hidden;transform:translate(-50%,-50%);transform-origin:center}.player-profile .profile-intro h3{font-size:15px}.player-profile .avatar.large{width:40px;height:40px}.player-profile .stats-grid{margin:10px 0}.player-profile .stats-grid strong{font-size:17px}.player-profile .section-title{font-size:12px;margin:13px 0 8px}.player-records{width:100%;min-width:0;border:0;padding:7px;line-height:1.5}.player-legend{margin:9px 0}.player-legend span,.player-legend strong,.player-legend small{line-height:1.3}.player-legend strong{margin:3px 0;font-size:12px}.player-trend{height:88px}.player-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 4px;padding-top:10px}.player-metrics>div{display:flex;flex-direction:column;text-align:center;gap:3px;padding:0;font-size:11px}.player-metrics span{font-size:10px}.popup-records-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#96a5b3;margin-bottom:10px}.popup-records-heading button,.popup-records-pager button{border:0;border-radius:9px;padding:6px 10px;background:#edf6fd;color:#4b9bd3;font-size:11px}.popup-match{border:1px solid #edf1f6;border-radius:12px;overflow:hidden;margin-bottom:8px}.popup-match time{display:block;font-size:10px;color:#a0afba;padding:6px 9px;border-bottom:1px solid #f0f4f7}.popup-match-players{display:flex;padding:8px 2px}.popup-match-players>div{width:25%;min-width:0;text-align:center;font-size:11px}.popup-match-players .avatar{display:flex;width:29px;height:29px;border-radius:50%;margin:0 auto 4px;font-size:9px}.popup-match-players span,.popup-match-players small,.popup-match-players strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.popup-match-players small{font-size:10px;color:#99a9b6}.popup-match-players strong{font-size:11px}.popup-records-pager{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#96a5b3;margin-top:10px}.popup-records-pager button:disabled{opacity:.4}

.home-bookings{background:#fff;border-radius:24px;padding:22px;margin-bottom:16px}.booking-widget-heading{display:flex;align-items:center;justify-content:space-between}.booking-widget-heading h2{font-size:17px;margin:0}.booking-widget-heading a{font-size:11px;color:#4b9bd3;text-decoration:none}.booking-widget-days{display:flex;gap:9px;margin-top:18px}.booking-widget-days>a{flex:1;min-width:0;text-align:center;background:#f2f8fd;border-radius:16px;padding:13px 3px;text-decoration:none}.booking-widget-days strong,.booking-widget-days span,.booking-widget-days small{display:block}.booking-widget-days strong{font-size:14px;color:#6e9bb8}.booking-widget-days span{font-size:12px;color:#759bb5;margin-top:12px}.booking-widget-days small{font-size:9px;color:#a3b8c7;margin-top:4px}

.home-booking-button{display:flex;align-items:center;justify-content:space-between;background:#e7f3fc;color:#4b9bd3;border-radius:21px;padding:17px 22px;margin-bottom:16px;font-size:15px;font-weight:600;text-decoration:none}.home-booking-button span:last-child{font-size:23px;font-weight:400}

.home-announcement{min-height:180px;display:block}.home-announcement h1{font-size:24px;margin:20px 0 12px;overflow-wrap:anywhere}.home-announcement p{white-space:pre-wrap;font-size:14px;line-height:1.8;color:#7993a8;overflow-wrap:anywhere}

.rank-row.medal-1{background:linear-gradient(90deg,#fffaf0,#fff)}.rank-row.medal-2{background:linear-gradient(90deg,#f4f8fc,#fff)}.rank-row.medal-3{background:linear-gradient(90deg,#fdf7f2,#fff)}.rank-row.medal-1 .rank-position,.rank-row.medal-2 .rank-position,.rank-row.medal-3 .rank-position{font-size:23px;background:transparent}

.rank-custom-options{display:grid;gap:10px;max-height:48vh;overflow:auto}.rank-custom-options button{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:12px;background:#f6f9fc;padding:14px;color:#8098ab;font:inherit;cursor:pointer}.rank-custom-options button.selected{background:#e9f5ff;color:#4b9bd3;font-weight:600}

.rank-countdown{padding:0 4px 18px;color:#76a0bd;font-size:13px}.rank-countdown small{display:block;color:#a1b3c0;font-size:10px;margin-top:6px}

.player-management{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.binding-state{display:block;font-size:10px;color:#9db0bf;margin-top:5px}.delete-player{color:#c17b85!important}.delete-player:disabled{opacity:.35;cursor:not-allowed}.player-delete-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}@media(max-width:480px){.player-row{flex-wrap:wrap}.player-management{width:100%;justify-content:flex-end;gap:14px;padding-top:8px}}
