﻿:root{
  --bg:#f3eee6;
  --bg-2:#efe6d8;
  --surface:rgba(255,255,255,.78);
  --surface-strong:#fffaf3;
  --surface-dark:#17332d;
  --text:#1d2a26;
  --muted:#66746d;
  --line:rgba(26,42,37,.12);
  --accent:#c5653d;
  --accent-strong:#ab4f2b;
  --accent-soft:#f6e0d3;
  --green:#1f7a64;
  --green-soft:#d8f1ea;
  --gold:#b78929;
  --danger:#b13d3d;
  --shadow:0 18px 50px rgba(49, 43, 36, .12);
  --shadow-soft:0 10px 24px rgba(49, 43, 36, .08);
  --radius:26px;
}

*{
  box-sizing:border-box;
}

[hidden]{
  display:none !important;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Manrope", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(197,101,61,.16), transparent 30%),
    radial-gradient(circle at top right, rgba(31,122,100,.12), transparent 28%),
    linear-gradient(180deg, #f8f4ef 0%, var(--bg) 100%);
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

.page-shell{
  width:min(1280px, calc(100% - 32px));
  margin:0 auto;
  padding:22px 0 42px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:999px;
  background:rgba(255,250,243,.72);
  backdrop-filter:blur(16px);
  box-shadow:var(--shadow-soft);
  position:sticky;
  top:14px;
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand strong{
  display:block;
  font-size:1rem;
}

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

.brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--accent), #d8a64d);
  color:#fff;
  font-weight:800;
  letter-spacing:.06em;
  box-shadow:0 16px 28px rgba(197,101,61,.26);
  flex:0 0 auto;
}

.topnav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.topnav a{
  padding:10px 14px;
  border-radius:999px;
  color:var(--muted);
  transition:.2s ease;
}

.topnav a:hover{
  background:rgba(197,101,61,.1);
  color:var(--text);
}

.hero{
  display:grid;
  grid-template-columns:1.35fr .75fr;
  gap:18px;
  margin-bottom:18px;
}

.hero-copy,
.hero-panel,
.controls-wrap,
.summary-bar,
.panel-card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.72);
  background:var(--surface);
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}

.hero-copy,
.hero-panel{
  min-width:0;
  max-width:100%;
}

.hero-copy{
  padding:32px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 32%),
    linear-gradient(135deg, #1e433a, var(--surface-dark));
  color:#fdf7ef;
  position:relative;
  overflow:hidden;
}

.hero-copy::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-60px;
  bottom:-80px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
}

.eyebrow{
  margin:0 0 14px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(253,247,239,.72);
}

.hero-copy h1,
.panel-card h1,
.section-head h2,
.summary-bar h2{
  margin:0;
  font-family:"Fraunces", serif;
  letter-spacing:-.03em;
}

.hero-copy h1{
  font-size:clamp(2rem, 4vw, 3.8rem);
  line-height:1.02;
  max-width:720px;
}

.hero-text{
  margin:18px 0 0;
  max-width:680px;
  color:rgba(253,247,239,.88);
  line-height:1.8;
}

.hero-actions,
.sidebar-actions,
.inline-actions,
.card-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-actions{
  margin-top:24px;
}

.button{
  border:0;
  border-radius:16px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
}

.button:hover{
  transform:translateY(-1px);
}

.button.primary{
  background:linear-gradient(135deg, var(--accent), #d08a3d);
  color:#fff;
  box-shadow:0 12px 24px rgba(197,101,61,.28);
}

.button.secondary{
  background:#edf4f1;
  color:var(--text);
  border:1px solid rgba(31,122,100,.12);
}

.button.ghost{
  background:rgba(255,255,255,.1);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}

.hero-panel{
  padding:24px;
  display:grid;
  gap:14px;
}

.hero-stat{
  padding:16px 18px;
  border-radius:22px;
  background:var(--surface-strong);
  border:1px solid var(--line);
}

.hero-stat span{
  color:var(--muted);
  display:block;
  font-size:.85rem;
}

.hero-stat strong{
  display:block;
  margin-top:6px;
  font-size:1.75rem;
  letter-spacing:-.04em;
}

.hero-note,
.muted-copy{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.controls-wrap{
  padding:18px;
  margin-bottom:18px;
}

.controls{
  display:grid;
  grid-template-columns:1.6fr .8fr .8fr;
  gap:12px;
}

.control,
.field-block{
  display:grid;
  gap:8px;
}

.control span,
.field-block span,
.section-subtitle{
  font-size:.86rem;
  font-weight:700;
  color:var(--muted);
}

.control input,
.control select,
.field-block input,
.field-block select,
.field-block textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 15px;
  background:rgba(255,255,255,.88);
  color:var(--text);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.control input:focus,
.control select:focus,
.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus{
  border-color:rgba(31,122,100,.36);
  box-shadow:0 0 0 4px rgba(31,122,100,.08);
}

.field-block textarea{
  resize:vertical;
  min-height:96px;
}

.chip-row,
.districts,
.tag-list,
.fact-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip-row{
  margin-top:14px;
}

.chip{
  border:1px solid rgba(31,122,100,.12);
  border-radius:999px;
  padding:11px 14px;
  background:#f3f7f5;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.chip:hover,
.chip.active{
  background:var(--green);
  color:#fff;
  box-shadow:0 12px 20px rgba(31,122,100,.2);
}

.summary-bar{
  padding:22px 24px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:14px;
}

.summary-bar h2{
  font-size:1.7rem;
}

.summary-bar p{
  margin:8px 0 0;
  color:var(--muted);
}

.summary-meta{
  color:var(--muted);
  font-weight:700;
}

.map-panel{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:16px;
  margin-bottom:18px;
}

.map-copy{
  padding:24px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,250,243,.86);
  box-shadow:var(--shadow);
}

.map-copy h2{
  margin:0 0 12px;
  font-family:"Fraunces", serif;
  font-size:1.8rem;
  line-height:1.15;
}

.map-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

.map-eyebrow{
  color:var(--accent-strong);
}

.map-canvas{
  min-height:390px;
  border-radius:30px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  box-shadow:var(--shadow);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip{
  box-shadow:none;
}

.leaflet-popup-content-wrapper{
  border-radius:18px;
  border:1px solid rgba(26,42,37,.08);
}

.map-popup{
  min-width:200px;
}

.map-popup strong{
  display:block;
  margin-bottom:6px;
  font-size:1rem;
}

.map-popup p{
  margin:0 0 10px;
  color:var(--muted);
  line-height:1.5;
  font-size:.88rem;
}

.map-popup a{
  color:var(--accent-strong);
  font-weight:800;
}

.districts{
  margin-bottom:18px;
}

.district-pill{
  border-radius:999px;
  padding:10px 14px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  cursor:pointer;
  font-weight:700;
}

.district-pill.active{
  background:var(--accent-soft);
  border-color:rgba(197,101,61,.28);
}

.catalog-grid{
  display:grid;
  gap:16px;
}

.cafe-card{
  display:grid;
  grid-template-columns:320px 1fr;
  border-radius:30px;
  overflow:hidden;
  background:rgba(255,250,243,.88);
  border:1px solid rgba(255,255,255,.74);
  box-shadow:var(--shadow);
}

.cafe-photo-wrap{
  position:relative;
  min-height:100%;
  background:
    linear-gradient(135deg, rgba(31,122,100,.22), rgba(197,101,61,.3)),
    #d9d0c3;
}

.cafe-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.status-pill,
.rating-pill{
  position:absolute;
  z-index:1;
  border-radius:999px;
  padding:10px 12px;
  font-size:.78rem;
  font-weight:800;
  backdrop-filter:blur(10px);
}

.status-pill{
  left:14px;
  top:14px;
  background:rgba(23,51,45,.82);
  color:#fff;
}

.status-pill.open{
  background:rgba(31,122,100,.88);
}

.rating-pill{
  right:14px;
  bottom:14px;
  background:rgba(255,250,243,.92);
  color:var(--text);
}

.cafe-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.card-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:start;
}

.card-kicker{
  margin:0 0 6px;
  color:var(--muted);
  font-size:.86rem;
  font-weight:700;
}

.card-head h3{
  margin:0;
  font-size:1.65rem;
  font-family:"Fraunces", serif;
  line-height:1.1;
}

.price-tag{
  margin:0;
  padding:10px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:800;
  white-space:nowrap;
}

.address-line,
.summary-line{
  margin:0;
}

.address-line{
  color:var(--muted);
  line-height:1.65;
}

.summary-line{
  line-height:1.75;
}

.tag,
.fact{
  border-radius:999px;
  padding:9px 12px;
  font-size:.84rem;
  font-weight:700;
}

.tag{
  background:#edf4f1;
  color:#21453d;
}

.tag.good{
  background:var(--green-soft);
}

.tag.warn{
  background:#f7ead1;
  color:#8a6318;
}

.fact{
  background:#fffaf3;
  border:1px solid var(--line);
  color:var(--muted);
}

.empty-state{
  padding:36px;
  border-radius:28px;
  background:rgba(255,250,243,.88);
  border:1px dashed rgba(31,122,100,.22);
  text-align:center;
  color:var(--muted);
  box-shadow:var(--shadow-soft);
}

.admin-layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:18px;
}

.admin-sidebar{
  display:grid;
  gap:18px;
  align-self:start;
  position:sticky;
  top:104px;
}

.admin-main{
  display:grid;
  gap:18px;
}

.panel-card{
  padding:22px;
}

.list-header,
.section-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:start;
}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  font-size:1.8rem;
}

.admin-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.admin-item{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fffaf3;
  cursor:pointer;
  transition:.2s ease;
}

.admin-item strong{
  display:block;
}

.admin-item small{
  color:var(--muted);
}

.admin-item.active{
  border-color:rgba(31,122,100,.24);
  background:#eaf5f1;
}

.form-grid{
  display:grid;
  gap:14px;
  margin-bottom:14px;
}

.form-grid.two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.form-grid.three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.hours-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:10px 0 18px;
}

.hour-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fffaf3;
}

.hour-card h3{
  margin:0 0 12px;
  font-size:1rem;
}

.hour-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.preview-panel{
  margin:4px 0 18px;
  border-radius:24px;
  overflow:hidden;
  min-height:220px;
  background:
    linear-gradient(135deg, rgba(31,122,100,.18), rgba(197,101,61,.24)),
    #dcd0bf;
  display:grid;
  place-items:center;
}

.preview-panel img{
  width:100%;
  height:100%;
  max-height:320px;
  object-fit:cover;
  display:block;
}

.toast{
  position:fixed;
  right:22px;
  bottom:22px;
  min-width:220px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(23,51,45,.92);
  color:#fff;
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transform:translateY(16px);
  transition:.25s ease;
}

.toast.visible{
  opacity:1;
  transform:translateY(0);
}

@media (max-width: 1080px){
  .hero,
  .map-panel,
  .admin-layout{
    grid-template-columns:1fr;
  }

  .admin-sidebar{
    position:static;
  }
}

@media (max-width: 860px){
  .topbar,
  .summary-bar,
  .card-head,
  .list-header,
  .section-head{
    flex-direction:column;
    align-items:stretch;
  }

  .controls,
  .form-grid.two,
  .form-grid.three,
  .hours-grid{
    grid-template-columns:1fr;
  }

  .cafe-card{
    grid-template-columns:1fr;
  }

  .cafe-photo-wrap{
    min-height:240px;
  }
}

@media (max-width: 640px){
  .page-shell{
    width:min(100% - 20px, 1280px);
    padding-top:14px;
  }

  .hero-copy,
  .hero-panel,
  .controls-wrap,
  .summary-bar,
  .panel-card,
  .cafe-body{
    padding:18px;
  }

  .topbar{
    padding:14px;
    border-radius:28px;
  }
}

.coverage-row{
  justify-content:flex-end;
  max-width:560px;
}

.meta-chip{
  border-radius:999px;
  padding:10px 14px;
  background:#fffaf3;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.84rem;
  font-weight:800;
}

