/* Metric strip: a row of columns, each with a label, a big number, its change and a small area chart with the
   period's high and low on the right. Websites page (one card per website) and the website dashboard's KPI row. */
.ms-strip{display:grid;grid-template-columns:repeat(var(--ms-cols,5),minmax(168px,1fr));overflow-x:auto;scrollbar-width:thin}
.ms-strip>*{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 18px 12px;border-left:1px solid #ececec;text-align:left}
.ms-strip>*:first-child{border-left:0}
.ms-label,.ms-strip .ov3-kpi-label{color:#000;font-size:13px;font-weight:500;line-height:1.3}
.ms-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;min-height:34px}
.ms-value strong{color:#000;font-size:26px;font-weight:600;letter-spacing:-.02em;line-height:1.2;font-variant-numeric:tabular-nums}
.ms-delta{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ms-delta.up{color:#000}
.ms-delta.down{color:#d92d20}
.ms-note{color:#6b6b6b;font-size:12px;line-height:1.4}
.ms-note .up{color:#000;font-weight:600}
.ms-note .down{color:#d92d20;font-weight:600}
.ms-chart{display:flex;align-items:stretch;gap:6px;height:52px;margin-top:auto;padding-top:8px;color:#000}
.ms-chart svg{flex:1 1 auto;min-width:0;width:100%;height:100%;overflow:visible}
.ms-chart.is-empty{visibility:hidden}
.ms-axis{display:flex;flex-direction:column;justify-content:space-between;flex:0 0 auto;min-width:26px;color:#8a8a8a;font-size:10.5px;line-height:1;text-align:right;font-variant-numeric:tabular-nums}
.ms-axis b{font-weight:500}
.ms-strip .is-quiet .ms-note{margin-top:auto}

/* Websites page: a compact header and one full-width project card per website. */
.ws-projects .ws-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:4px}
.ws-projects .ws-head h1{margin:0;color:#000;font-size:28px;font-weight:650;letter-spacing:-.02em}
.ws-projects .ws-head p{margin:4px 0 0;color:#6b6b6b;font-size:14px}
.ws-projects .ws-portfolio{margin-top:18px}
.ws-projects .ws-site-grid.ws-project-list{display:flex;flex-direction:column;gap:14px}
.ws-projects .ws-site-card.ws-project{display:block;padding:0;border:1px solid #e5e5e5;border-radius:12px;background:#fff;box-shadow:none;overflow:hidden}
.ws-projects .ws-site-card.ws-project:hover{border-color:#cfcfcf;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.ws-projects .ws-site-card.ws-project.is-selected{border-color:#000}
.ws-projects .ws-project .ws-card-heading{display:flex;align-items:center;gap:12px;margin:0;padding:14px 18px;border-bottom:1px solid #ececec}
.ws-projects .ws-project .ws-site-mark{flex:0 0 auto;width:38px;height:38px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#000;font-size:13px;font-weight:700}
.ws-projects .ws-project .ws-site-identity{flex:1 1 auto;min-width:0}
.ws-projects .ws-project .ws-site-identity h2{margin:0;font-size:17px;font-weight:650}
.ws-projects .ws-project .ws-site-identity h2 button{padding:0;border:0;background:none;color:#000;font:inherit;cursor:pointer;text-align:left}
.ws-projects .ws-project .ws-site-identity h2 button:hover{text-decoration:underline}
.ws-projects .ws-project .ws-site-identity p{margin:2px 0 0;color:#6b6b6b;font-size:13px}
.ws-projects .ws-project .ws-card-actions{display:flex;flex:0 0 auto;gap:8px;margin:0}
.ws-projects .ws-project .ws-status{flex:0 0 auto}
.ws-projects .ws-range{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #e5e5e5;border-radius:999px;background:#fff}
.ws-projects .ws-range span{padding:0 8px;color:#6b6b6b;font-size:12.5px}
.ws-projects .ws-range button{padding:5px 11px;border:0;border-radius:999px;background:none;color:#000;font-size:12.5px;font-weight:600;cursor:pointer}
.ws-projects .ws-range button.is-current{background:#000;color:#fff}
.ws-projects .ws-source-note a{margin-left:4px;color:#000}

/* Websites page: eight columns per website, scrolling sideways on narrow screens like a project overview. */
.ws-projects .ws-project .ms-strip{--ms-cols:8;grid-template-columns:repeat(8,minmax(150px,1fr))}
.ws-projects .ws-project .ms-value{flex-wrap:nowrap;gap:6px}
.ws-projects .ws-project .ms-value strong{font-size:24px}
.ms-value strong small{margin-left:1px;color:#8a8a8a;font-size:15px;font-weight:500}
.ms-gauge{display:block;height:6px;margin-top:auto;margin-bottom:6px;border-radius:999px;background:#ececec;overflow:hidden}
.ms-gauge i{display:block;height:100%;border-radius:inherit;background:#000}
.ws-projects .ws-folders{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.ws-projects .ws-folders button{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #e5e5e5;border-radius:999px;background:#fff;color:#000;font-size:13px;font-weight:600;cursor:pointer}
.ws-projects .ws-folders button span{color:#8a8a8a;font-weight:500}
.ws-projects .ws-folders button.is-current{border-color:#000;background:#000;color:#fff}
.ws-projects .ws-folders button.is-current span{color:#cfcfcf}
.ws-projects .ws-folders .ic{width:14px;height:14px}
.ws-projects .ws-icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#8a8a8a;cursor:pointer}
.ws-projects .ws-icon-btn:hover{border-color:#000;color:#000}
.ws-projects .ws-icon-btn.is-on{color:#000}
.ws-projects .ws-icon-btn.is-on .ic{fill:currentColor}
.ws-projects .ws-icon-btn .ic{width:16px;height:16px}
.ws-projects .ws-folder-tag{display:inline-flex;align-items:center;gap:4px;margin-left:10px;padding:1px 8px;border:1px solid #e5e5e5;border-radius:999px;color:#525252;font-size:12px}
.ws-projects .ws-folder-tag .ic{width:12px;height:12px}

/* Website dashboard: the KPI row as one card of columns; the picked metric gets a black underline. */
.pg-overview.ov3 .ov3-kpis.ms-strip{--ms-cols:4;display:grid;gap:0;border:1px solid #e5e5e5;border-radius:12px;background:#fff}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi{position:relative;min-height:0;margin:0;padding:16px 20px 14px;border:0;border-left:1px solid #ececec;border-radius:0;background:none;box-shadow:none;transform:none;font:inherit;color:inherit}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi:first-child{border-left:0;border-radius:12px 0 0 12px}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi:last-child{border-radius:0 12px 12px 0}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi.is-pick:hover{background:#fafafa;transform:none}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi.is-current{box-shadow:inset 0 -3px 0 #000}
.pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi-value{font-family:inherit;font-size:28px}
.pg-overview.ov3 .ov3-kpis.ms-strip .ms-chart{height:56px}

@media(max-width:1100px){
  .pg-overview.ov3 .ov3-kpis.ms-strip{--ms-cols:2}
  .pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi:nth-child(3){border-left:0}
  .pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi:nth-child(n+3){border-top:1px solid #ececec}
  .pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi{border-radius:0}
}
@media(max-width:700px){
  .ws-projects .ws-project .ws-card-heading{flex-wrap:wrap}
  .ws-projects .ws-project .ws-status{order:3}
  .ws-projects .ws-project .ws-card-actions{order:4;width:100%}
  .ws-projects .ws-head{align-items:flex-start;flex-direction:column}
  .ms-strip>*{padding:12px 14px}
  .ms-value strong{font-size:22px}
  .pg-overview.ov3 .ov3-kpis.ms-strip .ov3-kpi-value{font-size:22px}
}

/* Dashboard (all projects): header, a row of totals, filter chips, then one card per website (List) or a cover grid. */
.wd-page{display:block}
.wd-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.wd-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin-top:18px;border-radius:3px;background:#fff;overflow:hidden}
.wd-kpi{display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 16px;border:0;border-left:1px solid #e9ebee;background:none;font:inherit;text-align:left}
.wd-kpi:first-child{border-left:0}
.wd-kpi small{color:rgba(0,0,0,.52);font-size:12.5px}
.wd-kpi strong{color:#333;font-size:22px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25}
.wd-kpi em{color:rgba(0,0,0,.52);font-size:12px;font-style:normal}
.wd-kpi em.up,.wd-kpi.is-up strong{color:#008a43}
.wd-kpi em.down,.wd-kpi.is-down strong{color:#cf0000}
button.wd-kpi{cursor:pointer}
button.wd-kpi strong{color:#a35a00}
button.wd-kpi em{display:inline-flex;align-items:center;gap:4px;color:#1d4ed8}
button.wd-kpi em .ic{width:12px;height:12px}
button.wd-kpi:hover,button.wd-kpi.is-current{background:#f3faf6}
.wd-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.wd-search{display:flex;align-items:center;gap:8px;width:240px;max-width:100%;padding:6px 10px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#8a8a8a}
.wd-search input{flex:1;min-width:0;border:0;outline:0;background:none;color:#000;font:inherit;font-size:13.5px}
.wd-search .ic{width:15px;height:15px}
.wd-filters nav{display:flex;flex-wrap:wrap;gap:6px}
.wd-filters nav button{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1px solid rgba(0,0,0,.15);border-radius:100px;background:#fff;color:#333;font-size:13.5px;cursor:pointer}
.wd-filters nav button em{color:rgba(0,0,0,.52);font-style:normal;font-size:12.5px}
.wd-filters nav button .ic{width:14px;height:14px}
.wd-filters nav button.is-current{border-color:#2e3c56;background:#2e3c56;color:#fff}
.wd-filters nav button.is-current em{color:rgba(255,255,255,.75)}
.wd-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0 12px}
.wd-tabs{display:flex}
.wd-tabs button{padding:5px 12px;border:1px solid #ccc;background:#fff;color:#333;font-size:14px;cursor:pointer}
.wd-bar-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wd-layout{display:inline-flex}
.wd-layout button{display:inline-flex;align-items:center;gap:6px;margin-left:-1px;padding:5px 10px;border:1px solid #ccc;background:#fff;color:#333;font-size:13.5px;cursor:pointer}
.wd-layout button:first-child{margin-left:0;border-radius:3px 0 0 3px}
.wd-layout button:last-child{border-radius:0 3px 3px 0}
.wd-layout button.is-current{position:relative;border-color:#bfe3d0;background:#e8f5ee}
.wd-layout .ic{width:15px;height:15px}
.wd-select{display:inline-flex;align-items:center;gap:6px;padding:0 4px 0 10px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#6b6b6b;font-size:13px}
.wd-select select{padding:5px 6px;border:0;background:none;color:#000;font:inherit;cursor:pointer}

/* Covers: the website's sharing image with its icon in the corner. */
.wd-cover{position:relative;display:block;flex:0 0 auto;overflow:hidden;border-radius:3px;background:#f1f3f5;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.wd-cover>img:first-child{display:block;width:100%;height:100%;object-fit:cover}
.wd-cover .wd-favicon{position:absolute;left:4px;bottom:4px;width:20px;height:20px;padding:2px;border-radius:4px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08);object-fit:contain}
.wd-cover-thumb{width:84px;height:46px}
.wd-cover-large{width:100%;aspect-ratio:1.91/1}
.wd-cover-large .wd-favicon{left:10px;bottom:10px;width:30px;height:30px;padding:3px}
.wd-cover.is-demo{display:grid;place-items:center;background:linear-gradient(135deg,#f3faf6,#bfe3d0);color:#0b5a41;font-weight:700}

/* List cards: every column fits the card (no sideways scroll); each number has its chart right below it. */
.ws-projects .ws-project .ws-card-heading{gap:14px;padding:12px 16px}
.ws-projects .ws-project .ws-site-mark{display:none}
.ws-projects .ws-project .ms-strip.wd-cols-7,.ws-projects .ws-project .ms-strip.wd-cols-8{grid-template-columns:repeat(8,minmax(0,1fr));overflow:visible}
.ws-projects .ws-project .ms-strip.wd-cols-5{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
.ws-projects .ws-project .ms-strip>*{padding:12px 14px;gap:3px}
.ws-projects .ws-project .ms-label{min-height:2.6em}
.ws-projects .ws-project .ms-value{min-height:30px;flex-wrap:wrap;gap:2px 6px}
.ws-projects .ws-project .ms-value strong{font-size:22px}
.ws-projects .ws-project .ms-chart{height:40px;margin-top:6px}
.ws-projects .ws-project .ms-strip .is-quiet .ms-note{margin-top:2px}
.ws-projects .ws-project .ms-gauge,.ws-projects .ws-project .wd-scale{margin-top:8px;margin-bottom:0}
.wd-next{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:#1d4ed8;font:inherit;font-size:12.5px;cursor:pointer}
.wd-next:hover{text-decoration:underline}
.wd-next .ic{width:12px;height:12px}
.wd-scale{display:flex;flex-direction:column;gap:3px}
.wd-scale .ms-gauge{margin:0}
.wd-scale small{display:flex;justify-content:space-between;color:#8a8a8a;font-size:10.5px}
.wd-scale small b{font-weight:500}
.wd-countries{display:flex;flex-direction:column;gap:2px;margin:8px 0 0;padding:6px 0 0;border-top:1px dashed #ececec;list-style:none}
.wd-countries li{display:grid;grid-template-columns:38px 1fr auto;align-items:baseline;gap:4px;font-size:12px;font-variant-numeric:tabular-nums}
.wd-countries li span{color:#525252}
.wd-countries li b{color:#000;font-weight:500}
.wd-countries .ms-delta{font-size:11.5px;font-weight:500}
.ws-projects .ws-icon-btn .ic{width:15px;height:15px}

/* Grid: cover tiles. */
.wd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.wd-tile{display:flex;flex-direction:column;min-width:0;border-radius:3px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.04),0 1px 0 rgba(0,0,0,.06);overflow:hidden}
.wd-tile:hover{box-shadow:0 0 0 1px rgba(0,0,0,.08),0 4px 12px rgba(0,0,0,.08)}
.wd-tile.is-selected{box-shadow:0 0 0 1px #0f6b4e}
.wd-tile-cover{display:block;padding:0;border:0;background:none;cursor:pointer}
.wd-tile-cover .wd-cover{border-radius:0;box-shadow:none}
.wd-tile-body{display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px}
.wd-tile-body header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.wd-tile .ws-site-identity{min-width:0;margin:0}
.wd-tile .ws-site-identity h2{margin:0;font-size:16px;font-weight:700}
.wd-tile .ws-site-identity h2 button{padding:0;border:0;background:none;color:#333;font:inherit;cursor:pointer;text-align:left}
.wd-tile .ws-site-identity p{margin:2px 0 0;color:rgba(0,0,0,.52);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wd-tile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.wd-tile-stats dt{color:rgba(0,0,0,.52);font-size:12px}
.wd-tile-stats dd{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 4px;margin:2px 0 0}
.wd-tile-stats strong{color:#333;font-size:18px;font-weight:400;font-variant-numeric:tabular-nums}
.wd-tile-stats .ms-delta{font-size:11.5px}
.wd-tile .ms-chart{height:42px;color:#0f6b4e}
.wd-tile footer .ws-card-actions{display:flex;justify-content:flex-end;gap:6px}

@media(max-width:1180px){
  .ws-projects .ws-project .ms-strip.wd-cols-7,.ws-projects .ws-project .ms-strip.wd-cols-8{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ws-projects .ws-project .ms-strip.wd-cols-8>*:nth-child(5){border-left:0}
  .ws-projects .ws-project .ms-strip.wd-cols-8>*:nth-child(n+5){border-top:1px solid #e9ebee}
  .wd-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wd-kpi:nth-child(4){border-left:0}
  .wd-kpi:nth-child(n+4){border-top:1px solid #e9ebee}
}
@media(max-width:700px){
  .ws-projects .ws-project .ws-card-heading{flex-wrap:wrap}
  .ws-projects .ws-project .ws-card-actions{width:100%;justify-content:flex-end}
  .ws-projects .ws-project .ms-strip.wd-cols-8,.ws-projects .ws-project .ms-strip.wd-cols-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-projects .ws-project .ms-strip>*{border-left:0;border-top:1px solid #e9ebee}
  .ws-projects .ws-project .ms-strip>*:nth-child(even){border-left:1px solid #e9ebee}
  .wd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wd-kpi{border-left:0!important;border-top:1px solid #e9ebee}
  .wd-kpi:nth-child(even){border-left:1px solid #e9ebee!important}
  .wd-search{width:100%}
}

/* Charts: a smooth line that draws itself in, a soft layered fill, a faint baseline and a pulsing dot on the latest day. */
.ms-plot{position:relative;flex:1 1 auto;min-width:0;height:100%}
.ms-plot svg{display:block;width:100%;height:100%;overflow:visible;animation:ms-reveal 1.1s cubic-bezier(.22,.8,.3,1) both}
.ms-base{stroke:rgba(0,0,0,.08);stroke-width:1}
.ms-dot{position:absolute;z-index:1;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px #fff;opacity:0;animation:ms-dot-in .3s ease-out 1s forwards}
.ms-dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;background:currentColor;opacity:0;animation:ms-pulse 2.6s ease-out 1.4s infinite}
.ms-axis{color:rgba(0,0,0,.4);font-size:10px}
@keyframes ms-reveal{from{clip-path:inset(-10% 100% -10% 0)}to{clip-path:inset(-10% -4% -10% 0)}}
@keyframes ms-dot-in{to{opacity:1}}
@keyframes ms-pulse{0%{transform:scale(.5);opacity:.4}70%,100%{transform:scale(2);opacity:0}}

/* Gauges fill from the left; cards and tiles rise in one after another. */
.ms-gauge i{transform-origin:left center;animation:ms-grow .9s cubic-bezier(.22,.8,.3,1) .15s both}
@keyframes ms-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.wd-kpi,.ws-projects .ws-project,.wd-tile{animation:wd-rise .45s cubic-bezier(.22,.8,.3,1) both}
.wd-kpi:nth-child(2),.ws-project-list>.ws-project:nth-child(2),.wd-grid>.wd-tile:nth-child(2){animation-delay:.05s}
.wd-kpi:nth-child(3),.ws-project-list>.ws-project:nth-child(3),.wd-grid>.wd-tile:nth-child(3){animation-delay:.1s}
.wd-kpi:nth-child(4),.ws-project-list>.ws-project:nth-child(4),.wd-grid>.wd-tile:nth-child(4){animation-delay:.15s}
.wd-kpi:nth-child(5),.ws-project-list>.ws-project:nth-child(5),.wd-grid>.wd-tile:nth-child(5){animation-delay:.2s}
.wd-kpi:nth-child(6),.ws-project-list>.ws-project:nth-child(n+6),.wd-grid>.wd-tile:nth-child(n+6){animation-delay:.25s}
@keyframes wd-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* The whole card opens the project; each metric opens its report. */
.ws-projects .ws-project[data-card-site],.wd-tile[data-card-site]{cursor:pointer;transition:box-shadow .2s,transform .2s}
.ws-projects .ws-project[data-card-site]:hover,.wd-tile[data-card-site]:hover{transform:translateY(-2px)}
.ms-strip>.is-link{position:relative;cursor:pointer;transition:background .15s}
.ms-strip>.is-link:hover{background:#fafbfc}
.ms-strip>.is-link .ms-label::after{content:"→";margin-left:4px;color:#1d4ed8;opacity:0;transition:opacity .15s,margin .15s}
.ms-strip>.is-link:hover .ms-label::after{margin-left:7px;opacity:1}

/* Top keywords on each project: click one to see it in Queries. */
.wd-keywords{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px 12px;border-top:1px solid #e9ebee}
.wd-keywords>span{color:rgba(0,0,0,.52);font-size:12.5px}
.wd-kw{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 10px;border:1px solid rgba(0,0,0,.12);border-radius:100px;background:#fff;color:#1d4ed8;font:inherit;font-size:13px;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.wd-kw:hover{border-color:#1d4ed8;background:#f3faf6;transform:translateY(-1px)}
.wd-kw b{overflow:hidden;max-width:220px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.wd-kw small{color:rgba(0,0,0,.5);font-size:11.5px;font-variant-numeric:tabular-nums}
.wd-kw i{padding:0 5px;border-radius:4px;background:#e8f5ee;color:#0b5a41;font-size:11px;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums}
.wd-tile .wd-keywords{padding:0;border:0}
.wd-tile .wd-kw b{max-width:150px}

@media(prefers-reduced-motion:reduce){
  .ms-plot svg,.ms-dot,.ms-dot::after,.ms-gauge i,.wd-kpi,.ws-projects .ws-project,.wd-tile{animation:none}
  .ms-dot{opacity:1}
  .ws-projects .ws-project[data-card-site]:hover,.wd-tile[data-card-site]:hover,.wd-kw:hover{transform:none}
}

/* Project ⋯ menu. */
.wd-menu{position:relative}
.wd-menu>summary{list-style:none}
.wd-menu>summary::-webkit-details-marker{display:none}
.wd-menu[open]>summary{border-color:#1f2933;color:#1f2933}
.wd-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:flex;flex-direction:column;min-width:210px;padding:6px;border:1px solid #e3e6ea;border-radius:8px;background:#fff;box-shadow:0 12px 32px rgba(16,24,40,.14);animation:wd-pop .14s ease-out}
.wd-menu>div button{display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:6px;background:none;color:#333;font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.wd-menu>div button:hover{background:#f4f5f7}
.wd-menu>div button .ic{width:15px;height:15px;color:#6b7280}
.wd-menu>div .is-danger{margin-top:4px;border-top:1px solid #eef0f2;border-radius:0 0 6px 6px;color:#cf0000}
.wd-menu>div .is-danger .ic{color:#cf0000}
@keyframes wd-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* What changed: the three biggest moves, one click from their project. */
.wd-moves{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.wd-moves-title{display:inline-flex;align-items:center;gap:6px;margin-right:4px;color:#333;font-size:13px;font-weight:600}
.wd-moves-title .ic{width:15px;height:15px;color:#0f6b4e}
.wd-move{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid #e3e6ea;border-radius:100px;background:#fff;color:#333;font:inherit;font-size:13px;cursor:pointer;transition:border-color .15s,transform .15s}
.wd-move:hover{border-color:#c7ccd3;transform:translateY(-1px)}
.wd-move b{font-weight:600}
.wd-move span{display:inline-flex;align-items:center;gap:4px}
.wd-move.up span{color:#008a43}
.wd-move.down span{color:#cf0000}
.wd-move .ic{width:14px;height:14px}
.wd-move>.ic:last-child{color:#9aa1ab}

/* Onboarding checklist. */
.wd-onboard{margin-top:16px;padding:16px 18px;border:1px solid #bfe3d0;border-radius:10px;background:linear-gradient(180deg,#f3faf6,#fff)}
.wd-onboard header{display:flex;align-items:center;gap:16px}
.wd-onboard header>div{flex:0 0 auto}
.wd-onboard h2{margin:0;color:#1f2933;font-size:16px;font-weight:700}
.wd-onboard header p{margin:2px 0 0;color:rgba(0,0,0,.52);font-size:12.5px}
.wd-onboard-bar{flex:1 1 auto;height:6px;border-radius:100px;background:#bfe3d0;overflow:hidden}
.wd-onboard-bar i{display:block;height:100%;border-radius:inherit;background:#0f6b4e;transition:width .6s ease}
.wd-onboard-hide{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:none;color:#6b7280;cursor:pointer}
.wd-onboard-hide:hover{background:#e8f5ee}
.wd-onboard-hide .ic{width:16px;height:16px}
.wd-onboard ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 0;padding:0;list-style:none}
.wd-onboard li{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #f1e4df;border-radius:8px;background:#fff}
.wd-onboard li strong{display:block;color:#1f2933;font-size:13.5px}
.wd-onboard li small{display:block;color:rgba(0,0,0,.52);font-size:12px;line-height:1.4}
.wd-onboard li.is-done{background:#f8faf9;border-color:#e3efe8}
.wd-onboard li.is-done strong{color:#6b7280;text-decoration:line-through}
.wd-check{display:grid;place-items:center;width:22px;height:22px;border:1.5px solid #d6dbe1;border-radius:50%;color:#fff}
.wd-onboard li.is-done .wd-check{border-color:#008a43;background:#008a43}
.wd-check .ic{width:13px;height:13px}
.wd-onboard .wd-next{margin-top:auto}

/* Chart hover: a guide line on the day under the pointer and a small tip above it. */
.ms-guide{position:absolute;top:-4px;bottom:0;width:1px;margin-left:-.5px;background:rgba(31,41,51,.35);pointer-events:none}
.ms-plot:not(.is-hover) .ms-guide{display:none}
.ms-plot{cursor:crosshair}
.ms-tip{position:absolute;z-index:80;display:flex;flex-direction:column;gap:1px;padding:6px 10px;border-radius:6px;background:#1f2933;color:#fff;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 8px 20px rgba(16,24,40,.2)}
.ms-tip small{color:rgba(255,255,255,.7);font-size:11px}
.ms-tip strong{font-weight:600;font-variant-numeric:tabular-nums}

/* The large charts draw in like the small ones; their tip matches. */
.rf-modern-chart.is-drawn .u-wrap{animation:ms-reveal 1.2s cubic-bezier(.22,.8,.3,1) both}
#app.rf-shell .rf-chart-tip{border-radius:6px;background:#1f2933;color:#fff;box-shadow:0 8px 20px rgba(16,24,40,.2)}
#app.rf-shell .rf-chart-tip *{color:inherit}

@media(max-width:1180px){.wd-onboard ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
  .wd-onboard ol{grid-template-columns:1fr}
  .wd-onboard li{flex-direction:row;align-items:center}
  .wd-onboard li>div{flex:1}
  .wd-onboard .wd-next{margin-top:0}
}
@media(prefers-reduced-motion:reduce){.wd-menu>div,.rf-modern-chart.is-drawn .u-wrap{animation:none}.wd-move:hover{transform:none}}

/* Charts grow: the fill rises from the baseline while the line draws across, then breathes gently. */
.ms-area{transform-box:fill-box;transform-origin:50% 100%;animation:ms-rise 1s cubic-bezier(.22,.8,.3,1) .1s both,ms-breathe 4s ease-in-out 1.4s infinite}
.ms-line{filter:drop-shadow(0 2px 3px rgba(15,107,78,.35))}
@keyframes ms-rise{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}
@keyframes ms-breathe{0%,100%{opacity:1}50%{opacity:.55}}
.ms-plot:hover .ms-area{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.ms-area{animation:none}}
/* Dashboard first run (views/sites.js welcome): what MrKeyword does, why connecting Google is safe, one clear button. */
.wl-card{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px 36px;padding:32px;margin:6px 0 18px;border:1px solid var(--rf-line,#e4e4e7);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f4faf7 100%)}
.wl-main{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.wl-eyebrow{display:inline-flex;padding:4px 10px;border-radius:999px;background:#e8f5ee;color:#0b5a41;font-size:12px;font-weight:600;letter-spacing:.02em}
.wl-card h2{margin:0;font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.01em;color:#000;max-width:560px}
.wl-lead{margin:0;font-size:15px;line-height:1.6;color:var(--rf-muted,#52525b);max-width:560px}
.wl-steps{display:grid;gap:10px;margin:6px 0 4px;padding:0;list-style:none;width:100%;max-width:520px}
.wl-step{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--rf-line,#e4e4e7);border-radius:12px;background:#fff}
.wl-step.is-current{border-color:#0f6b4e;box-shadow:0 0 0 3px rgba(15,107,78,.12)}
.wl-step.is-done{opacity:.75}
.wl-num{display:inline-grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#f4f4f5;font-weight:700;font-size:13px}
.wl-step.is-current .wl-num{background:#0f6b4e;color:#fff}
.wl-step.is-done .wl-num{background:#16a34a;color:#fff}
.wl-num svg{width:15px;height:15px}
.wl-step strong{display:block;font-size:14px}
.wl-step small{display:block;color:var(--rf-muted,#71717a);font-size:12.5px}
.wl-google{display:inline-flex;align-items:center;gap:12px;min-height:50px;padding:0 22px 0 14px;border:1px solid #dadce0;border-radius:12px;background:#fff;color:#1f1f1f;font:inherit;font-size:15.5px;font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);transition:box-shadow .15s,transform .15s}
.wl-google:hover{box-shadow:0 4px 14px rgba(0,0,0,.12);transform:translateY(-1px)}
.wl-google:focus-visible{outline:3px solid rgba(15,107,78,.4);outline-offset:2px}
.wl-google .wl-g{width:22px;height:22px}
.wl-google>svg:not(.wl-g){width:18px;height:18px}
.wl-actions{display:flex;flex-wrap:wrap;gap:10px}
.wl-google.wl-primary{border-color:#111827;background:#111827;color:#fff}
.wl-google.wl-primary:hover{background:#1f2933}
.wl-google.wl-secondary{min-height:44px;font-size:14.5px}
.wl-fine,.wl-note{margin:0;font-size:12.5px;color:var(--rf-muted,#71717a)}
.wl-link{padding:0;border:0;background:none;font:inherit;color:var(--rf-ink,#18181b);text-decoration:underline;cursor:pointer}
.wl-previews,.wl-trust{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.wl-previews{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
.wl-previews li{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--rf-line,#e4e4e7);border-radius:14px;background:#fff}
.wl-previews li>svg{width:20px;height:20px;padding:7px;box-sizing:content-box;border-radius:10px;background:#e8f5ee;color:#0b5a41}
.wl-previews strong,.wl-trust strong{display:block;font-size:13.5px}
.wl-previews small,.wl-trust small{display:block;color:var(--rf-muted,#71717a);font-size:12px;line-height:1.45}
.wl-trust{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));padding-top:20px;border-top:1px solid var(--rf-line,#e4e4e7)}
.wl-trust li{display:flex;align-items:flex-start;gap:10px}
.wl-trust li>svg{flex:0 0 18px;width:18px;height:18px;margin-top:2px;color:#16a34a}
@media (max-width:900px){.wl-card{grid-template-columns:1fr;padding:22px}.wl-trust{grid-template-columns:repeat(2,minmax(0,1fr))}.wl-card h2{font-size:23px}}
@media (max-width:520px){.wl-previews,.wl-trust{grid-template-columns:1fr}.wl-google{width:100%;justify-content:center}}
:root[data-theme="dark"] .wl-card{background:#18181b}
:root[data-theme="dark"] .wl-card h2{color:#fff}
:root[data-theme="dark"] .wl-step,:root[data-theme="dark"] .wl-previews li{background:#18181b}

/* Upgrade dialog (ui.js openUpgradeDialog), opened on every plan limit (402). */
.rf-upgrade-dialog{width:min(500px,calc(100% - 32px))}
.rf-upgrade{display:grid;gap:14px;padding:22px}
.rf-upgrade-head{display:flex;align-items:flex-start;gap:12px}
.rf-upgrade-head h2{flex:1;margin:0;font-size:18px;line-height:1.3}
.rf-upgrade-icon{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--rf-tint,#eef6f3);flex:none}
.rf-upgrade-x{border:0;background:none;padding:4px;cursor:pointer;color:inherit}
.rf-upgrade-body{display:grid;gap:10px}
.rf-upgrade-body p{margin:0;line-height:1.5}
.rf-upgrade-message,.rf-upgrade-foot{color:var(--rf-muted,#5c6b6b);font-size:13px}
.rf-upgrade-extra{padding:12px;border:1px solid var(--rf-line,#e5e5e5);border-radius:12px;font-size:13.5px}
.rf-upgrade-extra p{margin:0 0 8px}
.rf-upgrade-status{color:var(--rf-red-ink,#b42318);font-size:13px}
.rf-upgrade-actions{display:flex;flex-wrap:wrap;gap:8px}
.rf-upgrade-foot{display:flex;justify-content:space-between;gap:8px;margin:0}
@media (max-width:520px){.rf-upgrade-actions .rf-btn{width:100%;justify-content:center}}
