@charset "UTF-8";
:root {
  --font-ui: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
  --font-display: var(--font-ui);
  --font-score: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-ui);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  --page: #f4f0e8;
  --surface: #fbf8f1;
  --text: #35322d;
  --muted: #62594d;
  --faint: #6d6252;
  --line: #ded5c5;
  --field: #ece6d9;
  --hover: #f0e4cf;
  --active: #e6d7be;
  --accent: #725638;
  --accent-hover: #6f5134;
  --accent-soft: #ede1ce;
  --focus: #94744e;
  --mast: #f1e6d2;
  --mast-ink: #433b2f;
  --mast-muted: #685b48;
  --mast-hover: #d7c5a633;
  --ambient:
    radial-gradient(ellipse at 8% -8%, #dfc69b59, transparent 48%),
    radial-gradient(ellipse at 100% 35%, #fffaf080, transparent 58%),
    linear-gradient(150deg, #f7f4ed, #f1e9dc 65%, #ece0ce);
  --nav-surface: linear-gradient(110deg, #faf5eccc, #eddfc5b3 56%, #fcf8eed9);
  --primary-fill: linear-gradient(110deg, #d7bb92, #ecd9bc 55%, #cfac7d);
  --primary-ink: #4e3924;
  --row-hover: linear-gradient(105deg, #ffffff00, #ead6ad52 55%, #ddc59d38);
  --danger: #964c36;
  --shadow: 0 22px 80px #5f4a2b21, 0 3px 12px #5f4a2b0d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jade: #82613c;
  --blue: #94764e;
  --violet: #a18a64;
  --amber: #a88a59;
  --slate: #91836e;
  --rose: #986d55;
  background: var(--page);
  color: var(--text);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #2b241d;
  --surface: #352c23;
  --text: #f0e3cf;
  --muted: #c6b59b;
  --faint: #bea98a;
  --line: #65513d;
  --field: #443728;
  --hover: #493a2a;
  --active: #5b452e;
  --accent: #deb37d;
  --accent-hover: #edc897;
  --accent-soft: #503d28;
  --focus: #d3a66f;
  --mast: #211b16;
  --mast-ink: #f2e2c7;
  --mast-muted: #c9b89b;
  --ambient:
    radial-gradient(ellipse at 5% -5%, #86613926, transparent 55%),
    linear-gradient(150deg, #30281f, #27221c);
  --nav-surface: linear-gradient(110deg, #30271de6, #3b2d1ed9, #30271de6);
  --primary-fill: linear-gradient(110deg, #c29a68, #dfbe91, #b98e5e);
  --primary-ink: #2e241a;
  --row-hover: linear-gradient(105deg, #b7986d00, #b7986d26);
  --danger: #efb196;
  --shadow: 0 18px 70px #100c0855;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ambient);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    color 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    transform 0.16s var(--ease);
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible {
  outline: none;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
[hidden] {
  display: none !important;
}
.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-header {
  height: calc(108px + env(safe-area-inset-top));
  padding-top: calc(20px + env(safe-area-inset-top));
  flex: none;
  color: var(--mast-ink);
  z-index: 5;
}
.header-inner {
  width: min(1240px, calc(100% - 64px));
  height: 68px;
  padding: 0 24px;
  border-radius: 20px;
  background: var(--nav-surface);
  backdrop-filter: blur(28px) saturate(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.05);
  box-shadow:
    0 12px 32px #8c6f3f17,
    0 2px 6px #8c6f3f0a;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--mast-ink);
}
.visage-wordmark {
  display: block;
  width: 184px;
  height: auto;
  overflow: visible;
}
.visage-mark {
  width: 44px;
  height: 44px;
  display: block;
  color: var(--accent);
}
.brand:hover {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
}
.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  font-size: 16px;
  color: var(--mast-muted);
  font-weight: 400;
  padding: 0 2px;
}
.nav-item:hover,
.nav-item.active {
  color: var(--mast-ink);
}
.nav-item.active {
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-actions .primary-button,
.header-actions .secondary-button {
  font-size: 15px;
  min-height: 44px;
  padding: 0 17px;
  gap: 8px;
}
.site-header .primary-button {
  color: var(--primary-ink);
  background: var(--primary-fill);
  background-size: 200% 100%;
  box-shadow: 0 3px 12px #9c76331a;
}
.site-header .secondary-button {
  color: var(--mast-ink);
  border: 0;
  background: transparent;
}
.site-header .secondary-button:hover {
  background: var(--mast-hover);
}
.header-actions .icon {
  width: 19px;
  height: 19px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.icon-button:hover {
  background: var(--field);
}
.site-header .icon-button:hover {
  background: var(--mast-hover);
}
.site-header button:focus-visible,
.site-header a:focus-visible {
  outline-color: var(--mast-ink);
}
.workspace {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
}
.ranking-pane {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.board-tools {
  order: 2;
  display: flex;
  gap: 28px;
  align-items: center;
}
.tier-filters {
  display: flex;
  flex: none;
}
.tier-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
}
.tier-select > span {
  white-space: nowrap;
}
.tier-select select {
  appearance: none;
  border: 0;
  border-radius: 7px;
  background: var(--field);
  font-size: 16px;
  font-weight: 400;
  min-height: 44px;
  padding: 0 32px 0 12px;
  color: var(--text);
  max-width: 160px;
  cursor: pointer;
}
.tier-select > .icon {
  position: absolute;
  right: 11px;
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  pointer-events: none;
  color: var(--muted);
}
.search-field {
  height: 44px;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background: var(--field);
  padding: 0 12px;
  color: var(--muted);
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.search-field:focus-within {
  background: var(--active);
}
.search-field:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.search-field > .icon {
  width: 19px;
  height: 19px;
}
.search-field input {
  border: 0;
  background: none;
  outline: 0;
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 0;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  appearance: none;
}
.search-field kbd {
  font: 13px var(--font-ui);
  white-space: nowrap;
  color: var(--muted);
}
.clear-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  color: var(--muted);
  border-radius: 3px;
}
.clear-search .icon {
  width: 16px;
  height: 16px;
}
.clear-search:hover {
  background: var(--field);
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex: none;
}
.list-tabs {
  order: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-tabs [role='tab'] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 44px;
  border-radius: 7px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}
.list-tabs [aria-selected='true'] {
  color: var(--text);
  font-weight: 500;
  background: var(--field);
}
.list-tabs [role='tab']:hover {
  color: var(--text);
}
.list-tabs [role='tab'] > span {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
.connection-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
}
.connection-note .icon {
  width: 16px;
  height: 16px;
}
.ranking-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c1b294 transparent;
  padding: 0 0 26px;
}
.tier-group {
  margin-bottom: 8px;
}
.tier-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px 7px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}
.person-row {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) 88px 16px;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 12px 12px 12px 4px;
  width: 100%;
  position: relative;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  isolation: isolate;
}
.person-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--row-hover);
  opacity: 0;
  transform: translateX(-4%);
  transition:
    opacity 0.24s,
    transform 0.4s var(--ease);
}
.person-row:hover::before,
.person-row.selected::before {
  opacity: 0.8;
  transform: none;
}
.rank {
  width: 100%;
  flex: none;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.top-rank {
  color: var(--accent);
}
.person-name {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    color 0.22s;
}
.person-name small {
  display: block;
  max-width: 65ch;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}
.person-score {
  font-family: var(--font-score);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  width: 100%;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'tnum';
  letter-spacing: normal;
  color: var(--text);
  transition: color 0.2s;
}
.row-avatar {
  width: 48px;
  height: 48px;
  border-radius: 7px;
}
.row-avatar > .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.row-chevron {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-7px);
  color: var(--accent);
  transition:
    opacity 0.22s,
    transform 0.22s var(--ease);
}
.person-row:hover .row-chevron {
  opacity: 1;
  transform: none;
}
.person-row:hover .person-name {
  color: var(--accent);
}
.person-row:hover .person-score {
  color: var(--accent);
}
.person-row:active {
  background: var(--active);
}
.row-avatar img {
  transition: transform 0.28s var(--ease);
}
.person-row:hover .row-avatar img {
  transform: scale(1.035);
}
.person-row:hover .row-avatar {
  background: var(--active);
}
.list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 2px 0;
  font-size: 15px;
  color: var(--muted);
}
.list-end {
  text-align: center;
  padding: 25px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.empty-list {
  margin: auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
  gap: 15px;
  color: var(--muted);
}
.empty-list > .icon {
  width: 34px;
  height: 34px;
}
.empty-list h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}
.empty-list p {
  font-size: 16px;
  line-height: 1.8;
}
.detail-backdrop {
  display: none;
}
.detail-pane {
  display: none;
  min-width: 0;
}
.detail-open .ranking-pane {
  display: none;
}
.detail-open .detail-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--page);
  animation: page-in 0.26s var(--ease) both;
}
.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  flex: none;
  font-size: 15px;
  color: var(--muted);
}
.detail-header > span {
  flex: 1;
}
.detail-back {
  display: inline-flex;
  gap: 7px;
  width: auto;
  border-radius: 3px;
  font-size: 15px;
}
.detail-back .icon {
  width: 19px;
  height: 19px;
}
.detail-close {
  display: none;
}
.detail-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 32px 0;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.profile-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  padding-bottom: 32px;
}
.profile-portrait {
  position: relative;
  width: 220px;
  height: 270px;
  overflow: hidden;
  background: var(--field);
  border-radius: 3px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--field);
  color: var(--faint);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-portrait .avatar {
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--muted);
}
.profile-portrait .avatar > .icon {
  width: 50px;
  height: 50px;
  stroke-width: 1;
}
.portrait-upload {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-size: 14px;
  padding: 17px 0 12px;
  background: linear-gradient(
    0deg,
    var(--field),
    color-mix(in srgb, var(--field) 90%, transparent) 70%,
    transparent
  );
  color: var(--text);
}
.portrait-upload .icon {
  width: 17px;
  height: 17px;
}
.portrait-upload:hover {
  background: var(--active);
}
.profile-portrait:has(img) .portrait-upload {
  background: linear-gradient(0deg, #31261ee6, #31261ec9 70%, transparent);
  color: #fff6e7;
}
.profile-position {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
}
.profile-position > span {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--muted);
}
.profile-name h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin: 13px 0 22px;
}
.profile-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.profile-score > span {
  font-size: 15px;
  color: var(--muted);
  margin-right: 8px;
}
.profile-score strong {
  font-family: var(--font-score);
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
}
.profile-score small {
  font-size: 16px;
  color: var(--muted);
}
.profile-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 65px;
  padding-top: 26px;
}
.detail-section {
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 40px;
  margin-bottom: 13px;
}
.section-title h3 {
  font-size: 17px;
  font-weight: 500;
}
.section-title h3 > span {
  font-size: 14px;
  margin-left: 9px;
  color: var(--muted);
  font-weight: 400;
}
.description-text {
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.empty-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--accent);
}
.text-button:hover {
  background: var(--accent-soft);
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.empty-photos {
  width: 100%;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.empty-photos:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border-radius: 3px;
  background: var(--field);
}
.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.photo-thumb:hover img {
  transform: scale(1.05);
}
.photo-thumb > span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #4b3626e6;
  color: #fff0d5;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 2px;
}
.person-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
}
.detail-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.danger {
  color: var(--danger);
}
.mobile-nav {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  max-width: min(560px, calc(100% - 32px));
  width: max-content;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 14px 21px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.2s,
    visibility 0.2s,
    transform 0.2s var(--ease);
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.startup {
  margin: auto;
  text-align: center;
  padding: 32px;
  max-width: 560px;
  color: var(--muted);
}
.startup .visage-wordmark {
  width: 230px;
  color: var(--accent);
  margin: 0 auto 23px;
}
.startup .visage-mark {
  margin: 0 auto 20px;
}
.startup p {
  font-size: 16px;
  line-height: 1.8;
  margin: 18px 0;
}
.startup h1 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
  font-weight: 600;
}
.startup > .icon {
  width: 38px;
  height: 38px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 150;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border: 1px solid var(--focus);
  border-radius: 4px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.deferred-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 84px;
}
button:active:not(:disabled):not(.person-row) {
  transform: scale(0.97);
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes page-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(7px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.detail-open .detail-pane.leaving {
  animation: page-out 0.15s ease both;
}
@media (min-width: 1600px) {
  .header-inner {
    width: min(1240px, calc(100% - 96px));
  }
  .workspace {
    width: min(1200px, calc(100% - 112px));
  }
  .person-row {
    min-height: 96px;
  }
}
@media (max-width: 1050px) {
  .header-inner {
    width: calc(100% - 48px);
    padding-inline: 20px;
    gap: 32px;
  }
  .workspace {
    width: calc(100% - 64px);
  }
  .visage-wordmark {
    width: 184px;
  }
  .header-actions {
    gap: 8px;
  }
  .board-tools {
    order: 2;
    gap: 20px;
  }
  .tier-select > span {
    display: none;
  }
  .search-field {
    width: 225px;
  }
  .profile-hero {
    gap: 40px;
  }
  .profile-content {
    gap: 40px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: calc(88px + env(safe-area-inset-top));
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .header-inner {
    width: calc(100% - 24px);
    height: 64px;
    padding-inline: 12px;
    border-radius: 17px;
    gap: 12px;
  }
  .visage-wordmark {
    width: 142px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions .icon-button {
    width: 38px;
    height: 44px;
  }
  .header-actions .primary-button,
  .header-actions .secondary-button {
    min-width: 40px;
    min-height: 42px;
    padding: 0 9px;
  }
  .header-actions .header-add > span,
  .header-actions .share-button > span {
    display: none;
  }
  .site-header .share-button {
    border: 0;
  }
  .header-actions .icon {
    width: 18px;
    height: 18px;
  }
  .workspace {
    width: 100%;
  }
  .board-tools {
    order: 0;
    gap: 18px;
    justify-content: space-between;
  }
  .tier-select {
    font-size: 16px;
    min-height: 42px;
  }
  .tier-select select {
    font-size: 16px;
    max-width: 145px;
    min-height: 42px;
  }
  .search-field {
    width: auto;
    flex: 1;
    min-width: 0;
    height: 42px;
    gap: 8px;
  }
  .search-field input {
    font-size: 16px;
  }
  .search-field kbd {
    display: none;
  }
  .search-field > .icon {
    width: 17px;
    height: 17px;
  }
  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin: 0 22px;
    padding-top: 12px;
    gap: 8px;
  }
  .list-tabs {
    order: 1;
    gap: 8px;
    min-height: 44px;
  }
  .list-tabs [role='tab'] {
    font-size: 17px;
    gap: 8px;
  }
  .list-tabs [role='tab'] > span {
    font-size: 14px;
  }
  .connection-note {
    font-size: 12px;
    max-width: 120px;
  }
  .connection-note .icon {
    display: none;
  }
  .ranking-scroll {
    padding: 0 22px calc(90px + env(safe-area-inset-bottom));
  }
  .tier-heading {
    font-size: 14px;
    padding-top: 20px;
    padding-bottom: 4px;
  }
  .person-row {
    min-height: 80px;
    grid-template-columns: 24px 40px minmax(0, 1fr) 64px 12px;
    gap: 8px;
    padding: 13px 0 13px 2px;
  }
  .rank {
    font-size: 14px;
  }
  .person-name {
    font-size: 20px;
  }
  .person-name small {
    font-size: 13px;
    max-width: 180px;
  }
  .person-score {
    font-size: 28px;
  }
  .row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }
  .row-avatar > .icon {
    width: 22px;
    height: 22px;
  }
  .row-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.65;
    transform: none;
  }
  .list-end {
    font-size: 14px;
    padding-top: 25px;
  }
  .deferred-row {
    contain-intrinsic-size: auto 80px;
  }
  .mobile-nav {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    height: 64px;
    border-radius: 20px;
    background: var(--nav-surface);
    backdrop-filter: blur(24px) saturate(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(1.05);
    box-shadow:
      0 10px 32px #8c6f3f26,
      0 2px 8px #8c6f3f0d;
    color: var(--mast-muted);
    display: flex;
    z-index: 8;
  }
  .mobile-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1;
    position: relative;
    font-size: 15px;
    font-weight: 400;
    min-height: 44px;
    margin: 6px;
    border-radius: 14px;
  }
  .mobile-nav > a.active {
    color: var(--mast-ink);
  }
  .mobile-nav > a.active {
    font-weight: 500;
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    box-shadow: 0 2px 8px #78613d0d;
  }
  .settings-scroll {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-nav > a:focus-visible {
    outline-color: var(--mast-ink);
    outline-offset: -5px;
  }
  .detail-open .detail-pane {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 11;
  }
  .detail-header {
    min-height: calc(68px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0 14px;
    background: var(--nav-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--mast-ink);
    gap: 12px;
  }
  .detail-header > .text-button {
    color: var(--mast-ink);
  }
  .detail-header > .text-button:hover,
  .detail-back:hover {
    background: var(--mast-hover);
  }
  .detail-header > span {
    text-align: center;
    font-size: 16px;
  }
  .detail-header .text-button {
    font-size: 14px;
  }
  .detail-scroll {
    padding: 28px 23px max(30px, env(safe-area-inset-bottom));
  }
  .profile-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 23px;
    padding-bottom: 26px;
  }
  .profile-portrait {
    width: 108px;
    height: 142px;
  }
  .profile-portrait .avatar {
    font-size: 30px;
  }
  .profile-portrait .avatar > .icon {
    width: 37px;
    height: 37px;
  }
  .portrait-upload {
    font-size: 12px;
    min-height: 37px;
    padding: 13px 0 9px;
    gap: 5px;
  }
  .portrait-upload .icon {
    width: 13px;
    height: 13px;
  }
  .profile-position {
    font-size: 14px;
    gap: 9px;
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .profile-position > span {
    font-size: 13px;
    padding-left: 9px;
  }
  .profile-name h2 {
    font-size: 29px;
    margin: 10px 0 15px;
  }
  .profile-score > span {
    display: none;
  }
  .profile-score strong {
    font-size: 44px;
  }
  .profile-score small {
    font-size: 14px;
  }
  .profile-content {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 25px;
  }
  .section-title h3 {
    font-size: 17px;
  }
  .description-text {
    font-size: 16px;
  }
  .person-actions {
    gap: 18px;
  }
  .detail-note {
    font-size: 13px;
    flex-wrap: wrap;
  }
  .toast {
    bottom: calc(83px + env(safe-area-inset-bottom));
    font-size: 14px;
  }
}
@media (max-width: 370px) {
  .header-inner {
    gap: 8px;
  }
  .visage-wordmark {
    width: 125px;
  }
  .header-actions .icon-button {
    width: 34px;
  }
  .header-actions .primary-button {
    padding-inline: 8px;
    min-width: 38px;
  }
  .board-toolbar {
    margin-inline: 18px;
  }
  .ranking-scroll {
    padding-inline: 18px;
  }
  .board-tools {
    gap: 12px;
  }
  .tier-select select {
    max-width: 130px;
  }
  .profile-hero {
    gap: 17px;
  }
  .profile-name h2 {
    font-size: 28px;
  }
  .person-name {
    font-size: 19px;
  }
  .profile-position > span {
    border-left: 0;
    padding-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .header-inner,
  .mobile-nav,
  .detail-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dialog::backdrop {
    backdrop-filter: none;
  }
}

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