.inline-note{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.editor-shell{
  margin-top:22px;
}

.editor-shell > .section-head{
  margin-bottom:18px;
}

.editor-kicker{
  margin:0 0 8px;
  color:var(--accent-strong);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.editor-layout{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:18px;
}

.editor-stack{
  display:grid;
  gap:18px;
  align-self:start;
  position:sticky;
  top:104px;
}

.editor-main{
  display:grid;
  gap:18px;
}

.editor-search{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 15px;
  background:rgba(255,255,255,.88);
  color:var(--text);
  outline:none;
}

.editor-search:focus{
  border-color:rgba(31,122,100,.36);
  box-shadow:0 0 0 4px rgba(31,122,100,.08);
}

.editor-list-meta,
.editor-help{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.editor-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.editor-mini-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.editor-id{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.88rem;
}

.check-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.check-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fffaf3;
  font-weight:700;
}

.check-item input{
  width:18px;
  height:18px;
  accent-color:var(--green);
}

.hours-wrap{
  margin-top:8px;
}

.hours-wrap > .section-subtitle{
  display:block;
  margin-bottom:12px;
}

.preview-note{
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:1;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(23,51,45,.8);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
}

.preview-panel{
  position:relative;
}

.card-actions .button{
  flex:1 1 180px;
}

.standalone-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#fff7ee;
  border:1px solid rgba(197,101,61,.18);
  color:var(--accent-strong);
  font-weight:800;
}

.hidden-input{
  display:none;
}

@media (max-width: 1080px){
  .editor-layout{
    grid-template-columns:1fr;
  }

  .editor-stack{
    position:static;
  }
}

@media (max-width: 860px){
  .check-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  .coverage-row,
  .editor-actions,
  .editor-mini-actions{
    justify-content:flex-start;
  }

  .check-grid{
    grid-template-columns:1fr;
  }
}

/* Award-style public refresh */
:root{
  --bg:#120f0a;
  --bg-2:#21170f;
  --surface:rgba(255,251,241,.82);
  --surface-strong:#fff7e9;
  --surface-dark:#092f2b;
  --text:#201914;
  --muted:#76685b;
  --line:rgba(53,36,21,.13);
  --accent:#ff7a3d;
  --accent-strong:#c94e1e;
  --accent-soft:#ffe0cb;
  --green:#087969;
  --green-soft:#daf7ef;
  --gold:#f0b744;
  --shadow:0 28px 80px rgba(34, 20, 8, .18);
  --shadow-soft:0 14px 34px rgba(34, 20, 8, .12);
}

body{
  min-height:100%;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,122,61,.24), transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(8,121,105,.28), transparent 32%),
    radial-gradient(circle at 70% 62%, rgba(240,183,68,.18), transparent 28%),
    linear-gradient(135deg, #fff6e6 0%, #f7ead7 42%, #e9f1e9 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(rgba(18,15,10,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,15,10,.035) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

.page-shell{
  width:min(1420px, calc(100% - 32px));
}

.topbar{
  border-color:rgba(255,255,255,.82);
  background:rgba(255,247,233,.72);
}

.brand-mark{
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, #0b6f64, #ff7a3d 68%, #f2bc4b);
  border:1px solid rgba(255,255,255,.45);
}

.brand-logo{
  width:52px;
  height:52px;
  border-radius:18px;
  overflow:hidden;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#fff;
  border:1px solid rgba(7,59,51,.14);
  box-shadow:0 14px 28px rgba(7,59,51,.12);
}

.brand-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.topnav a{
  font-weight:800;
}

.topnav a:first-child{
  color:#fff;
  background:linear-gradient(135deg, #0a7568, #ff7a3d);
  box-shadow:0 12px 24px rgba(8,121,105,.18);
}

.hero{
  grid-template-columns:minmax(0, 1.28fr) 420px;
  gap:20px;
}

.hero-copy{
  min-height:470px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.2), transparent 23%),
    radial-gradient(circle at 10% 12%, rgba(240,183,68,.28), transparent 30%),
    linear-gradient(135deg, rgba(8,57,52,.98), rgba(21,28,23,.98) 54%, rgba(122,54,28,.98));
}

.hero-copy::before{
  content:"";
  position:absolute;
  inset:20px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:calc(var(--radius) - 8px);
  pointer-events:none;
}

.hero-copy h1,
.summary-bar h2,
.map-copy h2,
.section-minihead h2,
.ai-copy h2{
  font-family:"Syne", "Fraunces", serif;
}

.hero-copy h1{
  max-width:900px;
  font-size:clamp(2.35rem, 5.4vw, 5.85rem);
}

.hero-text{
  font-size:1.05rem;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.hero-badges span{
  padding:10px 13px;
  border-radius:999px;
  color:#fff8ed;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
  font-weight:800;
}

.hero-panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,247,233,.9)),
    radial-gradient(circle at top right, rgba(255,122,61,.18), transparent 44%);
}

.hero-stat{
  border-radius:26px;
  background:rgba(255,255,255,.74);
}

.hero-stat strong{
  font-family:"Syne", sans-serif;
  color:#0d3d37;
}

.button.primary{
  background:linear-gradient(135deg, #0b776b, #ff7a3d 68%, #f1b744);
  box-shadow:0 18px 36px rgba(255,122,61,.28);
}

.button.secondary{
  background:#fff3e5;
}

.ai-studio,
.discovery-panel{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.ai-studio{
  grid-template-columns:minmax(0, 1.05fr) minmax(360px, .95fr);
}

.discovery-panel{
  grid-template-columns:minmax(0, 1fr) 360px;
  align-items:stretch;
}

.ai-copy,
.ai-results-card,
.category-dock{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.78);
  background:rgba(255,247,233,.78);
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
}

.ai-copy{
  padding:28px;
  position:relative;
  overflow:hidden;
}

.ai-copy::after{
  content:"AI";
  position:absolute;
  right:-10px;
  bottom:-34px;
  font-family:"Syne", sans-serif;
  font-size:9rem;
  font-weight:800;
  color:rgba(8,121,105,.08);
  letter-spacing:-.1em;
}

.ai-copy h2,
.section-minihead h2{
  margin:0;
  letter-spacing:-.04em;
}

.ai-copy h2{
  font-size:clamp(1.9rem, 3vw, 3.2rem);
}

.ai-copy p:not(.eyebrow){
  max-width:760px;
  color:var(--muted);
  line-height:1.75;
}

.ai-eyebrow,
.control-eyebrow{
  color:var(--accent-strong);
}

.ai-modes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0;
}

.ai-mode,
.ai-result{
  border:1px solid var(--line);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.ai-mode{
  border-radius:999px;
  padding:11px 14px;
  background:#fffaf1;
  color:var(--text);
  font-weight:900;
}

.ai-mode:hover,
.ai-mode.active{
  transform:translateY(-1px);
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, #0b776b, #ff7a3d);
  box-shadow:0 16px 30px rgba(8,121,105,.18);
}

.ai-prompt{
  display:grid;
  gap:9px;
  max-width:760px;
}

.ai-prompt span{
  color:var(--muted);
  font-weight:800;
}

.ai-prompt input{
  width:100%;
  border:1px solid rgba(8,121,105,.18);
  border-radius:20px;
  padding:16px 18px;
  background:rgba(255,255,255,.86);
  outline:none;
}

.ai-prompt input:focus{
  box-shadow:0 0 0 5px rgba(8,121,105,.1);
}

.ai-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.ai-actions .button{
  flex:1 1 180px;
}

.ai-results-card{
  padding:22px;
  display:grid;
  align-content:start;
  gap:16px;
  background:
    radial-gradient(circle at top right, rgba(8,121,105,.15), transparent 38%),
    rgba(255,247,233,.84);
}

.ai-header{
  display:flex;
  gap:12px;
  align-items:center;
}

.ai-header strong{
  display:block;
  font-family:"Syne", sans-serif;
  font-size:1.35rem;
}

.ai-header small{
  display:block;
  color:var(--muted);
  line-height:1.5;
}

.ai-pulse{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#0b776b;
  box-shadow:0 0 0 8px rgba(8,121,105,.12), 0 0 30px rgba(8,121,105,.45);
  flex:0 0 auto;
}

.ai-suggestion-list{
  display:grid;
  gap:10px;
}

.ai-result{
  width:100%;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  text-align:left;
  border-radius:22px;
  padding:14px;
  background:rgba(255,255,255,.74);
}

.ai-result:hover{
  transform:translateY(-2px);
  border-color:rgba(8,121,105,.24);
  box-shadow:var(--shadow-soft);
}

.ai-rank,
.ai-score{
  font-weight:900;
}

.ai-rank{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg, #0b776b, #ff7a3d);
}

.ai-result-main strong,
.ai-result-main small{
  display:block;
}

.ai-result-main strong{
  font-size:1rem;
}

.ai-result-main small{
  margin-top:3px;
  color:var(--muted);
  line-height:1.45;
}

.ai-score{
  color:#0b776b;
}

.controls-wrap{
  margin-bottom:0;
  padding:22px;
  overflow:hidden;
  position:relative;
}

.controls-wrap::after{
  content:"";
  position:absolute;
  right:-55px;
  top:-55px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,122,61,.12);
}

.section-minihead{
  position:relative;
  z-index:1;
  margin-bottom:16px;
}

.section-minihead .eyebrow{
  margin-bottom:8px;
}

.controls,
.chip-row{
  position:relative;
  z-index:1;
}

.chip{
  background:#fffaf1;
  border-color:rgba(8,121,105,.12);
}

.chip:hover,
.chip.active{
  background:linear-gradient(135deg, #0b776b, #ff7a3d);
}

.category-dock{
  padding:22px;
}

.category-dock .districts{
  display:grid;
  grid-template-columns:1fr;
  max-height:330px;
  overflow:auto;
  margin:0;
  padding-right:4px;
}

.district-pill{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  width:100%;
  border-radius:18px;
  padding:12px 14px;
  background:rgba(255,255,255,.74);
  text-align:left;
}

.district-pill span{
  color:var(--muted);
}

.district-pill.active{
  color:#fff;
  background:linear-gradient(135deg, #0b776b, #ff7a3d);
  border-color:transparent;
  box-shadow:0 14px 28px rgba(8,121,105,.16);
}

.district-pill.active span{
  color:rgba(255,255,255,.84);
}

.summary-bar{
  background:rgba(255,247,233,.82);
}

.coverage-row{
  max-width:none;
  justify-content:flex-start;
  margin:0 0 18px;
}

.meta-chip{
  background:rgba(255,255,255,.72);
}

.map-panel{
  gap:20px;
}

.map-copy{
  background:
    radial-gradient(circle at bottom right, rgba(255,122,61,.13), transparent 38%),
    rgba(255,247,233,.86);
}

.cafe-card{
  position:relative;
  isolation:isolate;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cafe-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,122,61,.24);
  box-shadow:0 34px 90px rgba(34, 20, 8, .22);
}

.cafe-photo-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.26));
  pointer-events:none;
}

.cafe-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.cafe-card:hover .cafe-photo{
  transform:scale(1.045);
}

.photo-trigger{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  padding:0;
  cursor:zoom-in;
  background:transparent;
  color:inherit;
}

.photo-trigger.is-disabled{
  cursor:default;
  background:
    linear-gradient(135deg, rgba(9,29,25,.96), rgba(16,43,36,.92)),
    radial-gradient(circle at top right, rgba(216,255,95,.14), transparent 34%);
  overflow:hidden;
}

.photo-trigger.is-disabled::before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:
    radial-gradient(circle at 22% 22%, rgba(216,255,95,.22), transparent 18%),
    linear-gradient(160deg, rgba(255,250,241,.12), rgba(255,250,241,.02));
}

.photo-pending-art{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fffaf1;
  opacity:.96;
}

.photo-pending-initial{
  width:104px;
  height:104px;
  border-radius:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.1);
  box-shadow:0 24px 60px rgba(0,0,0,.24);
  font-family:var(--display);
  font-size:4rem;
  font-weight:800;
}

.photo-pending-lines{
  position:absolute;
  right:24px;
  top:26px;
  display:grid;
  gap:8px;
}

.photo-pending-lines span{
  width:54px;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
}

.photo-pending-lines span:nth-child(2){
  width:38px;
}

.photo-pending-lines span:nth-child(3){
  width:68px;
}

.photo-empty-copy{
  position:absolute;
  inset:auto 16px 54px 16px;
  z-index:2;
  display:block;
  color:#fffaf1;
  font-size:.92rem;
  font-weight:700;
  line-height:1.5;
  text-align:left;
}

.photo-empty-meta{
  position:absolute;
  inset:auto 16px 32px 16px;
  z-index:2;
  display:block;
  max-width:calc(100% - 32px);
  overflow:hidden;
  color:rgba(255,250,241,.76);
  font-size:.78rem;
  font-weight:700;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.photo-trigger:focus-visible{
  outline:3px solid var(--electric);
  outline-offset:-8px;
}

.gallery-count{
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:9px 13px;
  background:rgba(12,23,20,.78);
  color:#fffaf1;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 16px 30px rgba(0,0,0,.22);
  backdrop-filter:blur(12px);
}

.status-pill,
.rating-pill{
  z-index:2;
}

.card-head h3{
  font-family:"Syne", "Fraunces", serif;
}

.tag.good{
  color:#0d4b42;
}

.empty-state.compact{
  padding:18px;
  border-radius:18px;
  box-shadow:none;
}

@media (max-width: 1180px){
  .hero,
  .ai-studio,
  .discovery-panel{
    grid-template-columns:1fr;
  }

  .category-dock .districts{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .hero-copy{
    min-height:420px;
  }

  .ai-result{
    grid-template-columns:auto 1fr;
  }

  .ai-score{
    grid-column:2;
  }

  .category-dock .districts{
    grid-template-columns:1fr;
    max-height:none;
  }

  .gallery-modal{
    padding:10px;
  }

  .gallery-dialog{
    border-radius:24px;
    padding:12px;
  }

  .gallery-top{
    align-items:stretch;
    flex-direction:column;
  }

  .gallery-actions{
    justify-content:space-between;
  }

  .gallery-stage img{
    height:58vh;
  }

  .gallery-nav{
    width:42px;
    height:42px;
    border-radius:15px;
  }

  .gallery-thumb{
    flex-basis:76px;
    height:58px;
  }
}

/* Studio redesign v2: premium product interface */
:root{
  --ink:#0d1715;
  --ink-2:#13231f;
  --paper:#fff9ed;
  --paper-2:#f4eadb;
  --electric:#d8ff5f;
  --coral:#ff6b3d;
  --mint:#51d6bd;
  --night:#061513;
  --text:#151b18;
  --muted:#6e756f;
  --line:rgba(21,27,24,.11);
  --surface:rgba(255,249,237,.78);
  --surface-strong:#fffaf1;
  --accent:var(--coral);
  --accent-strong:#bd4320;
  --accent-soft:#ffe2d2;
  --green:#087969;
  --green-soft:#dcf8f0;
  --shadow:0 28px 80px rgba(6,21,19,.16);
  --shadow-soft:0 14px 34px rgba(6,21,19,.10);
  --radius:34px;
}

body{
  background:
    radial-gradient(circle at 8% 5%, rgba(216,255,95,.34), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(81,214,189,.28), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(255,107,61,.20), transparent 28%),
    linear-gradient(135deg, #f8f2e4 0%, #efe5d5 48%, #dfece5 100%);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at center, transparent 0 46%, rgba(6,21,19,.045) 47% 48%, transparent 49%),
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0));
  background-size:36px 36px, auto;
}

.page-shell{
  width:min(1500px, calc(100% - 36px));
  padding-top:18px;
}

.topbar{
  max-width:1180px;
  margin:0 auto 22px;
  padding:12px 14px;
  border-radius:24px;
  background:rgba(255,250,241,.70);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 20px 60px rgba(6,21,19,.09);
}

.brand-mark{
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--night), #0b7468 58%, var(--electric));
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:14px;
}

