/*
Theme Name: Sneferu Plant Watch
Theme URI: https://sneferu.de
Author: Willy
Description: Private plant monitoring and watering dashboard with custom login, ESP32 API, images, alerts, and watering commands.
Version: 2.6.86
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sneferu-plant
*/

:root {
  --bg: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --green: #16a34a;
  --blue: #2563eb;
  --red: #dc2626;
  --orange: #ea580c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.sneferu-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, #eefbf3 0%, #f8fafc 45%, #eef2ff 100%);
}

.sneferu-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.sneferu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.sneferu-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #dcfce7;
}

.sneferu-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sneferu-button,
button.sneferu-button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sneferu-button.secondary { background: #e2e8f0; color: #0f172a; }
.sneferu-button.danger { background: var(--red); }
.sneferu-button.green { background: var(--green); }

.sneferu-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.sneferu-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.sneferu-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.sneferu-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.sneferu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sneferu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.sneferu-plant-img {
  height: 150px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 42px;
}

.sneferu-plant-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sneferu-card-body { padding: 16px; }

.sneferu-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.sneferu-meter {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 12px 0;
}

.sneferu-meter > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--green);
}

.sneferu-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: #e2e8f0;
}

.status-dry { background:#fee2e2; color:#991b1b; }
.status-ok { background:#dcfce7; color:#166534; }
.status-wet { background:#dbeafe; color:#1e40af; }

.sneferu-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sneferu-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sneferu-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(22,163,74,.18), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(37,99,235,.16), transparent 30%),
    #07111f;
}

.sneferu-login-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.sneferu-login-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.sneferu-login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.sneferu-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.sneferu-field label {
  font-weight: 750;
  font-size: 14px;
}

.sneferu-field input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  width: 100%;
}

.sneferu-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .sneferu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .sneferu-grid { grid-template-columns: 1fr; }
  .sneferu-topbar { padding: 12px 14px; }
  .sneferu-nav { gap: 6px; }
  .sneferu-button { padding: 10px 12px; }
}


/* Standalone app mode */
html { margin-top: 0 !important; }
#wpadminbar { display: none !important; }
body.sneferu-app-body { overflow-x: hidden; }
.sneferu-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(34, 197, 94, .18), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(187, 247, 208, .34), transparent 24%),
    linear-gradient(160deg, #f0fdf4 0%, #f8fafc 50%, #eef2ff 100%);
}
.sneferu-app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.sneferu-topbar {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15,23,42,.06);
}
.sneferu-hero {
  text-align: center;
  place-items: center;
}
.sneferu-footer-note {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 18px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}



.sneferu-weather-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  margin: 0 auto 22px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  max-width: 760px;
}
.sneferu-kicker {
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.sneferu-weather-card h2 { margin: 0; font-size: 22px; }
.sneferu-weather-temp {
  margin: 10px 0 4px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.sneferu-weather-meta { margin: 0; color: var(--muted); line-height: 1.6; }
.sneferu-weather-advice {
  margin: 14px 0 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  background: #ecfdf5;
  color: #166534;
}
.sneferu-weather-advice.rain { background: #dbeafe; color: #1e40af; }
.sneferu-weather-advice.hot { background: #ffedd5; color: #9a3412; }
.sneferu-weather-advice.humid { background: #f1f5f9; color: #334155; }
.sneferu-weather-small { margin: 10px 0 0; color: #94a3b8; font-size: 12px; }



.sneferu-settings-form {
  display: grid;
  gap: 20px;
}
.sneferu-settings-message {
  max-width: 760px;
  margin: 0 auto 18px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
}
.sneferu-settings-section {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}
.sneferu-settings-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.sneferu-settings-grid-small {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sneferu-settings-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #334155;
}
.sneferu-settings-form label span {
  font-size: 13px;
}
.sneferu-settings-form input[type="text"],
.sneferu-settings-form input[type="email"],
.sneferu-settings-form input[type="number"],
.sneferu-settings-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}
.sneferu-settings-plants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sneferu-settings-plant {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: #f8fafc;
}
.sneferu-settings-img {
  min-height: 150px;
  border-radius: 20px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 40px;
}
.sneferu-settings-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sneferu-settings-fields {
  display: grid;
  gap: 12px;
}
.sneferu-settings-fields h3 {
  margin: 0;
  font-size: 18px;
}
.sneferu-checkline {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 700 !important;
}
.sneferu-checkline input {
  width: auto !important;
}
.sneferu-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .sneferu-settings-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sneferu-settings-plants { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sneferu-settings-grid-small { grid-template-columns: 1fr; }
  .sneferu-settings-plant { grid-template-columns: 1fr; }
}



.sneferu-api-box {
  display: grid;
  gap: 12px;
}
.sneferu-settings-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}
.sneferu-help-text {
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.6;
}
.sneferu-code-block {
  margin: 0;
  border-radius: 18px;
  background: #0f172a;
  color: #d1fae5;
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
.sneferu-wiring-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sneferu-note-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.sneferu-note-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.sneferu-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .sneferu-wiring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sneferu-wiring-grid { grid-template-columns: 1fr; }
}



.sneferu-alexa-rules {
  display: grid;
  gap: 12px;
}



/* v1.6.1, fixed plant image handling */
.sneferu-card {
  display: flex;
  flex-direction: column;
}

.sneferu-plant-img {
  height: 190px;
  background:
    linear-gradient(145deg, #f8fafc, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.sneferu-plant-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  display: block;
  border-radius: 16px;
}

.sneferu-card-body {
  position: relative;
  z-index: 2;
  background: #fff;
  min-height: 190px;
}

.sneferu-card h2 {
  line-height: 1.18;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .sneferu-plant-img {
    height: 220px;
  }
}



.sneferu-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.sneferu-inline-status {
  color: var(--muted);
  font-weight: 800;
}



.sneferu-forecast-summary {
  max-width: 760px;
  margin: 0 auto 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}
.sneferu-forecast-summary h2 {
  margin: 8px 0 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.sneferu-forecast-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.sneferu-forecast-30-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.sneferu-forecast-30-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  min-height: 170px;
  box-shadow: 0 12px 34px rgba(15,23,42,.05);
}
.sneferu-forecast-30-day.placeholder {
  background: #f8fafc;
  opacity: .78;
}
.sneferu-forecast-30-date {
  font-weight: 900;
  font-size: 14px;
  color: #166534;
}
.sneferu-forecast-30-temp {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin: 12px 0 8px;
}
.sneferu-forecast-30-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.sneferu-forecast-30-empty {
  margin: 16px 0 8px;
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 900;
  font-size: 12px;
}
.sneferu-forecast-30-day p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 1180px) {
  .sneferu-forecast-30-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sneferu-forecast-30-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .sneferu-forecast-30-grid { grid-template-columns: 1fr; }
}

.sneferu-growth-upload{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.sneferu-growth-upload label{min-width:min(360px,100%)}.sneferu-growth-instructions{margin:16px 0;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:16px;padding:12px 14px;font-weight:800}.sneferu-growth-canvas-wrap{position:relative;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#f8fafc;min-height:280px;display:grid;place-items:center}#growth-canvas{display:block;width:100%;height:auto;cursor:crosshair}.sneferu-growth-empty{color:#94a3b8;font-weight:900;font-size:18px}.sneferu-growth-history{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sneferu-growth-history-item{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:10px}.sneferu-growth-thumb{width:72px;height:72px;border-radius:14px;background:#e2e8f0;display:grid;place-items:center;overflow:hidden}.sneferu-growth-thumb img{width:100%;height:100%;object-fit:cover}.sneferu-growth-history-item strong,.sneferu-growth-history-item span,.sneferu-growth-history-item small{display:block}.sneferu-growth-history-item span{font-weight:950;font-size:20px}.sneferu-growth-history-item small{color:var(--muted)}@media(max-width:980px){.sneferu-growth-history{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.sneferu-growth-history{grid-template-columns:1fr}}



/* v1.8.1 mobile layout fix */
html, body { max-width: 100%; overflow-x: hidden; }

.sneferu-weather-card,
.sneferu-card,
.sneferu-settings-section,
.sneferu-forecast-summary { max-width: 100%; }

.sneferu-weather-meta,
.sneferu-weather-advice,
.sneferu-weather-small { overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 760px) {
  .sneferu-topbar {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 12px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
    top: auto;
  }

  .sneferu-brand {
    font-size: 22px;
    line-height: 1.05;
  }

  .sneferu-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .sneferu-nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sneferu-nav::-webkit-scrollbar { display: none; }

  .sneferu-button,
  button.sneferu-button {
    border-radius: 16px;
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.15;
    flex: 0 0 auto;
  }

  .sneferu-main {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .sneferu-hero {
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .sneferu-hero h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .sneferu-hero p {
    font-size: 14px;
    line-height: 1.45;
  }

  .sneferu-weather-card {
    border-radius: 26px;
    padding: 18px;
    margin-bottom: 18px;
    overflow: hidden;
  }

  .sneferu-weather-card h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .sneferu-weather-temp {
    font-size: 48px;
    line-height: 1;
  }

  .sneferu-weather-meta {
    display: block;
    font-size: 14px;
    line-height: 1.55;
  }

  .sneferu-weather-advice {
    font-size: 15px;
    line-height: 1.35;
    padding: 12px;
  }

  .sneferu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .sneferu-plant-img {
    height: 260px;
    padding: 16px;
  }

  .sneferu-card-body {
    min-height: auto;
    padding: 18px;
  }

  .sneferu-card h2 { font-size: 24px; }

  .sneferu-meta { font-size: 14px; }

  .sneferu-settings-grid-small,
  .sneferu-forecast-30-grid,
  .sneferu-wiring-grid,
  .sneferu-growth-history {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 390px) {
  .sneferu-brand { font-size: 20px; }

  .sneferu-button,
  button.sneferu-button {
    font-size: 13px;
    padding: 9px 11px;
  }

  .sneferu-weather-temp { font-size: 42px; }
  .sneferu-plant-img { height: 230px; }
}



.sneferu-weather-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.sneferu-weather-details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--line);
  padding: 8px 11px;
  font-weight: 850;
  font-size: 13px;
}
@media (max-width: 760px) {
  .sneferu-weather-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sneferu-weather-details span {
    justify-content: flex-start;
    border-radius: 14px;
    white-space: normal;
  }
}



/* v1.8.3 richer weather details */
.sneferu-weather-details span {
  align-items: flex-start;
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  row-gap: 2px;
}
.sneferu-weather-details span strong {
  font-size: 13px;
  line-height: 1.2;
}
.sneferu-weather-details span small {
  grid-column: 2;
  color: #64748b;
  font-weight: 650;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .sneferu-weather-details span {
    grid-template-columns: auto 1fr;
  }
}



/* v1.8.4 dashboard weather refresh */
.sneferu-weather-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sneferu-weather-bottom .sneferu-weather-small {
  margin: 0;
}
.sneferu-weather-refresh {
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 850;
  padding: 8px 12px;
  cursor: pointer;
}
.sneferu-weather-refresh:disabled {
  opacity: .7;
  cursor: wait;
}
@media (max-width: 760px) {
  .sneferu-weather-bottom {
    align-items: stretch;
  }
  .sneferu-weather-refresh {
    width: 100%;
    border-radius: 14px;
  }
}



/* v1.9 control center additions */
.sneferu-overview-widgets,.sneferu-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 20px}
.sneferu-mini-widget{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 14px 40px rgba(15,23,42,.06)}
.sneferu-mini-widget h2{margin:8px 0;font-size:32px;letter-spacing:-.04em}.sneferu-mini-widget p{margin:0;color:var(--muted);line-height:1.5}
.sneferu-small-link{display:inline-flex;margin-top:12px;font-weight:900;color:#166534;text-decoration:none}
.sneferu-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sneferu-menu-card{display:grid;gap:8px;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 12px 34px rgba(15,23,42,.05)}.sneferu-menu-card strong{font-size:20px}.sneferu-menu-card span{color:var(--muted);line-height:1.45}
.sneferu-tank-big{display:grid;gap:4px}.sneferu-tank-big strong{font-size:46px;letter-spacing:-.05em}.sneferu-tank-big span{color:var(--muted);font-weight:800}
.sneferu-table-wrap{overflow-x:auto}.sneferu-data-table{width:100%;border-collapse:collapse}.sneferu-data-table th,.sneferu-data-table td{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:top}.sneferu-data-table th{font-size:13px;color:#475569}
.sneferu-note-grid,.sneferu-manual-grid,.sneferu-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sneferu-profile-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:14px;box-shadow:0 12px 34px rgba(15,23,42,.05)}.sneferu-profile-card img{width:100%;height:160px;object-fit:contain;background:#f8fafc;border-radius:16px}.sneferu-profile-card h3{margin:12px 0 6px}.sneferu-profile-card p{color:var(--muted);line-height:1.5}.sneferu-profile-card small{color:#64748b;font-weight:800}
@media(max-width:980px){.sneferu-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sneferu-note-grid,.sneferu-manual-grid,.sneferu-profile-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.sneferu-overview-widgets,.sneferu-health-grid,.sneferu-menu-grid,.sneferu-note-grid,.sneferu-manual-grid,.sneferu-profile-grid{grid-template-columns:1fr}.sneferu-data-table{min-width:720px}}



/* v1.9.1 mobile overflow and readability fix */
html, body { max-width:100%; overflow-x:hidden!important; }

.sneferu-shell,.sneferu-app-frame,.sneferu-main,.sneferu-settings-section,
.sneferu-weather-card,.sneferu-card,.sneferu-mini-widget,.sneferu-note-card,
.sneferu-menu-card,.sneferu-profile-card,.sneferu-forecast-summary {
  min-width:0;
  max-width:100%;
}

.sneferu-hero,.sneferu-hero h1,.sneferu-hero p,.sneferu-settings-section,
.sneferu-settings-section h2,.sneferu-settings-section p,.sneferu-note-card,
.sneferu-note-card p,.sneferu-mini-widget,.sneferu-mini-widget p,
.sneferu-profile-card,.sneferu-profile-card p,.sneferu-help-text {
  overflow-wrap:anywhere;
  word-break:normal;
}

.sneferu-settings-form input,.sneferu-settings-form select,.sneferu-settings-form textarea,
.sneferu-api-box input,.sneferu-code-block {
  max-width:100%;
  min-width:0;
}

.sneferu-code-block {
  white-space:pre-wrap;
  word-break:break-word;
}

@media (max-width:760px) {
  .sneferu-main {
    width:calc(100% - 22px);
    overflow:hidden;
  }

  .sneferu-topbar {
    width:calc(100% - 22px);
    overflow:hidden;
    grid-template-columns:1fr;
  }

  .sneferu-nav {
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }

  .sneferu-hero {
    text-align:left;
    place-items:start;
    padding:0 2px;
    overflow:hidden;
  }

  .sneferu-hero h1 {
    font-size:34px;
    line-height:1.08;
    max-width:100%;
  }

  .sneferu-hero p {
    font-size:15px;
    line-height:1.45;
    max-width:100%;
  }

  .sneferu-settings-section {
    padding:18px;
    border-radius:24px;
    overflow:hidden;
  }

  .sneferu-settings-section h2 {
    font-size:28px;
    line-height:1.12;
  }

  .sneferu-settings-grid-small,
  .sneferu-health-grid,
  .sneferu-overview-widgets,
  .sneferu-menu-grid,
  .sneferu-note-grid,
  .sneferu-manual-grid,
  .sneferu-profile-grid,
  .sneferu-growth-history {
    grid-template-columns:1fr!important;
  }

  .sneferu-settings-form label,
  .sneferu-api-box {
    min-width:0;
  }

  .sneferu-settings-form input[type="text"],
  .sneferu-settings-form input[type="email"],
  .sneferu-settings-form input[type="number"],
  .sneferu-settings-form input[type="url"],
  .sneferu-settings-form input[type="file"],
  .sneferu-settings-form select {
    width:100%;
    max-width:100%;
    font-size:16px;
  }

  .sneferu-api-box input[readonly],
  input[readonly] {
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .sneferu-table-wrap {
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:18px;
  }

  .sneferu-data-table {
    min-width:620px;
    font-size:14px;
  }

  .sneferu-data-table th,
  .sneferu-data-table td {
    padding:10px;
    white-space:normal;
  }

  .sneferu-mini-widget h2 {
    font-size:34px;
    line-height:1.05;
  }

  .sneferu-note-card h3 {
    font-size:22px;
    line-height:1.1;
  }

  .sneferu-weather-meta {
    white-space:normal;
  }
}

@media (max-width:430px) {
  .sneferu-topbar { padding:12px; }
  .sneferu-brand { font-size:26px; line-height:1.05; }
  .sneferu-logo { width:48px; height:48px; }
  .sneferu-button, button.sneferu-button { font-size:14px; padding:10px 12px; }
  .sneferu-hero h1 { font-size:30px; }
  .sneferu-settings-section h2 { font-size:26px; }
  .sneferu-mini-widget h2 { font-size:30px; }
}



/* v2.0 Brain wiki */
.sneferu-brain-index{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.sneferu-brain-index a{text-decoration:none;border-radius:999px;background:#e2e8f0;color:#0f172a;font-weight:850;padding:9px 13px}
.sneferu-brain-diagram{width:100%;height:auto;display:block;border:1px solid var(--line);border-radius:22px;background:#f8fafc;margin:12px 0}
.sneferu-brain-list{margin:14px 0 0;padding-left:22px;color:var(--muted);line-height:1.7}
.sneferu-brain-list li{margin:6px 0}.sneferu-settings-section h3{margin:18px 0 8px;font-size:20px}
@media(max-width:760px){.sneferu-brain-index{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}.sneferu-brain-index a{flex:0 0 auto}.sneferu-brain-diagram{min-width:720px}.sneferu-settings-section:has(.sneferu-brain-diagram){overflow-x:auto}}




/* v2.2 intelligence layer */
.sneferu-intel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sneferu-intel-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 14px 40px rgba(15,23,42,.06)}
.sneferu-intel-card h2{margin:0 0 12px;font-size:24px}
.sneferu-intel-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}
.sneferu-intel-row span{color:var(--muted);font-weight:750}.sneferu-intel-row strong{font-weight:950}
.sneferu-qr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sneferu-qr-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;text-align:center;box-shadow:0 14px 40px rgba(15,23,42,.06)}
.sneferu-qr-card img,.sneferu-qr-img{max-width:220px;width:100%;height:auto;background:#fff;border-radius:16px;padding:10px;border:1px solid var(--line)}
.sneferu-qr-card p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:980px){.sneferu-intel-grid,.sneferu-qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sneferu-intel-grid,.sneferu-qr-grid{grid-template-columns:1fr}.sneferu-intel-row{display:grid}}




















/* v2.4.1 Control Panel drawer on desktop and mobile */
body.sneferu-cp-body {
  margin: 0;
  background: #eef7ef;
}

body.sneferu-cp-body .sneferu-shell,
body.sneferu-cp-body .sneferu-app-frame {
  display: none;
}

.sneferu-cp-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 16% 0%, rgba(34,197,94,.18), transparent 30%),
    linear-gradient(160deg, #ecfdf5 0%, #f8fafc 58%, #eef2ff 100%);
}

.sneferu-cp-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: min(86vw, 340px);
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f2f4f 0%, #0b2742 100%);
  color: #e5f3ff;
  padding: 14px;
  box-sizing: border-box;
  z-index: 40;
  transform: translateX(-105%);
  transition: transform .22s ease;
  box-shadow: 28px 0 70px rgba(15,23,42,.32);
}

.sneferu-cp-shell.drawer-open .sneferu-cp-sidebar {
  transform: translateX(0);
}

.sneferu-cp-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sneferu-cp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.sneferu-cp-brand .sneferu-logo {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.12);
}

.sneferu-cp-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.sneferu-cp-search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 11px 12px;
  box-sizing: border-box;
  font-size: 14px;
}

.sneferu-cp-search input::placeholder {
  color: rgba(255,255,255,.68);
}

.sneferu-cp-menu {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sneferu-cp-group {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 8px;
}

.sneferu-cp-group:first-child {
  border-top: 0;
}

.sneferu-cp-group-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.68);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 850;
  padding: 8px 6px;
  cursor: pointer;
}

.sneferu-cp-group.collapsed .sneferu-cp-group-items {
  display: none;
}

.sneferu-cp-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e5f3ff;
  border-radius: 12px;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.sneferu-cp-link:hover,
.sneferu-cp-link.active {
  background: rgba(37, 99, 235, .55);
}

.sneferu-cp-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.11);
}

.sneferu-cp-link-text {
  min-width: 0;
}

.sneferu-cp-link strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
}

.sneferu-cp-link small {
  display: block;
  margin-top: 2px;
  color: rgba(229,243,255,.72);
  line-height: 1.25;
  font-size: 12px;
}

.sneferu-cp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 35;
}

