:root {
  --accent: #f5b544;
  --bg: #0b0b0f;
  --glass: rgba(18, 18, 24, .62);
  --glass-2: rgba(28, 28, 36, .82);
  --line: rgba(255, 255, 255, .12);
  --tx: #f4f2ee;
  --tx2: rgba(244, 242, 238, .66);
  --r: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font: 14px/1.45 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; }
#c { width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
#c:active { cursor: grabbing; }
body.measuring #c { cursor: crosshair; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; color: #fff; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 22%, #1b1a22), #070709 72%); transition: opacity .8s ease; }
body[data-theme="light"] .loader { color: #2b2027; background: radial-gradient(ellipse at 50% 40%, #fff, color-mix(in srgb, var(--accent) 22%, #f7f1f3) 78%); }
body[data-theme="light"] .ld-ring .bg { stroke: rgba(0, 0, 0, .08); }
body[data-theme="light"] .ld-sub { color: #6d5c65; }
.loader.done { opacity: 0; pointer-events: none; }
.ld-box { text-align: center; }
.ld-ring { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.ld-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ld-ring circle { stroke-width: 3; }
.ld-ring .bg { stroke: rgba(255,255,255,.08); }
.ld-ring .fg { stroke: var(--accent); stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transition: stroke-dashoffset .25s; }
.ld-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; letter-spacing: .5px; color: var(--accent); }
.ld-title { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.ld-sub { color: rgba(255, 255, 255, .72); font-size: 13.5px; margin-top: 6px; min-height: 1.4em; }

/* ---------- top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; padding: max(14px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); max-width: min(520px, 60vw); }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #fff1; }
.brand > div { padding-left: 6px; }
.t-title { font-weight: 650; font-size: 15px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; gap: 8px; }
.ib { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); display: grid; place-items: center; transition: background .15s, transform .15s; }
.ib:hover { background: var(--glass-2); }
.ib svg { width: 20px; height: 20px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 48px; min-width: 180px; padding: 6px; border-radius: 12px; background: var(--glass-2); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 12px 40px #0008; }
.menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--tx2); padding: 6px 10px; }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; }
.menu button:hover { background: #fff1; }
.menu button.on { color: var(--accent); }
.menu button.on::after { content: "✓"; float: right; }

/* ---------- caption (thuyết minh điểm dừng) ---------- */
.caption { position: fixed; left: 50%; bottom: 196px; transform: translateX(-50%); z-index: 9; max-width: min(560px, 90vw); padding: 14px 18px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line); text-align: center; animation: capIn .5s ease; pointer-events: none; }
.cap-step { font-size: 11px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.cap-title { font-size: 17px; font-weight: 650; margin-top: 2px; }
.cap-text { color: var(--tx2); margin-top: 4px; white-space: pre-line; }
.cap-text:empty { display: none; }
@keyframes capIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- bottom: stops + dock ---------- */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px max(14px, env(safe-area-inset-bottom)); pointer-events: none; }
.bottom > * { pointer-events: auto; }
.stops { display: flex; gap: 8px; max-width: min(980px, 100%); overflow-x: auto; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); scrollbar-width: none; scroll-behavior: smooth; transition: opacity .25s, transform .25s; }
.stops.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
.stops:empty { display: none; }
.stop { position: relative; flex: 0 0 132px; height: 82px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #222 center/cover; transition: border-color .2s, transform .2s; }
.stop:hover { transform: translateY(-2px); }
.stop.on { border-color: var(--accent); }
.stop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000c); }
.stop .n { position: absolute; top: 5px; left: 6px; z-index: 1; font-size: 11px; font-weight: 700; background: #000a; border-radius: 6px; padding: 1px 6px; }
.stop .nm { position: absolute; left: 7px; right: 7px; bottom: 5px; z-index: 1; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); z-index: 2; }
.stop .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; opacity: .25; }
.dock { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 40px #0006; }
.db { height: 40px; min-width: 40px; border: 0; border-radius: 11px; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; transition: background .15s; }
.db:hover { background: #ffffff14; }
.db.on { background: #ffffff1f; color: var(--accent); }
.db svg { width: 20px; height: 20px; }
.db.play { background: var(--accent); color: #17130a; font-weight: 650; padding: 0 16px 0 12px; }
.db.play:hover { filter: brightness(1.08); background: var(--accent); }
.db.play svg { fill: currentColor; stroke: none; }
.db.play .i-pause { display: none; stroke: currentColor; stroke-width: 3; fill: none; }
.db.play.playing .i-play { display: none; }
.db.play.playing .i-pause { display: block; }
.sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.seg { display: flex; background: #0004; border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 11px; border-radius: 8px; font-size: 13px; color: var(--tx2); }
.seg button.on { background: #ffffff22; color: var(--tx); }

/* ---------- minimap ---------- */
.minimap { position: fixed; right: 16px; top: 76px; z-index: 9; width: 260px; max-height: 46vh; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); overflow: hidden; transition: width .3s ease; }
.minimap.big { width: min(640px, 70vw); max-height: min(75vh, calc(100vh - 290px)); }
.minimap.empty, .minimap.off { display: none; }
.mm-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 8px 5px 12px; font-size: 12px; color: var(--tx2); font-weight: 600; letter-spacing: .3px; }
.mm-x { border: 0; background: #fff1; border-radius: 7px; width: 26px; height: 24px; }
.mm-body { padding: 0 8px 8px; display: grid; place-items: center; }
.mm-canvas { display: block; border-radius: 9px; cursor: pointer; background: #0006; max-width: 100%; }

/* ---------- scene tabs ---------- */
.scene-tabs { position: fixed; left: 16px; top: 82px; z-index: 9; display: flex; flex-direction: column; gap: 6px; }
.scene-tabs button { text-align: left; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 11px; padding: 8px 12px; font-size: 13px; }
.scene-tabs button.on { border-color: var(--accent); color: var(--accent); }

/* ---------- hotspots ---------- */
.hs-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hs { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(var(--s, 1)); pointer-events: auto; border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.hs-dot { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--hs) 88%, #000); color: #111; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 3px #fff, 0 6px 18px #0009; transition: transform .2s; }
.hs-dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--hs); opacity: .0; animation: pulse 2.4s ease-out infinite; pointer-events: none; }
.hs:hover .hs-dot, .hs.active .hs-dot { transform: scale(1.14); }
.hs-label { position: relative; left: -2px; padding: 5px 10px; border-radius: 9px; background: var(--glass-2); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--tx); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hs-label:empty, .hs.nolabel .hs-label { display: none; }
.hs.nolabel:hover .hs-label { display: block; }
.hs.occluded { opacity: .28; }
.hs.occluded .hs-dot::before { animation: none; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- popup ---------- */
.popup { position: fixed; right: 16px; top: 76px; bottom: 150px; z-index: 20; width: min(400px, calc(100vw - 32px)); border-radius: 18px; overflow: auto; background: var(--glass-2); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 20px 60px #000a; animation: ppIn .35s cubic-bezier(.2,.9,.3,1.2); height: fit-content; max-height: calc(100vh - 230px); }
@keyframes ppIn { from { opacity: 0; transform: translateX(16px) scale(.98); } }
.pp-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #000a; font-size: 20px; line-height: 1; }
.pp-media img, .pp-media video { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.pp-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.pp-media:empty { display: none; }
.pp-body { padding: 16px 18px 18px; }
.pp-kind { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.pp-body h3 { margin: 4px 0 8px; font-size: 19px; padding-right: 30px; }
.pp-text { color: var(--tx2); white-space: pre-line; }
.pp-text:empty { display: none; }
.pp-price { margin-top: 10px; font-size: 18px; font-weight: 700; color: var(--accent); }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pp-actions:empty { display: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #ffffff10; text-decoration: none; color: var(--tx); font-weight: 600; font-size: 13px; }
.btn:hover { background: #ffffff1c; }
.btn.pri { background: var(--accent); color: #17130a; border-color: transparent; }

/* ---------- sheets ---------- */
.sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; width: min(560px, calc(100vw - 28px)); max-height: 80vh; overflow: auto; padding: 22px; border-radius: 18px; background: var(--glass-2); backdrop-filter: blur(22px); border: 1px solid var(--line); box-shadow: 0 30px 80px #000c; animation: capIn .3s ease; }
.sheet.small { width: min(460px, calc(100vw - 28px)); }
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.sheet h4 { margin: 16px 0 8px; font-size: 13px; color: var(--tx2); font-weight: 600; }
.copyrow { display: flex; gap: 8px; }
.copyrow input, .copyrow textarea { flex: 1; min-width: 0; background: #0006; border: 1px solid var(--line); color: var(--tx); border-radius: 9px; padding: 9px 10px; font: 12px/1.4 ui-monospace, Consolas, monospace; resize: none; }
.copyrow button { border: 0; border-radius: 9px; padding: 0 14px; background: var(--accent); color: #17130a; font-weight: 650; }
.chk { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--tx2); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.help-grid div { display: flex; flex-direction: column; }
.help-grid b { font-size: 13px; }
.help-grid span { color: var(--tx2); font-size: 12.5px; }
.info-hero { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.info-sub { color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.info-desc { color: var(--tx2); white-space: pre-line; }
.info-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.info-list li { display: flex; gap: 10px; align-items: baseline; }
.info-list b { min-width: 76px; color: var(--tx2); font-weight: 500; font-size: 12.5px; }
.info-list a { color: var(--accent); }
.info-stops { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.info-stops button { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #ffffff0a; font-size: 13px; }

/* ---------- toast / tap ---------- */
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 60; padding: 9px 16px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(14px); font-weight: 600; animation: capIn .25s; }
.tapfx { position: fixed; z-index: 8; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid #fff; pointer-events: none; opacity: 0; }
.tapfx.go { animation: tap .6s ease-out; }
@keyframes tap { 0% { opacity: .9; transform: scale(.4) perspective(200px) rotateX(55deg); } 100% { opacity: 0; transform: scale(1.4) perspective(200px) rotateX(55deg); } }

/* ---------- measure ---------- */
.measure-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.measure-layer line { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.measure-layer circle { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.measure-layer .lbl rect { fill: #111d; stroke: var(--accent); stroke-width: 1; }
.measure-layer .lbl text { fill: #fff; font: 600 13px var(--font); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .brand { max-width: calc(100vw - 196px); padding: 6px 10px 6px 6px; }
  .brand img { width: 30px; height: 30px; }
  .tb-right { gap: 6px; }
  .ib { width: 38px; height: 38px; }
  .menu { right: -44px; }
  .minimap { top: auto; bottom: 214px; right: 10px; width: 150px; }
  .minimap.big { width: calc(100vw - 20px); }
  .dock { gap: 0; padding: 4px; }
  .db { min-width: 36px; padding: 0 7px; }
  .db.play span, #bHelp, #bReset { display: none; }
  .seg button { padding: 7px 7px; font-size: 12px; white-space: nowrap; }
  .minimap { top: 66px; bottom: auto; width: 46vw; max-height: 38vh; }
  .stop { flex-basis: 104px; height: 66px; }
  .caption { bottom: 178px; }
  .popup { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 70vh; }
  .scene-tabs { top: 70px; left: 10px; }
}
@media (max-width: 420px) { #bMeasure { display: none; } }

/* ======================================================================
   BỐ CỤC TUỲ BIẾN (tour.settings.layout → body[data-*])
   ====================================================================== */
/* tiêu đề */
body[data-title="off"] .brand { visibility: hidden; }

/* dải điểm dừng: bên trái (máy tính / iPad ngang) */
@media (min-width: 900px) {
  body[data-stops="side"] .stops { position: fixed; left: 16px; top: 84px; bottom: 92px; flex-direction: column; max-width: none; width: 172px; overflow-y: auto; overflow-x: hidden; }
  body[data-stops="side"] .stop { flex: 0 0 96px; width: 100%; }
  body[data-stops="side"] .caption { bottom: 108px; }
  body[data-stops="side"] .scene-tabs { left: 204px; }
  body[data-stops="side"][data-map="top-left"] .minimap { left: 204px; }
}
/* dải điểm dừng: ẩn mặc định (bấm nút để hiện) */
body[data-stops="hidden"] .stops:not(.force) { display: none; }
body[data-stops="hidden"] .caption { bottom: 96px; }

/* sơ đồ */
body[data-map="top-left"] .minimap { right: auto; left: 16px; }
body[data-map="top-left"] .scene-tabs { top: auto; bottom: 200px; }
body[data-map="bottom-left"] .minimap { right: auto; left: 16px; top: auto; bottom: 200px; }
body[data-map="off"] .minimap:not(.force) { display: none; }

/* thanh điều khiển gọn */
body[data-dock="compact"] .db.play span, body[data-dock="compact"] #bHelp, body[data-dock="compact"] #bReset, body[data-dock="compact"] #bMeasure, body[data-dock="compact"] .sep:last-of-type { display: none; }
body[data-dock="compact"] .db.play { padding: 0 12px; }

/* giao diện sáng */
body[data-theme="light"] {
  --glass: rgba(255, 255, 255, .74);
  --glass-2: rgba(255, 255, 255, .92);
  --line: rgba(0, 0, 0, .1);
  --tx: #1d1c22;
  --tx2: rgba(29, 28, 34, .62);
}
body[data-theme="light"] .seg { background: #0000000d; }
body[data-theme="light"] .seg button.on { background: #fff; box-shadow: 0 1px 4px #0002; }
body[data-theme="light"] .db:hover { background: #0000000d; }
body[data-theme="light"] .db.on { background: #00000012; }
body[data-theme="light"] .stop .n, body[data-theme="light"] .stop .nm { color: #fff; }
body[data-theme="light"] .pp-x { background: #fffd; color: #222; }
body[data-theme="light"] .hs-label { color: var(--tx); }
body[data-theme="light"] .menu button:hover { background: #0000000d; }
body[data-theme="light"] .copyrow input, body[data-theme="light"] .copyrow textarea { background: #0000000a; }

/* điện thoại: luôn đưa dải điểm dừng xuống dưới, gọn lại */
@media (max-width: 720px) {
  #bGyro { order: -1; }
  .stops { max-width: 100%; }
  .bottom { gap: 8px; }
}
/* iPad dọc / ngang */
@media (min-width: 721px) and (max-width: 1100px) {
  .minimap { width: 220px; }
  .stop { flex-basis: 118px; height: 74px; }
}

/* ---------- ảnh gốc rõ nét trong popup + lightbox ---------- */
.pp-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.pp-photo img { display: block; width: 100%; height: 230px; object-fit: cover; }
.pp-zoom { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: #000b; color: #fff; font-size: 12.5px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8, 8, 10, .96); animation: lbIn .2s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; }
.lb-stage:active { cursor: grabbing; }
.lb-stage img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-top { position: absolute; left: 16px; top: max(14px, env(safe-area-inset-top)); right: 220px; color: #fff; display: flex; flex-direction: column; gap: 2px; pointer-events: none; text-shadow: 0 1px 4px #000; }
.lb-top #lbCap { font-weight: 650; font-size: 15px; }
.lb-hint { font-size: 12px; opacity: .75; }
.lb-tools { position: absolute; right: 14px; top: max(12px, env(safe-area-inset-top)); display: flex; gap: 6px; }
.lb-tools button, .lb-nav { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #ffffff2a; background: #1d1d22cc; color: #fff; font-size: 22px; line-height: 1; backdrop-filter: blur(8px); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; font-size: 34px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
body.lb-open .topbar, body.lb-open .bottom, body.lb-open .minimap { visibility: hidden; }
@media (max-width: 720px) { .lb-top { right: 16px; top: 64px; } .lb-hint { display: none; } .pp-photo img { height: 180px; } }

/* ---------- tour ảnh 360 ---------- */
.hs[data-type="nav"] { gap: 0; }
.hs[data-type="nav"] .hs-dot { width: 54px; height: 54px; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 6px 22px #0007; transform: scaleY(.45); color: transparent; backdrop-filter: blur(2px); }
.hs[data-type="nav"] .hs-dot::before { border-color: #fff; }
.hs[data-type="nav"]:hover .hs-dot { background: color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1.12, .5); }
.hs[data-type="nav"] .hs-label { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); display: none; }
.hs[data-type="nav"]:hover .hs-label { display: block; }
.stop .zn { position: absolute; top: 5px; right: 6px; z-index: 1; font-size: 10px; font-weight: 700; background: var(--accent); color: #17130a; border-radius: 6px; padding: 1px 6px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.soon { opacity: .55; font-style: italic; }