.brand strong{
  font-family:"Syne", sans-serif;
  letter-spacing:-.03em;
}

.brand small{
  font-size:.78rem;
}

.topnav{
  gap:6px;
}

.topnav a{
  padding:10px 13px;
  color:#36443f;
}

.topnav a:first-child{
  color:#0a1714;
  background:var(--electric);
  box-shadow:none;
}

.hero{
  grid-template-columns:minmax(0, 1fr) 390px;
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}

.hero-copy{
  min-height:640px;
  padding:44px;
  justify-content:center;
  border-radius:48px;
  background:
    linear-gradient(135deg, rgba(216,255,95,.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(81,214,189,.25), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(255,107,61,.20), transparent 25%),
    linear-gradient(135deg, #061513 0%, #0b2622 52%, #17201a 100%);
  box-shadow:0 44px 110px rgba(6,21,19,.30);
}

.hero-copy::before{
  inset:18px;
  border-radius:34px;
  border-color:rgba(255,255,255,.13);
}

.hero-copy::after{
  width:420px;
  height:420px;
  right:-150px;
  bottom:-150px;
  background:
    linear-gradient(135deg, rgba(216,255,95,.22), rgba(81,214,189,.08));
  filter:blur(1px);
}

.hero-copy .eyebrow{
  color:var(--electric);
}

.hero-copy h1{
  max-width:980px;
  font-size:clamp(3rem, 7.2vw, 7.6rem);
  line-height:.88;
  letter-spacing:-.085em;
}

.hero-text{
  max-width:760px;
  font-size:1.12rem;
  color:rgba(255,249,237,.82);
}

.hero-badges{
  margin-top:28px;
}

.hero-badges span{
  border-radius:16px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
}

.hero-copy .eyebrow{
  max-width:32rem;
  letter-spacing:.08em;
}

.hero-copy h1{
  max-width:14ch;
  line-height:.94;
  text-wrap:balance;
}

.hero-text{
  max-width:58ch;
  font-size:1.08rem;
  line-height:1.72;
}

.hero-actions{
  margin-top:28px;
}

.hero-location{
  margin:14px 0 0;
  max-width:52ch;
  color:rgba(255,249,237,.72);
  line-height:1.6;
}

.button{
  border-radius:18px;
  min-height:48px;
}

.button.primary{
  color:#091310;
  background:linear-gradient(135deg, var(--electric), #75ebcf);
  box-shadow:0 18px 38px rgba(216,255,95,.24);
}

.hero-copy .button.ghost{
  background:rgba(255,255,255,.10);
  color:#fff9ed;
}

.hero-panel{
  border-radius:42px;
  padding:18px;
  gap:12px;
  background:
    linear-gradient(180deg, rgba(255,250,241,.92), rgba(255,250,241,.68)),
    radial-gradient(circle at top right, rgba(216,255,95,.30), transparent 42%);
  border:1px solid rgba(255,255,255,.86);
}

.hero-stat{
  min-height:124px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-radius:28px;
  background:rgba(255,255,255,.66);
}

.hero-stat span{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
}

.hero-stat strong{
  font-size:2.35rem;
  color:#071b17;
}

.hero-note{
  padding:16px;
  border-radius:24px;
  background:#0c1d19;
  color:rgba(255,249,237,.74);
}

.experience-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-bottom:18px;
}

.experience-strip div{
  padding:18px;
  border-radius:26px;
  background:rgba(255,250,241,.76);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:var(--shadow-soft);
}

.experience-strip strong,
.experience-strip span{
  display:block;
}

.experience-strip strong{
  font-family:"Syne", sans-serif;
  font-size:1.08rem;
}

.experience-strip span{
  margin-top:6px;
  color:var(--muted);
  line-height:1.55;
  font-size:.9rem;
}

.ai-studio{
  grid-template-columns:430px minmax(0, 1fr);
  gap:18px;
}

.ai-copy,
.ai-results-card,
.controls-wrap,
.category-dock,
.summary-bar,
.map-copy,
.map-canvas{
  border-radius:36px;
  border:1px solid rgba(255,255,255,.84);
}

.ai-copy{
  padding:30px;
  color:#fff9ed;
  background:
    radial-gradient(circle at 92% 10%, rgba(216,255,95,.24), transparent 34%),
    linear-gradient(145deg, #061513, #11322c);
}

.ai-copy::after{
  color:rgba(216,255,95,.09);
  font-size:11rem;
}

.ai-eyebrow{
  color:var(--electric);
}

.ai-copy p:not(.eyebrow){
  color:rgba(255,249,237,.72);
}

.ai-copy h2,
.section-minihead h2,
.summary-bar h2,
.map-copy h2{
  letter-spacing:-.06em;
}

.ai-mode{
  color:#fff9ed;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14);
}

.ai-mode:hover,
.ai-mode.active{
  color:#081512;
  background:var(--electric);
}

.ai-prompt input{
  background:rgba(255,255,255,.92);
}

.ai-prompt span{
  color:rgba(255,249,237,.7);
}

.ai-results-card{
  background:rgba(255,250,241,.80);
}

.ai-results-card .ai-actions{
  margin-top:0;
}

.ai-header strong{
  font-size:1.7rem;
}

.ai-pulse{
  background:var(--electric);
  box-shadow:0 0 0 8px rgba(216,255,95,.18), 0 0 34px rgba(216,255,95,.45);
}

.ai-result{
  min-height:92px;
  border-radius:26px;
}

.ai-rank{
  color:#081512;
  background:var(--electric);
}

.ai-score{
  color:#0a7668;
  font-size:1.12rem;
}

.discovery-panel{
  grid-template-columns:minmax(0, 1fr) 330px;
}

.controls-wrap{
  padding:24px;
  background:rgba(255,250,241,.78);
}

.controls{
  grid-template-columns:minmax(280px, 1fr) 220px 220px;
  gap:12px;
}

.control input,
.control select,
.field-block input,
.field-block select,
.field-block textarea{
  border-radius:18px;
  background:rgba(255,255,255,.78);
}

.chip{
  border-radius:16px;
  background:rgba(255,255,255,.72);
}

.chip:hover,
.chip.active{
  color:#0b1714;
  background:var(--electric);
  box-shadow:0 16px 30px rgba(216,255,95,.24);
}

.category-dock{
  padding:24px;
  background:
    linear-gradient(180deg, rgba(255,250,241,.86), rgba(255,250,241,.70)),
    radial-gradient(circle at top right, rgba(255,107,61,.18), transparent 40%);
  align-self:start;
  position:sticky;
  top:92px;
}

.category-dock .districts{
  max-height:410px;
  gap:8px;
}

.district-pill{
  border-radius:18px;
  background:rgba(255,255,255,.68);
}

.district-pill.active{
  color:#071512;
  background:var(--electric);
  box-shadow:0 14px 24px rgba(216,255,95,.20);
}

.district-pill.active span{
  color:rgba(7,21,18,.62);
}

.summary-bar{
  padding:24px;
  align-items:center;
  background:#071512;
  color:#fff9ed;
}

.summary-bar p,
.summary-meta{
  color:rgba(255,249,237,.68);
}

.coverage-row{
  gap:8px;
}

.meta-chip{
  border-radius:16px;
  background:rgba(255,250,241,.76);
}

.map-panel{
  grid-template-columns:390px minmax(0, 1fr);
}

.map-copy{
  padding:28px;
  background:rgba(255,250,241,.78);
}

.map-canvas{
  min-height:480px;
}

.catalog-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.cafe-card{
  grid-template-columns:1fr;
  border-radius:34px;
  background:rgba(255,250,241,.82);
  border:1px solid rgba(255,255,255,.82);
  overflow:hidden;
}

.cafe-photo-wrap{
  height:270px;
  min-height:270px;
}

.cafe-body{
  padding:22px;
}

.card-head h3{
  font-size:1.55rem;
}

.price-tag{
  background:#0b1a16;
  color:var(--electric);
}

.tag{
  border-radius:14px;
}

.fact{
  border-radius:14px;
  background:rgba(255,255,255,.66);
}

.gallery-open{
  overflow:hidden;
}

.gallery-modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.gallery-modal.visible{
  opacity:1;
  pointer-events:auto;
}

.gallery-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,122,61,.22), transparent 34%),
    rgba(7,12,10,.78);
  backdrop-filter:blur(18px);
  cursor:zoom-out;
}

.gallery-dialog{
  position:relative;
  z-index:1;
  width:min(1120px, 100%);
  max-height:min(92vh, 920px);
  display:grid;
  grid-template-rows:auto minmax(0, 1fr) auto;
  gap:16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:34px;
  padding:18px;
  background:linear-gradient(145deg, rgba(255,250,241,.98), rgba(245,233,215,.94));
  box-shadow:0 44px 120px rgba(0,0,0,.44);
  transform:translateY(16px) scale(.98);
  transition:transform .24s ease;
}

.gallery-modal.visible .gallery-dialog{
  transform:none;
}

.gallery-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:4px 6px 0;
}

.gallery-eyebrow{
  margin:0 0 4px;
  color:#b9562d;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.gallery-top h2{
  margin:0;
  font-family:"Syne", "Fraunces", serif;
  font-size:clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing:-.05em;
}

#galleryMeta{
  margin:6px 0 0;
  color:var(--muted);
  line-height:1.5;
}

.gallery-source{
  color:var(--muted);
  font-size:.8rem;
  text-underline-offset:3px;
}

.gallery-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

#galleryCounter{
  border-radius:999px;
  padding:9px 12px;
  color:#fffaf1;
  background:#101c18;
  font-size:.8rem;
  font-weight:900;
  white-space:nowrap;
}

.gallery-close,
.gallery-nav{
  display:grid;
  place-items:center;
  border:0;
  cursor:pointer;
  color:#101c18;
  background:#fffaf1;
  box-shadow:0 14px 30px rgba(0,0,0,.14);
}

.gallery-close{
  width:42px;
  height:42px;
  border-radius:999px;
  font-size:1.55rem;
  line-height:1;
}

.gallery-stage{
  position:relative;
  min-height:0;
  overflow:hidden;
  border-radius:28px;
  background:#111c18;
}

.gallery-stage img{
  width:100%;
  height:min(62vh, 650px);
  display:block;
  object-fit:contain;
  background:#111c18;
}

.gallery-nav{
  position:absolute;
  top:50%;
  z-index:2;
  width:48px;
  height:48px;
  border-radius:18px;
  transform:translateY(-50%);
  font-size:2rem;
}

.gallery-nav.prev{
  left:16px;
}

.gallery-nav.next{
  right:16px;
}

.gallery-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.gallery-thumbs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:2px 2px 4px;
}

.gallery-thumb{
  flex:0 0 92px;
  height:70px;
  border:2px solid transparent;
  border-radius:18px;
  overflow:hidden;
  padding:0;
  cursor:pointer;
  background:#fff;
  opacity:.68;
}

.gallery-thumb.active{
  opacity:1;
  border-color:#ff7a3d;
  box-shadow:0 12px 26px rgba(255,122,61,.25);
}

.gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.card-actions .button{
  flex:1 1 150px;
}

