:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#172033;
  --muted:#657085;
  --line:#dde3ee;
  --brand:#185abc;
  --brand2:#1f7cff;
  --good:#1f8f4d;
  --bad:#c03d3d;
  --warn:#8a5a00;
  --linegreen:#06c755;

  --tiffany:#81D8D0;
  --tiffany-dark:#43c7cf;
  --navy:#0f172a;
  --lp-bg:#f4fbfb;
}

/* =========================
   Base
========================= */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,'Yu Gothic','Meiryo',sans-serif;
}

h1,h2,h3{
  margin:0 0 12px;
}

p{
  line-height:1.8;
}

a{
  color:inherit;
}

main{
  max-width:1180px;
  margin:24px auto;
  padding:0 20px;
}

/* =========================
   Diagnosis App
========================= */

header{
  background:linear-gradient(135deg,#13233f,#185abc);
  color:#fff;
  padding:36px 7vw;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}

.eyebrow{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:700;
  opacity:.8;
}

.status{
  background:rgba(255,255,255,.14);
  padding:12px 16px;
  border-radius:999px;
  white-space:nowrap;
}

.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  margin:18px 0;
  box-shadow:0 10px 30px rgba(20,30,60,.06);
}

label{
  font-weight:700;
  display:block;
  margin-top:14px;
}

input{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:16px;
  margin-top:6px;
}

.buttons,
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

button,
.secondary,
.actions a{
  background:var(--brand);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  display:inline-block;
}

button:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.secondary{
  background:#eef3ff;
  color:var(--brand);
}

.hint{
  color:var(--muted);
  font-size:14px;
}

.result-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.score{
  font-size:56px;
  font-weight:900;
  color:var(--brand);
}

.score small{
  font-size:18px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
}

.item,
.task,
.reply,
.post,
.history-row{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  margin:10px 0;
  background:#fff;
}

.item.ok{
  border-left:5px solid var(--good);
}

.item.ng{
  border-left:5px solid var(--bad);
}

.badge{
  display:inline-block;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:700;
  background:#edf2ff;
  color:var(--brand);
}

.task .badge.high{
  background:#ffecec;
  color:#b10000;
}

.task .badge.mid{
  background:#fff7df;
  color:var(--warn);
}

.memo{
  white-space:pre-wrap;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
}

.posts{
  max-height:520px;
  overflow:auto;
}

.post h4{
  margin:0 0 8px;
}

.muted{
  color:var(--muted);
}

.chart-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:20px;
  margin:20px 0 24px;
  height:500px;
}

#radarChart{
  width:100% !important;
  height:100% !important;
  max-width:760px;
  margin:auto;
  display:block;
}

.forecast-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin:18px 0;
}

.forecast-card{
  background:#f8fbff;
  border:1px solid #d9e5f6;
  border-radius:18px;
  padding:18px;
}

.forecast-card span{
  display:block;
  color:#5b6b86;
  font-size:13px;
  margin-bottom:8px;
}

.forecast-card strong{
  display:block;
  color:#0f4da8;
  font-size:24px;
}

.forecast-note{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  padding:16px;
  border-radius:16px;
  margin:12px 0 24px;
  line-height:1.8;
}

.nap-table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  background:#fff;
}

.nap-table th,
.nap-table td{
  border:1px solid #ddd;
  padding:10px;
  text-align:left;
  vertical-align:top;
}

.nap-table th{
  background:#f7f7f7;
}

.check-ok{
  color:var(--good);
  font-weight:900;
}

.check-ng{
  color:var(--bad);
  font-weight:900;
}

.media-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin:10px 0 20px;
}

.media-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:#fff;
}

.media-card.ok{
  border-left:5px solid var(--good);
}

.media-card.ng{
  border-left:5px solid var(--bad);
}

.competitor-list{
  display:grid;
  gap:14px;
}

.competitor-row{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
  margin-bottom:8px;
}

.competitor-row.self{
  border-left:5px solid var(--brand);
}

.competitor-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.bar{
  width:100%;
  height:18px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  background:#2563eb;
  border-radius:999px;
}