.sneferu-cp-shell.drawer-open .sneferu-cp-overlay {
  display: block;
}

.sneferu-cp-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.sneferu-cp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.sneferu-cp-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sneferu-cp-menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
  flex: 0 0 auto;
}

.sneferu-cp-topbar h1 {
  margin: 4px 0 2px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sneferu-cp-topbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

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

.sneferu-cp-content {
  padding: 18px;
  min-width: 0;
}

.sneferu-cp-frame-wrap {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  overflow: visible;
  padding: 18px;
}

.sneferu-cp-frame-wrap iframe {
  width: 100%;
  min-height: 720px;
  height: 900px;
  border: 0;
  display: block;
  overflow: hidden !important;
  background: transparent;
}

@media (min-width: 861px) {
  .sneferu-cp-sidebar {
    width: 340px;
  }

  .sneferu-cp-content {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .sneferu-cp-sidebar {
    width: min(86vw, 330px);
  }

  .sneferu-cp-topbar {
    display: grid;
    padding: 12px;
  }

  .sneferu-cp-actions {
    justify-content: stretch;
  }

  .sneferu-cp-actions .sneferu-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sneferu-cp-content {
    padding: 12px;
  }

  .sneferu-cp-frame-wrap {
    padding: 10px;
    border-radius: 22px;
  }

  .sneferu-cp-topbar h1 {
    font-size: 24px;
  }

  .sneferu-cp-topbar p {
    font-size: 14px;
  }
}



/* v2.4.2 compact sticky Control Panel top bar */
.sneferu-cp-topbar-compact {
  min-height: 58px;
  padding: 8px 14px !important;
  align-items: center;
}

.sneferu-cp-topbar-compact .sneferu-cp-title-wrap {
  gap: 10px;
}

.sneferu-cp-topbar-compact .sneferu-cp-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 16px;
}

.sneferu-cp-title-compact {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.sneferu-cp-section-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
}

.sneferu-cp-topbar-compact h1 {
  font-size: 22px !important;
  line-height: 1.05 !important;
  margin: 2px 0 0 !important;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sneferu-cp-topbar-compact p {
  font-size: 12px !important;
  line-height: 1.25 !important;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sneferu-cp-topbar-compact .sneferu-cp-actions {
  align-items: center;
  gap: 8px;
}

.sneferu-cp-topbar-compact .sneferu-button {
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .sneferu-cp-topbar-compact {
    display: flex !important;
    padding: 8px 10px !important;
    gap: 8px;
  }

  .sneferu-cp-topbar-compact .sneferu-cp-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sneferu-cp-topbar-compact .sneferu-cp-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
  }

  .sneferu-cp-topbar-compact .sneferu-button {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 12px;
  }

  .sneferu-cp-topbar-compact h1 {
    font-size: 18px !important;
  }

  .sneferu-cp-topbar-compact p {
    display: none;
  }

  .sneferu-cp-section-label {
    font-size: 10px;
    padding: 4px 7px;
  }
}

@media (max-width: 430px) {
  .sneferu-cp-topbar-compact .sneferu-button {
    padding: 7px 8px;
    font-size: 12px;
  }

  .sneferu-cp-topbar-compact .sneferu-cp-menu-btn {
    width: 32px;
    height: 32px;
  }
}



/* v2.4.3 fixed Control Panel top bar */
body.sneferu-cp-body .sneferu-cp-topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

body.sneferu-cp-body .sneferu-cp-main {
  padding-top: 66px;
}

body.sneferu-cp-body .sneferu-cp-content {
  padding-top: 18px;
}

@media (max-width: 860px) {
  body.sneferu-cp-body .sneferu-cp-main {
    padding-top: 58px;
  }

  body.sneferu-cp-body .sneferu-cp-content {
    padding-top: 12px;
  }
}



/* v2.5.0 Multi-user admin access control */
.sneferu-access-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.sneferu-access-page-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  font-weight: 800;
  color: #334155;
}

.sneferu-access-list {
  display: grid;
  gap: 16px;
}

.sneferu-access-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(15,23,42,.05);
}

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

