:root {
  --foreground: #777;
  --muted: #a3a3a3;
  --page: #fcfcfc;
  --card: #fff;
  --card-border: #e5e3e1;
  --brand: #9b360f;
  --active: #b20a04;
  --login: #24633b;
  --radius-md: 7px;
  --sidebar-width: 236px;
  --workspace-gap: 47px;
  --card-gap: 41px;
  --card-height: 124px;
  --page-pad-left: 32px;
  --page-pad-right: 64px;
  --page-pad-top: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  background: var(--page);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button { font: inherit; }
svg { display: block; }
.is-hidden { display: none !important; }

.playback-back {
  display: none;
  position: absolute;
  left: -10px;
  top: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #bbb;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.playback-back:hover { color: #999; }
.playback-back:active { transform: translateY(1px); }

.page-shell {
  width: 100%;
  max-width: 1792px;
  min-width: 1180px;
  height: 100vh;
  min-height: 0;
  margin: 0 auto;
  padding: var(--page-pad-top) var(--page-pad-right) 0 var(--page-pad-left);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 1001;
  isolation: isolate;
  height: 42px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: var(--workspace-gap);
  align-items: center;
  background: var(--page);
  will-change: transform;
}
.brand {
  color: var(--brand);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.25px;
  white-space: nowrap;
  transform: translateX(-10px);
}

/* Top navigation is built on the same four-column grid as the cards. */
.topbar-grid {
  height: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--card-gap);
  min-width: 0;
  align-items: center;
  position: relative;
  transform: translateX(-20px);
}
.scope-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.scope-label {
  display: inline-block;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease;
}
.scope-public {
  width: 44px;
  text-align: left;
}
.scope-me {
  width: 22px;
  text-align: left;
}
.scope-label.is-active { color: #858585; }
.scope-label:hover { color: #929292; }
.voice-settings-icon {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: #bbb;
}
.voice-settings-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mode-switch {
  position: relative;
  width: 31px;
  height: 16px;
  flex: 0 0 31px;
  margin-left: -2px;
  margin-right: 2px;
  transform: translateX(-3px);
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .09);
  box-shadow: inset 0 1px 2px #00000026, 0 1px 0 #ffffff60;
  cursor: pointer;
}
.mode-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7f7f7;
  box-shadow: inset 1px 1px 1px #fff, inset -1px -1px 0 #00000014,
    0.444584px 0.444584px 0.628737px -0.75px #00000030,
    1.21072px 1.21072px 1.71222px -1.5px #00000028,
    2.6583px 2.6583px 3.75941px -2.25px #00000020,
    5.90083px 5.90083px 8.34503px -3px #00000012;
  transition: transform .18s ease;
}
.mode-switch.is-me .mode-thumb { transform: translateX(15px); }
.mode-switch:active .mode-thumb { transform: translateX(1px) scale(.96); }
.mode-switch.is-me:active .mode-thumb { transform: translateX(14px) scale(.96); }

.plain-icon,
.text-tool,
.login-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #aaa;
  cursor: pointer;
}
.plain-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plain-icon svg { width: 22px; height: 22px; }