.cta-box{
  margin-top:40px;
  padding:35px;
  border-radius:24px;
  background:linear-gradient(135deg,#0f4da8,#1f7cff);
  color:#fff;
}

.cta-header{
  margin-bottom:15px;
}

.cta-header span{
  background:#fff;
  color:#0f4da8;
  font-size:13px;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
}

.cta-box h2{
  margin:0 0 15px;
  font-size:30px;
}

.cta-description{
  line-height:1.8;
  margin-bottom:25px;
}

.cta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:15px;
  margin-bottom:30px;
}

.cta-item{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  border-radius:16px;
  padding:15px;
}

.cta-item strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
}

.cta-item p{
  margin:0;
  font-size:14px;
}

.cta-buttons{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.line-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  background:var(--linegreen);
  color:#fff;
  text-decoration:none;
  border-radius:12px;
  font-weight:800;
}

.contact-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  background:#fff;
  color:#0f4da8;
  text-decoration:none;
  border-radius:12px;
  font-weight:800;
}

.cta-hint{
  color:rgba(255,255,255,.82);
  margin-top:16px;
}

.history-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.history-row p{
  margin:4px 0;
}

.history-row button{
  padding:9px 14px;
}

.empty-box{
  border:1px dashed var(--line);
  background:#f8fafc;
  padding:16px;
  border-radius:14px;
}

/* =========================
   dot.S LP V3
========================= */

.lp-body{
  background:var(--lp-bg);
  color:var(--navy);
}

.lp-body header{
  display:none;
}

.lp-body main,
.lp-main{
  max-width:1180px;
  margin:0 auto;
  padding:48px 20px;
}

.lp-hero{
  background:
    radial-gradient(circle at 84% 18%, rgba(129,216,208,.42), transparent 31%),
    linear-gradient(135deg,#ffffff 0%,#f4ffff 44%,#dff8f7 100%);
  padding:28px 7vw 82px;
  position:relative;
  overflow:hidden;
}

.lp-hero::after{
  content:"";
  position:absolute;
  right:-120px;
  top:-100px;
  width:420px;
  height:420px;
  background:var(--tiffany);
  border-radius:50%;
  opacity:.18;
}

.lp-nav{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:70px;
}

.lp-brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:900;
  color:var(--navy);
}

.lp-brand img{
  width:62px;
  height:62px;
  object-fit:contain;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.brand-text strong{
  font-size:18px;
  font-weight:900;
  color:var(--navy);
}

.brand-text small{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
}

.lp-nav-btn{
  background:var(--navy);
  color:#fff;
  text-decoration:none;
  padding:13px 22px;
  border-radius:999px;
  font-weight:900;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
}

.lp-hero-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:56px;
  align-items:center;
  max-width:1180px;
  margin:auto;
}

.lp-kicker{
  color:var(--tiffany-dark);
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:13px;
}

.lp-hero h1{
  font-size:68px;
  line-height:1.08;
  letter-spacing:-.055em;
  margin:12px 0 24px;
  color:var(--navy);
}

.lp-lead{
  font-size:20px;
  color:#334155;
  max-width:680px;
  line-height:1.9;
}

.lp-hero-buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:30px 0;
}

.lp-main-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--linegreen);
  color:#fff;
  text-decoration:none;
  padding:18px 30px;
  border-radius:16px;
  font-size:17px;
  font-weight:900;
  box-shadow:0 12px 30px rgba(6,199,85,.24);
}

.lp-sub-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  padding:18px 30px;
  border-radius:16px;
  font-size:17px;
  font-weight:900;
  border:1px solid rgba(15,23,42,.1);
}

.lp-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.lp-trust span{
  background:#fff;
  color:var(--navy);
  border:1px solid rgba(129,216,208,.72);
  padding:9px 15px;
  border-radius:999px;
  font-weight:900;
  font-size:14px;
}

.lp-hero-card{
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
  border:1px solid rgba(129,216,208,.55);
  border-radius:32px;
  padding:34px;
  box-shadow:0 30px 80px rgba(15,23,42,.1);
}

.mock-score{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-bottom:24px;
}

.mock-score span{
  display:block;
  width:100%;
  color:var(--tiffany-dark);
  font-weight:900;
  letter-spacing:.12em;
}

.mock-score strong{
  font-size:90px;
  line-height:.9;
  color:var(--navy);
}

.mock-score small{
  font-size:22px;
  color:#64748b;
}

