/* =========================================================================
   MY APARTMENTS — DESIGN SYSTEM
   -------------------------------------------------------------------------
   This file is the single source of truth for the site's look and feel.
   Every page links this file first, then its own page-specific stylesheet.
   Do not redefine these tokens per-page — extend, don't fork.

   Palette:    deep navy ink + warm brass, on a quiet paper background.
   Type:       Fraunces (display) / Inter (UI & body) / IBM Plex Mono (data)
   Signature:  a faint architectural blueprint-grid motif, used sparingly
               as texture behind key moments — this is a building, and the
               design should always feel quietly aware of that.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- color: ink (navy) ---- */
  --ink-950: #0A1622;
  --ink-900: #0E1E2E;
  --ink-800: #14293C;
  --ink-700: #1D3A52;
  --ink-600: #44586A;
  --ink-400: #7C8CA0;
  --ink-200: #C4CDD6;

  /* ---- color: paper ---- */
  --paper-0: #FFFFFF;
  --paper-50: #F6F7F4;
  --paper-100: #EEF0EB;

  /* ---- color: brass (brand accent) ---- */
  --brass-700: #8C6423;
  --brass-600: #A97B2E;
  --brass-500: #C69A45;
  --brass-300: #DFC080;
  --brass-100: #F3E7CC;

  /* ---- color: semantic status ---- */
  --sage-600: #3F6652;
  --sage-100: #E1EAE4;
  --amber-600: #B4791E;
  --amber-100: #F3E4C8;
  --rust-600: #A8402F;
  --rust-100: #F2DFDA;
  --steel-600: #3D6280;
  --steel-100: #DCE6EC;

  /* ---- type ---- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- spacing scale ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---- radius ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* ---- shadow ---- */
  --shadow-sm: 0 1px 2px rgba(10, 22, 34, 0.06), 0 1px 1px rgba(10, 22, 34, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 22, 34, 0.08), 0 2px 8px rgba(10, 22, 34, 0.05);
  --shadow-lg: 0 24px 60px rgba(10, 22, 34, 0.14), 0 8px 20px rgba(10, 22, 34, 0.08);
  --shadow-glow-brass: 0 0 0 1px rgba(198, 154, 69, 0.35), 0 0 40px rgba(198, 154, 69, 0.25);

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 220ms;
  --dur-med: 480ms;
  --dur-slow: 900ms;

  /* ---- layout ---- */
  --container: 1240px;
  --header-h: 78px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper-0);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-950);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--brass-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
}

/* =========================================================================
   SIGNATURE MOTIF — blueprint grid texture
   Used sparingly behind hero art and as faint section dividers.
   ========================================================================= */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(10, 22, 34, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 34, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.blueprint-grid--dark {
  background-image:
    linear-gradient(rgba(223, 192, 128, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 192, 128, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass-500);
  display: inline-block;
}

/* =========================================================================
   AMBIENT BACKGROUND BLOBS — soft, blurred, slow. Never sharp or scanning.
   ========================================================================= */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
}
.ambient__blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--brass-300), transparent 70%);
  top: -120px; right: -80px;
  animation: drift1 34s ease-in-out infinite;
}
.ambient__blob--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--steel-100), transparent 70%);
  bottom: -140px; left: -100px;
  animation: drift2 40s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 52px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink-950);
  color: var(--paper-0);
}
.btn--primary:hover {
  background: var(--ink-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--brass {
  background: var(--brass-600);
  color: var(--ink-950);
}
.btn--brass:hover {
  background: var(--brass-500);
  box-shadow: var(--shadow-glow-brass);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-200);
  color: var(--ink-900);
}
.btn--ghost:hover {
  border-color: var(--ink-600);
  background: var(--paper-50);
}

.btn--sm { height: 40px; padding: 0 var(--sp-4); font-size: 14px; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* =========================================================================
   BADGES / STATUS CHIPS
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--paid   { background: var(--sage-100); color: var(--sage-600); }
.badge--due,
.badge--upcoming { background: var(--steel-100); color: var(--steel-600); }
.badge--warning,
.badge--partial { background: var(--amber-100); color: var(--amber-600); }
.badge--overdue,
.badge--pending { background: var(--rust-100); color: var(--rust-600); }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--paper-0);
  border: 1px solid var(--paper-100);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* =========================================================================
   SCROLL REVEAL (JS toggles .in-view)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 490ms; }

/* =========================================================================
   SECTION SCAFFOLDING
   ========================================================================= */
.section { position: relative; padding: var(--sp-9) 0; }
.section--alt { background: var(--paper-50); }
.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); color: var(--ink-600); font-size: 16px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* =========================================================================
   FORM FIELDS — shared across every page (login, complaints, profile, ...)
   ========================================================================= */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-4); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-800); }
.field .hint { font-weight: 400; color: var(--ink-400); font-size: 12px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--paper-100);
  background: var(--paper-50);
  font-size: 14.5px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2344586A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass-500);
  background: var(--paper-0);
  box-shadow: 0 0 0 4px rgba(198, 154, 69, 0.14);
}
.field input[aria-invalid="true"], .field input.is-invalid {
  border-color: var(--rust-600);
  background: var(--rust-100);
}

@keyframes fieldOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.form-msg {
  display: none;
  font-size: 13px;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
}
.form-msg.is-visible { display: block; animation: fieldOpen var(--dur-med) var(--ease-out); }
.form-msg--error { background: var(--rust-100); color: var(--rust-600); }
.form-msg--success { background: var(--sage-100); color: var(--sage-600); }

@keyframes successIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* =========================================================================
   TABLE CARD — shared across every report/data page
   ========================================================================= */