.topbar-share {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  color: #a2a2a2;
}
.topbar-share svg { width: 23px; height: 23px; }
.apps-icon {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #c6c6c6;
}
.apps-icon svg { width: 24px; height: 24px; fill: currentColor; }
.text-tool {
  position: absolute;
  left: 69%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #a2a2a2;
  font-size: 12px;
  line-height: 1;
}
.login-button {
  position: absolute;
  left: 87%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 70px;
  height: 25px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--login);
  color: white;
  font-size: 12px;
  line-height: 25px;
  box-shadow: inset 0 1px 0 #ffffff22, 0 1px 2px #00000018;
}
.menu-icon {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  width: 30px;
  color: #888;
}
.menu-icon svg { width: 26px; height: 18px; }
.plain-icon:hover,
.text-tool:hover { color: #777; }
.login-button:hover { filter: brightness(.97); }
.plain-icon:active { transform: translateY(1px); }
.topbar-share:active { transform: translateY(1px); }
.menu-icon:active { transform: none; }
.apps-icon:active,
.text-tool:active,
.login-button:active { transform: translate(-50%, calc(-50% + 1px)); }
.plain-icon.voice-settings-icon:active {
  transform: none;
}

.workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: var(--workspace-gap);
  align-items: stretch;
  margin-top: 52px;
  overflow: hidden;
}
.sidebar {
  position: relative;
  align-self: start;
  min-width: 0;
}
.content-scroll {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateX(-20px);
  padding-right: 2px;
}
.content-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.content-scroll:focus { outline: none; }
.source-nav,
.region-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.source-nav { gap: 17px; }
.region-nav { gap: 10px; margin-top: 39px; overflow: visible; }
.source-item,
.region-item {
  border: 0;
  background: transparent;
  padding: 0;
  color: #b8b8b8;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-align: left;
}
.source-item {
  color: #a0a0a0;
  min-width: 102px;
  min-height: 30px;
  padding: 5px 18px 6px;
  border-radius: 9px;
}
.source-item.is-active {
  background: var(--active);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff20, 0 1px 2px #00000018;
}
.sidebar-history {
  width: 28px;
  height: 28px;
  margin-left: 14px;
  color: #b5b5b5;
}
.sidebar-history svg { width: 19px; height: 19px; }
.region-item {
  min-height: 28px;
  padding: 5px 0 5px 17px;
  position: relative;
  overflow: visible;
}
.region-item.is-active { color: #666; font-weight: 500; }
.region-dot {
  position: absolute;
  left: 1px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #af4317;
  opacity: 0;
}
.region-item.is-active .region-dot { opacity: 1; }
.source-item:not(.is-active):hover { color: #777; }
.region-item:hover { color: #898989; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--card-height);
  column-gap: var(--card-gap);
  row-gap: 37px;
  min-width: 0;
  padding-bottom: 44px;
}
.intro-block {
  grid-column: 1 / span 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  padding-top: 47px;
}
.intro-block h1 {
  margin: 0;
  color: #8d8d8d;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 400;
  white-space: nowrap;
}

.content-card {
  position: relative;
  width: 100%;
  height: var(--card-height);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: #929292;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: border-color .16s ease;
  overflow: hidden;
}
.content-card:hover { border-color: #dcd9d6; }
.content-card:active { box-shadow: none; transform: none; }

.play-card {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  background: #ddd;
  align-items: center;
  justify-content: center;
}
.play-control {
  width: 48px;
  height: 48px;
  display: block;
}
.play-control svg { width: 48px; height: 48px; }

.plus-card {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  background: #f0f0f0;
  align-items: center;
  justify-content: center;
}
.plus-mark {
  position: relative;
  width: 35.2px;
  height: 35.2px;
}
.plus-mark::before,
.plus-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #c7c7c7;
  transform: translate(-50%, -50%);
}
.plus-mark::before { width: 33.6px; height: 2px; }
.plus-mark::after { width: 2px; height: 33.6px; }

.feature-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-size: 18px;
  text-align: center;
}
.mystery-card {
  grid-column: 3;
  grid-row: 2;
  background: #e8e8e8;
  color: #666;
}
.maps-card {
  grid-column: 4;
  grid-row: 2;
  background: #f0f0f0;
  color: #bbb;
}

.country-grid-contents { display: contents; }
.country-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--foreground);
  cursor: default;
  user-select: auto;
}
.country-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  user-select: text;
  cursor: text;
}
.country-label {
  display: block;
  width: auto;
  max-width: 100%;
  overflow: visible;
  color: #222;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  text-overflow: clip;
  white-space: nowrap;
  user-select: text;
}
.country-sub {
  display: block;
  max-width: calc(100% - 34px);
  overflow: hidden;
  color: #aaa;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}
.country-actions {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.country-hover-play,
.country-more {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.country-hover-play {
  width: 26px;
  height: 26px;
}
.country-hover-play svg { width: 26px; height: 26px; }
.country-more {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}
.country-more svg { width: 18px; height: 18px; }
.country-info-card:hover .country-actions,
.country-info-card:focus-within .country-actions,
.flag-card:hover .country-actions,
.flag-card:focus-within .country-actions {
  opacity: 1;
  pointer-events: auto;
}
.country-hover-play:hover { opacity: .88; }
.country-more:hover { color: #999; }
.country-hover-play:focus-visible,
.country-more:focus-visible {
  outline: 1px solid #ccc;
  outline-offset: 2px;
  border-radius: 50%;
}
.country-placeholder { cursor: default; }

.flag-card {
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--card);
}
.flag-copy {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  padding: 12px;
}
.flag-card .country-label {
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.flag-frame {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 80px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #ddd;
}
.country-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flag-fallback {
  display: none;
  color: #999;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}
.flag-frame.is-missing .country-flag { display: none; }
.flag-frame.is-missing .flag-fallback { display: block; }

.top-mini-controls {
  position: fixed;
  z-index: 1300;
  top: 0;
  left: 0;
  width: 0;
  height: 52px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #e2e0de;
  border-radius: 0 0 9px 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px #0000000d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.top-mini-controls.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mini-selection-group,
.mini-feature-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.mini-selection-group {
  gap: 0;
}
.mini-feature-group {
  gap: 25px;
  margin-left: 60px;
}
.mini-selected,
.mini-selected-count {
  color: #c8c8c8;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.mini-selected-count {
  margin-left: 10px;
}
.mini-inline-add {
  width: 30px;
  height: 34px;
  margin-left: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #bdbdbd;
  font-size: 36px;
  font-weight: 200;
  line-height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-feature-card {
  width: 68px;
  height: 34px;
  flex: 0 0 68px;
  border: 1px solid #e5e3e1;
  border-radius: 6px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #999;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.mini-play-card { background: #ddd; }
.mini-play-control {
  width: 23px;
  height: 23px;
  display: block;
}
.mini-play-control svg { width: 23px; height: 23px; }
.mini-plus-card { position: relative; background: #f0f0f0; }
.mini-plus-mark {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}
.mini-plus-mark::before,
.mini-plus-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #bbb;
  transform: translate(-50%, -50%);
}
.mini-plus-mark::before { width: 18px; height: 1px; }
.mini-plus-mark::after { width: 1px; height: 18px; }
.mini-text-card[data-mini-action="blind"] { background: #e8e8e8; color: #666; }
.mini-text-card[data-mini-action="maps"] { background: #f0f0f0; color: #bbb; }
.mini-feature-card:hover { filter: brightness(.985); }
.mini-feature-card:active,
.mini-inline-add:active { transform: translateY(1px); }

.floating-controls {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 18px;
  width: 38px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid #e2e0de;
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px #0000000d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.floating-controls.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-control {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}
.floating-control:hover { background: #f3f3f2; color: #888; }
.floating-control:active { transform: translateY(1px); }
.floating-control svg { width: 18px; height: 18px; }


/* v1.30 country playback stage */
body.is-playback .brand-cluster,
body.is-playback .brand,
body.is-playback .topbar-grid {
  visibility: hidden;
  pointer-events: none;
}
body.is-playback .playback-back {
  display: block;
  pointer-events: auto;
}
body.is-playback .topbar {
  transform: none !important;
  background: transparent;
  pointer-events: none;
}
body.is-playback .workspace,
body.is-playback .content-scroll { overflow: visible; }
body.is-playback #homeContentGrid { display: none; }
body.is-playback .top-mini-controls,
body.is-playback .floating-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.playback-grid {
  --playback-rise: 94px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, var(--card-height));
  column-gap: var(--card-gap);
  row-gap: 37px;
  min-width: 0;
  padding-bottom: 44px;
}
.playback-grid[hidden] { display: none !important; }

.country-playback-panel {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  height: calc(100% + var(--playback-rise));
  min-width: 0;
  min-height: 0;
  overflow: visible;
  background: #e1ffd8;
  color: #aaa;
  cursor: pointer;
}
.playback-country-text {
  position: absolute;
  left: 34px;
  right: 64px;
  top: calc(var(--playback-rise) - 5px);
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: text;
}

.playback-capital-text {
  position: absolute;
  left: 34px;
  right: 214px;
  top: calc(var(--playback-rise) + 53px);
  color: #b0b0b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: text;
}
.playback-profile-flag {
  position: absolute;
  right: 34px;
  top: calc(var(--playback-rise) + 3px);
  width: 130px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(170, 170, 170, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}
.playback-profile-flag[hidden],
.playback-profile-outline[hidden],
.playback-capital-text[hidden] {
  display: none !important;
}
.playback-profile-flag-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.playback-profile-flag-fallback {
  display: none;
  color: #999;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
}
.playback-profile-flag.is-missing .playback-profile-flag-image { display: none; }
.playback-profile-flag.is-missing .playback-profile-flag-fallback { display: block; }
.playback-profile-outline {
  position: absolute;
  left: 34px;
  right: 34px;
  top: calc(var(--playback-rise) + 104px);
  bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.playback-profile-map {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.playback-profile-map-world,
.playback-profile-map-country {
  stroke: none;
  stroke-width: 0;
  fill-rule: evenodd;
}
.playback-profile-map-world {
  fill: #eee;
}
.playback-profile-map-boundaries {
  fill: none;
  stroke: #b8b8b8;
  stroke-width: .45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.playback-profile-map-country {
  fill: #993300;
}
.playback-profile-map-capital {
  fill: #15318c;
}
.playback-profile-outline.is-loading .playback-profile-map {
  opacity: .5;
}
.playback-profile-outline-fallback {
  display: none;
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  letter-spacing: .08em;
}
.playback-profile-outline.is-missing .playback-profile-map { display: none; }
.playback-profile-outline.is-missing .playback-profile-outline-fallback { display: block; }
.country-playback-panel.profile-country-capital .playback-country-text,
.country-playback-panel.profile-country-intro .playback-country-text {
  right: 214px;
}
.country-playback-panel.profile-country-intro > .playback-country-text,
.country-playback-panel.profile-country-intro > .playback-capital-text,
.country-playback-panel.profile-country-intro > .playback-profile-flag {
  display: none !important;
}
.playback-intro-card {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  box-sizing: border-box;
  height: calc(100% - 36px);
  max-height: calc(100% - 36px);
  width: auto;
  max-width: calc(100% - 72px);
  aspect-ratio: 3 / 2;
  padding: 22px 28px 20px;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(251, 251, 251, .96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
  display: none;
  grid-template-columns: minmax(0, 1.58fr) minmax(132px, .64fr);
  column-gap: 28px;
  color: #111;
  pointer-events: none;
  overflow: hidden;
}
.playback-intro-card[hidden] {
  display: none !important;
}
.country-playback-panel.profile-country-intro .playback-intro-card {
  display: grid;
}
.playback-intro-left,
.playback-intro-right {
  min-width: 0;
  min-height: 0;
}
.playback-intro-left {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}
.playback-intro-country-native {
  min-width: 0;
  color: #15318c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  padding-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playback-intro-divider {
  width: 88%;
  height: 2px;
  margin: 8px 0 10px;
  background: #15318c;
  border-radius: 999px;
}
.playback-intro-country-en {
  min-width: 0;
  color: #15318c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.03em;
  padding-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playback-intro-country-en[hidden] {
  display: none !important;
}
.playback-intro-right {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  row-gap: 9px;
  overflow: hidden;
}
.playback-intro-flag {
  width: 100%;
  max-width: 136px;
  justify-self: end;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(21, 49, 140, .16);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.playback-intro-flag[hidden] { display: none !important; }
.playback-intro-flag-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.playback-intro-flag-fallback {
  display: none;
  color: #999;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}
.playback-intro-flag.is-missing .playback-intro-flag-image { display: none; }
.playback-intro-flag.is-missing .playback-intro-flag-fallback { display: block; }
.playback-intro-section {
  min-width: 0;
  border-top: 1px solid rgba(21, 49, 140, .18);
  padding-top: 8px;
  overflow: hidden;
}
.playback-intro-section-code {
  align-self: end;
}
.playback-intro-capital-en {
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.03em;
  padding-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playback-intro-capital-native {
  margin-top: 13px;
  color: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playback-intro-capital-native[hidden] {
  display: none !important;
}
.playback-intro-country-code {
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.playback-intro-card .playback-profile-outline {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  margin-top: 9px;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.playback-intro-card .playback-profile-outline[hidden] {
  display: none !important;
}
.playback-intro-card .playback-profile-map {
  width: 100%;
  height: 100%;
}
.playback-intro-card .playback-profile-outline-fallback {
  font-size: 18px;
}
.playback-panel-more,
.playback-close {
  position: absolute;
  z-index: 5;
  top: 6px;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.playback-panel-more {
  right: 49px;
  color: #bbb;
}
.playback-close {
  right: 6px;
  color: #ccc;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.playback-close.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.playback-panel-more:hover { color: #999; }
.playback-panel-more svg { width: 20px; height: 20px; }
.playback-close svg { width: 29px; height: 29px; }

.playback-progress-row {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 20px;
  pointer-events: none;
}
.playback-seek {
  --seek-percent: 0%;
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
}
.playback-seek::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, #999 0 var(--seek-percent), rgba(153,153,153,.34) var(--seek-percent) 100%);
}
.playback-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #bbb;
  opacity: 0;
  visibility: hidden;
  transition: opacity .1s ease;
  cursor: pointer;
}
.playback-seek::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(153,153,153,.34);
}
.playback-seek::-moz-range-progress {
  height: 2px;
  border-radius: 2px;
  background: #999;
}
.playback-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #bbb;
  opacity: 0;
  visibility: hidden;
  transition: opacity .1s ease;
  cursor: pointer;
}
.playback-progress-row.is-paused .playback-seek::-webkit-slider-thumb,
.playback-progress-row.is-seeking .playback-seek::-webkit-slider-thumb,
.playback-seek:hover::-webkit-slider-thumb {
  opacity: 1;
  visibility: visible;
}
.playback-progress-row.is-paused .playback-seek::-moz-range-thumb,
.playback-progress-row.is-seeking .playback-seek::-moz-range-thumb,
.playback-seek:hover::-moz-range-thumb {
  opacity: 1;
  visibility: visible;
}
.playback-time {
  position: absolute;
  right: 16px;
  bottom: 22px;
  min-width: 94px;
  color: rgba(153,153,153,.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.playback-time.is-visible {
  opacity: 1;
  visibility: visible;
}

.playback-control-card {
  grid-column: 4;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 4;
  align-self: end;
  width: 100%;
  height: calc(100% + var(--playback-rise));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}
.playback-volume-control {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
}
.playback-volume-button,
.playback-main-play,
.playback-replay,
.playback-top-action,
.playback-detail-step,
.playback-detail-option {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.playback-volume-button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}
.playback-volume-button:hover { color: #999; }
.playback-volume-button.is-muted { color: #cc2200; }
.playback-volume-button span,
.playback-volume-button svg { width: 22px; height: 22px; }

.playback-top-action {
  position: absolute;
  z-index: 5;
  top: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  pointer-events: auto;
}
.playback-top-action:hover { color: #999; }
.playback-top-action svg { width: 22px; height: 22px; }
.playback-settings-action { right: 0; }

.playback-detail-scale {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(50% - 90px);
  width: 176px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #bbb;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.playback-detail-step {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #bbb;
  font-size: 17px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
}
.playback-detail-step:hover { color: #999; }
.playback-detail-options {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.playback-detail-option {
  position: relative;
  width: 24px;
  height: 30px;
  color: #bbb;
}
.playback-detail-option::before {
  content: attr(data-detail-level);
  position: absolute;
  left: 50%;
  bottom: 29px;
  color: #999;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.playback-detail-option::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bbb;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.playback-detail-option:hover::after { background: #999; }
.playback-detail-option.is-active::before { opacity: 1; }
.playback-detail-option.is-active::after {
  width: 7px;
  height: 7px;
  background: #999;
}

.playback-main-play {
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.playback-main-play span,
.playback-main-play svg {
  width: 39px;
  height: 39px;
  display: block;
}
.playback-main-play:active { transform: translate(-50%, -50%); }

.playback-rate-control {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(50% + 105px);
  width: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: auto;
}
.playback-rate-option {
  flex: 0 0 40px;
  height: 27px;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  padding: 0;
  background: #f4f4f4;
  color: #bbb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
}
.playback-rate-option:hover,
.playback-rate-option:focus-visible {
  border-color: #ddd;
  color: #888;
}
.playback-rate-option.is-active {
  border-color: #d6d6d6;
  background: #ddd;
  color: #666;
}
.playback-rate-option:active { transform: none; }

.playback-replay {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(50% + 40px);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #eee;
  transform: translateY(-50%);
  pointer-events: auto;
}
.playback-replay:hover,
.playback-replay.is-ready { color: #bbb; }
.playback-replay svg { width: 29px; height: 29px; }
.playback-replay:active { transform: translateY(calc(-50% + 1px)); }

.playback-volume-popover {
  position: absolute;
  left: calc(100% - 1px);
  top: 50%;
  width: 0;
  height: 26px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: width .14s ease, opacity .1s ease;
  z-index: 3;
}
.playback-volume-control:hover .playback-volume-popover {
  width: 58px;
  opacity: 1;
  pointer-events: auto;
}
.playback-volume-range {
  --volume-percent: 100%;
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 50px;
  width: 50px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
}
.playback-volume-range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #c2c2c2 0 var(--volume-percent), #ddd var(--volume-percent) 100%);
}
.playback-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: #999;
}
.playback-volume-range::-moz-range-track { height: 2px; border-radius: 999px; background: #ddd; }
.playback-volume-range::-moz-range-progress { height: 2px; border-radius: 999px; background: #c2c2c2; }
.playback-volume-range::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #999; }

.playback-side-feature-card {
  grid-column: 4;
  grid-row: 2;
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--card-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: visible;
}
.playback-mini-feature {
  width: 40%;
  height: 40%;
  border: 1px solid #e5e3e1;
  border-radius: 6px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.playback-mini-feature[data-playback-feature="blind"] { background: #e8e8e8; color: #666; }
.playback-mini-feature[data-playback-feature="maps"] { background: #f0f0f0; color: #bbb; }
.playback-mini-feature:hover { border-color: #d8d6d3; }

.playback-country-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--card-gap);
  min-width: 0;
}
.playback-country-card {
  height: var(--card-height);
  cursor: pointer;
}
.playback-country-card .country-copy { pointer-events: none; }
.playback-country-card .country-label { color: #bbb; }
.playback-country-card.is-playing-country {
  border-color: #993300;
}
.playback-country-card.is-playing-country .country-label { color: #999; }
.playback-empty-slot { min-width: 0; }

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2000;
  max-width: 420px;
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 13px 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1450px) {
  :root {
    --sidebar-width: 220px;
    --workspace-gap: 38px;
    --card-gap: 29px;
    --page-pad-right: 40px;
  }
  .page-shell { min-width: 1120px; }
  .content-grid { row-gap: 37px; }
  .source-item,
  .region-item { font-size: 12px; }
  .intro-block h1 { font-size: 19px; }
}

/* v1.39: page-language entry shared by the list and playback views. */
.language-switcher {
  position: fixed;
  left: max(18px, calc((100vw - 1792px) / 2 + 22px));
  bottom: 18px;
  z-index: 1450;
  font-size: 12px;
  line-height: 1;
}
.language-toggle {
  min-width: 108px;
  height: 30px;
  border: 1px solid #e5e3e1;
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(252, 252, 252, .96);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .035);
}
.language-toggle:hover,
.language-switcher.is-open .language-toggle {
  color: #777;
  border-color: #d8d6d3;
}
.language-caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .14s ease;
}
.language-switcher.is-open .language-caret {
  transform: translateY(2px) rotate(225deg);
}
.language-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  width: 132px;
  padding: 5px;
  border: 1px solid #e5e3e1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}
.language-menu[hidden] { display: none; }
.language-option {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: #999;
  text-align: left;
  cursor: pointer;
}
.language-option:hover { background: #f4f4f4; color: #777; }
.language-option.is-active { background: #f1f1f1; color: #666; }


/* v1.42 multilingual playback settings */
body.is-speech-settings-open { overflow: hidden; }

.speech-settings-layer[hidden] { display: none !important; }
.speech-settings-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.speech-settings-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(245, 245, 245, .78);
  backdrop-filter: blur(2px);
  cursor: default;
}
.speech-settings-dialog {
  position: relative;
  width: min(720px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .12);
  color: #333;
}
.speech-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #eee;
}
.speech-settings-header h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 500;
}
.speech-settings-header p {
  margin: 0;
  color: #999;
  font-size: 12px;
}
.speech-settings-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #aaa;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.speech-settings-close:hover { background: #e9e9e9; color: #777; }
.speech-settings-body {
  overflow: auto;
  padding: 20px 26px 22px;
}
.speech-settings-sequence {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.speech-settings-sequence legend,
.speech-settings-list-heading > span:first-child {
  color: #666;
  font-size: 12px;
  font-weight: 600;
}
.speech-settings-sequence-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 9px;
}
.speech-settings-sequence-options button {
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid #e1e1e1;
  border-radius: 11px;
  background: #fff;
  color: #777;
  text-align: left;
  cursor: pointer;
}
.speech-settings-sequence-options button:hover { border-color: #ccc; }
.speech-settings-sequence-options button.is-active {
  border-color: #aaa;
  background: #f7f7f7;
  color: #333;
}
.speech-settings-sequence-options strong,
.speech-settings-sequence-options span { display: block; }
.speech-settings-sequence-options strong { margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.speech-settings-sequence-options span { color: #aaa; font-size: 11px; line-height: 1.45; }
.speech-settings-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.speech-settings-list-heading > span:last-child { color: #aaa; font-size: 10px; }
.speech-settings-track-list { display: grid; gap: 10px; }
.speech-track-card {
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fafafa;
  opacity: .68;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease;
}
.speech-track-card.is-enabled { background: #fff; opacity: 1; }
.speech-track-main {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(145px, 1fr) minmax(135px, .9fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px 12px;
}
.speech-track-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.speech-track-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.speech-track-toggle > span {
  position: relative;
  width: 34px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ddd;
  transition: background .15s ease;
}
.speech-track-toggle > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: transform .15s ease;
}
.speech-track-toggle input:checked + span { background: #999; }
.speech-track-toggle input:checked + span::after { transform: translateX(16px); }
.speech-track-toggle input:focus-visible + span { outline: 2px solid #aaa; outline-offset: 2px; }
.speech-track-toggle strong { font-size: 14px; font-weight: 500; white-space: nowrap; }
.speech-track-language > span,
.speech-track-voice span,
.speech-track-voice strong { display: block; }
.speech-track-language > span,
.speech-track-voice span { margin-bottom: 3px; color: #aaa; font-size: 10px; }
.speech-track-language select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #666;
  font: inherit;
  font-size: 11px;
}
.speech-track-voice span { margin-bottom: 2px; color: #aaa; font-size: 10px; }
.speech-track-voice strong { color: #777; font-size: 11px; font-weight: 400; }
.speech-track-order { display: flex; gap: 5px; }
.speech-track-order button,
.speech-track-stepper button {
  width: 27px;
  height: 27px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #999;
  cursor: pointer;
}
.speech-track-order button:disabled { opacity: .3; cursor: default; }
.speech-track-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 11px 15px 14px;
  border-top: 1px solid #eee;
}
.speech-track-controls > label > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #999;
  font-size: 10px;
}
.speech-track-controls select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #666;
  font: inherit;
  font-size: 11px;
}
.speech-track-stepper {
  display: grid !important;
  grid-template-columns: 27px 38px 27px;
  align-items: center;
}
.speech-track-stepper output {
  text-align: center;
  color: #555;
  font-size: 12px;
}
.speech-settings-error {
  margin: 12px 0 0;
  color: #993300;
  font-size: 11px;
}
.speech-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 26px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}
.speech-settings-footer button {
  min-width: 82px;
  height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.speech-settings-reset,
.speech-settings-cancel { border: 1px solid #ddd; background: #fff; color: #888; }
.speech-settings-apply { border: 1px solid #888; background: #888; color: #fff; }
.speech-settings-apply:disabled { border-color: #ddd; background: #ddd; cursor: default; }
.speech-settings-footer-actions { display: flex; gap: 8px; }

@media (max-width: 680px) {
  .speech-settings-layer { padding: 10px; place-items: end center; }
  .speech-settings-dialog { width: 100%; max-height: calc(100vh - 20px); border-radius: 15px 15px 10px 10px; }
  .speech-settings-header { padding: 20px 18px 15px; }
  .speech-settings-body { padding: 17px 18px 20px; }
  .speech-settings-sequence-options { grid-template-columns: 1fr; }
  .speech-track-main { grid-template-columns: 1fr auto; }
  .speech-track-language { grid-column: 1 / -1; }
  .speech-track-voice { grid-column: 1 / -1; padding-left: 44px; }
  .speech-track-order { grid-column: 2; grid-row: 1; }
  .speech-track-controls { grid-template-columns: 1fr; }
  .speech-settings-footer { padding: 13px 18px 16px; }
}

/* v1.44.4 playback UI refinements */
.mystery-card {
  background: #f0f0f0;
  color: #bbb;
}

.playback-panel-feedback {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.78);
  will-change: opacity, transform;
  pointer-events: none;
}
.playback-panel-feedback.is-visible {
  animation: playback-panel-feedback 920ms both;
}
.playback-panel-feedback-icon {
  display: none;
  width: 42px;
  height: 42px;
}
.playback-panel-feedback-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.playback-panel-feedback.is-play .playback-panel-feedback-play,
.playback-panel-feedback.is-pause .playback-panel-feedback-pause { display: block; }
@keyframes playback-panel-feedback {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.78);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation-timing-function: linear;
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation-timing-function: cubic-bezier(.4, 0, 1, 1);
  }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
}

.playback-panel-more {
  transition: opacity .12s ease, color .12s ease;
}
.country-playback-panel.is-transport-playing .playback-panel-more {
  opacity: 0;
}
.country-playback-panel.is-transport-playing .playback-panel-more:hover,
.country-playback-panel.is-transport-playing .playback-panel-more:focus-visible {
  opacity: 1;
}

.playback-close {
  color: #ddd;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.playback-close.is-paused,
.playback-close:hover,
.playback-close:focus-visible { color: #999; }

.playback-time {
  visibility: visible;
  pointer-events: auto;
  transition: opacity .12s ease;
}
.playback-time.is-visible,
.playback-time:hover { opacity: 1; }

.playback-top-action svg {
  width: 20px;
  height: 20px;
}
.playback-share-action { right: 54px; }
.playback-bookmark-action { right: 5px; }
.playback-settings-action { right: -44px; }

.playback-detail-scale {
  width: 196px;
  height: 56px;
  align-items: center;
}
.playback-detail-step {
  flex: 0 0 30px;
  width: 30px;
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  padding-bottom: 2px;
  line-height: 1;
}
.playback-detail-step svg {
  width: 16px;
  height: 16px;
}
.playback-detail-minus { margin-right: 20px; }
.playback-detail-plus { margin-left: 20px; }
.playback-detail-options {
  height: 52px;
  gap: 0;
}
.playback-detail-option {
  width: 24px;
  height: 52px;
  cursor: pointer;
}
.playback-detail-option::before {
  content: attr(data-detail-label);
  top: 19px;
  bottom: auto;
  color: #aaa;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
}
.playback-detail-option::after {
  top: auto;
  bottom: 10px;
  background: #ccc;
  transform: translate(-50%, 50%);
}
.playback-detail-option.is-active::after {
  width: 5px;
  height: 5px;
  background: #aaa;
}
.playback-detail-option.is-active::before { color: #aaa; opacity: 1; }
.playback-detail-option:hover::after,
.playback-detail-option.is-active:hover::after { background: #999; }

.playback-volume-popover {
  height: 34px;
  padding-left: 3px;
}
.playback-volume-control:hover .playback-volume-popover { width: 41px; }
.playback-volume-range {
  flex-basis: 35px;
  width: 35px;
}

.playback-replay {
  right: 18px;
  width: 38px;
  height: 38px;
}
.playback-replay svg {
  width: 25px;
  height: 25px;
}
.playback-replay.is-ready { color: #ccc; }
.playback-replay.is-ready:hover { color: #bbb; }


/* v1.52.1 homepage and playback refinements */

/* The browser page owns vertical scrolling; the country list is not a scroll container. */
html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d3d3d3 transparent;
}
body {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #d3d3d3;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background-color: #bdbdbd; }
.page-shell {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
.workspace {
  flex: 1 0 auto;
  min-height: calc(100vh - 103px);
  overflow: visible;
}
.content-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-width: none;
  padding-right: 2px;
}
.content-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body.is-playback .page-shell { min-height: 100vh; }
body.is-playback .workspace { min-height: 0; }

/* Brand launcher is fixed; only the 12361.com wordmark moves 20px right. */
.brand-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-10px);
}
.brand-cluster .brand { transform: translateX(20px); }
.brand-apps-icon {
  position: static;
  left: auto;
  top: auto;
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
  color: #c6c6c6;
  transform: none;
}
.brand-apps-icon svg { width: 22px; height: 22px; fill: currentColor; }
.brand-apps-icon:active,
.brand-apps-icon:focus-visible { transform: none; }

/* Share / Bookmark / Settings / Tools occupy the play-card column. */
.topbar-actions {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-actions .plain-icon,
.topbar-actions .text-tool {
  position: static;
  left: auto;
  top: auto;
  margin: 0;
  transform: none;
  justify-self: auto;
  color: #bbb;
}
.topbar-actions .plain-icon:hover,
.topbar-actions .text-tool:hover { color: #999; }
.topbar-actions .topbar-share { justify-content: flex-start; }
.topbar-actions .topbar-share svg { width: 23px; height: 23px; }
.topbar-actions .topbar-bookmark svg { width: 24px; height: 24px; }
.topbar-actions .topbar-settings svg { width: 20px; height: 20px; }
.topbar-actions svg { color: inherit; }
.topbar-actions svg path,
.topbar-actions svg circle { vector-effect: non-scaling-stroke; }
.topbar-actions .text-tool { font-size: 12px; line-height: 28px; }
.topbar-actions .plain-icon:active,
.topbar-actions .text-tool:active { transform: none; color: #777; }
.login-button {
  position: static;
  left: auto;
  top: auto;
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
  transform: none;
}
.login-button:active { transform: translateY(1px); }

/* Playback bookmark is two pixels larger and uses a 1px outline. */
.playback-bookmark-action svg { width: 22px; height: 22px; }
.playback-bookmark-action svg path {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Circular information-level controls, aligned with the four mode dots. */
.playback-detail-step {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  align-self: flex-end;
  margin-bottom: 1px;
  padding: 0;
  border-radius: 50%;
  background: #eee;
  color: #bbb;
  align-items: center;
}
.playback-detail-step:hover,
.playback-detail-step:focus-visible {
  background: #eee;
  color: #999;
}
.playback-detail-step:active {
  background: #eee;
  transform: none;
}
.playback-detail-step svg { width: 14px; height: 14px; }
.playback-detail-option::before { font-size: 14px; }

/* Replay icon remains two pixels smaller without shrinking the click target. */
.playback-replay svg { width: 23px; height: 23px; }

/* Equal gaps: compact SVG arrows followed by equal-width B Box and Maps buttons. */
.playback-side-feature-card {
  display: grid;
  grid-template-columns: 28px 28px repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  align-items: end;
}
.playback-strip-page,
.playback-mini-feature {
  height: 40%;
  min-height: 44px;
  padding: 0 4px;
  color: #bbb;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.playback-strip-page {
  width: 28px;
  min-width: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.playback-strip-page svg { width: 20px; height: 20px; }
.playback-strip-page:hover,
.playback-strip-page:focus-visible {
  border: 0;
  background: transparent;
  color: #777;
}
.playback-strip-page:disabled {
  border: 0;
  background: transparent;
  color: #ddd;
  opacity: 1;
  cursor: default;
}
.playback-mini-feature {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5e3e1;
  border-radius: 6px;
  background: #f0f0f0;
}
.playback-mini-feature:hover { border-color: #d8d6d3; color: #999; }

/* Mode 3 is drawn directly on the green area with a compact left-aligned layout. */
.country-playback-panel.profile-country-intro .playback-intro-card {
  left: 28px;
  right: auto;
  top: 18px;
  width: min(886px, calc(100% - 56px));
  max-width: none;
  height: calc(100% - 36px);
  max-height: none;
  aspect-ratio: auto;
  transform: none;
  padding: 20px 26px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 164px);
  column-gap: 50px;
  justify-content: start;
}
.playback-intro-left {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  justify-items: start;
}
.playback-intro-country-en {
  width: 100%;
  color: #000;
  font-size: 27px;
  font-weight: 800;
  padding-bottom: 1px;
}
.playback-intro-divider {
  width: 53%;
  height: 1px;
  margin: 8px 0;
  background: rgba(0, 0, 0, .24);
}
.playback-intro-country-native {
  width: 100%;
  margin-top: 0;
  color: #999;
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 0;
}
.playback-intro-card .playback-profile-outline {
  width: 100%;
  margin-top: 7px;
  align-items: center;
  justify-content: flex-start;
}
.playback-intro-card .playback-profile-map {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
}
.playback-intro-right {
  width: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 0;
  justify-items: start;
  align-content: start;
  overflow: visible;
}
.playback-intro-flag {
  width: min(163px, 100%);
  max-width: 163px;
  justify-self: start;
}
.playback-intro-section {
  width: 100%;
  justify-self: start;
  text-align: left;
}
.playback-intro-section-capital {
  align-self: end;
  justify-self: start;
  border-top: 0;
  padding: 0 0 10px;
}
.playback-intro-section-code {
  align-self: auto;
  justify-self: start;
  border-top: 1px solid rgba(21, 49, 140, .18);
  padding-top: 8px;
}
.playback-intro-capital-native { margin-top: 8px; color: #555; }


/* v1.52.2 mode 3 map, country navigation and transport feedback refinements */
.country-playback-panel.profile-country-intro .playback-profile-map-world {
  fill: #aaa;
}
.country-playback-panel.profile-country-intro .playback-profile-map-country {
  fill: #ff0000;
}
.country-playback-panel.profile-country-intro .playback-profile-map-boundaries {
  display: none !important;
  visibility: hidden !important;
}
.country-playback-panel.profile-country-intro .playback-profile-map-capital {
  display: none !important;
  visibility: hidden !important;
}
.playback-profile-map-small-country-ring {
  fill: none;
  stroke: #ff0000;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.playback-profile-map-small-country-ring[hidden] {
  display: none !important;
}
.country-playback-panel.profile-country-intro .playback-intro-divider {
  background: transparent;
}
.country-playback-panel.profile-country-intro .playback-intro-right {
  transform: none;
}
.country-playback-panel.profile-country-intro .playback-intro-section-code {
  border-top-color: transparent;
}
.country-playback-panel.profile-country-intro .playback-intro-capital-en,
.country-playback-panel.profile-country-intro .playback-intro-country-code {
  color: #000;
}
.country-playback-panel.profile-country-intro .playback-intro-capital-native {
  color: #999;
}
.country-playback-panel.profile-country-intro .playback-intro-country-code {
  font-size: 18px;
}