.sneferu-access-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.sneferu-access-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.4;
}

.sneferu-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sneferu-access-edit {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sneferu-access-register-card {
  max-width: 560px;
  margin: 60px auto;
}

@media (max-width: 900px) {
  .sneferu-access-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sneferu-access-card-head {
    display: grid;
  }

  .sneferu-access-actions {
    justify-content: stretch;
  }
}

@media (max-width: 620px) {
  .sneferu-access-page-grid {
    grid-template-columns: 1fr;
  }
}







/* v2.5.3 polished access request page */
.sneferu-access-card-polished {
  width: min(560px, calc(100% - 28px));
  padding: 30px;
}

.sneferu-access-card-polished h1 {
  margin-bottom: 8px;
}

.sneferu-access-card-polished > p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sneferu-access-card-polished .sneferu-login-form,
.sneferu-access-card-polished .sneferu-access-tab-panel {
  gap: 14px;
}

.sneferu-access-card-polished .sneferu-login-form label {
  display: grid;
  gap: 7px;
  width: 100%;
  font-weight: 850;
  color: var(--text);
}

.sneferu-access-card-polished .sneferu-login-form label span {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.sneferu-access-card-polished input[type="email"],
.sneferu-access-card-polished input[type="text"],
.sneferu-access-card-polished input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px 13px;
  box-sizing: border-box;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.sneferu-access-card-polished input:focus {
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.sneferu-access-card-polished .sneferu-button {
  width: 100%;
  justify-content: center;
}

.sneferu-access-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.sneferu-access-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 10px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.sneferu-access-tabs button.active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.sneferu-access-tab-panel {
  display: none;
}

.sneferu-access-tab-panel.active {
  display: grid;
}

.sneferu-access-card-polished .sneferu-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sneferu-access-small-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.sneferu-create-account-button {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 520px) {
  .sneferu-access-card-polished {
    padding: 24px;
  }

  .sneferu-access-tabs {
    grid-template-columns: 1fr;
  }

  .sneferu-access-card-polished .sneferu-settings-actions {
    grid-template-columns: 1fr;
  }
}



/* v2.5.8 forecast today summary */
.sneferu-forecast-today-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  margin-top: 10px;
  color: var(--muted);
}

.sneferu-forecast-today-line strong {
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.sneferu-forecast-today-line span {
  font-weight: 750;
}



/* v2.5.9 restore forecast day cards */
.sneferu-forecast-summary {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  margin-bottom: 22px;
}

.sneferu-forecast-30-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sneferu-forecast-15-day,
.sneferu-forecast-30-day {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  min-height: 150px;
  box-shadow: 0 12px 32px rgba(15,23,42,.05);
  display: grid;
  gap: 10px;
}

.sneferu-forecast-15-day:hover,
.sneferu-forecast-30-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
}

.sneferu-forecast-30-date {
  color: #166534;
  font-weight: 950;
  font-size: 15px;
}

.sneferu-forecast-30-temp {
  color: var(--text);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
}

.sneferu-forecast-30-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.sneferu-forecast-30-meta span {
  display: block;
}

@media (max-width: 1200px) {
  .sneferu-forecast-30-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sneferu-forecast-30-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sneferu-forecast-summary {
    padding: 20px;
    border-radius: 22px;
  }

  .sneferu-forecast-30-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sneferu-forecast-15-day,
  .sneferu-forecast-30-day {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .sneferu-forecast-30-temp {
    font-size: 28px;
  }
}



/* v2.5.10 forced forecast card appearance */
body .sneferu-forecast-30-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(170px, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body .sneferu-forecast-15-day,
body .sneferu-forecast-30-day,
body .sneferu-forecast-30-grid > article {
  background: #ffffff !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 24px !important;
  padding: 18px !important;
  min-height: 145px !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.07) !important;
  display: grid !important;
  gap: 10px !important;
}

body .sneferu-forecast-30-date {
  color: #166534 !important;
  font-weight: 950 !important;
  font-size: 15px !important;
}

body .sneferu-forecast-30-temp {
  color: #0f172a !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  letter-spacing: -0.06em !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body .sneferu-forecast-30-meta {
  display: grid !important;
  gap: 5px !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1200px) {
  body .sneferu-forecast-30-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body .sneferu-forecast-30-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body .sneferu-forecast-30-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}






/* v2.5.12 reliable fixed dashboard top bar */
body.sneferu-dashboard-body,
body:has(.sneferu-dashboard-topbar) {
  padding-top: 96px !important;
}

body.sneferu-dashboard-body .sneferu-dashboard-topbar,
body .sneferu-dashboard-topbar {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 9998 !important;
  width: min(1180px, calc(100% - 28px)) !important;
  min-height: 54px !important;
  padding: 8px 14px !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 42px rgba(15,23,42,.14) !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(14px);
}

body .sneferu-dashboard-topbar .sneferu-brand {
  gap: 10px !important;
  font-size: 20px !important;
}

body .sneferu-dashboard-topbar .sneferu-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
}

body .sneferu-dashboard-topbar .sneferu-nav {
  gap: 8px !important;
}

body .sneferu-dashboard-topbar .sneferu-nav .sneferu-button {
  padding: 9px 13px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
}

body.sneferu-dashboard-body .sneferu-main,
body:has(.sneferu-dashboard-topbar) .sneferu-main {
  padding-top: 8px !important;
}

body.sneferu-dashboard-body .sneferu-weather-card,
body:has(.sneferu-dashboard-topbar) .sneferu-weather-card {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  body.sneferu-dashboard-body,
  body:has(.sneferu-dashboard-topbar) {
    padding-top: 122px !important;
  }

  body.sneferu-dashboard-body .sneferu-dashboard-topbar,
  body .sneferu-dashboard-topbar {
    top: 10px !important;
    width: calc(100% - 22px) !important;
    display: grid !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 22px !important;
  }

  body .sneferu-dashboard-topbar .sneferu-brand {
    font-size: 22px !important;
  }

  body .sneferu-dashboard-topbar .sneferu-nav {
    display: flex !important;
    justify-content: stretch !important;
  }

  body .sneferu-dashboard-topbar .sneferu-nav .sneferu-button {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}



/* v2.5.13 Versions section */
.sneferu-versions-hero {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 16px 44px rgba(15,23,42,.07);
}

.sneferu-versions-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -0.075em;
}

.sneferu-versions-hero p {
  color: var(--muted);
  max-width: 780px;
  line-height: 1.55;
  font-size: 18px;
}

.sneferu-version-current {
  margin-top: 18px;
  display: inline-flex;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 10px 14px;
  font-weight: 900;
}

.sneferu-version-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.sneferu-version-stats article {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.sneferu-version-stats strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.sneferu-version-stats span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.sneferu-version-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sneferu-version-legend span {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: #fff;
}

.sneferu-version-legend .stable {
  background: #dcfce7;
  color: #166534;
}

.sneferu-version-legend .replaced {
  background: #f1f5f9;
  color: #334155;
}

.sneferu-version-legend .danger {
  background: #fee2e2;
  color: #991b1b;
}

.sneferu-version-timeline {
  display: grid;
  gap: 16px;
}

.sneferu-version-card {
  position: relative;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(15,23,42,.055);
  overflow: hidden;
}

.sneferu-version-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: #94a3b8;
}

.sneferu-version-card.status-stable::before,
.sneferu-version-card.status-current::before,
.sneferu-version-card.status-stable-base::before,
.sneferu-version-card.status-current-stable-before-versions::before {
  background: #22c55e;
}

.sneferu-version-card.status-do-not-use::before {
  background: #ef4444;
}

.sneferu-version-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.sneferu-version-number {
  display: inline-flex;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  padding: 7px 10px;
  font-weight: 950;
  margin-bottom: 10px;
}

.sneferu-version-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.sneferu-version-status {
  white-space: nowrap;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 8px 11px;
  font-weight: 900;
}

.status-do-not-use .sneferu-version-status {
  background: #fee2e2;
  color: #991b1b;
}

.status-stable .sneferu-version-status,
.status-current .sneferu-version-status,
.status-stable-base .sneferu-version-status,
.status-current-stable-before-versions .sneferu-version-status {
  background: #dcfce7;
  color: #166534;
}

.sneferu-version-summary {
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
}

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

.sneferu-version-columns div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.sneferu-version-columns h3 {
  margin: 0 0 10px;
}

.sneferu-version-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

.sneferu-version-note {
  margin-top: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #713f12;
  border-radius: 18px;
  padding: 13px 15px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .sneferu-version-stats,
  .sneferu-version-columns {
    grid-template-columns: 1fr;
  }

  .sneferu-version-head {
    display: grid;
  }

  .sneferu-version-status {
    width: fit-content;
  }
}



/* v2.6.0 Smart plant-control layer */
.sneferu-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

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

.sneferu-smart-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
}

.sneferu-smart-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.sneferu-smart-card p {
  color: var(--muted);
  line-height: 1.5;
}

.sneferu-status-success {
  border-color: #86efac !important;
  background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%) !important;
}

.sneferu-status-warning {
  border-color: #fde68a !important;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%) !important;
}

.sneferu-status-danger {
  border-color: #fecaca !important;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%) !important;
}

.sneferu-status-info {
  border-color: #bfdbfe !important;
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%) !important;
}

.sneferu-smart-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sneferu-smart-detail-row span {
  display: grid;
  gap: 3px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 11px;
  color: var(--muted);
}

.sneferu-smart-detail-row strong {
  color: var(--text);
  font-size: 12px;
}

.sneferu-action-list,
.sneferu-check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.sneferu-action-list li,
.sneferu-check-list li {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 12px;
  color: #334155;
  line-height: 1.45;
}

.sneferu-action-list.large li,
.sneferu-check-list.large li {
  padding: 15px;
  font-size: 17px;
}

.sneferu-check-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.sneferu-check-list li small {
  grid-column: 2;
  color: var(--muted);
}

.sneferu-check-list li span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.sneferu-check-list li.done span {
  background: #dcfce7;
  color: #166534;
}

.sneferu-check-list li.todo span {
  background: #e2e8f0;
  color: #475569;
}

.sneferu-check-list li.blocked span {
  background: #fee2e2;
  color: #991b1b;
}

.sneferu-progress {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0;
}

.sneferu-progress.large {
  height: 18px;
}

.sneferu-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: inherit;
}