.mock-bars p{
  display:flex;
  justify-content:space-between;
  font-weight:900;
  color:var(--navy);
  margin:14px 0 8px;
}

.mock-bars b{
  color:#c03d3d;
}

.mock-bars div{
  height:14px;
  border-radius:999px;
  background:#e2f7f5;
  overflow:hidden;
}

.mock-bars span{
  display:block;
  height:100%;
  background:var(--tiffany-dark);
  border-radius:999px;
}

.mock-note{
  background:#fff7ed;
  color:#9a3412;
  padding:15px;
  border-radius:14px;
  margin-top:22px;
  font-weight:900;
}

.lp-achievement-band{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin:-28px 0 54px;
  position:relative;
  z-index:3;
}

.lp-achievement-band div{
  background:#fff;
  border:1px solid rgba(129,216,208,.45);
  border-radius:24px;
  padding:26px 20px;
  text-align:center;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}

.lp-achievement-band strong{
  display:block;
  font-size:42px;
  color:var(--navy);
  letter-spacing:-.04em;
}

.lp-achievement-band span{
  display:block;
  color:#64748b;
  font-weight:800;
  margin-top:8px;
}

.lp-section{
  padding:62px 0;
}

.lp-white{
  background:#fff;
  border:none;
  border-radius:36px;
  padding:52px;
  box-shadow:0 25px 80px rgba(15,23,42,.08);
}

.lp-section-head{
  text-align:center;
  margin-bottom:36px;
}

.lp-section-head h2{
  font-size:46px;
  letter-spacing:-.04em;
  line-height:1.25;
}

.lp-section-lead{
  max-width:760px;
  margin:0 auto;
  color:#475569;
  font-size:17px;
}

.lp-grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.lp-problem-card,
.lp-feature-card,
.lp-case-card,
.lp-price-card,
.lp-report-card{
  background:#fff;
  border:1px solid rgba(129,216,208,.45);
  border-radius:24px;
  padding:26px;
  box-shadow:0 18px 40px rgba(15,23,42,.045);
}

.lp-problem-card{
  border-left:6px solid #c03d3d;
}

.lp-problem-card h3,
.lp-feature-card h3{
  margin-top:0;
  font-size:24px;
  line-height:1.42;
}

.lp-problem-card p,
.lp-feature-card p,
.lp-case-card p,
.lp-price-card p,
.lp-report-card p{
  font-size:16px;
  line-height:1.85;
  color:#475569;
}

.lp-feature-card span{
  color:var(--tiffany-dark);
  font-weight:900;
}

.lp-feature-card h3{
  color:var(--navy);
}

