:root {
  --ink: #18251f;
  --muted: #68756d;
  --forest: #153d2e;
  --forest-deep: #103326;
  --leaf: #c8ef72;
  --paper: #f5f7f1;
  --line: #e4e9df;
  --white: #fff;
  --soft-green: #edf5e5;
  --soft-lilac: #f0eef9;
  --soft-peach: #fbefe2;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); }
a:hover { color: #276d4c; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; border-radius: 10px; color: var(--white); background: var(--forest); transform: translateY(-160%); }
.skip-link:focus { color: var(--white); transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(245 247 241 / 92%);
  border-bottom: 1px solid rgb(21 61 46 / 8%);
  backdrop-filter: blur(14px);
}

.site-header .navbar { min-height: 78px; padding-block: .75rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--forest); font-size: 1.05rem; font-weight: 750; letter-spacing: -.045em; }
.navbar-brand:hover { color: var(--forest); }
.brand-accent { font-weight: 450; }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: var(--forest); background: var(--leaf); font-size: 1.3rem; font-weight: 800; }
.brand-mark-small { width: 26px; height: 26px; border-radius: 9px; font-size: .95rem; }
.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgb(21 61 46 / 16%); }
.navbar .nav-link { padding: .65rem .9rem !important; color: #43544a; font-size: .92rem; font-weight: 600; }
.navbar .nav-link:hover { color: var(--forest); }
.nav-logout { margin: 0; }
.nav-logout button { border: 0; background: transparent; }
.btn-nav { margin-block: .4rem; padding: .68rem 1rem; border: 1px solid #dce5d7; border-radius: 12px; color: var(--forest); background: var(--white); font-size: .9rem; font-weight: 700; }
.btn-nav:hover { border-color: var(--forest); color: var(--white); background: var(--forest); }
.btn-nav span { margin-left: .35rem; }
.navbar .dropdown-menu { min-width: 240px; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px rgba(21, 61, 46, .12); }
.navbar .dropdown-header { padding: .55rem .7rem .3rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.navbar .dropdown-item { padding: .55rem .7rem; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus { color: var(--forest); background: #edf4eb; }

.site-main { flex: 1; padding-top: 1.6rem; padding-bottom: 4.5rem; }
.site-footer { padding: 2rem 0; color: rgb(255 255 255 / 76%); background: var(--forest-deep); }
.site-footer .container { position: relative; }
.footer-brand { display: flex; align-items: center; gap: .55rem; color: var(--white); font-weight: 700; letter-spacing: -.02em; }
.site-footer p { margin: .6rem 0 0; color: rgb(255 255 255 / 62%); font-size: .9rem; }
.site-footer a { display: inline-block; margin-top: 1rem; color: var(--leaf); font-size: .88rem; }
.footer-copy { float: right; margin-top: 1rem; color: rgb(255 255 255 / 54%); font-size: .82rem; }

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 2rem;
  min-height: 440px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 88% 12%, rgb(200 239 114 / 14%), transparent 30%), linear-gradient(122deg, #153d2e 0%, #1b503a 100%);
  box-shadow: 0 24px 60px rgb(21 61 46 / 13%);
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.eyebrow { color: #d2e6c3; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px rgb(200 239 114 / 13%); }
.home-hero h1 { margin: 1.25rem 0 1rem; color: var(--white); font-size: clamp(3.1rem, 6vw, 5.3rem); font-weight: 750; line-height: .99; letter-spacing: -.075em; }
.home-hero h1 span { color: var(--leaf); }
.hero-copy > p { max-width: 440px; margin-bottom: 1.65rem; color: rgb(255 255 255 / 74%); font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.btn-lime { padding: .9rem 1.2rem; border: 0; border-radius: 13px; color: var(--forest-deep); background: var(--leaf); font-weight: 750; box-shadow: 0 8px 20px rgb(0 0 0 / 10%); }
.btn-lime:hover { color: var(--forest-deep); background: #d7f69a; transform: translateY(-1px); }
.btn-lime span { margin-left: .5rem; }
.hero-text-link { color: var(--white); font-size: .92rem; font-weight: 650; text-decoration: none; }
.hero-text-link:hover { color: var(--leaf); }
.hero-text-link span { margin-left: .25rem; }
.hero-note { margin-top: 1.75rem; color: rgb(255 255 255 / 60%); font-size: .82rem; }
.hero-note span { margin-right: .35rem; color: var(--leaf); }

.hero-visual { position: relative; display: grid; min-height: 330px; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; }
.orbit-one { width: 340px; height: 340px; }
.orbit-two { width: 270px; height: 270px; border-style: dashed; }
.mini-dashboard { position: relative; z-index: 1; width: min(100%, 320px); padding: 1.35rem; border: 1px solid rgb(255 255 255 / 48%); border-radius: 22px; color: var(--ink); background: rgb(255 255 255 / 94%); box-shadow: 0 24px 50px rgb(0 0 0 / 22%); transform: rotate(2deg); }
.dashboard-top { display: flex; align-items: center; gap: .55rem; color: #68756d; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.dashboard-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: var(--forest); background: var(--soft-green); font-size: 1rem; }
.dashboard-dots { margin-left: auto; color: #9ca69f; letter-spacing: .1em; }
.dashboard-caption { margin-top: 1.45rem; color: var(--muted); font-size: .82rem; }
.dashboard-amount { margin-top: .1rem; color: var(--forest); font-size: 2.45rem; font-weight: 800; letter-spacing: -.07em; }
.dashboard-amount span { font-size: 1.5rem; }
.dashboard-progress { height: 8px; margin: 1rem 0 1.1rem; overflow: hidden; border-radius: 99px; background: #e8eee4; }
.dashboard-progress span { display: block; width: 64%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8fce5a, #c8ef72); }
.dashboard-meta { display: flex; justify-content: space-between; margin-top: .65rem; color: #778178; font-size: .78rem; }
.dashboard-meta strong { color: var(--ink); font-weight: 700; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; }
.income-dot { background: #8bcf5e; }
.expense-dot { background: #c8b8ee; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid #edf0e9; color: #828d84; font-size: .7rem; }
.dashboard-footer span:last-child { color: #78a849; }
.floating-chip { position: absolute; z-index: 2; right: -1%; bottom: 14%; display: flex; align-items: center; gap: .65rem; padding: .75rem .95rem; border: 1px solid rgb(255 255 255 / 70%); border-radius: 15px; background: var(--white); box-shadow: 0 14px 35px rgb(0 0 0 / 15%); transform: rotate(-3deg); }
.chip-star { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; color: var(--forest); background: var(--leaf); font-size: 1.1rem; }
.floating-chip strong, .floating-chip small { display: block; }
.floating-chip strong { color: var(--ink); font-size: .75rem; }
.floating-chip small { margin-top: .12rem; color: var(--muted); font-size: .68rem; }

.tools-section { padding: 4.2rem 0 1.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.55rem; }
.section-kicker { color: #64824d; }
.section-heading h2 { margin: .5rem 0 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -.055em; }
.section-heading > p { max-width: 350px; margin-bottom: .2rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.tool-card { display: flex; height: 100%; min-height: 250px; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--white); text-decoration: none; box-shadow: 0 8px 24px rgb(20 44 31 / 3%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.tool-card:hover { color: var(--ink); border-color: #c4d6bb; box-shadow: 0 16px 34px rgb(20 44 31 / 9%); transform: translateY(-4px); }
.tool-card-featured { border-color: #d7e8c5; background: linear-gradient(145deg, #fff 45%, #f2f8e8); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.tool-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; font-size: 1.3rem; font-weight: 800; }
.icon-budget { color: #38653b; background: var(--soft-green); }
.icon-rate { color: #64519b; background: var(--soft-lilac); }
.icon-guide { color: #a46531; background: var(--soft-peach); }
.tool-tag { padding: .36rem .55rem; border-radius: 99px; color: #4f7541; background: #eef6e4; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.tag-soon { color: #996334; background: #fbf1e5; }
.tool-card h3 { margin: 0 0 .55rem; font-size: 1.17rem; font-weight: 750; letter-spacing: -.03em; }
.tool-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.tool-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--forest); font-size: .86rem; font-weight: 750; }
.tool-link span { font-size: 1.1rem; transition: transform .2s ease; }
a.tool-card:hover .tool-link span { transform: translateX(4px); }
.tool-link-muted { color: #9a8b7b; }
.tool-card-soon { background: #fffdfa; }
.public-offers-search { margin-top: 1.5rem; }
.search-loading-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(19 32 24 / 48%); backdrop-filter: blur(3px); }
.search-loading-overlay[hidden] { display: none !important; }
.search-loading-card { display: flex; width: min(100%, 390px); flex-direction: column; align-items: center; gap: .8rem; padding: 2rem 1.5rem; border: 1px solid #e3eadf; border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 18%); text-align: center; }
.search-loading-card strong { color: var(--forest); font-size: 1.05rem; }
.search-loading-card > span:last-child { color: var(--muted); font-size: .88rem; }
.search-loading-spinner { width: 3rem; height: 3rem; border: 4px solid #e5eddf; border-top-color: #4f8a38; border-radius: 50%; animation: search-loading-spin .8s linear infinite; }
@keyframes search-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .search-loading-spinner { animation-duration: 2s; } }
.public-offer-sources { display: grid; gap: 1rem; }
.public-offer-source { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.public-offer-source h2 { margin: .35rem 0; font-size: 1.2rem; font-weight: 750; }
.public-offer-source p { max-width: 660px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.source-status { color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .public-offer-source { align-items: flex-start; flex-direction: column; } }

.calculator-shell { max-width: 860px; margin: 0 auto; padding-top: 1.1rem !important; }
.calculator-back { color: #66806d; font-size: .88rem; font-weight: 650; text-decoration: none; }
.calculator-back:hover { color: var(--forest); }
.calculator-heading { max-width: 620px; margin: 1.4rem 0 1.6rem; }
.calculator-heading .section-kicker { margin-bottom: .6rem; }
.calculator-heading h1 { margin: 0 0 .6rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -.065em; }
.calculator-heading p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.calculator-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 14px 40px rgb(20 44 31 / 6%); }
.offer-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.offer-panel { min-width: 0; padding: 1.2rem; border: 1px solid #e2e9de; border-radius: 16px; }
.offer-panel legend { float: none; width: auto; margin: 0 0 1rem; padding: 0 .35rem; color: var(--forest); font-size: 1rem; font-weight: 750; }
.offer-panel-alternative { background: #fbfdf8; }
.energy-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.energy-guide-note { padding: 1rem; border: 1px solid #e5eadf; border-radius: 14px; color: var(--muted); background: #f7f9f4; font-size: .9rem; line-height: 1.55; }
.energy-guide-note strong { display: block; margin-bottom: .3rem; color: var(--forest); }
.energy-guide-next h2, .energy-guide-steps > h2 { margin: .65rem 0; color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; }
.energy-guide-next p { max-width: 760px; color: var(--muted); line-height: 1.65; }
.energy-guide-steps { padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.energy-guide-step { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.energy-guide-step > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--soft-green); font-size: .75rem; font-weight: 800; }
.energy-guide-step h3 { margin: .1rem 0 .35rem; font-size: 1rem; font-weight: 750; }
.energy-guide-step p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 767.98px) { .energy-guide-grid { grid-template-columns: 1fr; } }
.calculator-card .form-label { margin-bottom: .5rem; color: #35483d; font-size: .88rem; font-weight: 700; }
.calculator-card .input-group { overflow: hidden; border: 1px solid #dce4d9; border-radius: 12px; background: #fbfcf9; }
.calculator-card .input-group:focus-within { border-color: #679451; box-shadow: 0 0 0 .22rem rgb(103 148 81 / 13%); }
.calculator-card .form-control { min-height: 50px; border: 0; color: var(--ink); background: transparent; box-shadow: none; font-size: 1rem; }
.calculator-card .input-group-text { min-width: 48px; justify-content: center; border: 0; color: #728074; background: transparent; font-weight: 700; }
.calculator-card > .mb-3 { margin-bottom: 1.1rem !important; }
.calculator-card h2.h5 { margin: .2rem 0 .9rem; color: #506650; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.calculator-card h2.h5.mt-2 { margin-top: 1.5rem !important; padding-top: 1.4rem; border-top: 1px solid #eef1eb; }
.calculator-submit { width: 100%; min-height: 52px; margin-top: .35rem; border: 0; border-radius: 13px; color: var(--white); background: var(--forest); font-weight: 750; box-shadow: 0 8px 18px rgb(21 61 46 / 15%); }
.calculator-submit:hover { color: var(--white); background: #1e563e; }
.calculator-submit:focus-visible { outline: 3px solid #a5d977; outline-offset: 3px; }
.result-card { padding: 1.45rem; border: 1px solid #d9e9cf; border-radius: 20px; background: linear-gradient(135deg, #f7fbf1, #fff); box-shadow: 0 10px 26px rgb(20 44 31 / 4%); }
.result-card h2 { margin: 0 0 1.15rem; color: var(--forest); font-size: 1.1rem; font-weight: 750; }
.result-feature { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.15rem; border-radius: 15px; color: var(--white); background: var(--forest); }
.result-feature span { color: rgb(255 255 255 / 74%); font-size: .82rem; }
.result-feature strong { color: var(--leaf); font-size: 1.75rem; letter-spacing: -.05em; }
.result-card dl { margin: 0; }
.result-card dt, .result-card dd { padding-top: .55rem; padding-bottom: .55rem; border-bottom: 1px solid #e7eee0; font-size: .91rem; }
.result-card dt { color: #68756d; font-weight: 550; }
.result-card dd { color: var(--ink); text-align: right; }
.result-card dd:last-child { border-bottom: 0; }
.result-positive { border-color: #d9e9cf; }
.result-negative { border-color: #f0d5ce; background: linear-gradient(135deg, #fff7f3, #fff); }
.result-negative h2 { color: #8e473b; }
.privacy-note { display: flex; gap: .6rem; margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 12px; color: #627066; background: #eef2e9; font-size: .8rem; line-height: 1.5; }
.privacy-note span { color: #568248; font-size: 1rem; }
.disclaimer { margin: 1rem 0 0; color: #808c82; font-size: .78rem; line-height: 1.55; }
.budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.text-danger, .field-validation-error { display: block; margin-top: .35rem; font-size: .8rem; }
.validation-summary-errors { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 12px; color: #8e3c31; background: #fff0ec; font-size: .88rem; }
.privacy-title { margin: .65rem 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -.065em; }
.privacy-lead { max-width: 700px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.privacy-card { max-width: 760px; margin-top: 1.6rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 14px 40px rgb(20 44 31 / 5%); }
.privacy-card h2 { margin: 1.3rem 0 .55rem; color: var(--forest); font-size: 1.08rem; font-weight: 750; }
.privacy-card h2:first-child { margin-top: 0; }
.privacy-card p { margin: 0; color: #68756d; line-height: 1.7; }
.guide-shell, .admin-shell { max-width: 1050px; margin: 0 auto; padding: 1rem 0 2rem; }
.guide-heading { max-width: 650px; margin: 1.5rem 0 2rem; }
.guide-heading h1, .admin-heading h1 { margin: .55rem 0; color: var(--ink); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 780; letter-spacing: -.065em; }
.guide-heading p, .admin-heading p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.guide-empty, .admin-empty { max-width: 620px; margin: 2rem auto; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 22px; text-align: center; background: var(--white); box-shadow: 0 14px 40px rgb(20 44 31 / 5%); }
.guide-empty .tool-icon, .admin-empty .tool-icon { margin-bottom: 1rem; }
.guide-empty h2, .admin-empty h2 { color: var(--forest); font-size: 1.3rem; font-weight: 750; }
.guide-empty p, .admin-empty p { max-width: 420px; margin: .5rem auto 1.2rem; color: var(--muted); line-height: 1.55; }
.guide-card { display: flex; height: 100%; min-height: 255px; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: var(--white); text-decoration: none; box-shadow: 0 8px 24px rgb(20 44 31 / 3%); transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { color: var(--ink); box-shadow: 0 16px 34px rgb(20 44 31 / 9%); transform: translateY(-3px); }
.guide-category { display: inline-flex; align-self: flex-start; padding: .38rem .6rem; border-radius: 99px; color: #4f7541; background: #eef6e4; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.guide-card h2 { margin: 1.1rem 0 .55rem; font-size: 1.15rem; font-weight: 750; letter-spacing: -.035em; }
.guide-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.guide-card-meta { margin: auto 0 .85rem; color: #879188; font-size: .76rem; }
.guide-article { max-width: 790px; margin: 0 auto; padding: 1rem 0 2rem; }
.guide-article-heading { margin: 1.6rem 0 2rem; }
.guide-article-heading h1 { margin: .8rem 0; color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 780; line-height: 1.08; letter-spacing: -.065em; }
.guide-summary { max-width: 700px; color: #536359; font-size: 1.12rem; line-height: 1.65; }
.guide-source-meta { margin-top: 1rem; color: #7a887d; font-size: .82rem; }
.guide-content { padding: clamp(1.2rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 20px; color: #39493f; background: var(--white); font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.guide-content > :first-child { margin-top: 0; }
.guide-content > :last-child { margin-bottom: 0; }
.guide-content h2 { margin: 1.8rem 0 .8rem; color: var(--ink); font-size: 1.45rem; }
.guide-content li { margin-bottom: .35rem; }
.guide-content a { color: var(--green-dark); text-decoration: underline; }
.guide-source { display: flex; align-items: center; gap: .85rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px solid #d9e8cf; border-radius: 15px; background: #f0f6e9; }
.source-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--leaf); font-weight: 800; }
.guide-source strong, .guide-source a { display: block; }
.guide-source strong { margin-bottom: .15rem; color: #5a6b5e; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.guide-source a { overflow-wrap: anywhere; font-weight: 650; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 2rem; }
.admin-heading p { margin-bottom: 0; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 28px rgb(20 44 31 / 4%); }
.admin-table { margin: 0; }
.admin-table > :not(caption) > * > * { padding: .95rem 1rem; border-bottom-color: #edf0ea; }
.admin-table thead th { color: #738078; background: #f8faf6; font-size: .71rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { color: #4b5a50; font-size: .88rem; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td strong { color: var(--ink); }
.admin-table td small { margin-top: .25rem; color: #859087; font-size: .73rem; }
.status-pill { display: inline-flex; padding: .34rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 750; }
.status-published { color: #3f6d35; background: #edf6e7; }
.status-draft { color: #775f43; background: #f8f0e4; }
.admin-row-link { margin-left: .7rem; color: #52764c; font-size: .8rem; font-weight: 700; text-decoration: none; }
.admin-row-danger { color: #9d5143; }
.admin-editor-shell { max-width: 850px; }
.admin-form { margin-top: 1.5rem; }
.admin-form .form-control { padding: .75rem .85rem; border: 1px solid #dce4d9; border-radius: 11px; background: #fbfcf9; }
.admin-form .input-group-text { border: 0; border-right: 1px solid #dce4d9; }
.article-editor { min-height: 300px; line-height: 1.7; white-space: pre-wrap; overflow-y: auto; }
.article-editor:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(38, 112, 79, .14); outline: 0; }
.article-editor h2 { font-size: 1.35rem; }
.article-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.article-toolbar .btn { font-size: .875rem; }
.unit-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.unit-select { max-width: 145px; }
.menu-shell { max-width: 1100px; margin: 0 auto; }
.menu-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.menu-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0; padding: 1.2rem 1.4rem; border: 1px solid #d9e9cf; border-radius: 18px; background: #f5f9ef; }
.menu-summary .section-kicker { margin-bottom: .45rem; }
.menu-summary h2 { margin: 0; color: var(--forest); font-size: 1.35rem; font-weight: 760; }
.menu-summary p { margin: 0; color: #56685b; font-size: .9rem; text-align: right; }
.menu-budget-over { border-color: #f0d5ce; background: #fff7f3; }
.menu-budget-over h2 { color: #8e473b; }
.menu-results-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: 1.25rem; align-items: start; }
.menu-section-title { margin: .5rem 0 1rem; color: var(--ink); font-size: 1.25rem; font-weight: 760; }
.meal-card { margin-bottom: .8rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.meal-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.meal-day { color: #58814a; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.meal-card h3 { margin: .25rem 0 .45rem; color: var(--ink); font-size: 1rem; font-weight: 730; }
.meal-card-heading > strong { color: var(--forest); white-space: nowrap; }
.meal-card > p { margin: 0 0 .65rem; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.meal-card details { color: #56685b; font-size: .82rem; }
.meal-card summary { color: var(--forest); font-weight: 700; cursor: pointer; }
.meal-card details ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; margin: .6rem 0 0; padding-left: 1.1rem; }
.shopping-card { position: sticky; top: 1rem; padding: 1.25rem; border: 1px solid #d9e8cf; border-radius: 18px; background: #f8fbf4; }
.shopping-card h2 { margin: .35rem 0 1rem; color: var(--forest); font-size: 1.25rem; font-weight: 760; }
.shopping-list { max-height: 560px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.shopping-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid #e4ebde; color: #536359; font-size: .82rem; }
.shopping-item-check { display: flex; align-items: center; gap: .5rem; min-width: 0; margin: 0; cursor: pointer; }
.shopping-item-check .form-check-input { flex: 0 0 auto; margin: 0; cursor: pointer; }
.shopping-item-name { overflow-wrap: anywhere; }
.shopping-item-quantity, .shopping-list li strong { white-space: nowrap; }
.shopping-list li strong { color: var(--ink); }
.shopping-list li.is-checked .shopping-item-name { color: #7a877e; text-decoration: line-through; }
.shopping-hint { margin: .65rem 0 0; color: #718076; font-size: .75rem; line-height: 1.45; }
.shopping-total { display: flex; justify-content: space-between; gap: .7rem; margin-top: .85rem; padding-top: .75rem; border-top: 2px solid #dbe6d2; color: var(--forest); font-size: .86rem; font-weight: 750; }
.menu-disclaimer { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 4px solid #c3d79b; border-radius: 0 12px 12px 0; background: #f8faf6; }
.menu-disclaimer strong { color: #526a4b; font-size: .85rem; }
.menu-disclaimer p { margin: .35rem 0 0; color: #6d796f; font-size: .78rem; line-height: 1.55; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; color: #17231b !important; font-size: 10pt; }
  .site-header, .site-footer, .calculator-back, .menu-options, .menu-print-actions,
  .menu-shell > p.d-flex, .menu-disclaimer, .privacy-note { display: none !important; }
  .site-main, .menu-shell { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .calculator-heading { margin: 0 0 8mm !important; }
  .calculator-heading h1 { font-size: 22pt !important; }
  .menu-summary { margin: 0 0 5mm !important; padding: 4mm !important; border-radius: 0 !important; }
  .menu-summary h2 { font-size: 14pt !important; }
  .menu-results-grid { display: grid !important; grid-template-columns: minmax(0, 1.55fr) minmax(58mm, .9fr) !important; gap: 5mm !important; align-items: start !important; }
  .menu-section-title, .shopping-card h2 { font-size: 14pt !important; }
  .meal-card, .shopping-card { position: static !important; break-inside: avoid; box-shadow: none !important; border-radius: 0 !important; background: #fff !important; }
  .meal-card { margin-bottom: 3mm !important; padding: 3mm !important; }
  .meal-card h3 { font-size: 10.5pt !important; }
  .meal-card > p, .meal-card details, .shopping-list { font-size: 8.5pt !important; }
  .shopping-hint { display: none !important; }
  .meal-card details > summary { display: none !important; }
  .meal-card details:not([open]) > :not(summary) { display: block !important; }
  .shopping-card { padding: 4mm !important; }
  .shopping-list li { padding: 1.5mm 0 !important; }
  a { color: inherit !important; text-decoration: none !important; }
}

@media (max-width: 575.98px) { .unit-price-grid { grid-template-columns: 1fr; gap: .25rem; } }
.form-hint { display: block; margin-top: .35rem; color: #829087; font-size: .76rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.publish-toggle { padding: 1rem 1rem 1rem 2.7rem; border: 1px solid var(--line); border-radius: 13px; background: #f8faf6; }
.publish-toggle .form-check-input { margin-left: -1.7rem; }
.publish-toggle .form-check-label { color: var(--ink); font-weight: 700; }
.admin-form-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.admin-form-actions .calculator-submit { width: auto; min-width: 190px; margin: 0; padding-inline: 1.2rem; }
.btn-cancel { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: #55645a; background: var(--white); font-weight: 650; }
.btn-cancel:hover { border-color: #bccbbb; color: var(--forest); background: #f8faf6; }
.delete-card { max-width: 620px; margin: 2rem auto; padding: 2rem; border: 1px solid #f0ddd6; border-radius: 20px; background: #fffaf8; }
.delete-card h1 { margin: 1rem 0 .5rem; font-size: 1.6rem; font-weight: 750; letter-spacing: -.04em; }
.delete-card p { color: #6e7771; line-height: 1.6; }
.btn-delete { padding: .8rem 1rem; border: 0; border-radius: 12px; color: var(--white); background: #a94d3d; font-weight: 700; }
.btn-delete:hover { color: var(--white); background: #883d31; }
.login-shell { max-width: 450px; margin: 1rem auto; padding: 1rem 0 2rem; }
.login-card { margin-top: 1.25rem; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 21px; background: var(--white); box-shadow: 0 16px 45px rgb(20 44 31 / 7%); }
.login-card h1 { margin: .55rem 0; color: var(--ink); font-size: 1.8rem; font-weight: 780; letter-spacing: -.055em; }
.login-card > p { margin-bottom: 1.35rem; color: var(--muted); }
.login-card .form-control { min-height: 48px; border: 1px solid #dce4d9; border-radius: 11px; background: #fbfcf9; }

@media (max-width: 991.98px) {
  .home-hero { grid-template-columns: 1fr  .8fr; gap: 1rem; }
  .floating-chip { right: -5%; }
}

@media (max-width: 767.98px) {
  .site-header .navbar { min-height: 68px; }
  .navbar-collapse { padding: .7rem 0 1rem; }
  .navbar .nav-link { padding-inline: .2rem !important; }
  .btn-nav { display: inline-block; margin-left: 0 !important; }
  .site-main { padding-top: 1rem; padding-bottom: 3rem; }
  .home-hero { grid-template-columns: 1fr; gap: .4rem; padding: 2rem 1.45rem 1rem; border-radius: 23px; }
  .home-hero h1 { font-size: clamp(3.1rem, 14vw, 4.7rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-note { margin-top: 1.2rem; }
  .hero-visual { min-height: 310px; margin-top: .5rem; }
  .mini-dashboard { width: min(85%, 320px); }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { width: 235px; height: 235px; }
  .floating-chip { right: 0; bottom: 8%; }
  .tools-section { padding-top: 3rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .section-heading > p { margin: 0; }
  .tool-card { min-height: 225px; }
  .footer-copy { float: none; display: block; margin-top: .7rem; }
}

@media (max-width: 575.98px) {
  .calculator-heading { margin-top: 1.1rem; }
  .calculator-heading h1 { font-size: 2.1rem; }
  .calculator-card { border-radius: 18px; }
  .offer-comparison-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr; }
  .menu-options-grid, .menu-results-grid { grid-template-columns: 1fr; }
  .menu-summary { align-items: flex-start; flex-direction: column; }
  .menu-summary p { text-align: left; }
  .shopping-card { position: static; }
  .meal-card details ul { grid-template-columns: 1fr; }
  .result-feature { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .result-card dt, .result-card dd { font-size: .85rem; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-actions .calculator-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.reuse-shell { max-width: 1120px; margin: 0 auto; padding: 2.5rem 0 4rem; }
.reuse-hero { padding: 2.2rem; border-radius: 26px; background: linear-gradient(130deg, #edf6e6, #fff 70%); border: 1px solid #dce9d2; }
.reuse-hero h1 { margin: .35rem 0 .6rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; }
.reuse-hero p { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.reuse-hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.reuse-login-link { color: var(--green); font-weight: 700; }
.reuse-report-link { display: inline-block; margin-left: 1rem; color: #6a3939; font-size: .9rem; }
.reuse-account-delete-link { display: inline-block; margin-top: 1.5rem; color: #7a3939; font-size: .85rem; }
.reuse-report-link { display: inline-block; margin-left: 1rem; color: #6a3939; font-size: .9rem; }
.reuse-account-delete-link { display: inline-block; margin-top: 1.5rem; color: #7a3939; font-size: .85rem; }
.reuse-filter-card { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.reuse-listing-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.2rem; }
.reuse-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: #fff; transition: transform .2s ease,box-shadow .2s ease; }
.reuse-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 28px rgb(20 44 31 / 9%); }
.reuse-card-image,.reuse-card-placeholder { display: grid; width: 100%; height: 210px; object-fit: cover; place-items: center; background: #f1f6ed; color: var(--green); font-size: 3rem; }
.reuse-card-body { padding: 1rem 1.1rem 1.2rem; }
.reuse-card-body h2 { margin: .45rem 0; font-size: 1.15rem; font-weight: 750; }
.reuse-card-body p { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; }
.reuse-category { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.reuse-empty { margin: 2rem auto; padding: 3rem 1.5rem; text-align: center; border: 1px dashed #cbd9c2; border-radius: 22px; background: #fafcf8; }
.reuse-empty>span { color: var(--green); font-size: 2.8rem; }
.reuse-empty h2 { margin: .6rem 0; font-size: 1.45rem; }
.reuse-empty p,.reuse-privacy-note { color: var(--muted); }
.reuse-privacy-note { margin-top: 1.5rem; font-size: .85rem; }
.reuse-detail-card { display: grid; grid-template-columns: minmax(280px,.9fr) 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.reuse-detail-image { width: 100%; height: 100%; min-height: 420px; max-height: 650px; object-fit: cover; background: #f2f6ee; }
.reuse-detail-content { padding: clamp(1.3rem,3vw,2.5rem); }
.reuse-detail-content h1 { margin: .5rem 0; font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 800; }
.reuse-detail-price { color: var(--green); font-size: 1.3rem; font-weight: 800; }
.reuse-location { margin: 1.2rem 0; color: var(--muted); }
.reuse-description { white-space: pre-line; line-height: 1.7; }
.reuse-location-consent { padding: 1rem; border-radius: 12px; color: #45564a; background: #f1f6ed; font-size: .9rem; }
.reuse-form-preview { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; }
.reuse-form-shell { max-width: 820px; }
.reuse-form { margin-top: 1rem; }
.reuse-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.reuse-dashboard-heading h1,.reuse-shell h1 { font-weight: 800; letter-spacing: -.04em; }
.reuse-own-listings,.reuse-messages,.reuse-admin-list { display: grid; gap: 1rem; }
.reuse-own-card,.reuse-message,.reuse-admin-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.reuse-own-card>img,.reuse-admin-card>img { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; }
.reuse-own-content,.reuse-admin-content { flex: 1; }
.reuse-own-content h2,.reuse-admin-content h2 { margin: .4rem 0; font-size: 1.05rem; font-weight: 750; }
.reuse-own-content p,.reuse-admin-content p { margin-bottom: .35rem; color: var(--muted); font-size: .88rem; }
.reuse-status { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 750; }
.status-pending { color: #735100; background: #fff3ce; }
.status-published { color: #23663c; background: #e6f4e9; }
.status-closed { color: #51565c; background: #edf0f2; }
.reuse-message { display: block; }
.reuse-message p { margin: .7rem 0; white-space: pre-line; }
.reuse-admin-card { align-items: flex-start; }
.reuse-admin-content p { white-space: pre-line; }
.reuse-admin-actions { display: flex; flex-direction: column; gap: .5rem; }
@media(max-width:700px) { .reuse-detail-card { grid-template-columns: 1fr; }.reuse-detail-image { min-height: 260px; max-height: 400px; }.reuse-own-card,.reuse-admin-card { align-items: flex-start; flex-wrap: wrap; }.reuse-admin-actions { flex-direction: row; width: 100%; }.reuse-dashboard-heading { align-items: flex-start; flex-direction: column; } }

.user-dashboard-shell { max-width: 1060px; margin: 0 auto; }
.dashboard-activities { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.dashboard-activity-card { display: flex; min-height: 220px; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 32px rgb(20 44 31 / 5%); }
.dashboard-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.dashboard-activity-heading .section-kicker { margin: 0; }
.dashboard-activity-heading time { color: var(--muted); font-size: .75rem; text-align: right; }
.dashboard-activity-card h2 { margin: .75rem 0 .45rem; color: var(--forest); font-size: 1.08rem; font-weight: 750; }
.dashboard-activity-card p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.dashboard-tool-link { margin-top: auto; color: var(--forest); font-size: .88rem; font-weight: 750; text-decoration: none; }
.dashboard-tool-link:hover { text-decoration: underline; }
.dashboard-empty { text-align: center; }
.dashboard-empty h2 { margin-top: .75rem; color: var(--forest); font-size: 1.35rem; }
.dashboard-empty p { max-width: 540px; margin: .5rem auto 1.25rem; color: var(--muted); }
.dashboard-clear-form { display: flex; justify-content: flex-end; margin-top: 1.25rem; }

.newsletter-editor { min-height: 340px; white-space: normal; overflow-wrap: anywhere; }
.newsletter-editor p { margin: 0 0 .8rem; }
.newsletter-editor img { display: block; max-width: 100%; height: auto; margin: .8rem 0; }
.newsletter-editor-form .newsletter-toolbar { margin-bottom: .6rem; }
.newsletter-editor-status { min-height: 1.5rem; }
.newsletter-preview img { max-width: 100%; height: auto; }

.newsletter-editor-source { min-height: 380px; }
.newsletter-editor-status { min-height: 1.5rem; }
.note-editor.note-frame { border-color: #dce4d9; border-radius: 11px; overflow: visible; }
.note-editor .note-editing-area { background: #fff; }
.note-editor .note-editing-area .note-editable { color: #24352c; }
.note-modal .modal-dialog { z-index: 1060; }

.newsletter-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .65rem; padding: .7rem; border: 1px solid #dce4d9; border-radius: 12px; background: #f8faf6; }
.newsletter-control-group { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding-right: .45rem; border-right: 1px solid #dce4d9; }
.newsletter-control-group:last-child { border-right: 0; }
.newsletter-controls .btn { min-height: 36px; padding: .35rem .55rem; font-size: .85rem; }
.newsletter-controls .form-select { width: auto; min-width: 112px; min-height: 36px; padding-top: .35rem; padding-bottom: .35rem; font-size: .85rem; }
.newsletter-color-control { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .45rem; border: 1px solid #ced4da; border-radius: .375rem; background: white; font-size: .8rem; }
.newsletter-color-control input { width: 25px; height: 25px; padding: 0; border: 0; background: transparent; }

textarea.newsletter-editor-source { display: none !important; }