.sneferu-smart-link {
  display: inline-flex;
  margin-top: 12px;
  color: #166534;
  font-weight: 950;
  text-decoration: none;
}

.sneferu-score {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: var(--text) !important;
  margin: 8px 0 !important;
}

.sneferu-health-success {
  border-color: #86efac;
}

.sneferu-health-warning {
  border-color: #fde68a;
}

.sneferu-health-muted {
  border-color: #cbd5e1;
}

.sneferu-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sneferu-timeline div {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 14px 44px;
}

.sneferu-timeline div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
}

.sneferu-timeline p {
  color: var(--muted);
  margin: 5px 0 0;
}

@media (max-width: 980px) {
  .sneferu-smart-grid,
  .sneferu-smart-grid.three {
    grid-template-columns: 1fr;
  }
}






/* v2.6.6 Versions typography polish */
.sneferu-versions-hero {
  padding: 26px !important;
  border-radius: 26px !important;
}

.sneferu-versions-hero h1 {
  font-size: clamp(38px, 5vw, 58px) !important;
  line-height: 1 !important;
  letter-spacing: -0.065em !important;
  margin: 10px 0 10px !important;
}

.sneferu-versions-hero p {
  font-size: 16px !important;
  line-height: 1.55 !important;
  max-width: 720px !important;
}

.sneferu-version-current {
  font-size: 14px !important;
  padding: 9px 13px !important;
}

.sneferu-version-stats {
  gap: 12px !important;
  margin: 14px 0 !important;
}

.sneferu-version-stats article {
  padding: 15px 16px !important;
  border-radius: 18px !important;
}

.sneferu-version-stats strong {
  font-size: 22px !important;
  line-height: 1.1 !important;
}

.sneferu-version-stats span {
  font-size: 14px !important;
}

.sneferu-version-legend {
  margin: 12px 0 16px !important;
}

.sneferu-version-legend span {
  font-size: 14px !important;
  padding: 8px 11px !important;
}

.sneferu-download-archive {
  padding: 22px !important;
  border-radius: 24px !important;
}

.sneferu-download-archive h2 {
  font-size: 28px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
}

.sneferu-download-archive p {
  font-size: 15px !important;
}

.sneferu-download-file strong {
  font-size: 12.5px !important;
}

.sneferu-download-file span {
  font-size: 13px !important;
}

.sneferu-version-card {
  padding: 20px !important;
  border-radius: 24px !important;
}

.sneferu-version-card h2 {
  font-size: 24px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.045em !important;
}

.sneferu-version-number,
.sneferu-version-status {
  font-size: 13px !important;
}

.sneferu-version-summary {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.sneferu-version-columns h3 {
  font-size: 17px !important;
}

.sneferu-version-columns li {
  font-size: 14px !important;
}

.sneferu-version-note {
  font-size: 14px !important;
}

.sneferu-version-download,
.sneferu-archive-toggle {
  font-size: 14px !important;
  padding: 9px 13px !important;
}

@media (max-width: 700px) {
  .sneferu-versions-hero {
    padding: 22px !important;
  }

  .sneferu-versions-hero h1 {
    font-size: 40px !important;
  }

  .sneferu-version-card h2 {
    font-size: 22px !important;
  }

  .sneferu-download-archive h2 {
    font-size: 25px !important;
  }
}



/* v2.6.7 manual watering verification */
.sneferu-verification-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin: 0 0 18px;
  background: #f8fafc;
}

.sneferu-verification-panel.ready {
  border-color: #86efac;
  background: #f0fdf4;
}

.sneferu-verification-panel.blocked {
  border-color: #fde68a;
  background: #fffbeb;
}

.sneferu-verification-panel h3 {
  margin: 6px 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.sneferu-verification-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sneferu-code-label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.sneferu-code-label input,
.sneferu-settings-form input[name="totp_code"] {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  background: #fff;
}

.sneferu-secret-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #86efac;
  background: #f0fdf4;
  color: #14532d;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .08em;
  word-break: break-all;
}

.sneferu-setup-details {
  margin: 14px 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px 14px;
}

.sneferu-setup-details summary {
  cursor: pointer;
  font-weight: 900;
}

.sneferu-setup-details code {
  display: block;
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #334155;
}

.sneferu-settings-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 18px;
  padding: 13px 15px;
  margin: 14px 0;
  font-weight: 900;
}

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

  .sneferu-secret-box {
    font-size: 15px;
  }
}



/* v2.6.8 authenticator QR setup */
.sneferu-qr-setup {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 16px 0 20px;
}

.sneferu-qr-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
}

.sneferu-auth-qr {
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  max-width: 100%;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
}

.sneferu-auth-qr svg {
  width: 230px;
  height: 230px;
  max-width: 100%;
  display: block;
}

.sneferu-qr-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 800;
}

@media (max-width: 800px) {
  .sneferu-qr-setup {
    grid-template-columns: 1fr;
  }

  .sneferu-auth-qr {
    width: 230px;
    height: 230px;
  }
}



/* v2.6.9 lite version archive notice */
.sneferu-download-archive-lite {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
}

.sneferu-download-archive-lite h2 {
  margin: 8px 0 8px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.sneferu-download-archive-lite p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.sneferu-download-archive-lite .sneferu-lite-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 8px 11px;
  font-weight: 950;
}



/* v2.6.10 manual verification field polish */
#sneferu-totp-code {
  text-transform: none;
}

.sneferu-verification-panel.ready {
  box-shadow: 0 12px 30px rgba(22,163,74,.08);
}



/* v2.6.14 watering history actions */
.sneferu-history-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.sneferu-history-summary article {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.sneferu-history-summary strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.sneferu-history-summary span {
  color: var(--muted);
  font-weight: 750;
}

.sneferu-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sneferu-section-head h2 {
  margin-bottom: 4px;
}

.sneferu-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sneferu-history-filters a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f1f5f9;
  padding: 8px 11px;
  font-weight: 900;
  color: var(--text);
}

.sneferu-history-filters a.active {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.sneferu-history-table th,
.sneferu-history-table td {
  vertical-align: top;
  white-space: nowrap;
}

.sneferu-history-table td small {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin-top: 2px;
}

.sneferu-history-notes {
  min-width: 240px;
  white-space: normal !important;
  color: var(--muted);
}

.sneferu-history-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 950;
  font-size: 12px;
}

.sneferu-history-status.status-done {
  background: #dcfce7;
  color: #166534;
}

.sneferu-history-status.status-pending,
.sneferu-history-status.status-running {
  background: #dbeafe;
  color: #1d4ed8;
}

.sneferu-history-status.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.sneferu-history-status.status-info {
  background: #f1f5f9;
  color: #334155;
}

.sneferu-delete-history-row {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 950;
  cursor: pointer;
}

.sneferu-delete-history-row:hover {
  background: #fee2e2;
}

@media (max-width: 1000px) {
  .sneferu-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sneferu-section-head {
    display: grid;
  }

  .sneferu-history-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .sneferu-history-summary {
    grid-template-columns: 1fr;
  }
}



/* v2.6.15 module header nesting fix */
.sneferu-module-page .sneferu-shell {
  min-height: 100vh;
}

.sneferu-module-page .sneferu-page-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.sneferu-module-page .sneferu-page-header h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sneferu-module-page .sneferu-page-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sneferu-module-page .sneferu-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sneferu-module-page .sneferu-page-actions .sneferu-button {
  padding: 10px 14px;
  min-height: 0;
}

.sneferu-module-page .sneferu-drawer-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #e9eef5;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.sneferu-module-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 26px;
}

.sneferu-history-page .sneferu-history-hero {
  text-align: center;
  padding: 34px 20px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sneferu-history-page .sneferu-history-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  margin: 8px 0 10px;
}

@media (max-width: 760px) {
  .sneferu-module-page .sneferu-page-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .sneferu-module-page .sneferu-page-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .sneferu-module-main {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }
}



/* v2.6.16 Watering History single header */
.sneferu-history-page .sneferu-module-main {
  padding-top: 18px;
}

.sneferu-history-page .sneferu-history-hero {
  display: none !important;
}

.sneferu-history-page .sneferu-app-frame > .sneferu-topbar,
.sneferu-history-page main .sneferu-topbar,
.sneferu-history-page .sneferu-main > header {
  display: none !important;
}

.sneferu-history-page .sneferu-history-summary {
  margin-top: 0;
}

.sneferu-history-page .sneferu-settings-section:first-of-type {
  margin-top: 14px;
}



/* v2.6.17 Watering History remove inner header */
.sneferu-history-page .sneferu-page-header,
.sneferu-history-page .sneferu-topbar,
.sneferu-history-page .sneferu-hero {
  display: none !important;
}

.sneferu-history-page .sneferu-history-content-only {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.sneferu-history-page .sneferu-history-summary {
  margin-top: 0 !important;
}

.sneferu-history-page .sneferu-settings-section:first-of-type {
  margin-top: 14px;
}



/* v2.6.18 dashboard compact fixed header */
.sneferu-dashboard-page .sneferu-topbar {
  display: none !important;
}

.sneferu-dashboard-page .sneferu-page-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.sneferu-dashboard-page .sneferu-page-header h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sneferu-dashboard-page .sneferu-page-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sneferu-dashboard-page .sneferu-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sneferu-dashboard-page .sneferu-page-actions .sneferu-button {
  padding: 10px 14px;
  min-height: 0;
}

.sneferu-dashboard-page .sneferu-drawer-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #e9eef5;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.sneferu-dashboard-page .sneferu-main {
  padding-top: 18px;
}

@media (max-width: 760px) {
  .sneferu-dashboard-page .sneferu-page-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .sneferu-dashboard-page .sneferu-page-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}



