:root {
  --ink: #15171a;
  --muted: #5b616a;
  --line: #e6e8ec;
  --bg: #f4f6f8;
  --soft: #eef2f5;
  --card: #fff;
  --accent: #0b7f9b;
  --accent-h: #096780;
  --accent-soft: rgba(11, 127, 155, 0.12);
  --dark: #0f1720;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 32, 0.07);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font), "Geeza Pro", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", "Nirmala UI", "Leelawadee UI", "Noto Sans JP", "Noto Sans KR", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Thai", "Noto Sans Arabic", sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  display: flex;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.lang {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  font-family: var(--font), sans-serif;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.88rem;
}

.lang summary::-webkit-details-marker { display: none; }

.lang summary span {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(18rem, calc(100vw - 28px));
  max-height: min(70vh, 26rem);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lang-panel p {
  margin: 8px 8px 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-panel a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
}

.lang-panel a.is-on { background: var(--accent-soft); color: var(--accent-h); }

.lang-panel a:hover { background: var(--soft); }

html[dir="rtl"] .main { direction: rtl; }

html[dir="rtl"] .sheet aside { border-right: 0; border-left: 1px solid #efe7e2; }

html[dir="rtl"] .track {
  border-left: 0;
  border-right: 2px solid #634539;
  padding-left: 0;
  padding-right: 1.15rem;
}

html[dir="rtl"] .track li { padding: 0 0.85rem 1.15rem 0; }

html[dir="rtl"] .track li::before { left: auto; right: -1.28rem; }

html[dir="rtl"] .lang-panel { direction: rtl; }

.side {
  width: 248px;
  flex: 0 0 248px;
  background: var(--dark);
  color: #d7dde5;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  height: 100%;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 4px 16px;
  padding: 4px;
  color: #fff;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; letter-spacing: -0.02em; }
.brand-text small { color: #8b96a3; font-weight: 600; font-size: 11px; }

.side-scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.side-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8b99;
  padding: 12px 10px 6px;
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #e8eef4;
  margin: 0 0 2px;
}

.side a.sub { padding-left: 16px; }

.side a:hover { background: rgba(255, 255, 255, 0.07); }

.side a.is-active {
  background: rgba(11, 127, 155, 0.35);
  color: #fff;
}

.side .ico { flex: 0 0 auto; }

.side-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-bottom a.quiet {
  color: #9aa6b2;
  font-size: 13px;
  font-weight: 700;
}

.main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  background: var(--bg);
}

.wrap {
  width: min(68rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4.25rem 0 3.5rem;
}

.home {
  display: grid;
  gap: 1rem;
}

.mast {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.35rem 2.2rem 2rem;
}

.portrait {
  width: 8.75rem;
  height: 8.75rem;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px rgba(15, 23, 32, 0.14);
  background: var(--card);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  line-height: 0.92;
}

.mast h1,
.mast .status {
  font-family: var(--font);
}

.role {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  max-width: 34rem;
  margin: 1.35rem auto 0;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.lead,
.note {
  max-width: 40rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.mast .lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home .note {
  max-width: none;
  margin: 0;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.3rem;
}

.projects {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.projects li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects h2 { margin-top: 0.4rem; font-size: 1.35rem; font-weight: 700; }

.projects p { margin: 0.45rem 0 0; color: var(--muted); }

.stations {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 2.1rem 0 0;
  padding: 0;
}

.stations li {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem 1.4rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.when {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.stations h2 {
  font-size: 1.28rem;
  font-weight: 700;
}

.where {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.stations p { margin: 0.4rem 0 0; color: var(--muted); }

.next { margin: 1.8rem 0 0; }

.next a,
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.next a:hover,
.btn:hover,
button:hover { background: var(--accent-h); }

button:active,
.next a:active,
.btn:active { transform: translateY(1px); }

.foot { display: none; }

h1.page {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 0.4rem;
}

.prose { max-width: 40rem; }

.prose p { margin: 0.85rem 0; }

.prose a,
.docs a {
  color: var(--accent);
  font-weight: 800;
}

.prose a:hover,
.docs a:hover { color: var(--accent-h); }

.prose .btn { color: #fff; }

form.stack {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
  margin-top: 1.15rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

form.stack > label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea, select {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

textarea { min-height: 7rem; resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

form.stack > button { width: 100%; }

.choices { display: grid; gap: 0.45rem; }

.choices label {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--soft);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(17rem, 22rem);
  gap: 1.2rem;
  align-items: start;
  margin-top: 1rem;
}

.booking form.stack { margin-top: 0; }

.when-block { display: grid; gap: 0.45rem; }

.when-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.when-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.when-pair label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.month {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.month-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.month button.month-nav,
.month button.day {
  width: auto;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 0;
  font-weight: 700;
}

.month button.month-nav {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.3rem;
  line-height: 1;
}

.month button.month-nav:hover,
.month button.day:hover { background: var(--soft); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.month-grid .dow {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.2rem 0 0.35rem;
}

.month button.day {
  aspect-ratio: 1;
  width: 100%;
  font-size: 0.92rem;
  position: relative;
}

.month button.day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }

.month button.day.is-selected,
.month button.day.is-selected:hover {
  background: var(--accent);
  color: #fff;
}

.month button.day.has-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.month button.day.is-selected.has-slot::after { background: #fff; }

.month-picked {
  margin: 0.85rem 0 0;
  font-weight: 700;
  min-height: 1.4em;
}

.error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fdecea;
  color: #a33;
  border: 1px solid #f0c4c0;
  font-weight: 700;
}

.docs {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.docs li {
  padding: 0.85rem 1.05rem;
  border-top: 1px solid var(--line);
}

.docs li:first-child { border-top: 0; }

.group { margin-top: 2.2rem; }

.group h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.cv h2 {
  margin: 1.8rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.cv h3 {
  margin: 1.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cv .meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.sheet {
  --cv: #634539;
  --cv-muted: #707070;
  display: grid;
  grid-template-columns: 17.5rem 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: Lato, "Manrope", sans-serif;
  color: #1a1a1a;
}

.sheet aside {
  padding: 1.7rem 1.25rem 1.6rem;
  background: #fbf8f6;
  border-right: 1px solid #efe7e2;
}

.sheet-photo {
  width: 8.6rem;
  height: 8.6rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}

.sheet h1 {
  margin: 0.9rem 0 0;
  font-family: Lato, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
}

.sheet-role {
  margin: 0.35rem 0 0;
  color: var(--cv);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.sheet h2 {
  margin: 1.25rem 0 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--cv);
  font-family: Lato, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #111;
}

.sheet aside p,
.sheet-main p {
  margin: 0;
  color: var(--cv-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sheet-contact,
.sheet-lang {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  text-align: left;
}

.sheet-contact li,
.sheet-lang li {
  margin: 0.45rem 0 0;
  color: #1a1a1a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.sheet-lang strong { font-weight: 700; }

.sheet-plain {
  margin: 0.35rem 0 0;
  color: #1a1a1a;
  text-align: left;
}

.sheet-main { padding: 1.5rem 1.5rem 1.7rem; }

.sheet-main > section + section { margin-top: 1.4rem; }

.track {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid var(--cv);
}

.track li { position: relative; padding: 0 0 1.15rem 0.85rem; }

.track li:last-child { padding-bottom: 0; }

.track li::before {
  content: "";
  position: absolute;
  left: -1.28rem;
  top: 0.28rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--cv);
}

.track .when {
  margin: 0;
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 700;
}

.track h3 {
  margin: 0.12rem 0 0;
  font-family: Lato, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cv);
}

.track .where {
  margin: 0.1rem 0 0;
  color: var(--cv-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.track p + p { margin-top: 0.4rem; }

.track ul {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.05rem;
  color: var(--cv-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.track ul li { padding: 0; }

.track ul li::before { content: none; }

.track ul li + li { margin-top: 0.2rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.chips li {
  padding: 0.38rem 0.75rem;
  border: 1.5px solid #707070;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
}

.table-wrap {
  margin-top: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: auto;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.plain th,
table.plain td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
}

table.plain tr:first-child th,
table.plain tr:first-child td { border-top: 0; }

table.plain th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

button.btn-quiet {
  width: auto;
  background: #fff;
  color: #a33;
  border: 1px solid #f0c4c0;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

button.btn-quiet:hover { background: #fdecea; }

.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.15rem 1.25rem;
}

.path h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.path ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0.2rem 0 0;
  position: relative;
}

.path ol::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0.55rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d5dde4 0%, var(--accent) 100%);
}

.path li {
  position: relative;
  text-align: center;
  padding: 1.45rem 0.25rem 0;
}

.path li::before {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  transform: translateX(-50%);
  z-index: 1;
}

.path li.is-now::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.path-year {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.path strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.path li > span:last-child {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}

.ability {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.2rem;
}

.ability h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.ability h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ability-langs,
.ability-set {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ability-langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.ability-langs li {
  min-width: 0;
  padding: 0.8rem 0.85rem 0.72rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfc 0%, var(--soft) 100%);
  border: 1px solid var(--line);
}

.ability-langs strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.meter {
  display: flex;
  height: 0.38rem;
  margin: 0.55rem 0 0.4rem;
  border-radius: 99px;
  background: #e3e9ee;
  overflow: hidden;
}

.meter::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, #7ebfd0, var(--accent));
}

.meter.is-native { --level: 100%; }
.meter.is-work { --level: 78%; }
.meter.is-strong { --level: 62%; }

.ability-langs li > span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.ability-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.ability-set li {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .meter { justify-content: flex-end; }

@media (max-width: 860px) {
  body { height: auto; overflow: auto; }
  .shell { display: block; height: auto; overflow: visible; }
  .side {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 58px 10px 8px;
  }
  .brand { margin: 0 4px 8px; }
  .brand-text small { display: none; }
  .side-scroll { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .side-label { display: none; }
  .side a { padding: 8px 10px; }
  .side a.sub { padding-left: 10px; }
  .side-bottom {
    flex-direction: row;
    gap: 4px;
    border-top: 0;
    padding-top: 4px;
    margin-top: 4px;
  }
  .main { overflow: visible; }
  .wrap { width: min(68rem, calc(100% - 1.5rem)); padding-top: 1rem; }
  .sheet { grid-template-columns: 1fr; }
  .sheet aside { border-right: 0; border-bottom: 1px solid #efe7e2; }
  .sheet-main { padding: 1.2rem 1rem 1.4rem; }
  .chips li { white-space: normal; }
  .mast { padding: 1.6rem 1.1rem 1.35rem; }
  .portrait { width: 6.5rem; height: 6.5rem; }
  .path { padding: 1.15rem 1rem 1rem; }
  .path ol {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 0;
  }
  .path ol::before {
    left: 0.28rem;
    right: auto;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #d5dde4 0%, var(--accent) 100%);
  }
  .path li {
    text-align: left;
    padding: 0 0 0 1.7rem;
  }
  .path li::before {
    left: 0;
    top: 0.28rem;
    transform: none;
  }
  .ability { padding: 1.15rem 1rem 1rem; }
  .ability-langs { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.15rem; }
  .stations li { grid-template-columns: 1fr; gap: 0.2rem; }
  .when { padding-top: 0; }
  .booking, .when-pair { grid-template-columns: 1fr; }
}
