/* Musea Academy — owner view. Cream paper, rose & sage brush, elegant serif. */
:root {
  --paper: #f3eae1; --paper-2: #f8f2ec; --card: rgba(255, 252, 249, .86);
  --ink: #1f1b18; --muted: #75685f; --line: #e6d9cd;
  --rose: #9a4f5a; --rose-2: #b7737c; --rose-soft: #ecccc9;
  --sage: #8fa196; --sage-soft: #d4ddd6;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px; --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(80, 45, 40, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; }
body.paper {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; margin: 0; }
h1 em, h2 em { color: var(--rose); font-style: italic; font-weight: 500; }
.muted, .card__sub { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; letter-spacing: .4px; }

/* ---- brush strokes: an SVG paint texture (ragged edge + bristle streaks), like the logo ---- */
.brush { position: fixed; pointer-events: none; z-index: 0; background-repeat: no-repeat; background-size: 100% 100%; opacity: .8; transform: rotate(-13deg); }
.brush--rose { width: 760px; height: 210px; left: -170px; top: 15%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E %3Cdefs%3E %3Cfilter id='b' x='-10%25' y='-30%25' width='120%25' height='160%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='3' seed='4' result='streak'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='streak' scale='38' xChannelSelector='R' yChannelSelector='G' result='rag'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.35' numOctaves='2' seed='7' result='bristle'/%3E %3CfeColorMatrix in='bristle' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6' result='holes'/%3E %3CfeComposite in='rag' in2='holes' operator='in'/%3E %3C/filter%3E %3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23e3b6b5' stop-opacity='0'/%3E%3Cstop offset='.12' stop-color='%23e3b6b5'/%3E%3Cstop offset='.75' stop-color='%23ecc9c6'/%3E%3Cstop offset='1' stop-color='%23ecc9c6' stop-opacity='.15'/%3E%3C/linearGradient%3E %3C/defs%3E %3Cpath filter='url(%23b)' fill='url(%23g)' d='M30 120 C 140 60, 420 40, 770 70 L 760 150 C 520 170, 260 190, 40 185 Z'/%3E %3C/svg%3E"); }
.brush--sage { width: 620px; height: 170px; right: -190px; bottom: 12%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220'%3E %3Cdefs%3E %3Cfilter id='b' x='-10%25' y='-30%25' width='120%25' height='160%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='3' seed='9' result='streak'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='streak' scale='38' xChannelSelector='R' yChannelSelector='G' result='rag'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.35' numOctaves='2' seed='12' result='bristle'/%3E %3CfeColorMatrix in='bristle' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6' result='holes'/%3E %3CfeComposite in='rag' in2='holes' operator='in'/%3E %3C/filter%3E %3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c3cec7' stop-opacity='0'/%3E%3Cstop offset='.12' stop-color='%23c3cec7'/%3E%3Cstop offset='.75' stop-color='%23d5ddd7'/%3E%3Cstop offset='1' stop-color='%23d5ddd7' stop-opacity='.15'/%3E%3C/linearGradient%3E %3C/defs%3E %3Cpath filter='url(%23b)' fill='url(%23g)' d='M30 120 C 140 60, 420 40, 770 70 L 760 150 C 520 170, 260 190, 40 185 Z'/%3E %3C/svg%3E"); transform: rotate(-16deg); }
.brush--top { top: -30px; left: -150px; opacity: .65; }
.brush--side { bottom: auto; top: 52%; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .brush--rose { animation: drift 18s ease-in-out infinite alternate; }
  .brush--sage { animation: drift2 22s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: rotate(-13deg) translateX(0); } to { transform: rotate(-11deg) translateX(24px); } }
@keyframes drift2 { from { transform: rotate(-16deg) translateX(0); } to { transform: rotate(-14deg) translateX(-24px); } }

/* ---- sign in / trial ended ---- */
.signin { position: relative; z-index: 1; width: min(400px, 100%); background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.signin__logo { width: 210px; height: auto; margin: -6px auto 2px; display: block; }
.signin h1 { font-size: 30px; line-height: 1.1; text-align: center; }
.signin p { margin: 0; text-align: center; }
.signin label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.signin input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; color: var(--ink); }
.signin input:focus { outline: 2px solid var(--rose-2); outline-offset: 1px; border-color: transparent; }
.signin__err { background: #f7e1df; color: #7d2f39; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: 600 15px var(--sans); color: #fff;
  background: var(--rose); border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(154, 79, 90, .8); transition: transform .15s ease, background .2s; }
.btn:hover { background: #87424c; } .btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--rose); border: 1px solid var(--rose-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(154,79,90,.07); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(243, 234, 225, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__logo { height: 44px; width: auto; }
.top__right { display: flex; align-items: center; gap: 12px; }
.pill { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--rose-soft); color: #6e2f39; white-space: nowrap; }
.pill--sage { background: var(--sage-soft); color: #42564a; }
.link { background: none; border: 0; padding: 0; color: var(--rose); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.wrap { position: relative; z-index: 1; width: min(1040px, 100%); margin: 0 auto; padding: 22px 16px 40px; display: grid; gap: 16px; }

/* ---- hero ---- */
.hero { text-align: center; padding: 18px 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 11px; color: var(--rose); margin: 0 0 6px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; }
.hero h1 .num { color: var(--rose); font-style: italic; }
.hero__sub { margin: 10px auto 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.period { display: inline-flex; margin-top: 18px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.period button { font: 500 14px var(--sans); color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.period button.on { background: var(--rose); color: #fff; box-shadow: 0 6px 14px -8px rgba(154,79,90,.9); }

/* ---- filters (folded by default: not everything at once) ---- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.filters__toggle { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 18px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.filters__count { font: 500 12px var(--sans); color: #fff; background: var(--rose); border-radius: 999px; padding: 2px 9px; }
.filters__count:empty { display: none; }
.chev { margin-left: auto; transition: transform .25s; color: var(--muted); }
.filters__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filters__body { padding: 0 18px 16px; display: grid; gap: 12px; }
.filters__body[hidden] { display: none; }
.fgroup h3 { font: 600 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font: 500 13px var(--sans); color: var(--ink); background: #fffdfb; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .2s; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--rose); color: #fff; border-color: var(--rose); transform: translateY(-1px); }
.chip.on small { color: #f6dede; }

/* ---- number tiles ---- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font: 600 36px/1 var(--serif); color: var(--ink); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi--rose b { color: var(--rose); }

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 26px; }
.card__sub { margin: 2px 0 14px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ctile { border-radius: 14px; padding: 14px; background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%); border: 1px solid var(--line); }
.ctile i { font-style: normal; font-size: 20px; }
.ctile b { display: block; font: 600 30px/1.1 var(--serif); margin-top: 4px; }
.ctile span { font-size: 12.5px; color: var(--muted); }
.ctile--top { border-color: var(--rose-2); background: linear-gradient(160deg, #fff 0%, #f6e3e1 100%); }

.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(96px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.bar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__track { height: 12px; background: #efe5dc; border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rose-2), var(--rose)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar--sage .bar__fill { background: linear-gradient(90deg, #b2c0b6, var(--sage)); }
.bar__n { font-weight: 600; min-width: 2ch; text-align: right; }
.empty { color: var(--muted); font-style: italic; font-size: 14px; margin: 0; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.more summary { cursor: pointer; color: var(--rose); font-weight: 500; font-size: 14px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "＋ "; }
.more[open] summary::before { content: "－ "; }
.more > div { margin-top: 12px; }

.best { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.best div { background: #fffdfb; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.best b { display: block; font: 600 20px var(--serif); color: var(--rose); }
.best span { font-size: 12px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; }
.week div { display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--muted); height: 100%; align-content: end; }
.week i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--rose-2), var(--rose)); height: 0; transition: height .9s cubic-bezier(.2,.8,.2,1); }
.week .on i { background: linear-gradient(180deg, #c98d95, #7f3843); }

.foot { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* ---- motion ---- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }
.center .rise { animation: riseIn .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .center .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .bar__fill, .week i { transition: none; }
}

/* ---- phones ---- */
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .top__logo { height: 36px; }
  .pill { font-size: 11px; }
  .card { padding: 16px; }
  .card h2 { font-size: 23px; }
  .brush--rose { width: 380px; }
  .brush--sage { width: 320px; }
}
@media (max-width: 380px) { .top__right .pill { font-size: 10.5px; padding: 4px 8px; } .top__logo { height: 30px; } }

/* ---- section tabs: plain words, no icons ---- */
.views { position: sticky; top: 64px; z-index: 4; display: flex; justify-content: center; gap: 4px; padding: 8px 16px;
  background: rgba(243, 234, 225, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.views a { font: 600 14px var(--sans); color: var(--muted); text-decoration: none; padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.views a.on { color: var(--rose); background: #fffdfb; box-shadow: 0 0 0 1px var(--line); }
.views__n { font-weight: 500; color: var(--rose); margin-left: 2px; }
.views__n:empty { display: none; }
.view[hidden] { display: none !important; }
.view { display: grid; gap: 16px; animation: fadeView .45s ease both; }
@keyframes fadeView { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.filters__hint { margin-left: auto; font: 500 13px var(--sans); color: var(--rose); }
.ctile b { margin-top: 0; }

/* ---- visitors ---- */
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.search { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fffdfb; min-width: 240px; }
.search:focus { outline: 2px solid var(--rose-2); outline-offset: 1px; }
.vsort { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.vsort button { font: 500 13px var(--sans); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.vsort button.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.vlist, .live { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vis { border: 1px solid var(--line); border-radius: 14px; background: #fffdfb; overflow: hidden; transition: box-shadow .25s; }
.vis:hover { box-shadow: 0 8px 22px -16px rgba(80, 45, 40, .45); }
.vis__top { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 13px 15px; display: grid;
  grid-template-columns: 1fr auto; gap: 4px 12px; font: inherit; color: inherit; }
.vis__who { font-weight: 600; font-size: 15px; }
.vis__ip { font: 500 13px ui-monospace, Consolas, monospace; color: var(--muted); }
.vis__meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.vis__when { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.vis__tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #6e2f39; background: var(--rose-soft); border-radius: 999px; padding: 2px 9px; margin-right: 6px; }
.vis__tag--sage { color: #42564a; background: var(--sage-soft); }
.vis__body { padding: 0 15px 14px; }
.vis__body[hidden] { display: none; }
.vis__devs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.path { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--rose-soft); display: grid; gap: 7px; }
.path li { position: relative; font-size: 14px; }
.path li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fffdfb; border: 2px solid var(--rose-2); }
.path li.contact { font-weight: 600; color: var(--rose); }
.path li.contact::before { background: var(--rose); border-color: var(--rose); }
.path time { font: 500 12px ui-monospace, Consolas, monospace; color: var(--muted); margin-right: 8px; }
.path .day { list-style: none; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 6px 0 0 -14px; }
.path .day::before { display: none; }
.vmore { margin: 14px auto 0; display: flex; }

/* ---- live ---- */
.live li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fffdfb; border: 1px solid var(--line); font-size: 14px; }
.live li.new { animation: liveIn .7s cubic-bezier(.2,.8,.2,1) both; }
.live li.contact { border-color: var(--rose-2); background: linear-gradient(90deg, #f8e6e4, #fffdfb 60%); }
@keyframes liveIn { from { opacity: 0; transform: translateX(-12px); background: #f6e3e1; } to { opacity: 1; transform: none; } }
.live time { font: 500 13px ui-monospace, Consolas, monospace; color: var(--muted); }
.live b { font-weight: 600; }
.live small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 760px) {
  .views { top: 56px; }
  .search { min-width: 0; width: 100%; }
  .live li { grid-template-columns: 1fr; gap: 2px; }
}
.sub3 { font-size: 18px; margin: 14px 0 8px; } .sub3:first-child { margin-top: 0; }
.path .muted { font-size: 12.5px; }

/* =====================================================================
   v2 — more breathing room everywhere
   ===================================================================== */
.wrap { gap: 32px; padding: 34px 20px 64px; }
.view { gap: 32px; }
.hero { padding: 26px 0 10px; }
.hero__sub { margin-top: 14px; line-height: 1.6; }
.period { margin-top: 26px; }
.card { padding: 30px 32px; border-radius: 22px; }
.card h2 { margin-bottom: 4px; }
.card__sub { margin: 4px 0 24px; line-height: 1.55; }
.grid2 { gap: 32px; }
.kpis { gap: 20px; }
.kpi { padding: 22px 22px 20px; border-radius: 20px; }
.kpi b { margin-bottom: 8px; }
.bars { gap: 16px; }
.bar { gap: 14px; }
.contacts { gap: 16px; }
.ctile { padding: 18px; border-radius: 16px; }
.more { margin-top: 24px; padding-top: 16px; }
.more > div { margin-top: 20px; }
.filters__toggle { padding: 18px 24px; }
.filters__body { padding: 4px 24px 22px; gap: 20px; }
.chips { gap: 9px; }
.best { gap: 16px; margin-bottom: 24px; }
.best div { padding: 14px 16px; }
.vtools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 22px; }
.vtools .vsort { margin: 0; }
.vlist { gap: 16px; }
.vis__top { padding: 18px 20px; gap: 8px 16px; }
.live { gap: 12px; }
.live li { padding: 14px 16px; }
.foot { margin-top: 12px; }
@media (max-width: 760px) {
  .wrap { gap: 24px; padding: 24px 14px 48px; }
  .view { gap: 24px; }
  .card { padding: 22px 18px; }
  .grid2 { gap: 24px; }
  .kpis { gap: 12px; }
}

/* ---- day-by-day chart ---- */
.trend { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 5px; height: 190px; padding-top: 10px; }
.tcol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.tbar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--rose-soft); height: 0; transition: height .9s cubic-bezier(.2,.8,.2,1); position: relative; }
.tbar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: inherit; background: var(--rose); height: 0; transition: height 1.1s cubic-bezier(.2,.8,.2,1) .2s; }
.tcol:hover .tbar { background: #e2b3b2; }
.tcol .tip { position: absolute; bottom: 100%; margin-bottom: 6px; white-space: nowrap; font-size: 12px; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.tcol:hover .tip { opacity: 1; }
.tlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.legend { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--rose-soft); }
.legend span.dark::before { background: var(--rose); }

/* ---- advice ---- */
.advice { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.advice li { padding: 14px 18px; border-left: 3px solid var(--rose); background: #fffdfb; border-radius: 0 14px 14px 0; line-height: 1.55; }
.advice b { color: var(--rose); }

/* =====================================================================
   ONE VISITOR — full page with a flowchart of each visit
   ===================================================================== */
.detail { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background-color: var(--paper);
  background-image: inherit; animation: detailIn .4s cubic-bezier(.2,.8,.2,1) both; }
.detail[hidden] { display: none; }
@keyframes detailIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.detail__bar { position: sticky; top: 0; z-index: 2; padding: 16px 24px; background: rgba(243,234,225,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.detail__bar .link { font-size: 15px; }
.detail__wrap { width: min(1100px, 100%); margin: 0 auto; padding: 36px 20px 80px; display: grid; gap: 36px; }
.dhead h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.dhead p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dhead .ip { font: 500 14px ui-monospace, Consolas, monospace; color: var(--ink); background: #fffdfb; border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.facts b { display: block; font: 600 30px/1.1 var(--serif); }
.facts span { font-size: 13px; color: var(--muted); }
.facts .hot b { color: var(--rose); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.dside { display: grid; gap: 28px; position: sticky; top: 80px; }

.visit { margin-bottom: 40px; }
.visit:last-child { margin-bottom: 0; }
.visit__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 20px; }
.visit__head h3 { font-size: 24px; }
.visit__head span { font-size: 13px; color: var(--muted); }
.flow { display: flex; flex-direction: column; align-items: stretch; max-width: 520px; }
.node { position: relative; border: 1px solid var(--line); background: #fffdfb; border-radius: 16px; padding: 14px 18px; box-shadow: 0 6px 18px -14px rgba(80,45,40,.5);
  opacity: 0; transform: translateY(10px); animation: nodeIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
.node b { display: block; font-weight: 600; font-size: 15px; }
.node small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.node--start { background: linear-gradient(135deg, #eef2ef, #fffdfb); border-color: #c5d0c8; }
.node--start b { font-family: var(--serif); font-size: 20px; }
.node--contact { background: linear-gradient(135deg, var(--rose), #b05c68); border-color: var(--rose); color: #fff; }
.node--contact small { color: #f6dede; }
.node--end { background: transparent; border-style: dashed; box-shadow: none; color: var(--muted); }
.node--end b { font-weight: 500; font-size: 14px; }
.arrow { position: relative; height: 34px; margin-left: 34px; width: 2px; background: var(--rose-2); transform-origin: top; transform: scaleY(0); animation: arrowIn .35s ease forwards; }
.arrow::after { content: ""; position: absolute; left: -5px; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--rose-2); }
.arrow em { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
@keyframes nodeIn { to { opacity: 1; transform: none; } }
@keyframes arrowIn { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .node, .arrow { animation: none; opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .dgrid { grid-template-columns: 1fr; }
  .dside { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
}
.vis__top { position: relative; }
.vis__open { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--rose); margin-top: 4px; }

/* ---- insights: demand table ---- */
.demand { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 14.5px; }
.demand th { text-align: left; font: 600 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; padding: 0 14px 4px; }
.demand td { background: #fffdfb; padding: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demand td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.demand td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 13px; }
.demand .rate { font-weight: 600; color: var(--rose); }
@media (max-width: 760px) { .demand th:nth-child(4), .demand td:nth-child(4) { display: none; } }

/* ---- explore ---- */
.xlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; background: #fffdfb; border: 1px solid var(--line); border-radius: 14px; }
.xrow time { font: 500 13px ui-monospace, Consolas, monospace; color: var(--muted); line-height: 1.4; }
.xrow b { font-weight: 600; }
.xrow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.xrow.contact { border-color: var(--rose-2); background: linear-gradient(90deg, #f8e6e4, #fffdfb 55%); }
.xrow .link { white-space: nowrap; }
@media (max-width: 760px) { .xrow { grid-template-columns: 1fr; gap: 6px; } }
.tbar--dark { background: var(--rose); }
.foot a { color: var(--rose); }