.lp-case-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.lp-case-card{
  background:linear-gradient(135deg,#ffffff,#effdfc);
}

.lp-case-card p{
  color:var(--tiffany-dark);
  font-weight:900;
  margin:0 0 10px;
}

.lp-case-card h3{
  font-size:36px;
  line-height:1.25;
  letter-spacing:-.035em;
}

.lp-case-card span{
  color:#475569;
  line-height:1.8;
}

.lp-report-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.lp-report-card{
  min-height:280px;
  background:linear-gradient(135deg,#ffffff,#f0ffff);
}

.lp-report-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.lp-report-top span{
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--tiffany);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.lp-report-top strong{
  font-size:20px;
}

.lp-report-score b{
  font-size:88px;
  line-height:1;
  color:var(--navy);
}

.lp-report-score small{
  font-size:22px;
  color:#64748b;
}

.lp-report-card ul,
.lp-price-card ul,
.lp-before-after ul{
  padding-left:20px;
  margin:12px 0 0;
}

.lp-report-card li,
.lp-price-card li,
.lp-before-after li{
  margin:8px 0;
  line-height:1.7;
}

.mini-bars p{
  display:flex;
  justify-content:space-between;
  margin:12px 0 6px;
  font-weight:900;
}

.mini-bars div{
  height:12px;
  background:#dff8f7;
  border-radius:999px;
  overflow:hidden;
}

.mini-bars i{
  display:block;
  height:100%;
  background:var(--tiffany-dark);
  border-radius:999px;
}

.lp-center-cta{
  display:flex;
  justify-content:center;
  margin-top:30px;
}

.lp-before-after{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.lp-before-after > div{
  padding:34px;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.055);
}

.lp-before-after .before{
  border:1px solid rgba(192,61,61,.25);
}

.lp-before-after .after{
  border:2px solid rgba(67,199,207,.55);
  background:linear-gradient(135deg,#ffffff,#effdfc);
}

.lp-before-after span{
  display:inline-block;
  font-weight:900;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:12px;
}

.lp-before-after .before span{
  background:#c03d3d;
}

.lp-before-after .after span{
  background:var(--tiffany-dark);
}

.lp-flow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.lp-flow div{
  background:#f8ffff;
  border:1px solid rgba(129,216,208,.5);
  border-radius:22px;
  padding:24px;
}

.lp-flow b{
  color:var(--tiffany-dark);
  display:block;
  margin-bottom:8px;
}

.lp-flow span{
  font-weight:900;
}

.lp-price-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.lp-price-card strong{
  display:block;
  font-size:34px;
  color:var(--navy);
  margin:12px 0;
}

.lp-price-card.recommend{
  border:2px solid var(--tiffany-dark);
  transform:translateY(-8px);
}

.lp-faq{
  display:grid;
  gap:18px;
}

.lp-faq div{
  background:#fff;
  border:1px solid rgba(129,216,208,.45);
  border-radius:20px;
  padding:24px;
}

.lp-faq h3{
  font-size:20px;
}

.lp-faq p{
  color:#475569;
  font-size:16px;
}

.lp-final-cta{
  background:linear-gradient(135deg,#0f172a,#123b42);
  color:#fff;
  border-radius:36px;
  padding:60px;
  text-align:center;
  margin:60px 0;
}

.lp-final-cta h2{
  font-size:46px;
  line-height:1.25;
}

.lp-final-cta p{
  color:rgba(255,255,255,.84);
  font-size:17px;
}

.lp-final-cta .lp-hero-buttons{
  justify-content:center;
}

.lp-final-points{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 8px;
}

.lp-final-points span{
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
}

.lp-footer{
  text-align:center;
  padding:40px 20px 90px;
  color:#64748b;
}

.lp-footer img{
  width:96px;
  height:96px;
  object-fit:contain;
}

.lp-footer a{
  color:var(--tiffany-dark);
  font-weight:900;
}

.floating-line{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  width:78px;
  height:78px;
  border-radius:50%;
  background:var(--linegreen);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,0,0,.2);
}

/* =========================
   Responsive
========================= */

@media(max-width:900px){
  header{
    display:block;
  }

  .status{
    margin-top:18px;
    display:inline-block;
    white-space:normal;
  }

  .result-head{
    display:block;
  }

  .score{
    font-size:44px;
  }

  .chart-box{
    height:420px;
  }

  .cta-box{
    padding:24px;
  }

  .cta-box h2{
    font-size:24px;
  }

  .lp-hero{
    padding:22px 20px 56px;
  }

  .lp-nav{
    margin-bottom:42px;
  }

  .lp-hero-inner,
  .lp-grid-4,
  .lp-case-grid,
  .lp-flow,
  .lp-price-grid,
  .lp-report-grid,
  .lp-before-after,
  .lp-achievement-band{
    grid-template-columns:1fr;
  }

  .lp-hero h1{
    font-size:42px;
  }

  .lp-lead{
    font-size:16px;
  }

  .lp-white{
    padding:28px;
    border-radius:28px;
  }

  .lp-section-head h2{
    font-size:34px;
  }

  .lp-case-card h3{
    font-size:28px;
  }

  .lp-final-cta{
    padding:34px 24px;
  }

  .lp-final-cta h2{
    font-size:30px;
  }

  .lp-main-btn,
  .lp-sub-btn{
    width:100%;
    padding:16px 20px;
  }

  .floating-line{
    right:14px;
    bottom:14px;
    width:66px;
    height:66px;
    font-size:12px;
  }
}



/* =========================
   LP Lead Form Modal
========================= */

.lead-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.68);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
}

.lead-modal.show{
  display:flex;
}

.lead-box{
  width:100%;
  max-width:560px;
  background:#fff;
  border-radius:28px;
  padding:38px;
  position:relative;
  box-shadow:0 30px 90px rgba(0,0,0,.25);
}

.lead-box h2{
  font-size:32px;
  color:#0f172a;
}

.lead-note{
  color:#475569;
  margin-bottom:22px;
}

.lead-box label{
  display:block;
  font-weight:900;
  margin:14px 0 6px;
  color:#0f172a;
}

.lead-box input{
  width:100%;
  padding:15px 16px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  font-size:16px;
}

.lead-close{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#0f172a;
  font-size:24px;
  cursor:pointer;
}

.receive-btn{
  width:100%;
  padding:16px 20px;
  margin-top:16px;
  border:0;
  border-radius:14px;
  background:#43c7cf;
  color:#fff;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
}

.receive-btn.line{
  background:#06c755;
}

.back-btn{
  width:100%;
  padding:14px 20px;
  margin-top:12px;
  border:0;
  border-radius:14px;
  background:#e2e8f0;
  color:#0f172a;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
}

.lp-nav-btn,
.lp-main-btn,
.lp-sub-btn{
  border:none;
  cursor:pointer;
}

@media(max-width:760px){
  .lead-box{
    padding:28px 22px;
  }

  .lead-box h2{
    font-size:26px;
  }
}


/* モーダル内スクロール修正 */
.lead-modal{
  overflow-y:auto;
  align-items:flex-start;
}

.lead-box{
  margin:40px auto;
  max-height:calc(100vh - 80px);
  overflow-y:auto;
}



/* =========================
   Admin Leads
========================= */

.lead-row{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  margin:14px 0;
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:20px;
  box-shadow:0 10px 30px rgba(20,30,60,.05);
}

.lead-row h3{
  margin:0 0 8px;
  font-size:22px;
}

.lead-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 16px;
}

