/* Ads account replica UI. Loaded after walrus.css; overrides its base styles. */

body.gads {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #202124;
  font-size: 14px;
  line-height: 1.45;
}
.gads a { color: #1a73e8; text-decoration: none; }
.gads a:hover { text-decoration: underline; }

/* ---------- app bar ---------- */
.gbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  background: #fff; border-bottom: 1px solid #dadce0;
  height: 56px; padding: 0 16px;
}
.gb-burger { border: none; background: none; padding: 8px; cursor: pointer; border-radius: 50%; display: flex; }
.gb-burger:hover { background: #f1f3f4; }
.gb-logo { display: flex; align-items: center; gap: 8px; }
.gb-ads { font-size: 21px; color: #5f6368; letter-spacing: 0.1px; }
.gb-search {
  flex: 1; max-width: 440px; display: flex; align-items: center; gap: 12px;
  background: #f1f3f4; border-radius: 24px; padding: 9px 16px;
  font-size: 13.5px; color: #5f6368;
}
.gb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gb-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gb-ic:hover { background: #f1f3f4; }
.gb-ic svg { width: 20px; height: 20px; fill: #5f6368; }
.gb-acct { display: flex; align-items: center; gap: 10px; margin-left: 10px; padding: 4px 4px 4px 12px; border-left: 1px solid #dadce0; }
.gb-acct-txt { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.gb-acct-txt b { font-size: 12.5px; font-weight: 500; color: #202124; }
.gb-acct-txt small { font-size: 11px; color: #5f6368; }
.gb-avatar { width: 30px; height: 30px; border-radius: 50%; background: #C08A3E; color: #1F2E3E; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }

/* ---------- frame: rail + drawer + content ---------- */
.frame { display: flex; min-height: calc(100vh - 57px); }

.rail {
  width: 68px; flex-shrink: 0; background: #fff; border-right: 1px solid #e8eaed;
  padding: 8px 0; display: flex; flex-direction: column; gap: 4px;
}
.rail a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 8px; color: #444746; font-size: 10.5px; font-weight: 500; }
.rail a:hover { text-decoration: none; }
.rail .ri { width: 46px; height: 26px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.rail a:hover .ri { background: #f1f3f4; }
.rail svg { width: 19px; height: 19px; fill: #444746; }
.rail a.on { color: #001d35; }
.rail a.on .ri { background: #d3e3fd; }
.rail a.on svg { fill: #001d35; }

.sidenav {
  width: 192px; flex-shrink: 0; background: #fff;
  border-right: 1px solid #dadce0; padding: 10px 0 12px 0;
  display: flex; flex-direction: column;
}
.sn-head { font-size: 11px; font-weight: 500; color: #5f6368; letter-spacing: 0.3px; padding: 8px 20px 10px; text-transform: uppercase; }
.sidenav a {
  display: block; padding: 8px 18px 8px 20px; font-size: 13px; color: #3c4043;
  border-radius: 0 16px 16px 0; margin-right: 10px;
}
.sidenav a:hover { background: #f8f9fa; text-decoration: none; }
.sidenav a.on { color: #0b57d0; font-weight: 500; background: #e8f0fe; }

.content { flex: 1; padding: 18px 24px 40px; min-width: 0; max-width: 1080px; box-sizing: border-box; }
.crumb { font-size: 12.5px; color: #5f6368; margin-bottom: 4px; }
.crumb .sep { margin: 0 7px; color: #9aa0a6; }

.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2px 0 14px; }
.pagetitle { font-size: 20px; font-weight: 400; color: #202124; margin: 0; font-family: inherit; }
.daterange {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff;
  padding: 6px 12px; font-size: 13px; color: #202124; white-space: nowrap;
}
.daterange svg { width: 15px; height: 15px; fill: #5f6368; }
.daterange .rng-lbl { color: #5f6368; }
.daterange .caret { border: 4px solid transparent; border-top-color: #5f6368; margin-top: 4px; }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip2 {
  font-size: 12.5px; color: #3c4043; background: #fff;
  border: 1px solid #dadce0; border-radius: 16px; padding: 5px 13px;
}

/* create button */
.createbtn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0b57d0; color: #fff !important; font-size: 13.5px; font-weight: 500;
  border-radius: 18px; padding: 9px 18px 9px 14px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}
.createbtn:hover { text-decoration: none !important; box-shadow: 0 1px 3px 1px rgba(60,64,67,0.15); }
.createbtn svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- chart card ---------- */
.chartcard { background: #fff; border: 1px solid #dadce0; border-radius: 8px; margin-bottom: 16px; padding: 14px 18px 8px; }
.metricchips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mchip {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #202124;
  border: 1px solid #dadce0; border-radius: 4px; padding: 6px 10px;
}
.mchip .sq { width: 10px; height: 10px; border-radius: 2px; }
.mchip .caret { border: 4px solid transparent; border-top-color: #5f6368; margin-top: 4px; }
.chartwrap { position: relative; }
.chartwrap svg { display: block; width: 100%; height: 190px; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: #5f6368; padding: 2px 2px 6px; }

/* ---------- cards + tables ---------- */
.card2 { background: #fff; border: 1px solid #dadce0; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.tablewrap { overflow-x: auto; }

/* toolbar row injected above tables */
.ttools { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #dadce0; }
.ttools .addfilter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5f6368; padding: 6px 10px; border-radius: 4px; }
.ttools .addfilter:hover { background: #f1f3f4; }
.ttools .addfilter svg { width: 16px; height: 16px; fill: #5f6368; }
.ttools .tspace { flex: 1; }
.ttools .tic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ttools .tic:hover { background: #f1f3f4; }
.ttools .tic svg { width: 17px; height: 17px; fill: #5f6368; }

.viewtabs { display: flex; gap: 4px; border-bottom: 1px solid #dadce0; margin-bottom: 4px; }
.viewtab { border: none; background: none; font-family: inherit; font-size: 13.5px; color: #5f6368; padding: 11px 16px 9px; cursor: pointer; border-bottom: 3px solid transparent; }
.viewtab:hover { color: #202124; }
.viewtab.on { color: #1a73e8; border-bottom-color: #1a73e8; font-weight: 500; }

table.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: #5f6368;
  padding: 8px 10px; border-bottom: 1px solid #dadce0; background: #fff;
  white-space: nowrap; position: relative;
}
.dt th.r::after { content: "\2193"; color: transparent; margin-left: 4px; font-size: 10px; }
.dt th.r:hover::after { color: #9aa0a6; }
.dt th.sorted { color: #202124; }
.dt th.sorted::after { content: "\2193"; color: #202124; margin-left: 4px; font-size: 10px; }
.dt td { padding: 8px 10px; border-bottom: 1px solid #e8eaed; vertical-align: top; white-space: nowrap; }
.dt tbody tr:hover td { background: #f8f9fa; }
.dt .r { text-align: right; font-variant-numeric: tabular-nums; }
.dt .tname { white-space: normal; min-width: 170px; }
.dt tfoot td { border-bottom: none; border-top: 1px solid #dadce0; background: #f8f9fa; font-weight: 500; }
.dt tfoot .subrow td { background: #fff; font-weight: 400; border-top: 1px solid #e8eaed; color: #5f6368; }
.paused-row td { color: #80868b; }
.paused-row .tname { color: #80868b; }

/* injected checkbox column */
.dt .cbx { width: 34px; padding-right: 2px; }
.cbx-box {
  display: inline-block; width: 15px; height: 15px; box-sizing: border-box;
  border: 2px solid #5f6368; border-radius: 2px; vertical-align: -2px;
}
thead .cbx-box { border-color: #757a80; }

/* injected pagination footer */
.tpage {
  display: flex; align-items: center; justify-content: flex-end; gap: 26px;
  padding: 10px 16px; border-top: 1px solid #dadce0; font-size: 12.5px; color: #3c4043;
}
.tpage .rows { display: flex; align-items: center; gap: 7px; }
.tpage .caret { border: 4px solid transparent; border-top-color: #5f6368; margin-top: 4px; }
.tpage .pgic { display: flex; gap: 4px; }
.tpage .pgic span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tpage .pgic svg { width: 16px; height: 16px; fill: #bdc1c6; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.g { background: #188038; }
.dot.p { background: #9aa0a6; }

.st-added { color: #188038; }
.st-excl { color: #c5221f; }
.st-none { color: #5f6368; }

.pill-pri { background: #e6f4ea; color: #188038; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 10px; }
.pill-sec { background: #f1f3f4; color: #5f6368; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 10px; }

/* ads page */
.adcell { max-width: 520px; }
.adprev { display: flex; gap: 10px; align-items: flex-start; white-space: normal; }
.ad-badge {
  font-size: 11px; font-weight: 700; color: #202124;
  border: 1px solid #dadce0; border-radius: 3px; padding: 1px 5px; margin-top: 2px;
}
.ad-body { white-space: normal; }
.ad-url { font-size: 12px; color: #202124; margin-bottom: 2px; }
.ad-heads { font-size: 15px; color: #1a0dab; line-height: 1.35; margin-bottom: 3px; white-space: normal; }
.ad-descs { font-size: 12.5px; color: #4d5156; line-height: 1.45; white-space: normal; }
.ad-meta { font-size: 11.5px; color: #5f6368; margin-top: 8px; }
.strength { font-size: 12.5px; color: #188038; font-weight: 500; }
.strength.poor { color: #c5221f; }

.secthead { font-size: 15px; font-weight: 500; color: #202124; margin: 22px 0 10px; }
.slgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.slitem { padding: 16px 18px; border-right: 1px solid #e8eaed; }
.slitem:last-child { border-right: none; }
.slitem a { font-size: 14px; font-weight: 500; }
.slitem p { font-size: 12.5px; color: #5f6368; margin: 5px 0 0; line-height: 1.45; }

/* settings */
.setcard { padding: 4px 0; }
.setrow { display: flex; padding: 13px 20px; border-bottom: 1px solid #e8eaed; gap: 18px; }
.setrow:last-child { border-bottom: none; }
.setname { width: 180px; flex-shrink: 0; font-size: 12.5px; color: #5f6368; padding-top: 1px; }
.setval { font-size: 13.5px; color: #202124; }

/* conversions */
.tnote { font-size: 12.5px; color: #5f6368; margin: -8px 0 0; }
.tdate { color: #5f6368; }

/* recommendations */
.scorecard { display: flex; gap: 28px; align-items: center; padding: 24px 28px; }
.scorering { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.scorenum {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 500; color: #202124;
}
.scoretext h2 { font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.scoretext p { font-size: 13px; color: #5f6368; margin: 0 0 12px; max-width: 560px; }
.autoapply { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #202124; }
.aa-toggle {
  display: inline-block; width: 34px; height: 14px; background: #bdc1c6; border-radius: 8px; position: relative;
}
.aa-knob {
  position: absolute; left: -1px; top: -3px; width: 20px; height: 20px;
  background: #fff; border: 1px solid #dadce0; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}
.reclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.reccard { background: #fff; border: 1px solid #dadce0; border-radius: 8px; padding: 16px 18px; position: relative; }
.reccard.dismissed { background: #fafafa; }
.reccard.dismissed .rec-name, .reccard.dismissed p { color: #5f6368; }
.rec-name { font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.reccard p { font-size: 12.5px; color: #5f6368; margin: 0 0 10px; line-height: 1.5; }
.rec-tag { font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 10px; }
.rec-tag.ok { background: #e6f4ea; color: #188038; }
.rec-tag.no { background: #f1f3f4; color: #5f6368; }

.disclaimer { font-size: 11.5px; color: #9aa0a6; margin-top: 28px; }

/* expanded settings panels (locations, bidding) */
.panelrow { padding: 15px 20px; border-bottom: 1px solid #e8eaed; }
.panelrow:last-child { border-bottom: none; }
.panel-lbl { font-size: 12.5px; color: #5f6368; margin-bottom: 9px; }
.panel-val { font-size: 13.5px; color: #202124; }
.panel-hint { font-size: 12px; color: #5f6368; margin: 4px 0 0; line-height: 1.5; }
.reach { color: #5f6368; font-size: 12.5px; margin-left: 10px; }
.optline { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.rad {
  width: 16px; height: 16px; box-sizing: border-box; border: 2px solid #5f6368;
  border-radius: 50%; flex-shrink: 0; margin-top: 1px; position: relative;
}
.optline.sel .rad { border-color: #1a73e8; }
.optline.sel .rad::after {
  content: ""; position: absolute; inset: 2px; background: #1a73e8; border-radius: 50%;
}
.opttext { font-size: 13.5px; color: #202124; line-height: 1.45; }
.rec-hint { color: #5f6368; }

/* ad editor replica */
.ed-strength {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 20px; border-bottom: 1px solid #e8eaed; font-size: 13.5px;
}
.ed-hint { font-size: 12px; color: #5f6368; }
.ed-wrap { padding: 20px; }
.ed-h { font-size: 13.5px; font-weight: 500; color: #202124; margin: 20px 0 12px; }
.ed-h:first-child { margin-top: 0; }
.ed-h .cnt { color: #5f6368; font-weight: 400; margin-left: 6px; }
.fld {
  position: relative; border: 1px solid #dadce0; border-radius: 4px;
  background: #fff; padding: 9px 58px 9px 12px; margin-bottom: 12px;
}
.fld-lbl {
  position: absolute; top: -8px; left: 9px; background: #fff;
  padding: 0 4px; font-size: 11px; color: #5f6368; white-space: nowrap;
}
.fld-val { font-size: 13.5px; color: #202124; overflow-wrap: anywhere; }
.fld-cnt {
  position: absolute; right: 10px; bottom: 8px; font-size: 11px;
  color: #80868b; font-variant-numeric: tabular-nums;
}
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

/* mobile */
@media (max-width: 860px) {
  .gbar { gap: 10px; }
  .gb-search, .gb-acct-txt { display: none; }
  .frame { flex-direction: column; }
  .rail { width: auto; flex-direction: row; border-right: none; border-bottom: 1px solid #e8eaed; padding: 4px 8px; overflow-x: auto; }
  .rail a { flex-direction: row; gap: 7px; padding: 7px 10px; }
  .rail .ri { width: auto; height: auto; padding: 0; background: none !important; }
  .sidenav {
    width: auto; flex-direction: row; overflow-x: auto; border-right: none;
    border-bottom: 1px solid #dadce0; padding: 0;
  }
  .sn-head { display: none; }
  .sidenav a { border-radius: 0; margin-right: 0; white-space: nowrap; padding: 11px 14px; border-bottom: 3px solid transparent; }
  .sidenav a.on { border-bottom-color: #1a73e8; background: #fff; }
  .content { padding: 16px 14px 40px; }
  .titlerow { align-items: flex-start; }
  .scorecard { flex-direction: column; align-items: flex-start; }
  .reclist { grid-template-columns: 1fr; }
  .slgrid { grid-template-columns: 1fr; }
  .slitem { border-right: none; border-bottom: 1px solid #e8eaed; }
  .setrow { flex-direction: column; gap: 3px; }
  .setname { width: auto; }
  .hgrid { grid-template-columns: 1fr; }
  .ed-wrap { padding: 16px 14px; }
  .tpage { justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
}

/* ---------- realism pass 2 ---------- */

/* drawer groups */
.sidenav a { display: flex; align-items: center; }
.sidenav a .sn-car { margin-left: auto; border: 4px solid transparent; border-top-color: #5f6368; margin-top: 4px; }
.sidenav a .sn-car.closed { border: 4px solid transparent; border-left-color: #5f6368; margin-top: 0; margin-right: -2px; }
.sidenav a.sub { padding-left: 34px; font-size: 12.5px; }

/* filter chips get dropdown carets */
.chip2 { display: inline-flex; align-items: center; gap: 7px; }
.chip2::after { content: ""; border: 4px solid transparent; border-top-color: #5f6368; margin-top: 4px; }

/* reporting footnote */
.treport { font-size: 11.5px; color: #80868b; padding: 8px 16px 12px; }

/* chart axes + tooltip */
.chartwrap { margin: 0 34px 0 30px; }
.ax { position: absolute; font-size: 10.5px; color: #80868b; font-variant-numeric: tabular-nums; }
.ax.l { left: -28px; width: 22px; text-align: right; }
.ax.r { right: -30px; width: 24px; text-align: left; }
.ctip {
  position: absolute; top: 4px; left: 71%; transform: translateX(-14px);
  background: #fff; border: 1px solid #dadce0; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60,64,67,0.22);
  padding: 9px 12px; font-size: 11.5px; line-height: 1.7; white-space: nowrap; z-index: 3;
}
.ctip b { display: block; font-size: 11px; font-weight: 500; color: #5f6368; margin-bottom: 2px; }
.ctip .row { display: flex; align-items: center; gap: 7px; color: #202124; }
.ctip .sq { width: 8px; height: 8px; border-radius: 2px; }
.ctip .v { margin-left: auto; padding-left: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .chartwrap { margin: 0 26px 0 24px; }
  .ctip { display: none; }
}