.table-card {
  border: 1px solid var(--paper-100);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-0);
}
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 640px; font-size: 14px; }
.data-table thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--paper-100);
  background: var(--paper-50);
}
.data-table tbody td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--paper-100);
  color: var(--ink-800);
}
.data-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--paper-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.amount { font-family: var(--font-mono); font-weight: 600; }
.data-table td.flatno { font-family: var(--font-mono); color: var(--ink-950); font-weight: 600; }
.data-table tr.is-critical td:first-child { box-shadow: inset 3px 0 0 var(--rust-600); }
.data-table tr.is-total td { font-weight: 700; background: var(--paper-50); border-top: 2px solid var(--paper-100); }

.table-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-50);
  border-top: 1px solid var(--paper-100);
}
.table-card__footer-note { font-size: 13px; color: var(--ink-600); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-950);
  transition: color var(--dur-fast) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { color: var(--brass-600); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   SITE HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(10, 22, 34, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-950);
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-400, var(--brass-300));
  flex-shrink: 0;
}
.brand__mark svg { width: 18px; height: 18px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.main-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.main-nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-600);
  position: relative;
  padding: 6px 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav__links a:hover { color: var(--ink-950); }
.main-nav__links a.is-active { color: var(--ink-950); }
.main-nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brass-500);
  border-radius: 2px;
}
.main-nav__links a[data-soon] { color: var(--ink-400); }
[data-soon] { cursor: default; }
.is-soon-shake { animation: soonShake 0.4s var(--ease-soft); }
@keyframes soonShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-100);
  background: var(--paper-0);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.user-chip:hover { box-shadow: var(--shadow-sm); }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.user-chip__meta { text-align: left; line-height: 1.15; }
.user-chip__name { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.user-chip__role { font-size: 11px; color: var(--ink-400); text-transform: capitalize; }

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-100);
  background: var(--paper-0);
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-out);
}
.logout-btn:hover { color: var(--rust-600); border-color: var(--rust-100); background: var(--rust-100); }
.logout-btn svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--paper-100);
  background: var(--paper-0);
}

@media (max-width: 960px) {
  .main-nav__links { display: none; }
  .nav-toggle { display: flex; }
}

/* =========================================================================
   SITE FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink-950);
  color: var(--ink-200);
  padding: var(--sp-8) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  position: relative;
  z-index: 1;
}
.site-footer h4 {
  color: var(--paper-0);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer .brand { color: var(--paper-0); margin-bottom: var(--sp-3); }
.site-footer p { color: var(--ink-200); font-size: 14px; line-height: 1.7; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 14px; color: var(--ink-200); transition: color var(--dur-fast); }
.site-footer ul a:hover { color: var(--brass-300); }
.site-footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 13px;
  color: var(--ink-400);
  position: relative;
  z-index: 1;
}

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

/* =========================================================================
   RIGHT-TO-LEFT (Urdu) — targeted overrides only. Flexbox row layouts
   already mirror automatically once html[dir="rtl"] is set (that's a CSS
   default, not something to add here); these three rules are the only
   physical (non-logical) directional properties in this file, found by
   auditing for hardcoded left/right rather than guessing.
   ========================================================================= */
html.is-rtl body {
  font-family: "Noto Nastaliq Urdu", var(--font-body);
}
html.is-rtl .field select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 38px;
}
html.is-rtl .data-table thead th {
  text-align: right;
}
html.is-rtl .user-chip__meta {
  text-align: right;
}

/* ---------- language switcher (shared across every page) ---------- */
.lang-switch { display: flex; gap: 4px; background: var(--paper-100); padding: 3px; border-radius: var(--r-pill); }
.lang-switch__btn {
  height: 32px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: none;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
}
.lang-switch__btn.is-active { background: var(--paper-0); color: var(--ink-950); box-shadow: var(--shadow-sm); }

/* used on dark backgrounds, e.g. the login page's aside panel */
.lang-switch--on-dark { background: rgba(255, 255, 255, 0.12); }
.lang-switch--on-dark .lang-switch__btn { color: var(--ink-200); }
.lang-switch--on-dark .lang-switch__btn.is-active { background: var(--paper-0); color: var(--ink-950); }

/* ---------- weekly schedule grid (shared: Home + public dashboard) ---------- */
.water-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-3);
}
.water-day {
  padding: var(--sp-5) var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--paper-100);
  background: var(--paper-0);
  text-align: center;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.water-day:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.water-day--today { border-color: var(--brass-500); box-shadow: 0 0 0 1px var(--brass-500); }
.water-day__name {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-400); margin-bottom: var(--sp-4);
}
.water-day--today .water-day__name { color: var(--brass-600); }
.water-day__slot { margin-bottom: var(--sp-3); }
.water-day__slot-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-400); margin-bottom: 3px;
}
.water-day__slot-time { font-size: 12.5px; color: var(--ink-800); font-weight: 600; line-height: 1.3; }
.water-day__note { margin-top: var(--sp-3); font-size: 10.5px; color: var(--rust-600); line-height: 1.4; }

@media (max-width: 900px) { .water-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .water-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- secondary block-filter tabs (public dashboard collections) ---------- */
.block-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.block-tab {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-100);
  background: var(--paper-0);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
}
.block-tab.is-active { background: var(--ink-950); color: var(--paper-0); border-color: var(--ink-950); }

/* ---------- generic tab bar (shared: Reports, Profile, any future page) ---------- */
.tab-bar {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: 2px;
  margin-top: var(--sp-6);
  border-bottom: 1px solid var(--paper-100);
}
.tab-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 var(--sp-4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.tab-btn:hover { color: var(--ink-950); }
.tab-btn.is-active { color: var(--ink-950); border-bottom-color: var(--brass-500); }
.tab-btn[disabled] { color: var(--ink-200); cursor: not-allowed; }
