:root {
  --ink: #182a2b;
  --muted: #75817d;
  --line: #e8ece7;
  --paper: #ffffff;
  --canvas: #f5f6f1;
  --forest: #183c36;
  --forest-2: #275c4e;
  --mint: #d9eee1;
  --lime: #c6ef86;
  --gold: #e4a93b;
  --red: #d95e55;
  --blue: #6c8cb8;
  --shadow: 0 10px 30px rgba(28, 50, 43, .045);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; background: var(--forest); color: #eef4ed; padding: 26px 16px 18px; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; padding: 0 8px; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; color: var(--forest); }
.brand-name { font-size: 19px; line-height: 1.05; font-weight: 760; letter-spacing: -.055em; }
.brand-sub { color: #b0c4b9; font-size: 9px; letter-spacing: .15em; margin-top: 5px; font-weight: 700; }
.workspace-pill { margin: 32px 4px 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px; color: #d7e4da; display: flex; align-items: center; gap: 9px; font-size: 12px; }
.workspace-pill span { width: 27px; height: 27px; display: grid; place-items: center; background: rgba(198,239,134,.13); color: var(--lime); border-radius: 8px; font-weight: 700; }
.nav-label { color: #91aa9d; font-size: 9px; font-weight: 750; letter-spacing: .15em; padding: 0 12px; margin-bottom: 8px; }
.nav-list { display: grid; gap: 5px; }
.nav-button { width: 100%; border: 0; text-align: left; color: #c6d5cb; background: transparent; display: flex; align-items: center; gap: 12px; border-radius: 11px; padding: 11px 12px; font-size: 13px; transition: background .18s, color .18s; }
.nav-button:hover { background: rgba(255,255,255,.07); color: white; }
.nav-button.active { background: rgba(255,255,255,.12); color: white; font-weight: 650; }
.nav-icon { width: 18px; height: 18px; display: grid; place-items: center; font-size: 16px; opacity: .92; }
.sidebar-bottom { margin-top: auto; }
.connect-card { border-radius: 14px; padding: 14px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); }
.connect-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.google-g { width: 21px; height: 21px; border-radius: 7px; background: white; color: #4285f4; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.connect-card p { color: #b7c8be; line-height: 1.5; font-size: 11px; margin: 10px 0 12px; }
.connect-card button { width: 100%; border: 1px solid rgba(255,255,255,.2); color: #f4f7f1; background: transparent; border-radius: 9px; padding: 9px 10px; font-size: 11px; font-weight: 650; }
.sidebar-foot { padding: 14px 9px 0; color: #91aa9d; font-size: 10px; }
.main { margin-left: 238px; padding: 31px clamp(22px, 4vw, 58px) 44px; max-width: 1660px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: #83908b; font-size: 10px; font-weight: 760; margin-bottom: 7px; }
h1 { margin: 0; font-size: clamp(25px, 3vw, 31px); letter-spacing: -.045em; line-height: 1.1; font-weight: 720; }
.subtitle { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.data-chip { color: #8c6a26; background: #fff4d9; border: 1px solid #f4e5be; padding: 8px 10px; border-radius: 999px; font-size: 10px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 650; }
.data-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.location-select { min-width: 170px; max-width: 220px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; padding: 9px 30px 9px 11px; outline-color: var(--forest-2); font-size: 12px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid transparent; padding: 10px 14px; font-size: 12px; font-weight: 680; transition: transform .15s, background .15s; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-2); }
.button-quiet { background: white; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: #f9fbf8; }
.button-small { padding: 7px 10px; font-size: 11px; }
.page { display: none; animation: appear .22s ease; }
.page.active { display: block; }
@keyframes appear { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 29px 0 14px; }
.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--forest-2); font-weight: 700; font-size: 11px; }
.link-button:hover { text-decoration: underline; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.card { background: var(--paper); border: 1px solid #edf0eb; border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi { padding: 17px 18px 16px; min-height: 115px; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 560; display: flex; align-items: center; justify-content: space-between; }
.kpi-bubble { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #f3f6f1; font-size: 14px; color: var(--forest-2); }
.kpi-value { margin-top: 10px; font-size: 27px; font-weight: 730; letter-spacing: -.055em; }
.kpi-foot { color: #89948f; font-size: 10px; margin-top: 4px; }
.kpi-foot strong { color: var(--forest-2); font-weight: 700; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 14px; margin-top: 15px; }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-title { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.panel-desc { color: var(--muted); font-size: 10px; line-height: 1.45; margin: 5px 0 0; }
.rating-content { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; margin-top: 23px; }
.rating-number { font-size: 53px; font-weight: 740; letter-spacing: -.075em; line-height: .95; }
.rating-stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; margin: 8px 0 4px; }
.rating-meta { color: var(--muted); font-size: 10px; }
.rating-meter { height: 8px; border-radius: 99px; background: #eef1eb; overflow: hidden; margin-top: 12px; }
.rating-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a6d77e, #3e8e68); }
.rating-meter-label { display: flex; justify-content: space-between; color: #87928d; font-size: 9px; margin-top: 5px; }
.rating-visual { border-left: 1px solid var(--line); padding-left: 22px; }
.distribution-row { display: grid; grid-template-columns: 16px 65px 1fr 27px; align-items: center; gap: 8px; margin: 9px 0; }
.distribution-row .star-label { color: #59665f; font-size: 10px; }
.distribution-row .star-glyph { color: var(--gold); font-size: 11px; }
.bar-track { height: 7px; border-radius: 20px; background: #f0f2ed; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: #7bb58b; }
.bar-count { color: #68756e; text-align: right; font-size: 10px; }
.goal-panel { background: #eff6eb; border-color: #e3eddb; }
.goal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.goal-badge { color: var(--forest-2); background: #dcebd5; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 6px 9px; white-space: nowrap; }
.goal-control { display: flex; align-items: center; gap: 10px; margin: 21px 0 14px; }
.goal-control label { color: #65736b; font-size: 11px; }
.goal-control input { width: 80px; border: 1px solid #d8e5d1; border-radius: 9px; background: white; color: var(--ink); padding: 8px 9px; font-weight: 700; outline-color: var(--forest-2); }
.goal-result { background: white; border: 1px solid #e1eadc; border-radius: 13px; display: flex; align-items: center; gap: 13px; padding: 13px 14px; }
.goal-result-icon { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 11px; display: grid; place-items: center; color: #34734c; background: #e9f4e5; font-size: 17px; font-weight: 800; }
.goal-result strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.goal-result span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.goal-note { color: #7c8981; line-height: 1.45; font-size: 9px; margin: 11px 2px 0; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 14px; margin-top: 14px; }
.origin-list { margin-top: 17px; display: grid; gap: 15px; }
.origin-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 15px; align-items: center; }
.origin-name { font-size: 11px; font-weight: 680; }
.origin-meta { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; font-weight: 450; }
.origin-score { color: var(--ink); text-align: right; font-weight: 700; font-size: 13px; }
.origin-score small { color: var(--muted); font-weight: 450; font-size: 9px; }
.origin-progress { grid-column: 1 / -1; height: 6px; background: #eff2ed; border-radius: 20px; overflow: hidden; }
.origin-progress span { display: block; height: 100%; background: #8bc19a; border-radius: inherit; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topic-chip { display: flex; align-items: center; gap: 7px; border: 1px solid #e8ede7; border-radius: 10px; background: #fbfcfa; padding: 9px 10px; color: #52615a; font-size: 10px; }
.topic-chip strong { color: var(--forest-2); font-size: 12px; }
.topic-dot { width: 6px; height: 6px; background: #89b99a; border-radius: 50%; }
.review-list { display: grid; gap: 0; margin-top: 9px; }
.review-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: start; gap: 11px; padding: 13px 0; border-top: 1px solid #f0f2ee; }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #edf3e7; color: #58745b; font-size: 11px; font-weight: 720; }
.review-author { font-size: 11px; font-weight: 700; }
.review-location { color: var(--muted); font-size: 9px; margin-left: 4px; font-weight: 450; }
.review-stars { color: var(--gold); font-size: 10px; letter-spacing: 1px; margin: 4px 0; }
.review-text { color: #66736c; line-height: 1.45; font-size: 10px; max-width: 720px; }
.review-aside { display: grid; justify-items: end; gap: 8px; }
.status { font-size: 9px; font-weight: 650; padding: 5px 7px; border-radius: 99px; white-space: nowrap; }
.status-pending { color: #8c6a26; background: #fff4d9; }
.status-done { color: #3f7554; background: #e8f3e7; }
.mini-action { padding: 5px 7px; border: 1px solid var(--line); color: #63736b; background: white; border-radius: 7px; font-size: 9px; }
.mini-action:hover { color: var(--forest); border-color: #bbd5c0; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 21px 0 13px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search-input, .filter-select { color: var(--ink); border: 1px solid var(--line); background: white; border-radius: 9px; padding: 9px 11px; outline-color: var(--forest-2); font-size: 11px; }
.search-input { width: min(275px, 100%); }
.filter-select { min-width: 126px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 740px; }
th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #839089; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 720; }
td { padding: 13px 14px; border-bottom: 1px solid #f0f2ee; vertical-align: top; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.table-author { font-size: 11px; font-weight: 690; white-space: nowrap; }
.table-location { font-size: 9px; color: var(--muted); margin-top: 4px; }
.table-text { max-width: 390px; min-width: 190px; color: #68756e; line-height: 1.45; }
.table-stars { color: var(--gold); white-space: nowrap; }
.empty-state { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.locations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.location-card { padding: 18px; }
.location-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.location-pin { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--forest-2); background: #eaf2e8; font-size: 16px; }
.location-title { font-size: 13px; font-weight: 700; margin: 12px 0 3px; }
.location-city { font-size: 10px; color: var(--muted); }
.location-rating { display: flex; align-items: center; gap: 7px; margin-top: 16px; }
.location-rating strong { font-size: 22px; letter-spacing: -.04em; }
.location-rating span { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.location-count { color: var(--muted); font-size: 10px; margin-top: 2px; }
.location-distribution { display: grid; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #f0f2ee; }
.location-star-row { display: grid; grid-template-columns: 16px 1fr 23px; gap: 8px; align-items: center; font-size: 9px; color: #75817b; }
.location-star-track { height: 5px; background: #f0f2ed; border-radius: 20px; overflow: hidden; }
.location-star-track span { display: block; height: 100%; background: #94c59a; border-radius: inherit; }
.add-location-card { min-height: 225px; display: grid; place-items: center; text-align: center; border: 1px dashed #cfd9ce; background: rgba(255,255,255,.5); box-shadow: none; padding: 20px; }
.add-location-card div { color: #7e8b83; }
.add-location-card strong { display: block; color: var(--forest); font-size: 13px; margin: 10px 0 5px; }
.add-location-card p { font-size: 10px; margin: 0 0 12px; }
.page-intro { padding: 18px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #eef6ea; border-color: #e0ebdb; }
.page-intro strong { font-size: 12px; }
.page-intro p { color: #6c7c70; font-size: 10px; line-height: 1.5; margin: 5px 0 0; }
.page-intro-icon { width: 38px; height: 38px; border-radius: 12px; background: white; display: grid; place-items: center; color: #56875f; font-size: 17px; flex: 0 0 38px; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 20; background: rgba(19, 39, 34, .43); padding: 20px; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { width: min(470px, 100%); background: white; border-radius: 19px; box-shadow: 0 25px 80px rgba(10,30,23,.22); padding: 23px; animation: appear .18s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-head h3 { font-size: 17px; letter-spacing: -.03em; margin: 0; }
.modal-head p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }
.close-button { border: 0; width: 28px; height: 28px; border-radius: 8px; color: #63726a; background: #f3f5f1; font-size: 17px; }
.form-field { display: grid; gap: 6px; margin-top: 16px; }
.form-field label { color: #59665f; font-size: 10px; font-weight: 680; }
.form-field input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; outline-color: var(--forest-2); font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.connection-box { margin-top: 16px; border-radius: 12px; padding: 13px; background: #f7f8f4; color: #66736c; font-size: 10px; line-height: 1.55; }
.connection-box strong { color: #293d34; }
.toast { position: fixed; bottom: 22px; left: 50%; z-index: 30; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: #183c36; color: white; border-radius: 10px; padding: 11px 15px; box-shadow: 0 8px 28px rgba(0,0,0,.15); font-size: 11px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.file-input { display: none; }
.mobile-brand { display: none; }
.footnote { color: #9aa49e; font-size: 9px; line-height: 1.5; margin-top: 18px; }
@media (max-width: 1060px) {
  .sidebar { width: 210px; }
  .main { margin-left: 210px; padding-inline: 25px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .lower-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; height: auto; padding: 12px 15px; flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { padding: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 16px; }
  .brand-sub, .workspace-pill, .nav-label, .sidebar-bottom, .sidebar-foot { display: none; }
  .nav-list { display: flex; gap: 3px; }
  .nav-button { width: auto; padding: 9px 10px; font-size: 0; gap: 0; }
  .nav-icon { font-size: 17px; }
  .main { margin-left: 0; padding: 22px 16px 34px; }
  .topline { display: block; margin-bottom: 23px; }
  .top-actions { justify-content: flex-start; margin-top: 16px; }
  .data-chip { order: 4; }
  .location-select { flex: 1; min-width: 0; }
  .rating-content { grid-template-columns: 110px 1fr; gap: 13px; }
  .rating-number { font-size: 43px; }
  .rating-visual { padding-left: 13px; }
  .distribution-row { grid-template-columns: 14px 44px 1fr 22px; gap: 5px; }
  .panel { padding: 16px; }
  .locations-grid { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; }
}
@media (max-width: 420px) {
  .kpis { gap: 8px; }
  .kpi { padding: 13px; min-height: 104px; }
  .kpi-value { font-size: 23px; }
  .kpi-label { font-size: 10px; }
  .top-actions .button { padding: 9px 10px; }
  .rating-content { grid-template-columns: 1fr; }
  .rating-visual { border: 0; padding: 0; }
  .goal-top { display: block; }
  .goal-badge { display: inline-block; margin-top: 9px; }
  .review-item { grid-template-columns: 31px 1fr; }
  .review-aside { grid-column: 2; display: flex; justify-items: start; flex-wrap: wrap; }
}