@keyframes studio-rise{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.hero,
.experience-strip,
.ai-studio,
.discovery-panel,
.summary-bar,
.map-panel,
.catalog-grid{
  animation:studio-rise .6s ease both;
}

.experience-strip{ animation-delay:.05s; }
.ai-studio{ animation-delay:.10s; }
.discovery-panel{ animation-delay:.15s; }
.summary-bar{ animation-delay:.18s; }
.map-panel{ animation-delay:.20s; }
.catalog-grid{ animation-delay:.24s; }

@media (max-width: 1180px){
  .hero,
  .ai-studio,
  .discovery-panel,
  .map-panel{
    grid-template-columns:1fr;
  }

  .hero-copy{
    min-height:520px;
  }

  .category-dock{
    position:static;
  }

  .category-dock .districts{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    max-height:none;
  }
}

@media (max-width: 900px){
  .experience-strip,
  .catalog-grid{
    grid-template-columns:1fr;
  }

  .controls{
    grid-template-columns:1fr;
  }

  .category-dock .districts{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .page-shell{
    width:min(100% - 18px, 1500px);
  }

  .hero-copy{
    min-height:470px;
    padding:26px;
    border-radius:34px;
  }

  .hero-copy h1{
    max-width:7ch;
    font-size:clamp(1.9rem, 9.2vw, 2.8rem);
    line-height:.92;
    text-wrap:pretty;
    overflow-wrap:anywhere;
  }

  .hero-location{
    font-size:.92rem;
  }

  .hero-text{
    max-width:100%;
    font-size:.98rem;
  }

  .hero-badges span{
    font-size:.8rem;
    padding:8px 10px;
  }

  .hero-actions{
    gap:10px;
  }

  .hero-actions .button{
    flex:1 1 100%;
    justify-content:center;
  }

  .hero-panel,
  .ai-copy,
  .ai-results-card,
  .controls-wrap,
  .category-dock,
  .summary-bar,
  .map-copy,
  .map-canvas,
  .cafe-card{
    border-radius:26px;
  }

  .category-dock .districts{
    grid-template-columns:1fr;
  }
}

/* Compact sizing pass */
.ai-studio{
  grid-template-columns:360px minmax(0, 1fr);
  gap:14px;
}

.ai-copy{
  padding:24px;
}

.ai-copy h2{
  font-size:clamp(1.7rem, 2.4vw, 2.55rem);
}

.ai-copy p:not(.eyebrow){
  line-height:1.6;
}

.ai-modes{
  gap:8px;
  margin:16px 0;
}

.ai-mode{
  padding:9px 12px;
  font-size:.88rem;
}

.ai-prompt input{
  padding:13px 15px;
}

.ai-results-card{
  padding:18px;
  gap:12px;
}

.ai-header{
  gap:10px;
}

.ai-header strong{
  font-size:1.35rem;
}

.ai-header small{
  line-height:1.35;
}

.ai-pulse{
  width:11px;
  height:11px;
  box-shadow:0 0 0 6px rgba(216,255,95,.16), 0 0 26px rgba(216,255,95,.42);
}

.ai-suggestion-list{
  gap:8px;
}

.ai-result{
  min-height:70px;
  padding:11px 12px;
  border-radius:20px;
  gap:10px;
}

.ai-rank{
  width:34px;
  height:34px;
  border-radius:12px;
  font-size:.82rem;
}

.ai-result-main strong{
  font-size:.94rem;
}

.ai-result-main small{
  font-size:.78rem;
}

.ai-result-main em{
  display:block;
  margin-top:3px;
  color:#8b5a2b;
  font-size:.74rem;
  font-style:normal;
  font-weight:800;
}

.ai-score{
  font-size:.96rem;
}

.ai-actions .button{
  min-height:42px;
  padding:10px 13px;
}

.catalog-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.catalog-footer{
  display:grid;
  place-items:center;
  gap:10px;
  margin:20px 0 8px;
}

.catalog-status{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
  text-align:center;
}

.load-more-button{
  min-width:220px;
  justify-content:center;
}

.cafe-card{
  border-radius:26px;
}

.cafe-photo-wrap{
  height:190px;
  min-height:190px;
}

.cafe-body{
  padding:16px;
  gap:10px;
}

.card-head{
  gap:10px;
}

.card-head h3{
  font-size:1.24rem;
}

.card-kicker{
  font-size:.78rem;
}

.price-tag{
  padding:7px 9px;
  font-size:.78rem;
}

.address-line,
.summary-line{
  font-size:.88rem;
  line-height:1.5;
}

.tag,
.fact{
  padding:7px 9px;
  font-size:.76rem;
}

.status-pill,
.rating-pill{
  padding:8px 10px;
  font-size:.72rem;
}

.card-actions .button{
  min-height:40px;
  padding:9px 12px;
  border-radius:14px;
  font-size:.84rem;
}

@media (max-width: 1280px){
  .catalog-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px){
  .ai-studio{
    grid-template-columns:1fr;
  }
}

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

.ai-recommendations{
  margin:22px 0 28px;
  padding:24px;
  border-radius:30px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(246, 240, 226, 0.94)),
    var(--panel);
  border:1px solid rgba(16, 42, 36, 0.08);
  box-shadow:0 18px 48px rgba(18, 36, 31, 0.08);
}

.ai-recommendation-summary{
  margin:10px 0 0;
  color:var(--muted);
  max-width:760px;
  line-height:1.65;
}

.ai-recommendation-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.ai-recommendation-card{
  display:grid;
  gap:14px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,0.88);
  border:1px solid rgba(20, 42, 36, 0.08);
  box-shadow:0 10px 28px rgba(18, 36, 31, 0.07);
}

.ai-recommendation-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.ai-recommendation-kicker{
  margin:0 0 6px;
  color:#6a7b71;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ai-recommendation-top h3{
  margin:0;
  font-size:1.18rem;
  line-height:1.2;
}

.ai-recommendation-score{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  min-width:58px;
  min-height:58px;
  padding:10px;
  border-radius:18px;
  background:#0f2e29;
  color:#f3ffce;
  font-weight:800;
  font-size:1rem;
}

.ai-recommendation-meta,
.ai-match-list,
.ai-recommendation-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ai-meta-pill,
.ai-match-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  line-height:1.2;
}

.ai-meta-pill{
  background:#eef3ea;
  color:#173229;
  border:1px solid rgba(23, 50, 41, 0.08);
}

.ai-meta-pill.open{
  background:#dff9e7;
  color:#0d6b40;
}

.ai-match-pill{
  background:#f7f0da;
  color:#7a4b14;
  border:1px solid rgba(122, 75, 20, 0.10);
}

.ai-recommendation-reason,
.ai-recommendation-summary{
  font-size:.92rem;
}

.ai-recommendation-reason{
  margin:0;
  color:#12342c;
  line-height:1.6;
  font-weight:700;
}

.ai-recommendation-summary{
  margin:0;
}

.ai-recommendation-actions .button{
  min-height:42px;
  padding:10px 13px;
}

.ai-copy::after{
  pointer-events:none;
}

.ai-copy > *{
  position:relative;
  z-index:1;
}

@media (max-width: 1180px){
  .ai-recommendation-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .hero-copy h1{
    max-width:7ch !important;
    font-size:clamp(1.9rem, 9.2vw, 2.8rem) !important;
    line-height:.92 !important;
    overflow-wrap:anywhere;
  }

  .hero-text{
    max-width:100% !important;
    font-size:.98rem !important;
  }

  .hero-location{
    font-size:.92rem !important;
  }

  .hero-badges span{
    font-size:.8rem !important;
    padding:8px 10px !important;
  }

  .hero-actions{
    gap:10px !important;
  }

  .hero-actions .button{
    flex:1 1 100% !important;
    justify-content:center;
  }
}

/* Performance tuning */
.cafe-card,
.ai-results-card,
.ai-copy,
.category-dock,
.hero-copy,
.hero-panel,
.summary-bar{
  content-visibility:auto;
  contain-intrinsic-size:1px 420px;
}