/* v2.6.19 dashboard top gap fix */
body.sneferu-dashboard-body,
body.sneferu-dashboard-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-body .sneferu-shell,
body.sneferu-dashboard-page .sneferu-shell {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-page .sneferu-page-header,
body.sneferu-dashboard-body .sneferu-page-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.sneferu-dashboard-page .sneferu-app-frame,
body.sneferu-dashboard-body .sneferu-app-frame {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-page .sneferu-main,
body.sneferu-dashboard-body .sneferu-main {
  padding-top: 18px !important;
}

/* Disable the old fixed dashboard topbar spacing rule from v2.5.12 */
body.sneferu-dashboard-body:not(.keep-old-dashboard-header),
body:has(.sneferu-dashboard-header) {
  padding-top: 0 !important;
}



/* v2.6.20 dashboard fixed header without unused menu */
body.sneferu-dashboard-page .sneferu-dashboard-header,
body.sneferu-dashboard-body .sneferu-dashboard-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header .sneferu-drawer-toggle,
body.sneferu-dashboard-body .sneferu-dashboard-header .sneferu-drawer-toggle {
  display: none !important;
}

body.sneferu-dashboard-page .sneferu-app-frame,
body.sneferu-dashboard-body .sneferu-app-frame {
  padding-top: 86px !important;
}

body.sneferu-dashboard-page .sneferu-main,
body.sneferu-dashboard-body .sneferu-main {
  padding-top: 18px !important;
}

@media (max-width: 760px) {
  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header .sneferu-page-actions,
  body.sneferu-dashboard-body .sneferu-dashboard-header .sneferu-page-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body.sneferu-dashboard-page .sneferu-app-frame,
  body.sneferu-dashboard-body .sneferu-app-frame {
    padding-top: 124px !important;
  }
}








/* More reliable fallback for the Dashboard section if the browser supports hash-driven section content */
body.sneferu-more-page .sneferu-app-frame .sneferu-page-header.sneferu-dashboard-header,
body.sneferu-control-panel-page .sneferu-app-frame .sneferu-page-header.sneferu-dashboard-header {
  display: none !important;
}

body.sneferu-more-page .sneferu-app-frame .sneferu-dashboard-header-card,
body.sneferu-control-panel-page .sneferu-app-frame .sneferu-dashboard-header-card {
  display: none !important;
}

/* When dashboard content is shown inside the Control Panel, start directly with cards */
body.sneferu-more-page .sneferu-app-frame .sneferu-dashboard-content-only,
body.sneferu-control-panel-page .sneferu-app-frame .sneferu-dashboard-content-only {
  padding-top: 0 !important;
  margin-top: 0 !important;
}



/* v2.6.26 real Control Panel embedded Dashboard mode */
body.sneferu-dashboard-page,
body.sneferu-dashboard-body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-page .sneferu-topbar,
body.sneferu-dashboard-body .sneferu-topbar {
  display: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  min-height: 68px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu h1,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu p,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu .sneferu-page-actions,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu .sneferu-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu .sneferu-button,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu .sneferu-button {
  padding: 10px 14px;
  min-height: 0;
}

body.sneferu-dashboard-page .sneferu-shell,
body.sneferu-dashboard-body .sneferu-shell,
body.sneferu-dashboard-page .sneferu-app-frame,
body.sneferu-dashboard-body .sneferu-app-frame {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-content-only,
body.sneferu-dashboard-body .sneferu-dashboard-content-only,
body.sneferu-dashboard-page .sneferu-main,
body.sneferu-dashboard-body .sneferu-main {
  padding-top: 88px !important;
}

/* Embedded inside Control Panel iframe: no dashboard header and no reserved header space */
body.sneferu-cp-embed-dashboard .sneferu-dashboard-header,
body.sneferu-cp-embed-dashboard .sneferu-page-header,
body.sneferu-cp-embed-dashboard .sneferu-topbar {
  display: none !important;
}

body.sneferu-cp-embed-dashboard .sneferu-dashboard-content-only,
body.sneferu-cp-embed-dashboard .sneferu-main,
body.sneferu-cp-embed-dashboard .sneferu-app-frame,
body.sneferu-cp-embed-dashboard .sneferu-shell {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sneferu-cp-embed-dashboard .sneferu-weather-card {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu .sneferu-page-actions,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu .sneferu-page-actions {
    justify-content: flex-start;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-content-only,
  body.sneferu-dashboard-body .sneferu-dashboard-content-only,
  body.sneferu-dashboard-page .sneferu-main,
  body.sneferu-dashboard-body .sneferu-main {
    padding-top: 128px !important;
  }

  body.sneferu-cp-embed-dashboard .sneferu-dashboard-content-only,
  body.sneferu-cp-embed-dashboard .sneferu-main {
    padding-top: 0 !important;
  }
}



/* v2.6.27 Sensor Detector */
.sneferu-detector-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sneferu-detector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sneferu-detector-card {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 22px;
  padding: 18px;
}

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

.sneferu-detector-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.sneferu-detector-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.sneferu-detector-facts div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.sneferu-detector-facts dt {
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  margin-bottom: 4px;
}

.sneferu-detector-facts dd {
  margin: 0;
  font-weight: 950;
  color: var(--text);
}

.sneferu-detector-reason {
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .sneferu-detector-summary,
  .sneferu-detector-grid {
    grid-template-columns: 1fr;
  }

  .sneferu-detector-facts {
    grid-template-columns: 1fr;
  }
}



/* v2.6.30 ESP Health timeout */
.sneferu-esp-health-page .sneferu-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sneferu-esp-health-page .sneferu-mini-widget h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .sneferu-esp-health-page .sneferu-health-grid {
    grid-template-columns: 1fr;
  }
}



/* v2.6.31 Sensor Detector inner header cleanup */
.sneferu-sensor-detector-page .sneferu-sensor-detector-content-only {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.sneferu-sensor-detector-page .sneferu-sensor-detector-content-only > .sneferu-page-header,
.sneferu-sensor-detector-page .sneferu-sensor-detector-content-only > .sneferu-topbar,
.sneferu-sensor-detector-page main > .sneferu-page-header,
.sneferu-sensor-detector-page main > .sneferu-topbar {
  display: none !important;
}

.sneferu-sensor-detector-page .sneferu-detector-summary {
  margin-top: 0 !important;
}


/* v2.6.36 integrated persistent status strip */
.sneferu-status-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 18px;
  background: rgba(248, 250, 252, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(15,23,42,.05);
  -webkit-overflow-scrolling: touch;
}

.sneferu-status-strip::-webkit-scrollbar {
  height: 5px;
}

.sneferu-status-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .55);
  border-radius: 999px;
}

.sneferu-status-pill {
  height: 36px;
  min-width: max-content;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: #334155;
  white-space: nowrap;
}

.sneferu-status-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.sneferu-status-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sneferu-status-icon svg circle,
.sneferu-status-icon svg path,
.sneferu-status-icon svg rect {
  vector-effect: non-scaling-stroke;
}

.sneferu-status-copy {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.sneferu-status-label {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sneferu-status-value {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 900;
  color: #1f2937;
}

.sneferu-status-pill.tone-ok .sneferu-status-icon { color: #15803d; background: #dcfce7; }
.sneferu-status-pill.tone-ok .sneferu-status-value { color: #14532d; }
.sneferu-status-pill.tone-info .sneferu-status-icon { color: #2563eb; background: #dbeafe; }
.sneferu-status-pill.tone-info .sneferu-status-value { color: #1e3a8a; }
.sneferu-status-pill.tone-warn .sneferu-status-icon { color: #b45309; background: #fef3c7; }
.sneferu-status-pill.tone-warn .sneferu-status-value { color: #92400e; }
.sneferu-status-pill.tone-bad .sneferu-status-icon { color: #dc2626; background: #fee2e2; }
.sneferu-status-pill.tone-bad .sneferu-status-value { color: #991b1b; }
.sneferu-status-pill.tone-muted .sneferu-status-icon { color: #64748b; background: #f1f5f9; }
.sneferu-status-pill.tone-muted .sneferu-status-value { color: #64748b; }

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip {
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) auto !important;
  min-height: 74px;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child {
  min-width: 0;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip .sneferu-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip .sneferu-status-strip {
  width: 100%;
}

body.sneferu-dashboard-page .sneferu-dashboard-content-only,
body.sneferu-dashboard-body .sneferu-dashboard-content-only,
body.sneferu-dashboard-page .sneferu-main,
body.sneferu-dashboard-body .sneferu-main {
  padding-top: 94px !important;
}

.sneferu-cp-topbar.has-status-strip {
  display: grid !important;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.sneferu-cp-topbar.has-status-strip .sneferu-status-strip {
  width: 100%;
}

.sneferu-topbar.has-status-strip,
.sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header) {
  display: grid !important;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.sneferu-topbar.has-status-strip .sneferu-status-strip,
.sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header) .sneferu-status-strip {
  width: 100%;
}

body.sneferu-cp-embed-dashboard .sneferu-status-strip,
body.sneferu-cp-embed-dashboard #sneferu-status-strip-template,
body:not(.logged-in) .sneferu-status-strip {
  display: none !important;
}

@media (max-width: 1320px) {
  .sneferu-status-pill[data-status-key="solar"],
  .sneferu-status-pill[data-status-key="auto"],
  .sneferu-status-pill[data-status-key="updated"] {
    display: none;
  }
}

@media (max-width: 1040px) {
  .sneferu-status-pill[data-status-key="battery"],
  .sneferu-status-pill[data-status-key="voltage"] {
    display: none;
  }
}

@media (max-width: 860px) {
  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip,
  .sneferu-cp-topbar.has-status-strip,
  .sneferu-topbar.has-status-strip,
  .sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip .sneferu-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip .sneferu-status-strip,
  .sneferu-cp-topbar.has-status-strip .sneferu-status-strip,
  .sneferu-topbar.has-status-strip .sneferu-status-strip,
  .sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header) .sneferu-status-strip {
    grid-column: 1 / -1;
    order: 3;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-content-only,
  body.sneferu-dashboard-body .sneferu-dashboard-content-only,
  body.sneferu-dashboard-page .sneferu-main,
  body.sneferu-dashboard-body .sneferu-main {
    padding-top: 128px !important;
  }

  body.sneferu-cp-body .sneferu-cp-main {
    padding-top: 106px;
  }
}

@media (max-width: 520px) {
  .sneferu-status-pill {
    height: 34px;
    padding: 4px 7px;
  }

  .sneferu-status-label {
    font-size: 8px;
  }

  .sneferu-status-value {
    font-size: 11px;
  }

  .sneferu-status-pill[data-status-key="wifi"],
  .sneferu-status-pill[data-status-key="pump"] {
    display: none;
  }
}

/* v2.6.41 simple clickable status pills, link behavior only, no header layout change */
a.sneferu-status-pill {
  text-decoration: none;
  cursor: pointer;
}

a.sneferu-status-pill:hover {
  border-color: rgba(148, 163, 184, .9);
}


/* v2.6.45 reliability pages */
/* v2.6.46 control-panel embedded-page navigation fix */
.sneferu-alert-list { display:grid; gap:14px; }
.sneferu-alert-card { border:1px solid var(--line); border-radius:18px; background:#fff; padding:16px; display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.sneferu-alert-card h3 { margin:0 0 6px; font-size:17px; }
.sneferu-alert-card p { margin:0; color:var(--muted); }
.sneferu-alert-card.danger { border-color:#fecaca; background:#fff7f7; }
.sneferu-alert-card.warning { border-color:#fed7aa; background:#fffaf3; }
.sneferu-alert-card.info { border-color:#bfdbfe; background:#f8fbff; }
.sneferu-alert-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:800; text-transform:uppercase; background:#e2e8f0; color:#334155; }
.sneferu-alert-card.danger .sneferu-alert-badge { background:#fee2e2; color:#991b1b; }
.sneferu-alert-card.warning .sneferu-alert-badge { background:#ffedd5; color:#9a3412; }
.sneferu-alert-card.info .sneferu-alert-badge { background:#dbeafe; color:#1d4ed8; }
.sneferu-mini-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; align-items:end; }
.sneferu-mini-form-grid label { display:grid; gap:6px; font-size:13px; color:#475569; font-weight:700; }
.sneferu-mini-form-grid input, .sneferu-mini-form-grid select, .sneferu-mini-form-grid textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font:inherit; background:#fff; color:var(--text); }
.sneferu-status-note { border:1px solid var(--line); background:#f8fafc; border-radius:14px; padding:12px; color:#475569; }
.sneferu-log-severity { display:inline-flex; border-radius:999px; padding:4px 8px; font-size:12px; font-weight:800; background:#e2e8f0; }
.sneferu-log-severity.warning { background:#ffedd5; color:#9a3412; }
.sneferu-log-severity.danger, .sneferu-log-severity.error { background:#fee2e2; color:#991b1b; }
.sneferu-log-severity.success { background:#dcfce7; color:#166534; }
@media(max-width:760px){ .sneferu-alert-card{display:block}.sneferu-alert-card .sneferu-button{margin-top:12px} }


/* v2.6.50 Legal pages */
.sneferu-legal-page .sneferu-app-frame {
  max-width: 980px;
}
.sneferu-legal-content .sneferu-settings-section {
  margin-bottom: 16px;
}
.sneferu-legal-content .sneferu-settings-section h2 {
  margin-top: 0;
}
.sneferu-legal-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}
.sneferu-legal-admin-note {
  border-color: rgba(234, 88, 12, .25);
  background: #fff7ed;
}
.sneferu-legal-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.sneferu-login-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin: 12px auto 0;
  color: #64748b;
  font-size: .86rem;
}
.sneferu-login-legal-links a,
.sneferu-footer-note a {
  color: inherit;
  text-decoration: none;
}
.sneferu-login-legal-links a:hover,
.sneferu-footer-note a:hover {
  color: var(--green);
  text-decoration: underline;
}


/* v2.6.51 Local Plant Assistant chatbot */
.sneferu-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: inherit;
}
.sneferu-chat-launcher {
  border: 1px solid rgba(22, 163, 74, .22);
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  cursor: pointer;
}
.sneferu-chat-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: min(380px, calc(100vw - 28px));
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(15,23,42,.24);
  overflow: hidden;
}
.sneferu-chat-head {
  padding: 14px 15px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.sneferu-chat-head strong { display:block; font-size: 15px; }
.sneferu-chat-head span { display:block; color:#64748b; font-size: 12px; margin-top:2px; }
.sneferu-chat-head button {
  border: 0;
  background: #f1f5f9;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  color: #334155;
}
.sneferu-chat-messages {
  height: 320px;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
.sneferu-chat-message {
  max-width: 88%;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.sneferu-chat-message p { margin: 0; }
.sneferu-chat-message.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1f2937;
}
.sneferu-chat-message.user {
  align-self: flex-end;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #14532d;
}
.sneferu-chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.sneferu-chat-links a {
  text-decoration: none;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
}
.sneferu-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.sneferu-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
.sneferu-chat-form input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.sneferu-chat-form button {
  border: 0;
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}
.sneferu-chat-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 12px;
  background: #fff;
}
.sneferu-chat-suggestions button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 9px;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
}
.sneferu-assistant-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.sneferu-assistant-dashboard .sneferu-card h2 { margin: 7px 0 6px; }
.sneferu-assistant-dashboard .sneferu-card p { color: var(--muted); min-height: 42px; }
.sneferu-assistant-hero p { max-width: 820px; }
.sneferu-assistant-full-chat { margin-top: 16px; }
.sneferu-chat-page-box .sneferu-chat-messages {
  height: 430px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  margin-top: 12px;
}
.sneferu-chat-page-box .sneferu-chat-message { max-width: min(760px, 92%); }
@media (max-width: 640px) {
  .sneferu-chat-widget { right: 12px; bottom: 12px; }
  .sneferu-chat-panel { width: calc(100vw - 24px); }
  .sneferu-chat-messages { height: 300px; }
}
body.sneferu-cp-embed-page .sneferu-chat-widget,
body.sneferu-cp-embed-dashboard .sneferu-chat-widget,
body:not(.logged-in) .sneferu-chat-widget {
  display: none !important;
}


/* v2.6.54 Sensor battery and LED control */
.sneferu-detector-led-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}

.sneferu-detector-led-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sneferu-led-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #e5e7eb;
  color: var(--text);
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.sneferu-led-toggle .knob {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.sneferu-led-toggle.is-on {
  background: #dcfce7;
  color: #166534;
}

.sneferu-led-toggle.is-saving {
  opacity: 0.65;
  cursor: wait;
}

/* v2.6.55 Sensor Detector clarity for disconnected slots */
.sneferu-detector-led-row {
  flex-wrap: wrap;
}
.sneferu-detector-led-row .sneferu-led-title {
  flex: 1 1 auto;
}
.sneferu-detector-led-note {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.sneferu-detector-led-row.is-waiting {
  background: #f8fafc;
}
.sneferu-led-toggle.is-disabled,
.sneferu-led-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #e5e7eb;
  color: #64748b;
}
.sneferu-led-toggle.is-disabled .knob,
.sneferu-led-toggle:disabled .knob {
  box-shadow: none;
}


/* v2.6.56 XIAO wireless sensor fields */
.sneferu-wireless-mini {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 250, 252, .92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.sneferu-wireless-mini strong { color: var(--text); }
.sneferu-wireless-mini.tone-warn {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(255, 251, 235, .88);
}
.sneferu-wireless-mini.tone-ok {
  border-color: rgba(22, 163, 74, .24);
  background: rgba(240, 253, 244, .7);
}
.sneferu-wireless-warning {
  display: inline-block;
  margin-top: 4px;
  font-weight: 850;
  color: #a16207;
}
.sneferu-detector-facts .sneferu-wireless-fact dt {
  color: #64748b;
}

/* v2.6.62 Floating Ask widget disabled */
.sneferu-chat-widget{display:none!important;}


/* v2.6.64 fixed top-left Control Panel menu button
   Same visual style as the small grey Control Panel menu button.
   The earlier green floating launcher is removed. */
.sneferu-global-cp-launcher {
  position: fixed;
  left: 24px;
  top: 28px;
  z-index: 99990;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #e9edf3;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: none;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.sneferu-global-cp-launcher:hover,
.sneferu-global-cp-launcher:focus {
  transform: translateY(-1px);
  background: #dfe5ee;
  color: #0f172a;
  box-shadow: none;
  outline: none;
}
.sneferu-global-cp-launcher span {
  display: block;
  transform: translateY(-1px);
}
.sneferu-page-header .sneferu-page-actions a[href*="/more/"],
.sneferu-topbar .sneferu-nav a[href*="/more/"] {
  display: none !important;
}
body.sneferu-cp-embed-dashboard .sneferu-global-cp-launcher,
body.sneferu-login-body .sneferu-global-cp-launcher,
body.sneferu-cp-body .sneferu-global-cp-launcher {
  display: none !important;
}
@media (max-width: 760px) {
  .sneferu-global-cp-launcher {
    left: 24px;
    top: 28px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 22px;
  }
}


/* v2.6.65 unified top-left menu alignment
   Goal: one grey three-line button position across logged-in pages, with the page title aligned beside it. */
:root {
  --sneferu-menu-left: 14px;
  --sneferu-menu-top: 14px;
  --sneferu-menu-size: 34px;
  --sneferu-menu-gap: 10px;
  --sneferu-menu-title-offset: 44px;
}

.sneferu-global-cp-launcher {
  left: var(--sneferu-menu-left) !important;
  top: var(--sneferu-menu-top) !important;
  width: var(--sneferu-menu-size) !important;
  height: var(--sneferu-menu-size) !important;
  border-radius: 11px !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  z-index: 100050 !important;
}

.sneferu-global-cp-launcher:hover,
.sneferu-global-cp-launcher:focus {
  background: #dfe5ee !important;
  color: #0f172a !important;
  transform: none !important;
  outline: none !important;
}

.sneferu-global-cp-launcher span {
  transform: translateY(-1px) !important;
}

/* Dashboard header: reserve exact space for the fixed grey menu button. */
body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu {
  padding-left: var(--sneferu-menu-left) !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu > div:first-child,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu > div:first-child {
  padding-left: var(--sneferu-menu-title-offset) !important;
  min-width: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) auto !important;
}

/* Standard module pages: title starts beside the same fixed grey menu button. */
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header:not(.sneferu-dashboard-header):not(.sneferu-cp-topbar) > div:first-child,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-topbar > div:first-child {
  padding-left: var(--sneferu-menu-title-offset) !important;
}

/* Control Panel already has its native grey menu button. Make it match the universal position and size exactly. */
.sneferu-cp-topbar-compact {
  padding-left: var(--sneferu-menu-left) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.sneferu-cp-topbar-compact .sneferu-cp-menu-btn {
  width: var(--sneferu-menu-size) !important;
  height: var(--sneferu-menu-size) !important;
  border-radius: 11px !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  flex: 0 0 var(--sneferu-menu-size) !important;
}

.sneferu-cp-topbar-compact .sneferu-cp-title-wrap {
  gap: var(--sneferu-menu-gap) !important;
  min-width: 230px !important;
}

.sneferu-cp-topbar.has-status-strip {
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr) auto !important;
}

/* Keep title text readable when status strip is crowded. */
.sneferu-dashboard-header h1,
.sneferu-page-header h1,
.sneferu-cp-topbar h1 {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep action buttons from visually colliding with the status strip. */
.sneferu-cp-actions,
.sneferu-page-actions {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  :root {
    --sneferu-menu-left: 10px;
    --sneferu-menu-top: 12px;
    --sneferu-menu-size: 34px;
    --sneferu-menu-title-offset: 44px;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip,
  .sneferu-cp-topbar.has-status-strip,
  .sneferu-topbar.has-status-strip,
  .sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header) {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child {
    padding-left: var(--sneferu-menu-title-offset) !important;
  }

  .sneferu-cp-topbar-compact .sneferu-cp-title-wrap {
    min-width: 0 !important;
  }
}


/* v2.6.66 dashboard header size match
   Keeps the Dashboard header visually identical to standard module pages such as Plant Manager. */
:root {
  --sneferu-menu-left: 14px;
  --sneferu-menu-top: 14px;
  --sneferu-menu-size: 34px;
  --sneferu-menu-gap: 10px;
  --sneferu-menu-title-offset: 44px;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header.has-status-strip:not(.sneferu-cp-topbar) {
  min-height: 68px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  align-items: center !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip > div:first-child,
body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu > div:first-child,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu > div:first-child,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header.has-status-strip:not(.sneferu-dashboard-header):not(.sneferu-cp-topbar) > div:first-child {
  padding-left: var(--sneferu-menu-title-offset) !important;
  display: grid !important;
  align-content: center !important;
  min-height: 48px !important;
  min-width: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu h1,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu h1,
body.sneferu-dashboard-page .sneferu-dashboard-header h1,
body.sneferu-dashboard-body .sneferu-dashboard-header h1,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header.has-status-strip:not(.sneferu-cp-topbar) h1 {
  margin: 0 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  font-weight: 800 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu p,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu p,
body.sneferu-dashboard-page .sneferu-dashboard-header p,
body.sneferu-dashboard-body .sneferu-dashboard-header p,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header.has-status-strip:not(.sneferu-cp-topbar) p {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu .sneferu-kicker,
body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu .sneferu-kicker,
body.sneferu-dashboard-page .sneferu-dashboard-header .sneferu-kicker,
body.sneferu-dashboard-body .sneferu-dashboard-header .sneferu-kicker,
body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-page-header.has-status-strip:not(.sneferu-cp-topbar) .sneferu-kicker {
  font-size: 12px !important;
  line-height: 1 !important;
  padding: 6px 10px !important;
  margin: 0 0 8px !important;
  width: max-content !important;
  max-width: 100% !important;
}

.sneferu-global-cp-launcher,
.sneferu-cp-topbar-compact .sneferu-cp-menu-btn {
  width: var(--sneferu-menu-size) !important;
  height: var(--sneferu-menu-size) !important;
  border-radius: 11px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

@media (max-width: 860px) {
  :root {
    --sneferu-menu-left: 10px;
    --sneferu-menu-top: 12px;
    --sneferu-menu-size: 34px;
    --sneferu-menu-title-offset: 44px;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.no-menu.has-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-header.no-menu.has-status-strip {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

/* v2.6.67 dashboard header PHP structure fix
   This fixes the Dashboard header by targeting the new shared header title block.
   It no longer depends only on the older dashboard-specific h1 rules. */
:root {
  --sneferu-shared-menu-left: 14px;
  --sneferu-shared-menu-top: 14px;
  --sneferu-shared-menu-size: 34px;
  --sneferu-shared-title-offset: 44px;
}

body.logged-in:not(.sneferu-cp-body):not(.sneferu-login-body):not(.sneferu-cp-embed-dashboard) .sneferu-global-cp-launcher {
  position: fixed !important;
  left: var(--sneferu-shared-menu-left) !important;
  top: var(--sneferu-shared-menu-top) !important;
  width: var(--sneferu-shared-menu-size) !important;
  height: var(--sneferu-shared-menu-size) !important;
  border-radius: 11px !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 10050 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sneferu-page-header.sneferu-shared-header,
.sneferu-dashboard-header.sneferu-shared-header {
  min-height: 68px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  align-items: center !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header.has-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header.has-status-strip {
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

.sneferu-shared-header .sneferu-header-title-block,
body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block {
  padding-left: var(--sneferu-shared-title-offset) !important;
  display: grid !important;
  align-content: center !important;
  min-height: 48px !important;
  min-width: 0 !important;
}

.sneferu-shared-header .sneferu-header-title-block .sneferu-kicker,
body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block .sneferu-kicker,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block .sneferu-kicker {
  font-size: 12px !important;
  line-height: 1 !important;
  padding: 6px 10px !important;
  margin: 0 0 8px !important;
  width: max-content !important;
  max-width: 100% !important;
  font-weight: 800 !important;
}

.sneferu-shared-header .sneferu-header-title-block h1,
body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block h1,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block h1 {
  margin: 0 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  font-weight: 800 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sneferu-shared-header .sneferu-header-title-block p,
body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block p,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header .sneferu-header-title-block p {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header .sneferu-page-actions,
body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header .sneferu-page-actions,
.sneferu-shared-header .sneferu-page-actions {
  align-self: center !important;
}

@media (max-width: 860px) {
  :root {
    --sneferu-shared-menu-left: 10px;
    --sneferu-shared-menu-top: 12px;
    --sneferu-shared-menu-size: 34px;
    --sneferu-shared-title-offset: 44px;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-header.sneferu-shared-header.has-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-header.sneferu-shared-header.has-status-strip {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}



/* v2.6.68 root Dashboard header matches Control Panel Dashboard header
   The homepage now uses the same compact topbar structure as /more/#section=Dashboard.
   This avoids older Dashboard-only header CSS winning against the shared header rules. */
body.sneferu-dashboard-page .sneferu-global-cp-launcher,
body.sneferu-dashboard-body .sneferu-global-cp-launcher {
  display: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--line) !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 8px 14px !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-cp-title-wrap,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-cp-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 11px !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transform: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn:hover,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn:hover,
body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn:focus,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-dashboard-root-menu-btn:focus {
  background: #dfe5ee !important;
  color: #0f172a !important;
  outline: none !important;
  transform: none !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-cp-title-compact,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-cp-title-compact {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-cp-section-label,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-cp-section-label {
  display: inline-flex !important;
  width: fit-content !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 5px 9px !important;
  margin: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar h1,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar h1 {
  font-size: 22px !important;
  line-height: 1.05 !important;
  margin: 2px 0 0 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar p,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar p {
  font-size: 12px !important;
  line-height: 1.25 !important;
  max-width: 520px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-status-strip,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-status-strip {
  width: 100% !important;
  min-width: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-dashboard-root-actions,
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-dashboard-root-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: max-content !important;
}

body.sneferu-dashboard-page .sneferu-app-frame,
body.sneferu-dashboard-body .sneferu-app-frame {
  padding-top: 68px !important;
  margin-top: 0 !important;
}

body.sneferu-dashboard-page .sneferu-dashboard-content-only,
body.sneferu-dashboard-body .sneferu-dashboard-content-only,
body.sneferu-dashboard-page .sneferu-main,
body.sneferu-dashboard-body .sneferu-main {
  padding-top: 18px !important;
}

@media (max-width: 860px) {
  body.sneferu-dashboard-page .sneferu-dashboard-root-topbar,
  body.sneferu-dashboard-body .sneferu-dashboard-root-topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 8px 10px !important;
  }

  body.sneferu-dashboard-page .sneferu-dashboard-root-topbar .sneferu-status-strip,
  body.sneferu-dashboard-body .sneferu-dashboard-root-topbar .sneferu-status-strip {
    grid-column: 1 / -1 !important;
  }
}


/* v2.6.69 Plant Passport Scanner */
.sneferu-plant-passport-page .sneferu-passport-card .sneferu-button{white-space:nowrap}


/* v2.6.72 Smarter Plant Passport Matching */
.sneferu-passport-smart-note{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid rgba(34,197,94,.22);
  background:rgba(34,197,94,.08);
  border-radius:16px;
  color:#1f2937;
  line-height:1.45;
}
.sneferu-passport-source-message{
  margin:8px 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(34,197,94,.10);
  color:#14532d;
  border:1px solid rgba(34,197,94,.18);
}
.sneferu-passport-source-message.warning{
  background:rgba(245,158,11,.12);
  color:#92400e;
  border-color:rgba(245,158,11,.28);
}


/* v2.6.73 Expanded Plant Passport Library + Learned Barcode Mapping */
.sneferu-passport-learn-note{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:16px;padding:12px;margin-top:12px;font-size:13px;line-height:1.45}


/* v2.6.75 Soil Moisture History battery stages, sample delete, quick range, and backup download fix */

/* v2.6.75 Soil Moisture History iframe range links, quick window, bulk sample delete, and modal close fix */

/* v2.6.76 Soil Moisture History battery life estimate field */
.sneferu-smart-strip small{display:block;margin-top:3px;font-size:11px;opacity:.72;line-height:1.25}
.sneferu-smart-strip .neutral{background:rgba(148,163,184,.08)}


/* v2.6.77 Soil Moisture History polished battery estimate cards */
.sneferu-battery-estimate-card,
.sneferu-estimate-note{
  border:1px solid rgba(148,163,184,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.sneferu-smart-strip span.sneferu-battery-estimate-card{
  padding:12px;
  min-height:86px;
  position:relative;
  overflow:hidden;
}
.sneferu-battery-estimate-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  border-radius:16px 0 0 16px;
  background:rgba(148,163,184,.65);
}
.sneferu-battery-estimate-card.good:before{background:#16a34a}
.sneferu-battery-estimate-card.warn:before{background:#f59e0b}
.sneferu-battery-estimate-card.danger:before{background:#dc2626}
.sneferu-battery-estimate-card.neutral:before{background:#64748b}
.sneferu-battery-estimate-card.good{background:linear-gradient(135deg,rgba(34,197,94,.15),rgba(255,255,255,.42))!important;border-color:rgba(34,197,94,.25)}
.sneferu-battery-estimate-card.warn{background:linear-gradient(135deg,rgba(245,158,11,.18),rgba(255,255,255,.44))!important;border-color:rgba(245,158,11,.28)}
.sneferu-battery-estimate-card.danger{background:linear-gradient(135deg,rgba(220,38,38,.16),rgba(255,255,255,.42))!important;border-color:rgba(220,38,38,.26)}
.sneferu-battery-estimate-card.neutral{background:linear-gradient(135deg,rgba(100,116,139,.12),rgba(255,255,255,.44))!important;border-color:rgba(148,163,184,.24)}
.sneferu-battery-estimate-card .estimate-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.sneferu-battery-estimate-card .estimate-title{font-size:11px;font-weight:800;color:#475569;letter-spacing:.01em}
.sneferu-battery-estimate-card .estimate-pill{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900;background:rgba(255,255,255,.65);border:1px solid rgba(148,163,184,.18);white-space:nowrap}
.sneferu-battery-estimate-card.good .estimate-pill{color:#166534;background:rgba(34,197,94,.13);border-color:rgba(34,197,94,.22)}
.sneferu-battery-estimate-card.warn .estimate-pill{color:#92400e;background:rgba(245,158,11,.15);border-color:rgba(245,158,11,.24)}
.sneferu-battery-estimate-card.danger .estimate-pill{color:#991b1b;background:rgba(220,38,38,.13);border-color:rgba(220,38,38,.22)}
.sneferu-battery-estimate-card strong{font-size:15px;line-height:1.18;margin-top:0}
.sneferu-battery-estimate-card small{color:#64748b;opacity:1!important;max-width:220px}
.sneferu-battery-estimate-card .estimate-meta{display:block;margin-top:7px;font-size:10px;color:#64748b}
.sneferu-estimate-note{display:inline-flex!important;align-items:flex-start;gap:8px;border-radius:14px;padding:8px 10px;background:rgba(248,250,252,.78)}
.sneferu-estimate-note .estimate-dot{width:9px;height:9px;border-radius:50%;margin-top:4px;background:#64748b;flex:0 0 auto}
.sneferu-estimate-note.good .estimate-dot{background:#16a34a}
.sneferu-estimate-note.warn .estimate-dot{background:#f59e0b}
.sneferu-estimate-note.danger .estimate-dot{background:#dc2626}
.sneferu-estimate-note strong{font-size:12px}
.sneferu-estimate-note small{display:block;margin-top:1px;font-size:11px;opacity:.72}

/* v2.6.82 Dashboard Plant Passport care card */
.sneferu-care-card{margin:12px 0;padding:14px;border:1px solid rgba(148,163,184,.20);border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.70),rgba(248,250,252,.54));box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.sneferu-care-card.tone-good{border-color:rgba(34,197,94,.24);background:linear-gradient(135deg,rgba(34,197,94,.11),rgba(255,255,255,.55))}
.sneferu-care-card.tone-warn{border-color:rgba(245,158,11,.27);background:linear-gradient(135deg,rgba(245,158,11,.13),rgba(255,255,255,.56))}
.sneferu-care-card.tone-danger{border-color:rgba(220,38,38,.24);background:linear-gradient(135deg,rgba(220,38,38,.11),rgba(255,255,255,.55))}
.sneferu-care-card-head strong{display:block;font-size:14px;color:#0f172a}.sneferu-care-card-head small{display:block;color:#64748b;margin-top:2px}.sneferu-care-verdict{margin:10px 0;border-radius:16px;padding:10px;background:rgba(255,255,255,.58);border:1px solid rgba(148,163,184,.16)}.sneferu-care-verdict b{display:block;margin-bottom:3px;color:#0f172a}.sneferu-care-verdict span{font-size:12px;color:#475569}.sneferu-care-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sneferu-care-grid span{border-radius:14px;padding:9px;background:rgba(255,255,255,.46);font-size:12px;color:#475569}.sneferu-care-grid b{display:block;color:#0f172a;margin-bottom:3px}.sneferu-care-source{display:block;margin-top:8px;color:#64748b}.sneferu-care-dashboard{font-size:12px}.sneferu-care-dashboard .sneferu-care-grid{grid-template-columns:1fr}.sneferu-care-dashboard .sneferu-care-card-head strong{font-size:13px}@media(max-width:720px){.sneferu-care-grid{grid-template-columns:1fr}}


/* v2.6.84 Manual watering edit + location-aware smart advice */
.sneferu-water-event-editor{border:1px solid rgba(14,165,233,.18);background:rgba(255,255,255,.68);border-radius:16px;padding:10px;margin-top:8px}.sneferu-water-event-editor summary{cursor:pointer;font-weight:900;color:#0369a1}.sneferu-water-edit-grid{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(165px,.9fr) minmax(180px,1.2fr);gap:8px;margin-top:10px}.sneferu-water-edit-grid label{font-size:11px;font-weight:800;color:#475569}.sneferu-water-edit-grid input{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.28);border-radius:12px;padding:8px;background:#fff}.sneferu-water-edit-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.sneferu-water-delete-button{border:0;background:#fee2e2;color:#991b1b;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.sneferu-water-update-button{border:0;background:#0ea5e9;color:#fff;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.sneferu-smart-water-advice{margin:12px 0;padding:14px;border:1px solid rgba(34,197,94,.22);border-radius:20px;background:linear-gradient(135deg,rgba(34,197,94,.11),rgba(255,255,255,.64))}.sneferu-smart-water-advice.warn{border-color:rgba(245,158,11,.25);background:linear-gradient(135deg,rgba(245,158,11,.13),rgba(255,255,255,.64))}.sneferu-smart-water-advice.danger{border-color:rgba(220,38,38,.24);background:linear-gradient(135deg,rgba(220,38,38,.11),rgba(255,255,255,.64))}.sneferu-smart-water-advice h4{margin:4px 0 6px;font-size:16px}.sneferu-smart-water-advice p{margin:0 0 8px;color:#475569;line-height:1.55}.sneferu-smart-water-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.sneferu-smart-water-grid span{display:block;border-radius:14px;background:rgba(255,255,255,.58);padding:9px;font-size:12px;color:#475569}.sneferu-smart-water-grid b{display:block;color:#0f172a;margin-bottom:3px}.sneferu-location-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;background:rgba(14,165,233,.10);color:#075985;border:1px solid rgba(14,165,233,.18)}@media(max-width:900px){.sneferu-water-edit-grid,.sneferu-smart-water-grid{grid-template-columns:1fr}}

/* v2.6.84 Plant Passport matching guardrails */
.sneferu-plant-passport-page #sneferu-passport-manual::placeholder{color:#94a3b8;}


/* v2.6.86 Genesys-style advanced workspace redesign
   Full-screen layout, command search, utility actions, dark navigation drawer.
   This deliberately overrides the older centered Plant Watch layout. */
:root{
  --pw86-bg:#f4f7fb;
  --pw86-panel:#ffffff;
  --pw86-line:#dbe4ef;
  --pw86-text:#132033;
  --pw86-muted:#607089;
  --pw86-navy:#142c4a;
  --pw86-navy-2:#0f233c;
  --pw86-blue:#2f6fed;
  --pw86-green:#159947;
  --pw86-red:#cf223b;
  --pw86-shadow:0 8px 24px rgba(19,32,51,.08);
}
html,body{min-width:0!important;}
body.sneferu-app-body,
body.sneferu-dashboard-body,
body.sneferu-cp-body{
  background:var(--pw86-bg)!important;
  color:var(--pw86-text)!important;
}
.sneferu-shell{
  background:var(--pw86-bg)!important;
  min-height:100vh!important;
}
.sneferu-workspace-topbar,
body.sneferu-cp-body .sneferu-cp-topbar,
body.sneferu-dashboard-body .sneferu-cp-topbar,
body .sneferu-dashboard-root-topbar{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  transform:none!important;
  z-index:9999!important;
  width:100%!important;
  min-height:58px!important;
  padding:8px 16px!important;
  border-radius:0!important;
  background:rgba(255,255,255,.98)!important;
  border:0!important;
  border-bottom:1px solid var(--pw86-line)!important;
  box-shadow:0 1px 0 rgba(19,32,51,.03)!important;
  display:grid!important;
  grid-template-columns:minmax(220px,310px) minmax(260px,640px) minmax(260px,1fr) auto!important;
  gap:14px!important;
  align-items:center!important;
  backdrop-filter:none!important;
}
body.sneferu-dashboard-body{padding-top:0!important;}
body.sneferu-dashboard-body .sneferu-dashboard-root-topbar,
body.sneferu-dashboard-body .sneferu-cp-topbar{
  margin:0!important;
}
.sneferu-workspace-left,
.sneferu-cp-title-wrap{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
.sneferu-workspace-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  text-decoration:none!important;
  color:var(--pw86-text)!important;
}
.sneferu-workspace-brand strong{
  font-size:15px;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.sneferu-workspace-dots{
  width:24px;
  height:32px;
  display:grid;
  grid-template-columns:repeat(2,6px);
  grid-auto-rows:6px;
  gap:4px;
  align-content:center;
  justify-content:center;
}
.sneferu-workspace-dots i{
  width:6px;height:6px;border-radius:99px;background:#e24a4a;display:block;
}
.sneferu-workspace-dots i:nth-child(2),
.sneferu-workspace-dots i:nth-child(3){background:#ef6b54;}
.sneferu-cp-menu-btn,
.sneferu-workspace-menu-btn,
.sneferu-dashboard-root-menu-btn{
  width:40px!important;
  height:40px!important;
  border-radius:4px!important;
  border:1px solid #cdd7e4!important;
  background:#fff!important;
  color:#31445d!important;
  box-shadow:none!important;
  font-size:19px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  text-decoration:none!important;
  cursor:pointer!important;
  flex:0 0 40px!important;
}
.sneferu-cp-menu-btn:hover,
.sneferu-workspace-menu-btn:hover,
.sneferu-dashboard-root-menu-btn:hover{
  background:#f1f5fa!important;
  border-color:#9fb2ca!important;
}
.sneferu-cp-title-compact{min-width:0!important;gap:0!important;}
.sneferu-cp-section-label{
  background:transparent!important;
  color:#2f6b56!important;
  padding:0!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:850!important;
  text-transform:none!important;
}
.sneferu-cp-topbar-compact h1,
.sneferu-cp-topbar h1,
body .sneferu-dashboard-root-topbar h1{
  font-size:22px!important;
  line-height:1.05!important;
  margin:2px 0 0!important;
  color:var(--pw86-text)!important;
  letter-spacing:-.03em!important;
  font-weight:850!important;
}
.sneferu-cp-topbar-compact p,
.sneferu-cp-topbar p,
body .sneferu-dashboard-root-topbar p{
  font-size:12px!important;
  line-height:1.2!important;
  margin:3px 0 0!important;
  color:var(--pw86-muted)!important;
  max-width:360px!important;
}
.sneferu-workspace-search{
  min-width:220px;
  max-width:640px;
  width:100%;
  height:40px;
  border:1px solid #cdd7e4;
  background:#fff;
  border-radius:3px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  color:#6b7b90;
}
.sneferu-workspace-search span{font-size:16px;opacity:.72;}
.sneferu-workspace-search input{
  width:100%;
  min-width:0;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--pw86-text)!important;
  font-size:14px!important;
  padding:0!important;
  box-shadow:none!important;
}
.sneferu-workspace-search input::placeholder{color:#77869b;}
.sneferu-workspace-utilities,
.sneferu-cp-actions.sneferu-workspace-utilities{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
}
.sneferu-workspace-tool,
.sneferu-cp-actions .sneferu-workspace-tool,
.sneferu-workspace-utilities .sneferu-button{
  height:36px!important;
  min-width:36px!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:4px!important;
  background:transparent!important;
  color:#33465f!important;
  text-decoration:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
.sneferu-workspace-tool:hover,
.sneferu-workspace-utilities .sneferu-button:hover{background:#eef3f8!important;}
.sneferu-workspace-tool.danger,
.sneferu-workspace-utilities .sneferu-button.danger{
  background:#c8203a!important;
  color:#fff!important;
  border-radius:4px!important;
}
.sneferu-status-strip{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  display:flex!important;
  overflow-x:auto!important;
  gap:6px!important;
  padding:0!important;
  margin:0!important;
  scrollbar-width:none;
}
.sneferu-status-strip::-webkit-scrollbar{display:none;}
.sneferu-status-pill{
  flex:0 0 auto!important;
  min-height:34px!important;
  padding:4px 8px!important;
  border-radius:5px!important;
  background:#fff!important;
  border:1px solid #d8e1eb!important;
  box-shadow:none!important;
}
.sneferu-status-label{font-size:9px!important;letter-spacing:.05em!important;text-transform:uppercase!important;}
.sneferu-status-value{font-size:11px!important;line-height:1.1!important;}
.sneferu-app-frame,
.sneferu-cp-content,
.sneferu-dashboard-content-only{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.sneferu-main,
body.sneferu-dashboard-body .sneferu-main,
body.sneferu-dashboard-body .sneferu-dashboard-content-only{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:16px 20px 48px!important;
}
.sneferu-weather-card,
.sneferu-overview-widgets,
.sneferu-grid{
  width:100%!important;
  max-width:none!important;
}
.sneferu-weather-card,
.sneferu-mini-widget,
.sneferu-card,
.sneferu-cp-frame-wrap,
.sneferu-form-card,
.sneferu-analytics-card,
.sneferu-passport-card,
.sneferu-history-card{
  border:1px solid var(--pw86-line)!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:var(--pw86-shadow)!important;
}
.sneferu-weather-card{padding:20px!important;}
.sneferu-grid{
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;
  gap:16px!important;
}
.sneferu-overview-widgets{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:16px!important;
}
.sneferu-cp-content{
  padding:16px 18px 48px!important;
}
.sneferu-cp-frame-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.sneferu-cp-frame-wrap iframe{
  background:#fff!important;
  width:100%!important;
  border:0!important;
}
@media (min-width:861px){
  .sneferu-cp-content{width:100%!important;max-width:none!important;margin:0!important;}
}
.sneferu-cp-sidebar{
  width:360px!important;
  background:linear-gradient(180deg,var(--pw86-navy) 0%,var(--pw86-navy-2) 100%)!important;
  padding:0!important;
  box-shadow:18px 0 38px rgba(8,19,34,.28)!important;
}
.sneferu-cp-sidebar-top{
  height:58px!important;
  padding:0 18px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  margin:0!important;
}
.sneferu-cp-brand{font-size:16px!important;font-weight:850!important;}
.sneferu-cp-close{
  width:36px!important;height:36px!important;border-radius:4px!important;background:transparent!important;
}
.sneferu-cp-search{padding:14px 18px 4px!important;}
.sneferu-cp-search input{
  border-radius:4px!important;
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.18)!important;
}
.sneferu-cp-menu{padding:8px 14px 24px!important;margin:0!important;gap:4px!important;}
.sneferu-cp-group{border:0!important;padding:0!important;}
.sneferu-cp-group-title{
  min-height:38px!important;
  border-radius:4px!important;
  color:rgba(228,239,255,.84)!important;
  font-size:12px!important;
  padding:8px 10px!important;
}
.sneferu-cp-group-title:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;}
.sneferu-cp-link{
  grid-template-columns:34px 1fr!important;
  border-radius:4px!important;
  padding:9px 10px!important;
  color:#e8f2ff!important;
}
.sneferu-cp-link:hover,
.sneferu-cp-link.active{
  background:#2f6fed!important;
  color:#fff!important;
}
.sneferu-cp-icon{background:rgba(255,255,255,.10)!important;border-radius:4px!important;}
.sneferu-cp-link small{color:rgba(230,241,255,.70)!important;}
.sneferu-cp-overlay{background:rgba(6,18,32,.28)!important;}
body.sneferu-cp-body .sneferu-cp-main{background:var(--pw86-bg)!important;}
.sneferu-button,
button.sneferu-button{
  border-radius:4px!important;
  box-shadow:none!important;
}
.sneferu-button.green{background:#228b45!important;}
.sneferu-button.secondary{background:#edf2f7!important;border:1px solid #d8e1eb!important;color:#33465f!important;}
.sneferu-button.danger{background:#c8203a!important;color:#fff!important;}
.sneferu-kicker,
.sneferu-cp-section-label{
  border-radius:99px!important;
  background:#e6f6ec!important;
  color:#15773b!important;
  padding:4px 8px!important;
  display:inline-flex!important;
}
.sneferu-footer-note{display:none!important;}
@media (max-width:1180px){
  .sneferu-workspace-topbar,
  body.sneferu-cp-body .sneferu-cp-topbar,
  body .sneferu-dashboard-root-topbar{
    grid-template-columns:minmax(190px,260px) minmax(200px,1fr) auto!important;
  }
  .sneferu-status-strip{grid-column:1/-1!important;order:10!important;}
}
@media (max-width:720px){
  .sneferu-workspace-topbar,
  body.sneferu-cp-body .sneferu-cp-topbar,
  body .sneferu-dashboard-root-topbar{
    grid-template-columns:1fr auto!important;
    gap:8px!important;
    padding:8px 10px!important;
  }
  .sneferu-workspace-search{grid-column:1/-1;order:8;max-width:none;}
  .sneferu-workspace-utilities{grid-column:1/-1;order:9;justify-content:flex-start!important;overflow-x:auto;}
  .sneferu-cp-title-wrap{min-width:0!important;}
  .sneferu-cp-topbar-compact h1{font-size:20px!important;}
  .sneferu-main,body.sneferu-dashboard-body .sneferu-main{padding:12px!important;}
  .sneferu-grid{grid-template-columns:1fr!important;}
}