.lead-detail p{
  margin:0;
}

@media(max-width:760px){
  .lead-row{
    grid-template-columns:1fr;
  }

  .lead-detail{
    grid-template-columns:1fr;
  }
}


/* =========================
   Admin Lead Actions
========================= */

.lead-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.lead-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  border:0;
  background:#185abc;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  font-size:14px;
}

.lead-action-btn.sub{
  background:#eaf1ff;
  color:#185abc;
}


/* =========================
   CRM Admin
========================= */

.lead-status-box{
  grid-column:1 / -1;
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:10px;
}

.lead-status-box select{
  min-width:160px;
  padding:10px 12px;
  border:1px solid #d7e3f3;
  border-radius:10px;
  font-weight:800;
  background:#fff;
  color:#0f172a;
}

.lead-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.lead-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  border:0;
  background:#185abc;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  font-size:14px;
}

.lead-action-btn.sub{
  background:#eaf1ff;
  color:#185abc;
}


/* =========================
   CRM Search / Filter
========================= */

.crm-toolbar{
  display:grid;
  grid-template-columns:1fr 240px;
  gap:14px;
  margin:22px 0 14px;
}

.crm-toolbar input,
.crm-toolbar select{
  width:100%;
  padding:14px 16px;
  border:1px solid #d7e3f3;
  border-radius:14px;
  font-weight:800;
  background:#fff;
  color:#0f172a;
}

.crm-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0 22px;
}

.crm-tabs button{
  border:1px solid #d7e3f3;
  background:#fff;
  color:#185abc;
  font-weight:900;
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
}

.crm-tabs button.active{
  background:#185abc;
  color:#fff;
}

.crm-tabs span{
  display:inline-block;
  margin-left:6px;
  opacity:.75;
}

.lead-title-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.crm-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#eaf1ff;
  color:#185abc;
}