@media (max-width:900px){
  html{
    scroll-behavior:auto;
  }

  .hero,
  .experience-strip,
  .ai-studio,
  .discovery-panel,
  .summary-bar,
  .map-panel,
  .catalog-grid{
    animation:none !important;
  }

  .topbar,
  .hero-copy,
  .hero-panel,
  .ai-copy,
  .ai-results-card,
  .category-dock,
  .controls-wrap,
  .summary-bar,
  .cafe-card,
  .status-pill,
  .rating-pill{
    backdrop-filter:none !important;
  }

  .hero-copy,
  .hero-panel,
  .ai-copy,
  .ai-results-card,
  .controls-wrap,
  .category-dock,
  .summary-bar,
  .cafe-card{
    box-shadow:0 10px 24px rgba(34,20,8,.10) !important;
  }

  .page-shell{
    width:min(100% - 16px, 1420px) !important;
    padding-top:12px !important;
  }

  .topbar{
    top:8px !important;
    padding:12px 14px !important;
    border-radius:24px !important;
  }

  .brand{
    gap:10px !important;
  }

  .brand-mark,
  .brand-logo{
    width:42px !important;
    height:42px !important;
    border-radius:14px !important;
  }

  .brand small{
    display:none;
  }

  .topnav{
    gap:6px !important;
    justify-content:flex-end;
  }

  .topnav a{
    padding:8px 10px !important;
    font-size:.9rem !important;
  }

  .hero-copy{
    min-height:auto !important;
    padding:22px !important;
  }

  .hero-copy h1{
    max-width:100% !important;
    line-height:1 !important;
    text-wrap:balance;
  }

  .hero-panel{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    padding:16px !important;
    gap:10px !important;
  }

  .hero-note{
    grid-column:1 / -1;
  }

  .hero-stat{
    min-width:0;
    padding:14px !important;
  }

  .hero-stat strong{
    font-size:1.45rem !important;
  }

  .summary-bar{
    padding:18px !important;
    align-items:flex-start !important;
  }

  .summary-bar h2{
    font-size:1.35rem !important;
  }

  .cafe-card{
    grid-template-columns:1fr !important;
  }

  .cafe-body{
    padding:16px !important;
    gap:12px !important;
  }

  .card-head h3{
    font-size:1.35rem !important;
  }

  .card-actions{
    gap:8px !important;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}

/* Site rating and admin integration */
.site-rating-filter-row{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr)) auto auto;gap:12px;align-items:end;margin-top:14px}
.site-rating-check{min-height:48px;display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid rgba(7,59,51,.14);border-radius:16px;background:rgba(255,255,255,.76);font-weight:750}
.site-rating-check input{width:18px;height:18px;accent-color:#0b776b}
.site-rating-panel{display:grid;gap:10px;padding:13px 14px;border:1px solid rgba(7,59,51,.12);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,248,232,.78))}
.site-rating-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
.site-rating-copy strong{color:#092f2a}
.site-rating-copy span{font-weight:850;color:#0b5f56}
.site-rating-panel small{color:var(--muted);font-size:12px;line-height:1.45}
.star-rating{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.star-button{width:36px;height:36px;border:1px solid rgba(7,59,51,.13);border-radius:12px;background:#fff;color:#b6b0a2;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 8px 18px rgba(7,59,51,.06);transition:transform .18s ease,color .18s ease,background .18s ease,border-color .18s ease}
.star-button:hover,.star-button:focus-visible{transform:translateY(-2px);color:#f0a90a;border-color:rgba(240,169,10,.42);outline:none}
.star-button.active{color:#f0a90a;background:#fff7da;border-color:rgba(240,169,10,.34)}
.account-entry{display:flex;align-items:center;gap:10px}
.account-button{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(7,59,51,.14);border-radius:999px;background:rgba(255,255,255,.88);padding:9px 13px;font-weight:850;color:#082f2a;cursor:pointer;box-shadow:0 10px 22px rgba(7,59,51,.08)}
.account-avatar-mini,.account-avatar-large{display:inline-grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#d7ff4a,#69e2c2);color:#082f2a;font-weight:900}
.account-avatar-mini{width:28px;height:28px;border-radius:50%}
.account-avatar-mini img,.account-avatar-large img{width:100%;height:100%;object-fit:cover}
.account-avatar-large{width:72px;height:72px;border-radius:24px;font-size:28px;box-shadow:0 14px 28px rgba(7,59,51,.12)}
.auth-modal{position:fixed;inset:0;z-index:120;display:none;place-items:center;padding:18px}
.auth-modal.visible{display:grid}
.auth-backdrop{position:absolute;inset:0;border:0;background:rgba(7,20,18,.48);backdrop-filter:blur(10px);cursor:pointer}
.auth-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(90vh,860px);overflow:auto;border:1px solid rgba(255,255,255,.76);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,246,232,.96));box-shadow:0 30px 90px rgba(7,20,18,.28);padding:24px}
.auth-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.auth-top h2{margin:4px 0 6px;font-family:var(--display-font);font-size:clamp(24px,4vw,38px);letter-spacing:-.05em}
.auth-top p{margin:0;color:var(--muted);line-height:1.55}
.auth-close{width:42px;height:42px;border-radius:50%;border:1px solid rgba(7,59,51,.14);background:#fff;font-size:24px;cursor:pointer}
.auth-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 14px}
.auth-tab{border:1px solid rgba(7,59,51,.12);background:#fff;border-radius:999px;padding:9px 13px;font-weight:850;cursor:pointer;color:#123c36}
.auth-tab.active{background:#d7ff4a;border-color:#d7ff4a;color:#092f2a}
.auth-message{margin:0 0 14px;padding:12px 14px;border-radius:16px;background:#eef8f4;border:1px solid rgba(7,59,51,.12);font-weight:750;color:#0b5f56}
.auth-message[data-type="error"]{background:#fff1f1;color:#b42318;border-color:rgba(180,35,24,.18)}
.auth-message[data-type="warn"]{background:#fff8df;color:#8a5a00;border-color:rgba(245,158,11,.2)}
.auth-message[data-type="success"]{background:#ecfff5;color:#0b6b45;border-color:rgba(11,107,69,.18)}
.auth-form{display:grid;gap:12px}
.auth-form label{display:grid;gap:7px;font-weight:800;color:#092f2a}
.auth-form input,.auth-form textarea{width:100%;border:1px solid rgba(7,59,51,.14);border-radius:16px;background:#fff;padding:12px 13px;font:inherit;color:#092f2a}
.auth-form textarea{resize:vertical}
.remember-row{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px;font-size:13px;color:var(--muted)!important}
.remember-row input{width:18px;height:18px;accent-color:#0b776b}
.google-auth-button{width:100%;border:0;border-radius:18px;padding:13px 16px;background:#092f2a;color:#fff;font-weight:900;cursor:pointer;box-shadow:0 14px 30px rgba(7,59,51,.18)}
.google-auth-button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}
.google-login-card{display:flex;align-items:center;gap:14px;margin:4px 0 16px;padding:15px;border:1px solid rgba(7,59,51,.12);border-radius:20px;background:rgba(255,255,255,.82)}
.google-login-card strong{display:block;color:#092f2a}
.google-login-card p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.google-auth-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#fff;border:1px solid rgba(7,59,51,.12);color:#4285f4;font-family:Arial,sans-serif;font-size:23px;font-weight:800;box-shadow:0 8px 18px rgba(7,59,51,.08)}
.auth-privacy-note{margin:12px 3px 0;color:var(--muted);font-size:12px;line-height:1.55;text-align:center}
.auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:rgba(7,59,51,.12)}
.account-card{display:flex;gap:14px;align-items:center;padding:14px;border-radius:20px;background:rgba(255,255,255,.76);border:1px solid rgba(7,59,51,.1);margin-bottom:14px}
.account-card strong{display:block;color:#092f2a}
.account-card p{margin:4px 0 0;color:var(--muted);line-height:1.5}
.account-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.account-sections section{border:1px solid rgba(7,59,51,.1);border-radius:18px;background:rgba(255,255,255,.68);padding:13px}
.account-sections h3{margin:0 0 10px;font-size:14px}
.mini-account-item{width:100%;display:grid;gap:3px;text-align:left;border:1px solid rgba(7,59,51,.1);border-radius:14px;background:#fff;padding:10px;margin-top:8px;cursor:pointer}
.mini-account-item span,.account-empty{color:var(--muted);font-size:12px;line-height:1.45}
.danger-zone{display:flex;justify-content:space-between;gap:10px;margin-top:16px;flex-wrap:wrap}
.button.danger{background:#b42318;color:#fff;border-color:#b42318}
.favorite-link.active{background:#fff4ca;border-color:rgba(240,169,10,.35);color:#6d4800}
.auth-comments{display:grid;gap:10px;border:1px solid rgba(7,59,51,.1);border-radius:18px;background:rgba(255,255,255,.68);padding:12px}
.comments-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.comments-head span{color:var(--muted);font-size:12px}
.comment-list{display:grid;gap:8px}
.comment-item{padding:10px;border-radius:14px;background:#fff;border:1px solid rgba(7,59,51,.08)}
.comment-item div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.comment-item div:first-child span{color:var(--muted)}
.comment-item p{margin:7px 0 0;line-height:1.55;color:#233b36}
.comment-actions{display:flex!important;justify-content:flex-start!important;gap:8px;margin-top:8px}
.comment-actions button{border:0;background:#eef8f4;color:#0b5f56;border-radius:999px;padding:6px 9px;font-weight:800;cursor:pointer}
.comment-empty{margin:0;color:var(--muted);font-size:13px}
.comment-form{display:grid;gap:8px}
.comment-form textarea{width:100%;border:1px solid rgba(7,59,51,.12);border-radius:14px;background:#fff;padding:10px;font:inherit;resize:vertical}

/* Google Places rating and admin integration */
.google-filter-row{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr)) auto auto;gap:12px;align-items:end;margin-top:14px}
.google-check{min-height:48px;display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid rgba(7,59,51,.14);border-radius:16px;background:rgba(255,255,255,.76);font-weight:750}
.google-check input{width:18px;height:18px;accent-color:#0b776b}
.rating-pill{max-width:calc(100% - 28px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.google-reviews-panel{border:1px solid rgba(7,59,51,.12);border-radius:18px;background:rgba(255,255,255,.72);overflow:hidden}
.google-reviews-panel>summary{cursor:pointer;padding:13px 15px;font-weight:800;color:#0b5f56}
.google-review-notice{margin:0;padding:0 15px 12px;color:var(--muted);font-size:12px;line-height:1.55}
.google-review-list{display:grid;gap:10px;padding:0 12px 12px}
.google-review{padding:12px;border-radius:14px;background:#fff;border:1px solid rgba(7,59,51,.09)}
.google-review div{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.google-review div span{color:var(--muted)}
.google-review p{margin:8px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;line-height:1.55}
.google-review a{color:#0b776b;font-size:12px;font-weight:750}
.google-attribution-link{display:inline-flex;margin:0 14px 14px;background:#fff;padding:5px 8px;border-radius:8px}
.google-attribution-link img{width:auto;height:18px;object-fit:contain}
.google-rating-source{display:inline-flex;width:max-content;max-width:100%;padding:5px 8px;border-radius:8px;background:#fff;border:1px solid rgba(7,59,51,.09)}
.google-rating-source img{width:auto;height:18px;object-fit:contain}
.google-admin-report{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}
.google-admin-report>div{padding:16px;border:1px solid rgba(7,59,51,.12);border-radius:18px;background:rgba(255,255,255,.82)}
.google-admin-report span{display:block;color:var(--muted);font-size:12px}
.google-admin-report strong{display:block;margin-top:6px;font-size:24px}
.google-editor-box{margin:18px 0;padding:18px;border-radius:20px;background:rgba(222,248,238,.52);border:1px solid rgba(11,119,107,.16)}

@media (max-width:900px){
  .site-rating-filter-row{grid-template-columns:1fr 1fr}
  .google-filter-row{grid-template-columns:1fr 1fr}
  .google-admin-report{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:560px){
  .site-rating-filter-row{grid-template-columns:1fr}
  .site-rating-filter-row .button,.site-rating-check{width:100%}
  .site-rating-copy{display:grid;gap:4px}
  .star-button{width:34px;height:34px}
  .account-sections{grid-template-columns:1fr}
  .auth-dialog{padding:18px;border-radius:24px}
  .account-card{align-items:flex-start}
  .google-filter-row{grid-template-columns:1fr}
  .google-filter-row .button,.google-check{width:100%}
  .google-admin-report{grid-template-columns:1fr 1fr}
  .google-review div{display:grid}
}

/* Cafe dice */
.dice-panel{
  margin:18px 0 22px;
  padding:22px;
  border:1px solid rgba(7,59,51,.12);
  border-radius:24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,243,229,.82)),
    repeating-linear-gradient(45deg, rgba(7,59,51,.035) 0 1px, transparent 1px 16px);
  box-shadow:0 18px 48px rgba(7,59,51,.09);
}

.dice-copy{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}

.dice-hero{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:22px;
  align-items:center;
  margin-bottom:18px;
}

.dice-cube-button{
  width:132px;
  height:132px;
  border:0;
  padding:0;
  justify-self:center;
  background:transparent;
  cursor:pointer;
  perspective:720px;
  filter:drop-shadow(0 24px 28px rgba(7,59,51,.2));
}

.dice-cube-button:focus-visible{
  outline:3px solid var(--electric);
  outline-offset:8px;
  border-radius:28px;
}

.dice-cube{
  --dice-size:104px;
  position:relative;
  width:var(--dice-size);
  height:var(--dice-size);
  display:block;
  margin:14px;
  transform-style:preserve-3d;
  transform:rotateX(-18deg) rotateY(28deg);
  transition:transform .55s cubic-bezier(.2,.9,.18,1.2);
}

.dice-cube[data-face="1"]{ transform:rotateX(-18deg) rotateY(28deg); }
.dice-cube[data-face="2"]{ transform:rotateX(-18deg) rotateY(-62deg); }
.dice-cube[data-face="3"]{ transform:rotateX(72deg) rotateY(28deg); }
.dice-cube[data-face="4"]{ transform:rotateX(-108deg) rotateY(28deg); }
.dice-cube[data-face="5"]{ transform:rotateX(-18deg) rotateY(118deg); }
.dice-cube[data-face="6"]{ transform:rotateX(-18deg) rotateY(208deg); }

.dice-cube-button.rolling .dice-cube{
  animation:diceSpin .9s cubic-bezier(.16,.84,.26,1) both;
}

@keyframes diceSpin{
  0%{ transform:rotateX(-18deg) rotateY(28deg) rotateZ(0deg) scale(1); }
  35%{ transform:rotateX(260deg) rotateY(190deg) rotateZ(22deg) scale(1.08); }
  70%{ transform:rotateX(520deg) rotateY(410deg) rotateZ(-18deg) scale(.98); }
  100%{ transform:rotateX(700deg) rotateY(720deg) rotateZ(0deg) scale(1); }
}

.dice-face{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:repeat(3, 1fr);
  gap:6px;
  padding:18px;
  border:1px solid rgba(7,59,51,.16);
  border-radius:24px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.96), rgba(255,255,255,.58) 32%, transparent 33%),
    linear-gradient(145deg, #fffaf1, #e9fff8 58%, #bff4df);
  box-shadow:
    inset -10px -12px 22px rgba(7,59,51,.14),
    inset 8px 8px 16px rgba(255,255,255,.92);
  backface-visibility:hidden;
}

.dice-face i{
  width:13px;
  height:13px;
  border-radius:999px;
  place-self:center;
  background:#09251f;
  box-shadow:inset 1px 1px 2px rgba(255,255,255,.22);
}

.dice-face-1{ transform:translateZ(52px); }
.dice-face-2{ transform:rotateY(90deg) translateZ(52px); }
.dice-face-3{ transform:rotateX(-90deg) translateZ(52px); }
.dice-face-4{ transform:rotateX(90deg) translateZ(52px); }
.dice-face-5{ transform:rotateY(-90deg) translateZ(52px); }
.dice-face-6{ transform:rotateY(180deg) translateZ(52px); }

.dice-face-1 i{ grid-area:2 / 2; }
.dice-face-2 i:nth-child(1){ grid-area:1 / 1; }
.dice-face-2 i:nth-child(2){ grid-area:3 / 3; }
.dice-face-3 i:nth-child(1){ grid-area:1 / 1; }
.dice-face-3 i:nth-child(2){ grid-area:2 / 2; }
.dice-face-3 i:nth-child(3){ grid-area:3 / 3; }
.dice-face-4 i:nth-child(1){ grid-area:1 / 1; }
.dice-face-4 i:nth-child(2){ grid-area:1 / 3; }
.dice-face-4 i:nth-child(3){ grid-area:3 / 1; }
.dice-face-4 i:nth-child(4){ grid-area:3 / 3; }
.dice-face-5 i:nth-child(1){ grid-area:1 / 1; }
.dice-face-5 i:nth-child(2){ grid-area:1 / 3; }
.dice-face-5 i:nth-child(3){ grid-area:2 / 2; }
.dice-face-5 i:nth-child(4){ grid-area:3 / 1; }
.dice-face-5 i:nth-child(5){ grid-area:3 / 3; }
.dice-face-6 i:nth-child(1){ grid-area:1 / 1; }
.dice-face-6 i:nth-child(2){ grid-area:1 / 3; }
.dice-face-6 i:nth-child(3){ grid-area:2 / 1; }
.dice-face-6 i:nth-child(4){ grid-area:2 / 3; }
.dice-face-6 i:nth-child(5){ grid-area:3 / 1; }
.dice-face-6 i:nth-child(6){ grid-area:3 / 3; }

.dice-copy h2{
  margin:0;
  font-family:"Syne", "Fraunces", serif;
  font-size:clamp(1.45rem, 2.4vw, 2.2rem);
  letter-spacing:0;
}

.dice-copy p:last-child{
  margin:0;
  max-width:72ch;
  color:var(--muted);
  line-height:1.6;
}

.dice-controls{
  display:grid;
  grid-template-columns:1.1fr 1.1fr auto auto auto;
  gap:12px;
  align-items:end;
}

.dice-check{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:10px 13px;
  border:1px solid rgba(7,59,51,.14);
  border-radius:16px;
  background:rgba(255,255,255,.74);
  font-weight:800;
  color:#12352e;
}

.dice-check input{
  width:18px;
  height:18px;
  accent-color:#0b776b;
}

.dice-roll-button{
  min-width:132px;
}

.dice-result{
  margin-top:16px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  align-items:start;
  padding:16px;
  border:1px solid rgba(7,59,51,.12);
  border-radius:20px;
  background:rgba(255,255,255,.78);
}

.dice-mark{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#091310;
  background:linear-gradient(135deg, var(--electric), #75ebcf);
  font-family:"Syne", "Fraunces", serif;
  font-size:1.7rem;
  font-weight:900;
  box-shadow:0 14px 30px rgba(11,119,107,.18);
}

.dice-result strong{
  display:block;
  font-size:1.08rem;
}

.dice-result p{
  margin:5px 0 0;
  color:var(--muted);
  line-height:1.55;
}

.dice-result-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.dice-result-top > span{
  flex:0 0 auto;
  padding:8px 10px;
  border-radius:999px;
  background:#fff3e5;
  font-size:.82rem;
  font-weight:900;
  color:#12352e;
}

.dice-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.dice-tags span{
  padding:7px 9px;
  border-radius:999px;
  background:rgba(11,119,107,.1);
  color:#12352e;
  font-size:.78rem;
  font-weight:850;
}

.dice-summary{
  max-width:80ch;
}

.dice-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.dice-actions .button{
  min-height:42px;
  padding:10px 13px;
}

@media (max-width:1040px){
  .dice-controls{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:620px){
  .dice-panel{
    padding:16px;
    border-radius:20px;
  }

  .dice-hero{
    grid-template-columns:1fr;
    text-align:center;
  }

  .dice-cube-button{
    justify-self:center;
  }

  .dice-controls,
  .dice-result{
    grid-template-columns:1fr;
  }

  .dice-roll-button,
  .dice-check{
    width:100%;
    justify-content:center;
  }

  .dice-result-top{
    display:grid;
  }
}

/* Cafinity brand system: official dark-green and mint logo palette. */
:root{
  --ink:#071d19;
  --ink-2:#0b2a24;
  --paper:#f6fbf8;
  --paper-2:#e7f1ec;
  --electric:#c7e7d8;
  --coral:#67ad94;
  --mint:#9fd2bd;
  --night:#061f1c;
  --bg:#edf5f1;
  --bg-2:#dfece6;
  --surface:rgba(247,252,249,.82);
  --surface-strong:#fbfefc;
  --surface-dark:#082823;
  --text:#10251f;
  --muted:#60736b;
  --line:rgba(7,48,41,.12);
  --accent:#67ad94;
  --accent-strong:#26745f;
  --accent-soft:#dcefe7;
  --green:#1d705c;
  --green-soft:#d9eee5;
  --gold:#79a996;
  --shadow:0 28px 80px rgba(6,31,28,.16);
  --shadow-soft:0 14px 34px rgba(6,31,28,.10);
}

body{
  background:
    radial-gradient(circle at 8% 5%, rgba(159,210,189,.34), transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(199,231,216,.48), transparent 27%),
    radial-gradient(circle at 82% 78%, rgba(103,173,148,.18), transparent 29%),
    linear-gradient(135deg, #f5faf7 0%, #e7f1ec 50%, #d9e9e2 100%);
}

.topbar{
  background:rgba(248,252,250,.82);
  border-color:rgba(255,255,255,.92);
  box-shadow:0 20px 60px rgba(6,31,28,.10);
}

.brand-mark{
  width:78px !important;
  height:46px !important;
  display:block !important;
  flex:0 0 auto !important;
  border:1px solid rgba(159,210,189,.44) !important;
  border-radius:14px !important;
  object-fit:cover !important;
  object-position:center !important;
  background:#071f1c !important;
  box-shadow:0 12px 28px rgba(6,31,28,.18) !important;
}

.brand strong{
  color:#082823;
}

.topnav a:first-child,
.ai-mode:hover,
.ai-mode.active,
.ai-rank,
.button.primary{
  color:#071d19;
  background:linear-gradient(135deg, #d9eee5, #8fcab2);
}

.topnav a:hover{
  background:rgba(103,173,148,.14);
}

.hero-copy{
  background:
    linear-gradient(135deg, rgba(159,210,189,.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(199,231,216,.20), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(103,173,148,.18), transparent 27%),
    linear-gradient(135deg, #061f1c 0%, #0a2e28 54%, #123a31 100%);
  box-shadow:0 44px 110px rgba(6,31,28,.30);
}

.hero-copy::after{
  background:linear-gradient(135deg, rgba(199,231,216,.24), rgba(103,173,148,.09));
}

.hero-copy .eyebrow,
.ai-eyebrow{
  color:#bfe4d4;
}

.hero-text,
.hero-location,
.ai-copy p:not(.eyebrow){
  color:rgba(246,251,248,.78);
}

.hero-panel,
.ai-results-card,
.filter-drawer,
.experience-strip div{
  background:rgba(248,252,250,.84);
}

.hero-note,
.ai-copy,
.filter-drawer-summary em{
  background:#082823;
}

.ai-copy{
  background:
    radial-gradient(circle at 92% 10%, rgba(159,210,189,.22), transparent 34%),
    linear-gradient(145deg, #061f1c, #123a31);
}

.ai-pulse{
  background:#9fd2bd;
  box-shadow:0 0 0 8px rgba(159,210,189,.18), 0 0 34px rgba(159,210,189,.45);
}

.chip.active,
.district-pill.active,
.status-pill.open{
  background:#d9eee5;
  color:#155c4b;
  border-color:rgba(38,116,95,.20);
}

.filter-subhead,
.editor-kicker,
.control-eyebrow,
.card-kicker,
.ai-score{
  color:#26745f;
}

input:focus,
select:focus,
textarea:focus,
.editor-search:focus{
  border-color:rgba(38,116,95,.42);
  box-shadow:0 0 0 4px rgba(103,173,148,.12);
}

.ai-admin-panel{
  display:grid;
  gap:14px;
  margin:16px 0;
  border:1px solid rgba(38,116,95,.14);
  border-radius:22px;
  padding:16px;
  background:
    radial-gradient(circle at top right, rgba(199,231,216,.28), transparent 36%),
    rgba(248,252,250,.86);
}

.ai-admin-head,
.ai-admin-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ai-admin-head span{
  display:block;
  color:#26745f;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ai-admin-head strong{
  color:#12342c;
}

.ai-admin-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ai-admin-signal{
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(18,52,44,.10);
  background:rgba(255,250,243,.76);
  color:var(--muted);
  font-size:.8rem;
  font-weight:800;
}

.ai-admin-signal.good{
  background:#dff4ea;
  color:#155c4b;
}

.ai-admin-signal.warn{
  background:#fff1d6;
  color:#7a4b14;
}

.ai-admin-signal.muted{
  opacity:.72;
}

.ai-admin-actions small{
  color:var(--muted);
  line-height:1.45;
}

@media (max-width:640px){
  .brand-mark{
    width:62px !important;
    height:40px !important;
    border-radius:12px !important;
  }

  .ai-admin-head,
  .ai-admin-actions{
    align-items:stretch;
    flex-direction:column;
  }
}

/* Compact premium catalog controls and cafe card actions. */
.discovery-panel{
  grid-template-columns:minmax(0, 1fr) 280px !important;
  gap:14px !important;
  margin-top:14px !important;
}

.controls-wrap,
.category-dock{
  border-radius:26px !important;
  padding:16px !important;
  background:
    linear-gradient(180deg, rgba(250,254,252,.88), rgba(237,245,241,.78)),
    radial-gradient(circle at top right, rgba(159,210,189,.22), transparent 36%) !important;
  border:1px solid rgba(38,116,95,.14) !important;
  box-shadow:0 18px 48px rgba(6,31,28,.08) !important;
}

.controls-wrap .section-minihead,
.category-dock .section-minihead{
  margin-bottom:10px !important;
}

.controls-wrap .section-minihead h2,
.category-dock .section-minihead h2{
  max-width:42ch;
  font-size:clamp(1.15rem, 1.8vw, 1.65rem) !important;
  line-height:1.12 !important;
  letter-spacing:-.045em !important;
}

.controls-wrap .eyebrow,
.category-dock .eyebrow{
  margin-bottom:5px !important;
  font-size:.72rem !important;
}

.controls{
  grid-template-columns:minmax(220px, 1.2fr) minmax(150px, .7fr) minmax(180px, .85fr) !important;
  gap:9px !important;
}

.control{
  gap:5px !important;
}

.control span{
  font-size:.72rem !important;
  letter-spacing:.08em !important;
}

.control input,
.control select{
  min-height:42px !important;
  padding:9px 12px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.86) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8) !important;
}

.chip-row{
  gap:7px !important;
}

#featureFilters{
  margin-top:10px !important;
}

.chip{
  min-height:38px !important;
  padding:8px 11px !important;
  border-radius:999px !important;
  font-size:.84rem !important;
  box-shadow:none !important;
}

.site-rating-filter-row{
  grid-template-columns:minmax(150px,.8fr) minmax(150px,.8fr) auto auto !important;
  gap:8px !important;
  align-items:end !important;
  margin-top:10px !important;
}

.site-rating-check{
  min-height:42px !important;
  padding:8px 11px !important;
  border-radius:999px !important;
  font-size:.82rem !important;
}

.site-rating-check input{
  width:16px !important;
  height:16px !important;
}

.site-rating-filter-row .button,
#clearFiltersButton{
  min-height:42px !important;
  padding:9px 12px !important;
  border-radius:999px !important;
}

.category-dock{
  top:82px !important;
}

.category-dock .districts{
  max-height:320px !important;
  gap:6px !important;
  padding-right:4px !important;
}

.district-pill{
  min-height:38px !important;
  padding:9px 11px !important;
  border-radius:14px !important;
  font-size:.88rem !important;
}

.cafe-body{
  gap:10px !important;
}

.site-rating-panel{
  grid-template-columns:1fr auto !important;
  align-items:center !important;
  gap:6px 10px !important;
  padding:9px 10px !important;
  border-radius:14px !important;
  background:linear-gradient(135deg, rgba(255,255,255,.88), rgba(221,241,232,.56)) !important;
}

.site-rating-copy{
  display:grid !important;
  gap:1px !important;
  font-size:12px !important;
}

.site-rating-copy span{
  font-size:.84rem !important;
}

.site-rating-panel small{
  grid-column:1 / -1 !important;
  font-size:11px !important;
  line-height:1.25 !important;
}

.star-rating{
  justify-content:flex-end !important;
  gap:2px !important;
}

.star-button{
  width:28px !important;
  height:28px !important;
  border-radius:9px !important;
  font-size:16px !important;
  box-shadow:none !important;
}

.auth-comments{
  gap:7px !important;
  padding:8px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.58) !important;
}

.comments-head{
  font-size:12px !important;
}

.comment-item{
  padding:8px !important;
  border-radius:12px !important;
}

.comment-item p{
  margin-top:5px !important;
  line-height:1.42 !important;
  font-size:.88rem !important;
}

.comment-form textarea{
  min-height:42px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
}

.card-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
}

.card-actions .button{
  min-height:42px !important;
  padding:10px 12px !important;
  border-radius:14px !important;
}

.card-actions .map-link{
  grid-column:1 / -1 !important;
  min-height:50px !important;
  font-size:.98rem !important;
  letter-spacing:.01em !important;
}

.card-actions .favorite-link,
.card-actions .site-link{
  width:100% !important;
}

@media (max-width:1040px){
  .discovery-panel{
    grid-template-columns:1fr !important;
  }

  .category-dock{
    position:static !important;
  }

  .category-dock .districts{
    max-height:220px !important;
  }
}

@media (max-width:720px){
  .controls,
  .site-rating-filter-row{
    grid-template-columns:1fr !important;
  }

  .controls-wrap,
  .category-dock{
    padding:14px !important;
    border-radius:22px !important;
  }

  .site-rating-panel{
    grid-template-columns:1fr !important;
  }

  .star-rating{
    justify-content:flex-start !important;
  }
}

/* Gentle cafe card height tuning: keep the previous design, just reduce vertical bulk. */
.catalog-grid{
  gap:16px !important;
}

.cafe-card{
  border-radius:32px !important;
}

.cafe-photo-wrap{
  height:245px !important;
  min-height:245px !important;
}

.cafe-body{
  padding:16px !important;
  gap:10px !important;
}

.address-line,
.summary-line{
  line-height:1.5 !important;
}

.summary-line{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}

.tag-list,
.fact-list{
  gap:6px !important;
}

.site-rating-panel{
  padding:9px 10px !important;
}

.auth-comments{
  padding:9px !important;
  gap:8px !important;
}

.comment-item p{
  line-height:1.45 !important;
}

.card-actions .map-link{
  min-height:48px !important;
}

@media (max-width:640px){
  .cafe-photo-wrap{
    height:205px !important;
    min-height:205px !important;
  }

  .cafe-body{
    padding:14px !important;
  }
}

/* Compact the rating and comments block inside cafe cards. */
.cafe-card .site-rating-panel{
  grid-template-columns:minmax(0, 1fr) auto !important;
  padding:8px 10px !important;
  gap:4px 8px !important;
  border-radius:14px !important;
}

.cafe-card .site-rating-copy{
  display:grid !important;
  gap:0 !important;
}

.cafe-card .site-rating-copy strong{
  font-size:.78rem !important;
}

.cafe-card .site-rating-copy span{
  font-size:.95rem !important;
}

.cafe-card .site-rating-panel small{
  display:none !important;
}

.cafe-card .star-rating{
  gap:3px !important;
}

.cafe-card .star-button{
  width:30px !important;
  height:30px !important;
  border-radius:10px !important;
  font-size:16px !important;
  box-shadow:none !important;
}

.cafe-card .auth-comments{
  padding:8px 10px !important;
  gap:4px !important;
  border-radius:14px !important;
}

.cafe-card .comments-head{
  font-size:.82rem !important;
}

.cafe-card .comments-head span{
  font-size:.78rem !important;
}

.cafe-card .comment-empty{
  font-size:.82rem !important;
  margin:0 !important;
}

.cafe-card .comment-form{
  gap:6px !important;
}

.cafe-card .comment-form:has(textarea:disabled){
  display:none !important;
}

.cafe-card .comment-form textarea{
  min-height:50px !important;
  max-height:74px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
  font-size:.9rem !important;
}

.cafe-card .comment-form .button{
  min-height:38px !important;
  padding:8px 12px !important;
  border-radius:999px !important;
  font-size:.88rem !important;
}

@media (max-width:640px){
  .cafe-card .site-rating-panel{
    grid-template-columns:1fr !important;
  }

  .cafe-card .star-rating{
    justify-content:flex-start !important;
  }
}

/* Empty footer area reserved below the complete, dynamically growing cafe list. */
body{
  min-height:100vh;
}

.page-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.page-shell > main{
  flex:1 0 auto;
}

.site-footer{
  flex:0 0 auto;
  width:100%;
  min-height:260px;
  margin-top:32px;
  padding:38px 44px;
  border:1px solid rgba(255,255,255,.88);
  border-radius:28px;
  background:rgba(248,252,250,.68);
  box-shadow:0 18px 52px rgba(6,31,28,.09);
  backdrop-filter:blur(16px);
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  align-items:start;
  gap:clamp(24px, 4vw, 72px);
}

.footer-column{
  min-width:0;
}

.footer-column h2{
  margin:0;
  color:#082823;
  font-family:"Syne", sans-serif;
  font-size:clamp(1rem, 1.25vw, 1.2rem);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.02em;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:13px;
}

.footer-brand img{
  width:70px;
  height:44px;
  display:block;
  flex:0 0 auto;
  border:1px solid rgba(159,210,189,.44);
  border-radius:13px;
  object-fit:cover;
  background:#071f1c;
  box-shadow:0 10px 24px rgba(6,31,28,.14);
}

.footer-items{
  margin-top:22px;
  color:rgba(8,40,35,.72);
  font-size:.93rem;
  font-weight:500;
  line-height:1.7;
}

.footer-description{
  max-width:260px;
  margin:0;
  letter-spacing:.005em;
}

.footer-link-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.footer-detail-trigger{
  display:block;
  width:fit-content;
  padding:0;
  border:0;
  color:inherit;
  background:transparent;
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:color .18s ease, transform .18s ease;
}

.footer-detail-trigger:hover,
.footer-detail-trigger:focus-visible{
  color:#176b59;
  transform:translateX(3px);
}

.footer-detail-trigger:focus-visible{
  outline:2px solid rgba(38,116,95,.38);
  outline-offset:4px;
  border-radius:3px;
}

.footer-social-list{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.footer-social-link{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(38,116,95,.16);
  border-radius:16px;
  background:rgba(220,239,231,.72);
  box-shadow:0 10px 24px rgba(6,31,28,.07);
  cursor:not-allowed;
  opacity:.82;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.footer-social-link img{
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
}

.footer-social-link:hover,
.footer-social-link:focus-visible{
  border-color:rgba(38,116,95,.34);
  background:rgba(199,231,216,.9);
  opacity:1;
  transform:translateY(-2px);
}

.footer-social-link:focus-visible{
  outline:2px solid rgba(38,116,95,.38);
  outline-offset:3px;
}

.footer-email-link{
  width:fit-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
  color:rgba(8,40,35,.68);
  font-size:.86rem;
  font-weight:400;
  line-height:1.45;
  letter-spacing:.005em;
  transition:color .18s ease;
}

.footer-email-link:hover,
.footer-email-link:focus-visible{
  color:#176b59;
}

.footer-email-link:focus-visible{
  outline:2px solid rgba(38,116,95,.38);
  outline-offset:4px;
  border-radius:4px;
}

.footer-email-icon{
  flex:0 0 auto;
  font-size:1.05rem;
  line-height:1;
}

@media (max-width:820px){
  .site-footer{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    min-height:340px;
    padding:32px;
    row-gap:48px;
  }
}

@media (max-width:520px){
  .site-footer{
    grid-template-columns:1fr;
    min-height:520px;
    margin-top:24px;
    padding:28px 24px;
    border-radius:22px;
    gap:42px;
  }
}

/* Shared light / dark appearance controls. The existing palette remains the light theme. */
.theme-corner-slot{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  position:relative;
  z-index:21;
  margin:0 0 12px;
  padding:0 2px;
}

.theme-switcher{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
  padding:4px;
  border:1px solid rgba(38,116,95,.16);
  border-radius:16px;
  background:rgba(220,239,231,.64);
  box-shadow:0 10px 24px rgba(6,31,28,.07);
}

.theme-option{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:12px;
  color:#60736b;
  background:transparent;
  cursor:pointer;
  transition:color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.theme-option:hover{
  color:#174d41;
  transform:translateY(-1px);
}

.theme-option.active{
  color:#0c3c32;
  background:#fbfefc;
  box-shadow:0 7px 18px rgba(6,31,28,.12);
}

.theme-option:focus-visible{
  outline:3px solid rgba(103,173,148,.32);
  outline-offset:2px;
}

.theme-option svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.theme-label{
  display:none;
}

html.theme-ready body,
html.theme-ready .topbar,
html.theme-ready .hero-panel,
html.theme-ready .experience-strip div,
html.theme-ready .ai-results-card,
html.theme-ready .controls-wrap,
html.theme-ready .category-dock,
html.theme-ready .ai-recommendations,
html.theme-ready .cafe-card,
html.theme-ready .dice-panel,
html.theme-ready .site-footer,
html.theme-ready .info-hero,
html.theme-ready .info-content-card,
html.theme-ready .info-page-footer{
  transition:background-color .28s ease, background .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease;
}

html[data-theme="dark"]{
  --ink:#ecf8f3;
  --ink-2:#d8eee5;
  --paper:#050a08;
  --paper-2:#102d25;
  --electric:#a9d9c5;
  --coral:#75b99f;
  --mint:#8dcdb2;
  --night:#030d0b;
  --bg:#040807;
  --bg-2:#0a1814;
  --surface:rgba(22,59,49,.94);
  --surface-strong:#1b493c;
  --surface-dark:#020b09;
  --text:#f2faf6;
  --muted:#b7cbc2;
  --line:rgba(184,225,207,.26);
  --accent:#78bda2;
  --accent-strong:#9fd2bd;
  --accent-soft:#225244;
  --green:#7bc5a8;
  --green-soft:#214d40;
  --gold:#d3b76e;
  --danger:#ef8c8c;
  --shadow:0 30px 86px rgba(0,0,0,.48);
  --shadow-soft:0 16px 38px rgba(0,0,0,.34);
}

html[data-theme="dark"] body{
  color:var(--text);
  background:
    radial-gradient(circle at 7% 4%, rgba(70,130,107,.15), transparent 27%),
    radial-gradient(circle at 88% 10%, rgba(39,91,73,.12), transparent 29%),
    radial-gradient(circle at 78% 78%, rgba(124,177,154,.07), transparent 31%),
    linear-gradient(135deg, #020504 0%, #050b09 48%, #091511 100%);
}

html[data-theme="dark"] body::after{
  background:
    radial-gradient(circle at center, transparent 0 46%, rgba(159,210,189,.026) 47% 48%, transparent 49%),
    linear-gradient(135deg, rgba(159,210,189,.025), transparent);
}

html[data-theme="dark"] .topbar{
  border-color:rgba(176,222,202,.28);
  background:rgba(15,44,37,.96);
  box-shadow:0 20px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .theme-switcher{
  border-color:rgba(159,210,189,.20);
  background:rgba(159,210,189,.08);
  box-shadow:none;
}

html[data-theme="dark"] .theme-option{
  color:#8eaaa0;
}

html[data-theme="dark"] .theme-option:hover{
  color:#d7eee4;
}

html[data-theme="dark"] .theme-option.active{
  color:#e9f7f0;
  background:#21483b;
  box-shadow:0 8px 20px rgba(0,0,0,.26);
}

html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .footer-column h2,
html[data-theme="dark"] .section-minihead h2,
html[data-theme="dark"] .card-head h3,
html[data-theme="dark"] .dice-copy h2,
html[data-theme="dark"] .ai-recommendation-top h3,
html[data-theme="dark"] .account-sections h3,
html[data-theme="dark"] .list-header h2,
html[data-theme="dark"] .section-head h2{
  color:var(--text);
}

html[data-theme="dark"] .topnav a,
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .footer-items,
html[data-theme="dark"] .footer-email-link,
html[data-theme="dark"] .info-footer-nav{
  color:var(--muted);
}

html[data-theme="dark"] .topnav a:hover{
  color:#effaf5;
  background:rgba(159,210,189,.12);
}

html[data-theme="dark"] .topnav a:first-child,
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .ai-mode:hover,
html[data-theme="dark"] .ai-mode.active,
html[data-theme="dark"] .ai-rank{
  color:#061713;
  background:linear-gradient(135deg, #b7dfce, #70b99d);
  box-shadow:0 14px 30px rgba(66,142,113,.16);
}

html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .button:not(.primary):not(.ghost):not(.danger),
html[data-theme="dark"] .account-button{
  color:#dcece5;
  border-color:rgba(177,222,203,.30);
  background:#245044;
  box-shadow:none;
}

html[data-theme="dark"] .button.secondary:hover,
html[data-theme="dark"] .account-button:hover{
  background:#2d6353;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .experience-strip div,
html[data-theme="dark"] .ai-results-card,
html[data-theme="dark"] .filter-drawer,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .map-copy,
html[data-theme="dark"] .map-canvas{
  color:var(--text);
  border-color:rgba(184,225,207,.30);
  background:#163b31;
  box-shadow:var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .ai-result,
html[data-theme="dark"] .fact,
html[data-theme="dark"] .meta-chip,
html[data-theme="dark"] .empty-state{
  color:var(--text);
  border-color:rgba(189,229,212,.25);
  background:#225044;
}

html[data-theme="dark"] .hero-stat strong,
html[data-theme="dark"] .ai-result-main strong{
  color:#edf9f3;
}

html[data-theme="dark"] .hero-note{
  color:#c1d6cc;
  border:1px solid rgba(184,225,207,.18);
  background:#071712;
}

html[data-theme="dark"] .ai-copy,
html[data-theme="dark"] .hero-copy{
  border-color:rgba(184,225,207,.30);
  background:
    radial-gradient(circle at 88% 12%, rgba(159,210,189,.22), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(67,132,106,.17), transparent 36%),
    linear-gradient(145deg, #08251e, #0d3b31 58%, #185344);
  box-shadow:0 34px 90px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-theme="dark"] .ai-prompt input{
  color:#eff9f5;
  border-color:rgba(159,210,189,.22);
  background:rgba(14,42,34,.94);
}

html[data-theme="dark"] .ai-prompt input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7f9990;
}

html[data-theme="dark"] .ai-recommendations{
  border-color:rgba(184,225,207,.28);
  background:
    radial-gradient(circle at top right, rgba(126,190,165,.13), transparent 38%),
    linear-gradient(180deg, #12372d, #0d2922);
  box-shadow:var(--shadow-soft);
}

html[data-theme="dark"] .ai-recommendation-card{
  color:var(--text);
  border-color:rgba(190,230,213,.27);
  background:#1d493d;
  box-shadow:0 14px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .ai-recommendation-kicker,
html[data-theme="dark"] .ai-recommendation-reason{
  color:#b8cec4;
}

html[data-theme="dark"] .ai-meta-pill{
  color:#cae5da;
  border-color:rgba(159,210,189,.14);
  background:#193b31;
}

html[data-theme="dark"] .ai-meta-pill.open{
  color:#aee1c6;
  background:#12412f;
}

html[data-theme="dark"] .ai-match-pill{
  color:#e2c98c;
  border-color:rgba(211,183,110,.18);
  background:#3b301c;
}

html[data-theme="dark"] .controls-wrap,
html[data-theme="dark"] .category-dock{
  color:var(--text);
  border-color:rgba(184,225,207,.30) !important;
  background:
    radial-gradient(circle at top right, rgba(126,190,165,.14), transparent 38%),
    linear-gradient(180deg, #173f34, #102f27) !important;
  box-shadow:var(--shadow-soft) !important;
}

html[data-theme="dark"] .control input,
html[data-theme="dark"] .control select,
html[data-theme="dark"] .field-block input,
html[data-theme="dark"] .field-block select,
html[data-theme="dark"] .field-block textarea,
html[data-theme="dark"] .editor-search,
html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .auth-form textarea{
  color:#edf8f3 !important;
  border-color:rgba(190,230,213,.27) !important;
  background:#071d18 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}

html[data-theme="dark"] select{
  color-scheme:dark;
}

html[data-theme="dark"] .chip,
html[data-theme="dark"] .district-pill,
html[data-theme="dark"] .site-rating-check,
html[data-theme="dark"] .google-check,
html[data-theme="dark"] .dice-check{
  color:#cfe1d9;
  border-color:rgba(190,230,213,.25);
  background:#255246;
}

html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .district-pill.active,
html[data-theme="dark"] .status-pill.open{
  color:#d8f4e8;
  border-color:rgba(143,202,178,.24);
  background:#1b5947;
  box-shadow:none;
}

html[data-theme="dark"] .district-pill.active span{
  color:#a6cbbb;
}

html[data-theme="dark"] .summary-bar{
  color:#effaf5;
  border-color:rgba(184,225,207,.28);
  background:#0c2922;
}

html[data-theme="dark"] .cafe-card{
  color:var(--text);
  border-color:rgba(184,225,207,.30);
  background:#173d33;
  box-shadow:0 24px 62px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .address-line,
html[data-theme="dark"] .summary-line,
html[data-theme="dark"] .catalog-status{
  color:var(--muted);
}

html[data-theme="dark"] .tag{
  color:#c3ddd2;
  border-color:rgba(190,230,213,.24);
  background:#245246;
}

html[data-theme="dark"] .tag.good{
  color:#aee1cb;
}

html[data-theme="dark"] .price-tag{
  color:#bce6d4;
  background:#020d0a;
}

html[data-theme="dark"] .site-rating-panel,
html[data-theme="dark"] .cafe-card .site-rating-panel{
  border-color:rgba(190,230,213,.24) !important;
  background:linear-gradient(135deg, #285a4b, #1d493d) !important;
}

html[data-theme="dark"] .site-rating-copy strong,
html[data-theme="dark"] .site-rating-copy span{
  color:#cce8dc;
}

html[data-theme="dark"] .star-button{
  color:#6e7e77;
  border-color:rgba(159,210,189,.14);
  background:#112c24;
  box-shadow:none;
}

html[data-theme="dark"] .star-button.active{
  color:#efbd50;
  border-color:rgba(239,189,80,.28);
  background:#3a301b;
}

html[data-theme="dark"] .auth-comments,
html[data-theme="dark"] .comment-item,
html[data-theme="dark"] .google-reviews-panel,
html[data-theme="dark"] .google-review,
html[data-theme="dark"] .google-admin-report > div,
html[data-theme="dark"] .google-editor-box{
  color:var(--text);
  border-color:rgba(190,230,213,.23) !important;
  background:#214d40 !important;
}

html[data-theme="dark"] .comment-item p,
html[data-theme="dark"] .google-reviews-panel > summary{
  color:#c4d9d0;
}

html[data-theme="dark"] .comment-actions button{
  color:#b9e0d0;
  background:#1a4437;
}

html[data-theme="dark"] .dice-panel{
  color:var(--text);
  border-color:rgba(184,225,207,.30);
  background:
    linear-gradient(135deg, #173f34, #0f2e26),
    repeating-linear-gradient(45deg, rgba(159,210,189,.025) 0 1px, transparent 1px 16px);
  box-shadow:var(--shadow-soft);
}

html[data-theme="dark"] .dice-result{
  color:var(--text);
  border-color:rgba(190,230,213,.25);
  background:#225044;
}

html[data-theme="dark"] .dice-result-top > span,
html[data-theme="dark"] .dice-tags span{
  color:#bfe3d4;
  background:#1b4437;
}

html[data-theme="dark"] .dice-face{
  border-color:rgba(159,210,189,.22);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(145deg, #285b4b, #143b31 58%, #0d251f);
  box-shadow:inset -10px -12px 22px rgba(0,0,0,.22), inset 7px 7px 16px rgba(255,255,255,.06);
}

html[data-theme="dark"] .dice-face i{
  background:#d8eee5;
}

html[data-theme="dark"] .site-footer{
  color:var(--text);
  border-color:rgba(184,225,207,.28);
  background:#102f27;
  box-shadow:var(--shadow-soft);
}

html[data-theme="dark"] .footer-social-link{
  border-color:rgba(159,210,189,.17);
  background:#173a30;
  box-shadow:none;
}

html[data-theme="dark"] .footer-social-link img{
  filter:brightness(0) saturate(100%) invert(88%) sepia(9%) saturate(709%) hue-rotate(103deg) brightness(94%);
}

html[data-theme="dark"] .footer-detail-trigger:hover,
html[data-theme="dark"] .footer-email-link:hover{
  color:#a6d8c3;
}

html[data-theme="dark"] .auth-dialog{
  color:var(--text);
  border-color:rgba(159,210,189,.18);
  background:linear-gradient(145deg, #102d25, #091b16);
}

html[data-theme="dark"] .auth-close,
html[data-theme="dark"] .auth-tab,
html[data-theme="dark"] .google-login-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .account-sections section,
html[data-theme="dark"] .mini-account-item{
  color:var(--text);
  border-color:rgba(159,210,189,.14);
  background:#15352c;
}

html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .google-login-card strong,
html[data-theme="dark"] .account-card strong{
  color:#e7f4ee;
}

html[data-theme="dark"] .auth-message{
  color:#a9dbc6;
  border-color:rgba(159,210,189,.15);
  background:#12372d;
}

html[data-theme="dark"] .gallery-dialog{
  color:var(--text);
  border-color:rgba(159,210,189,.16);
  background:linear-gradient(145deg, #102d25, #071712);
}

html[data-theme="dark"] .gallery-close,
html[data-theme="dark"] .gallery-nav{
  color:#eaf6f0;
  background:#1a4035;
}

html[data-theme="dark"] .gallery-thumb{
  background:#102a22;
}

html[data-theme="dark"] .gallery-thumb.active{
  border-color:#8fcab2;
  box-shadow:0 12px 26px rgba(80,157,126,.22);
}

html[data-theme="dark"] .editor-shell,
html[data-theme="dark"] .editor-main,
html[data-theme="dark"] .editor-stack,
html[data-theme="dark"] .hour-card,
html[data-theme="dark"] .check-item,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .admin-list > *{
  color:var(--text);
  border-color:rgba(159,210,189,.14);
  background-color:#102b23;
}

@media (max-width:860px){
  .theme-switcher{
    align-self:flex-start;
  }
}

@media (prefers-reduced-motion:reduce){
  html.theme-ready body,
  html.theme-ready .topbar,
  html.theme-ready .hero-panel,
  html.theme-ready .experience-strip div,
  html.theme-ready .ai-results-card,
  html.theme-ready .controls-wrap,
  html.theme-ready .category-dock,
  html.theme-ready .ai-recommendations,
  html.theme-ready .cafe-card,
  html.theme-ready .dice-panel,
  html.theme-ready .site-footer,
  html.theme-ready .info-hero,
  html.theme-ready .info-content-card,
  html.theme-ready .info-page-footer{
    transition:none;
  }
}

/* Admin control center — additive layer over the original catalog editor. */
.admin-page .page-shell{
  width:min(1440px, calc(100% - 32px));
}

.admin-page .topbar{
  border-radius:28px;
}

.admin-topnav{
  justify-content:flex-end;
}

.admin-topnav a{
  padding:9px 11px;
  font-size:.84rem;
  font-weight:750;
}

.admin-command-center,
.admin-content-hub,
.admin-connection-panel{
  margin-top:22px;
}

.admin-section-heading,
.admin-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.admin-section-heading{
  margin-bottom:16px;
}

.admin-section-heading h2,
.admin-card-head h2,
.admin-card-head h3{
  margin:0;
  color:#12342c;
  font-family:"Fraunces", serif;
  letter-spacing:-.025em;
}

.admin-section-heading h2,
.admin-card-head h2{
  font-size:clamp(1.7rem, 3vw, 2.35rem);
}

.admin-card-head h3{
  font-size:1.45rem;
}

.admin-heading-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.admin-status-badge,
.admin-connection-state,
.admin-source-note,
.admin-queue-count{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 12px;
  border:1px solid rgba(31,122,100,.15);
  border-radius:999px;
  background:rgba(233,247,241,.86);
  color:#185f50;
  font-size:.78rem;
  font-weight:800;
}

.admin-status-badge > span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#23906f;
  box-shadow:0 0 0 5px rgba(35,144,111,.12);
}

.admin-status-badge[data-state="dirty"]{
  color:#85501c;
  border-color:rgba(183,137,41,.2);
  background:#fff3dc;
}

.admin-status-badge[data-state="dirty"] > span{
  background:#d28b27;
  box-shadow:0 0 0 5px rgba(210,139,39,.13);
}

.admin-overview-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr);
  gap:16px;
}

.admin-overview-card,
.admin-content-hub,
.admin-connection-panel{
  border:1px solid rgba(255,255,255,.78);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(18px);
}

.admin-overview-card,
.admin-connection-panel{
  padding:22px;
}

.admin-content-hub{
  padding:24px;
}

.admin-card-kicker{
  display:block;
  margin-bottom:6px;
  color:#26745f;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.admin-health-score{
  color:#0b776b;
  font-family:"Syne", sans-serif;
  font-size:2.2rem;
}

.admin-progress-list{
  display:grid;
  gap:9px;
  margin-top:18px;
}

.admin-progress-row{
  display:grid;
  grid-template-columns:minmax(150px, 1fr) minmax(90px, 1.2fr) 48px;
  align-items:center;
  gap:12px;
  width:100%;
  padding:10px 0;
  border:0;
  border-bottom:1px solid rgba(19,64,53,.08);
  color:inherit;
  background:transparent;
  text-align:left;
  cursor:pointer;
}

.admin-progress-row:last-child{
  border-bottom:0;
}

.admin-progress-row > span:first-child strong,
.admin-progress-row > span:first-child small{
  display:block;
}

.admin-progress-row > span:first-child small{
  margin-top:2px;
  color:var(--muted);
  font-size:.72rem;
}

.admin-progress-row > b{
  color:#185f50;
  text-align:right;
}

.admin-progress-track{
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e5ece8;
}

.admin-progress-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #0b776b, #6eae91);
}

.admin-feature-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:18px;
}

.admin-feature-item{
  min-width:0;
  min-height:130px;
  padding:14px;
  border:1px solid rgba(19,64,53,.1);
  border-radius:20px;
  background:linear-gradient(145deg, rgba(248,252,250,.95), rgba(234,245,239,.82));
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-feature-item:hover,
.admin-content-card:hover,
.admin-attention-item:hover{
  transform:translateY(-2px);
  border-color:rgba(11,119,107,.25);
  box-shadow:0 12px 24px rgba(27,73,61,.08);
}

.admin-feature-item span,
.admin-feature-item strong,
.admin-feature-item small{
  display:block;
}

.admin-feature-item span{
  min-height:34px;
  color:#3d6258;
  font-size:.76rem;
  font-weight:800;
}

.admin-feature-item strong{
  margin:7px 0 2px;
  color:#12342c;
  font-family:"Syne", sans-serif;
  font-size:1.65rem;
}

.admin-feature-item small{
  color:var(--muted);
  font-size:.72rem;
}

.admin-queue-count{
  min-width:42px;
  justify-content:center;
  color:#8a4c25;
  border-color:rgba(197,101,61,.18);
  background:#fff0e6;
}

.admin-attention-list{
  display:grid;
  gap:9px;
  margin-top:18px;
}

.admin-attention-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(19,64,53,.09);
  border-radius:17px;
  background:rgba(255,250,243,.8);
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}

.admin-attention-item span,
.admin-attention-item strong,
.admin-attention-item small{
  display:block;
  min-width:0;
}

.admin-attention-item small{
  margin-top:3px;
  overflow:hidden;
  color:var(--muted);
  font-size:.72rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-attention-item b{
  display:grid;
  place-items:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:11px;
  background:#fff0df;
  color:#9a5725;
}

.admin-empty-note{
  margin:0;
  padding:20px;
  border-radius:18px;
  background:#edf7f2;
  color:#326b5d;
}

.admin-community-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:18px 0 14px;
}

.admin-community-grid > div{
  padding:14px;
  border:1px solid rgba(19,64,53,.09);
  border-radius:18px;
  background:rgba(247,251,249,.9);
}

.admin-community-grid span,
.admin-community-grid strong{
  display:block;
}

.admin-community-grid span{
  min-height:34px;
  color:var(--muted);
  font-size:.72rem;
}

.admin-community-grid strong{
  color:#12342c;
  font-family:"Syne", sans-serif;
  font-size:1.55rem;
}

.admin-content-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:11px;
}

.admin-content-card{
  position:relative;
  min-height:146px;
  padding:16px;
  overflow:hidden;
  border:1px solid rgba(19,64,53,.09);
  border-radius:20px;
  background:linear-gradient(145deg, #fffdf9, #eef6f1);
  transition:.18s ease;
}

.admin-content-card span,
.admin-content-card strong,
.admin-content-card small{
  display:block;
}

.admin-content-card span{
  color:#26745f;
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.admin-content-card strong{
  margin:14px 22px 6px 0;
  color:#12342c;
}

.admin-content-card small{
  color:var(--muted);
  line-height:1.45;
}

.admin-content-card b{
  position:absolute;
  top:14px;
  right:15px;
  color:#0b776b;
  font-size:1.05rem;
}

.admin-connection-panel{
  background:
    radial-gradient(circle at top right, rgba(85,155,130,.18), transparent 34%),
    rgba(255,255,255,.76);
}

.admin-connection-state[data-state="loading"]{
  color:#7a5515;
  background:#fff4d8;
}

.admin-connection-state[data-state="connected"]{
  color:#17604f;
  background:#def3e9;
}

.admin-connection-state[data-state="error"]{
  color:#98433d;
  border-color:rgba(177,61,61,.17);
  background:#fde8e5;
}

.admin-connection-controls{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) repeat(3, auto);
  align-items:end;
  gap:10px;
  margin-top:18px;
}

.admin-token-field{
  margin:0;
}

.admin-token-field small{
  color:var(--muted);
  font-weight:600;
}

.admin-list-tools{
  display:grid;
  gap:10px;
}

.field-block.compact{
  margin:0;
}

.field-block.compact select{
  min-height:44px;
  padding:10px 12px;
}

.admin-page .admin-list{
  max-height:min(54vh, 660px);
  padding-right:5px;
  overflow:auto;
  scrollbar-color:rgba(31,122,100,.4) transparent;
}

.admin-page .admin-item{
  width:100%;
  text-align:left;
}

.admin-item-indicators{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}

.admin-item-indicators i{
  padding:4px 7px;
  border-radius:999px;
  background:#e3f3eb;
  color:#216953;
  font-size:.64rem;
  font-style:normal;
  font-weight:850;
}

.admin-item-indicators i.warn{
  background:#fff0da;
  color:#8a531e;
}

.admin-selected-insights{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:9px;
  margin:-4px 0 18px;
}

.admin-selected-insights > div{
  padding:13px;
  border:1px solid rgba(19,64,53,.09);
  border-radius:17px;
  background:#f7faf8;
}

.admin-selected-insights span,
.admin-selected-insights strong,
.admin-selected-insights small{
  display:block;
}

.admin-selected-insights span{
  color:var(--muted);
  font-size:.68rem;
  font-weight:750;
}

.admin-selected-insights strong{
  margin:4px 0;
  color:#12342c;
  font-size:1.05rem;
}

.admin-selected-insights small{
  color:var(--muted);
  font-size:.67rem;
}

.admin-selected-insights [data-tone="good"]{
  border-color:rgba(31,122,100,.14);
  background:#e9f6ef;
}

.admin-selected-insights [data-tone="warn"]{
  border-color:rgba(197,101,61,.14);
  background:#fff2e7;
}

.admin-sticky-actions{
  position:sticky;
  z-index:8;
  bottom:12px;
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(19,64,53,.11);
  border-radius:19px;
  background:rgba(255,255,255,.9);
  box-shadow:0 16px 36px rgba(35,59,51,.13);
  backdrop-filter:blur(16px);
}

html[data-theme="dark"] .admin-section-heading h2,
html[data-theme="dark"] .admin-card-head h2,
html[data-theme="dark"] .admin-card-head h3,
html[data-theme="dark"] .admin-feature-item strong,
html[data-theme="dark"] .admin-community-grid strong,
html[data-theme="dark"] .admin-content-card strong,
html[data-theme="dark"] .admin-selected-insights strong{
  color:#e8f5ef;
}

html[data-theme="dark"] .admin-overview-card,
html[data-theme="dark"] .admin-content-hub,
html[data-theme="dark"] .admin-connection-panel{
  border-color:rgba(159,210,189,.14);
  background:rgba(16,43,35,.94);
}

html[data-theme="dark"] .admin-feature-item,
html[data-theme="dark"] .admin-attention-item,
html[data-theme="dark"] .admin-community-grid > div,
html[data-theme="dark"] .admin-content-card,
html[data-theme="dark"] .admin-selected-insights > div,
html[data-theme="dark"] .admin-sticky-actions{
  color:var(--text);
  border-color:rgba(159,210,189,.14);
  background:#15382e;
}

html[data-theme="dark"] .admin-progress-track{
  background:#244a3e;
}

html[data-theme="dark"] .admin-progress-row{
  color:var(--text);
  border-color:rgba(159,210,189,.1);
}

html[data-theme="dark"] .admin-item-indicators i{
  background:#1d5141;
  color:#bde8d6;
}

html[data-theme="dark"] .admin-item-indicators i.warn{
  background:#563f24;
  color:#f3d3a2;
}

@media (max-width:1180px){
  .admin-topnav a{
    padding:8px 9px;
    font-size:.76rem;
  }

  .admin-content-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .admin-connection-controls{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .admin-page .topbar,
  .admin-section-heading,
  .admin-card-head{
    align-items:stretch;
  }

  .admin-page .topbar,
  .admin-section-heading{
    flex-direction:column;
  }

  .admin-topnav{
    justify-content:flex-start;
  }

  .admin-overview-grid{
    grid-template-columns:1fr;
  }

  .admin-selected-insights{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:640px){
  .admin-page .page-shell{
    width:min(100% - 20px, 1440px);
  }

  .admin-topnav{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .admin-topnav a{
    text-align:center;
  }

  .admin-overview-card,
  .admin-content-hub,
  .admin-connection-panel{
    padding:17px;
    border-radius:22px;
  }

  .admin-feature-grid,
  .admin-content-grid,
  .admin-community-grid,
  .admin-connection-controls{
    grid-template-columns:1fr;
  }

  .admin-feature-item{
    min-height:108px;
  }

  .admin-progress-row{
    grid-template-columns:1fr 44px;
  }

  .admin-progress-track{
    grid-column:1 / -1;
    grid-row:2;
  }

  .admin-selected-insights{
    grid-template-columns:1fr 1fr;
  }

  .admin-sticky-actions .button{
    flex:1 1 100%;
  }
}
:where(.mfa-dialog) { max-width: 460px; width: calc(100% - 40px); border: 1px solid #aaa; border-radius: 18px; padding: 24px; color: #202020; background: #fff; }
.mfa-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.mfa-secret { display: block; overflow-wrap: anywhere; user-select: all; padding: 12px; background: #f0f0f0; }
.mfa-dialog [hidden] { display: none; }