.status-new{background:#fff7ed;color:#c2410c}
.status-diagnosed{background:#eaf1ff;color:#185abc}
.status-sent{background:#ecfeff;color:#0e7490}
.status-meeting{background:#fef9c3;color:#a16207}
.status-proposed{background:#f5f3ff;color:#6d28d9}
.status-closed{background:#dcfce7;color:#15803d}
.status-lost{background:#fee2e2;color:#b91c1c}

.lead-action-btn.line{
  background:#06c755;
  color:#fff;
}

.lead-action-btn.follow{
  background:#0f172a;
  color:#fff;
}

@media(max-width:780px){
  .crm-toolbar{
    grid-template-columns:1fr;
  }
}


/* =========================
   CRM Memo / Deal Fields
========================= */

.lead-crm-fields{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.lead-crm-fields label{
  display:block;
}

.lead-crm-fields input{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #d7e3f3;
  border-radius:10px;
  font-weight:800;
  background:#fff;
  color:#0f172a;
}

.lead-memo-box{
  grid-column:1 / -1;
  margin-top:12px;
}

.lead-memo-box textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border:1px solid #d7e3f3;
  border-radius:12px;
  font-weight:700;
  line-height:1.7;
  background:#fff;
  color:#0f172a;
  resize:vertical;
}

@media(max-width:780px){
  .lead-crm-fields{
    grid-template-columns:1fr;
  }
}



/* =========================
   CRM V2 Dashboard
========================= */

.today-box{
  margin-top:18px;
  background:#f8fbff;
  border:1px solid #d9e5f6;
  border-radius:18px;
  padding:18px;
}

.today-box h3{
  margin-bottom:14px;
}

.today-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  background:#fff;
  border:1px solid #d7e3f3;
  border-radius:14px;
  padding:14px;
  margin:10px 0;
}

.today-row p{
  margin:4px 0;
}

.lead-action-btn.proposal{
  background:#7c3aed;
  color:#fff;
}

.lead-crm-fields select{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #d7e3f3;
  border-radius:10px;
  font-weight:800;
  background:#fff;
  color:#0f172a;
}

@media(max-width:780px){
  .today-row{
    display:block;
  }
}



/* =========================
   CRM Compact Lead Cards
========================= */

.lead-row-compact{
  grid-template-columns:1fr;
}

.lead-main-info{
  width:100%;
}

.compact-meta{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:12px 0;
  font-size:14px;
  color:#334155;
}

.compact-meta span{
  background:#f8fbff;
  border:1px solid #d9e5f6;
  border-radius:10px;
  padding:8px 10px;
}

.lead-detail-open{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e5e7eb;
}

.lead-action-btn.detail{
  background:#64748b;
  color:#fff;
}

@media(max-width:900px){
  .compact-meta{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:560px){
  .compact-meta{
    grid-template-columns:1fr;
  }
}



/* =========================
   CRM Keyword Plan
========================= */

.keyword-preview{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0;
}

.keyword-preview span{
  background:#f0fdfa;
  color:#0f766e;
  border:1px solid #99f6e4;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
}

.lead-action-btn.keyword{
  background:#0f766e;
  color:#fff;
}

.lead-crm-fields input[type="number"]{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #d7e3f3;
  border-radius:10px;
  font-weight:800;
  background:#fff;
  color:#0f172a;
}


/* =========================
   GBP Status Form
========================= */

.gbp-status-group{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:12px 0 22px;
}

.gbp-status-group label{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#f8fbff;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
}

.gbp-status-group label:hover{
  background:#eef6ff;
  border-color:#93c5fd;
}

.gbp-status-group input[type="radio"]{
  width:auto;
  margin:0;
  accent-color:#20c7c9;
}

.gbp-status-group label:has(input:checked){
  border:2px solid #20c7c9;
  background:#ecfeff;
}

/* =========================
   LP Form Buttons
========================= */

.lead-box .receive-btn{
  width:100%;
  margin-top:20px;
}

.lead-box .back-btn{
  width:100%;
  margin-top:12px;
}

.lead-box .receive-btn.line{
  margin-top:12px;
}

/* =========================
   GBP Status Badge
========================= */

.crm-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.gbp-owner{
  background:#16a34a;
  color:#fff;
}

.gbp-staff{
  background:#2563eb;
  color:#fff;
}

.gbp-inactive{
  background:#dc2626;
  color:#fff;
}

.gbp-unknown{
  background:#94a3b8;
  color:#fff;
}

/* =========================
   CRM Toolbar 3 Columns
========================= */

.crm-toolbar{
  grid-template-columns:1fr 220px 220px;
}

@media(max-width:900px){
  .crm-toolbar{
    grid-template-columns:1fr;
  }
}


.site-footer{
  margin-top:40px;
  padding:24px;
  text-align:center;
  border-top:1px solid #e5e7eb;
  background:#fff;
}

.site-footer a{
  margin:0 12px;
  color:#1698d5;
  text-decoration:none;
  font-weight:600;
}

.site-footer a:hover{
  text-decoration:underline;
}
