/* FDVFIT GLASS SKIN 2026-05-31 */
:root {
  color-scheme: dark;
  --bg: #020b0a;
  --bg-2: #061715;
  --surface: rgba(7, 26, 24, 0.62);
  --surface-strong: rgba(9, 34, 32, 0.78);
  --surface-soft: rgba(9, 47, 43, 0.36);
  --line: rgba(128, 255, 223, 0.18);
  --line-strong: rgba(128, 255, 223, 0.34);
  --text: #eafff8;
  --muted: #8fb7ad;
  --muted-2: #5f8c82;
  --accent: #49f3c9;
  --accent-2: #0bb6ad;
  --green: #49f3c9;
  --blue: #57a8ff;
  --amber: #f4c76b;
  --red: #ff6f75;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --glow: 0 0 38px rgba(73, 243, 201, 0.24);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 243, 201, 0.18), transparent 27rem),
    radial-gradient(circle at 88% 8%, rgba(0, 166, 166, 0.22), transparent 32rem),
    radial-gradient(circle at 68% 92%, rgba(17, 87, 82, 0.42), transparent 28rem),
    linear-gradient(135deg, #010605 0%, #041110 45%, #020807 100%);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0 31%, rgba(73, 243, 201, 0.13) 31.2%, transparent 31.7% 100%),
    linear-gradient(146deg, transparent 0 43%, rgba(73, 243, 201, 0.09) 43.2%, transparent 43.8% 100%),
    linear-gradient(72deg, transparent 0 56%, rgba(87, 168, 255, 0.08) 56.2%, transparent 56.8% 100%);
  -webkit-mask-image: radial-gradient(circle at 56% 38%, #000 0 38%, transparent 72%);
  mask-image: radial-gradient(circle at 56% 38%, #000 0 38%, transparent 72%);
}

body::after {
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(73, 243, 201, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 35%, rgba(244, 199, 107, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(73, 243, 201, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 72%, rgba(87, 168, 255, 0.54) 0 1px, transparent 2px);
  opacity: 0.55;
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(73, 243, 201, 0.88);
  outline-offset: 3px;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  position: relative;
  width: min(456px, 100%);
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035) 42%, rgba(7, 26, 24, 0.78)),
    var(--surface-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--glow);
  backdrop-filter: blur(24px) saturate(140%);
}

.login-card::before {
  position: absolute;
  inset: -40% -30% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 243, 201, 0.28), transparent 66%);
  content: "";
}

.brand-mark,
.sidebar-brand {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 0 24px rgba(73, 243, 201, 0.38);
}

.login-card h1 {
  position: relative;
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.login-card p,
.hero-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.login-form,
.goal-stack,
.alerts { display: grid; gap: 14px; }

.login-form { position: relative; margin-top: 24px; }
.login-form label,
.grid-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-form input,
.grid-form input,
.grid-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(1, 11, 10, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.login-form input:hover,
.grid-form input:hover,
.grid-form textarea:hover { border-color: rgba(128, 255, 223, 0.32); }

.login-form input:focus,
.grid-form input:focus,
.grid-form textarea:focus {
  border-color: rgba(73, 243, 201, 0.78);
  background: rgba(3, 18, 16, 0.76);
  box-shadow: 0 0 0 4px rgba(73, 243, 201, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-form button,
.grid-form button,
#runImport,
.report button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #031210;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #a9ffe9, var(--accent) 42%, #12b6ad);
  box-shadow: 0 14px 36px rgba(28, 219, 185, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.login-form button:hover,
.grid-form button:hover,
#runImport:hover,
.report button:hover { filter: brightness(1.06); box-shadow: 0 18px 46px rgba(28, 219, 185, 0.3); }

.login-form button:active,
.grid-form button:active,
#runImport:active,
.report button:active { transform: translateY(1px) scale(0.99); }

button:disabled,
input:disabled,
textarea:disabled { cursor: not-allowed; opacity: 0.55; }

.form-error { min-height: 20px; color: var(--red); font-size: 14px; }

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 18, 17, 0.86), rgba(4, 24, 22, 0.64));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(140%);
}

.sidebar-brand { margin-bottom: 24px; }
.sidebar nav { display: grid; gap: 7px; }

.sidebar button,
.ghost-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 170ms ease, background-color 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.sidebar button {
  position: relative;
  padding: 11px 12px;
  color: #a7c9c0;
  text-align: left;
  background: transparent;
  font-weight: 760;
}

.sidebar button:hover {
  color: var(--text);
  border-color: rgba(128, 255, 223, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.sidebar button.active {
  color: #edfff9;
  border-color: rgba(73, 243, 201, 0.36);
  background: linear-gradient(135deg, rgba(73, 243, 201, 0.18), rgba(8, 47, 44, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.sidebar button.active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(73, 243, 201, 0.7);
  content: "";
}

.sidebar button:active,
.ghost-btn:active { transform: scale(0.985); }
.main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 15, 14, 0.68);
  backdrop-filter: blur(22px) saturate(150%);
}

.topbar h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.user-area { display: flex; align-items: center; gap: 12px; color: var(--muted); }

.ghost-btn {
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.ghost-btn:hover { border-color: var(--line-strong); background: rgba(73, 243, 201, 0.09); }

.content {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.loading { color: var(--muted); }

.hero-panel,
.panel,
.kpi,
.progress-card,
.empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035) 42%, rgba(4, 18, 17, 0.76)),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px) saturate(140%);
}

.hero-panel,
.panel { padding: 22px; }

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 20px;
  overflow: hidden;
}

.hero-panel::after {
  position: absolute;
  inset: auto 6% -62px auto;
  width: 330px;
  height: 150px;
  border: 1px solid rgba(73, 243, 201, 0.16);
  border-radius: 999px;
  transform: rotate(-10deg);
  box-shadow: 0 0 70px rgba(73, 243, 201, 0.12);
  content: "";
}

.hero-panel h3,
.panel h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.progress-card {
  padding: 14px;
  background: linear-gradient(145deg, rgba(73, 243, 201, 0.08), rgba(255, 255, 255, 0.035));
}

.progress-card span,
.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-card b,
.kpi strong {
  display: block;
  color: #f3fffb;
  letter-spacing: -0.02em;
}

.progress-card b { margin: 6px 0; font-size: 24px; }

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 174, 166, 0.18);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #9dffe6);
  box-shadow: 0 0 18px rgba(73, 243, 201, 0.45);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  min-height: 126px;
  padding: 16px;
}

.kpi:hover { border-color: rgba(128, 255, 223, 0.27); }
.kpi strong { margin: 7px 0; font-size: 25px; }
.kpi small { color: var(--muted); }

.line-chart {
  height: 220px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(73, 243, 201, 0.06), transparent),
    rgba(0, 8, 7, 0.38);
}

.chart-col { position: relative; flex: 1; }

.line-dot {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 16px currentColor;
}

.c0 { color: var(--green); background: var(--green); }
.c1 { color: var(--blue); background: var(--blue); }
.c2 { color: var(--amber); background: var(--amber); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}



.daily-entry-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(73, 243, 201, 0.09), rgba(255, 255, 255, 0.035) 38%, rgba(4, 18, 17, 0.82)),
    var(--surface);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px) saturate(140%);
}

.compact-toolbar { padding-bottom: 14px; }

.daily-entry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.daily-entry-form fieldset {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(128, 255, 223, 0.14);
  border-radius: 14px;
  background: rgba(0, 8, 7, 0.24);
}

.daily-entry-form legend {
  padding: 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.daily-entry-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-entry-form input,
.daily-entry-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(1, 11, 10, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.daily-entry-form select { appearance: auto; }

.daily-entry-form input:hover,
.daily-entry-form select:hover { border-color: rgba(128, 255, 223, 0.32); }

.daily-entry-form input:focus,
.daily-entry-form select:focus {
  border-color: rgba(73, 243, 201, 0.78);
  background: rgba(3, 18, 16, 0.76);
  box-shadow: 0 0 0 4px rgba(73, 243, 201, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.daily-entry-form input[readonly] {
  color: #bdf3e5;
  border-color: rgba(73, 243, 201, 0.2);
  background: rgba(73, 243, 201, 0.07);
}

.daily-entry-form .check {
  align-content: center;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding-top: 18px;
}

.daily-entry-form .check input { width: 18px; height: 18px; }

.daily-entry-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.daily-entry-actions button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #031210;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #a9ffe9, var(--accent) 42%, #12b6ad);
  box-shadow: 0 14px 36px rgba(28, 219, 185, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.daily-entry-actions button:hover { filter: brightness(1.06); box-shadow: 0 18px 46px rgba(28, 219, 185, 0.3); }
.daily-entry-actions button:active { transform: translateY(1px) scale(0.99); }

.content-wide {
  padding-right: 18px;
  padding-left: 18px;
}

.sheet-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032) 42%, rgba(4, 18, 17, 0.82)),
    var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px) saturate(140%);
}

.sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(73, 243, 201, 0.075), rgba(255, 255, 255, 0.025));
}

.sheet-toolbar h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.sheet-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sheet-stats span {
  border: 1px solid rgba(128, 255, 223, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 8, 7, 0.28);
}

.sheet-wrap {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  overflow: auto;
  overflow-x: scroll;
  background: rgba(1, 10, 9, 0.42);
}

.sheet-table {
  min-width: 2380px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

.sheet-table th,
.sheet-table td {
  height: 34px;
  padding: 7px 9px;
  border-right: 1px solid rgba(128, 255, 223, 0.12);
  border-bottom: 1px solid rgba(128, 255, 223, 0.11);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #dffff7;
  background: rgba(5, 31, 28, 0.96);
  box-shadow: inset 0 -1px 0 rgba(128, 255, 223, 0.2);
}

.sheet-table tbody tr:nth-child(even) td,
.sheet-table tbody tr:nth-child(even) .sheet-row-head {
  background: rgba(255, 255, 255, 0.025);
}

.sheet-table tbody tr:hover td,
.sheet-table tbody tr:hover .sheet-row-head {
  color: #ffffff;
  background: rgba(73, 243, 201, 0.09);
}

.sheet-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 150px;
  min-width: 150px;
  text-align: left;
  background: rgba(4, 23, 21, 0.98);
  box-shadow: 1px 0 0 rgba(128, 255, 223, 0.16);
}

.sheet-table thead .sticky-col { z-index: 5; }
.sheet-table .text-cell { text-align: left; }
.sheet-table td { color: #d8f7ef; }

.sheet-scroll-hint {
  padding: 9px 20px;
  color: var(--muted);
  border-bottom: 1px solid rgba(128, 255, 223, 0.1);
  background: rgba(0, 8, 7, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.editable-sheet input,
.editable-sheet select {
  width: 100%;
  min-width: 0;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  color: #eafff8;
  background: transparent;
  font-size: 12px;
  text-align: inherit;
}

.editable-sheet select { appearance: auto; }

.editable-sheet input:hover,
.editable-sheet select:hover {
  border-color: rgba(128, 255, 223, 0.24);
  background: rgba(73, 243, 201, 0.06);
}

.editable-sheet input:focus,
.editable-sheet select:focus {
  border-color: rgba(73, 243, 201, 0.72);
  background: rgba(3, 18, 16, 0.86);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 243, 201, 0.1);
}

.editable-sheet tr.dirty td {
  background: rgba(244, 199, 107, 0.055);
}

.sheet-actions-head,
.sheet-actions {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 116px;
  min-width: 116px;
  text-align: center !important;
  background: rgba(2, 15, 14, 0.98) !important;
  box-shadow: -1px 0 0 rgba(128, 255, 223, 0.16);
}

.sheet-actions button {
  width: 74px;
  border: 1px solid rgba(73, 243, 201, 0.3);
  border-radius: 8px;
  padding: 5px 8px;
  color: #031210;
  background: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.sheet-actions button:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: default;
}

.sheet-actions span {
  display: block;
  max-width: 100px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}


.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 8, 7, 0.36);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid rgba(128, 255, 223, 0.11); text-align: left; font-size: 14px; }
th {
  position: sticky;
  top: 0;
  color: #9bd6ca;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(4, 20, 18, 0.92);
}

td { color: #d8f7ef; }
tr:hover td { background: rgba(73, 243, 201, 0.045); }

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

.grid-form textarea { min-height: 86px; resize: vertical; }
.grid-form .check { display: flex; align-items: center; gap: 8px; }

.alert {
  position: relative;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 199, 107, 0.22);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  background: rgba(69, 47, 8, 0.26);
}

.alert.high { border-color: rgba(255, 111, 117, 0.26); border-left-color: var(--red); background: rgba(74, 16, 20, 0.32); }
.alert.medium { border-left-color: var(--amber); }
.alert.low { border-color: rgba(87, 168, 255, 0.24); border-left-color: var(--blue); background: rgba(8, 35, 68, 0.28); }
.alert b { display: block; color: #fffaf0; }
.alert span,
.alert small { color: var(--muted); }

.report pre {
  white-space: pre-wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #dffcf4;
  background: rgba(0, 8, 7, 0.46);
}

.empty {
  padding: 28px;
  color: var(--muted);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-card,
  .sidebar,
  .topbar,
  .hero-panel,
  .panel,
  .kpi,
  .progress-card,
  .empty { background: #071b19; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1100px) {
  .daily-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .daily-entry-form,
  .daily-entry-form fieldset { grid-template-columns: 1fr; }
  .daily-entry-actions { align-items: stretch; flex-direction: column; }
  .login-card { padding: 26px; border-radius: 18px; }
  .sidebar { padding: 16px; }
  .sidebar nav { grid-template-columns: 1fr; }
  .kpi-grid,
  .grid-form { grid-template-columns: 1fr; }
  .topbar { position: static; align-items: flex-start; flex-direction: column; padding: 18px; }
  .user-area { width: 100%; justify-content: space-between; }
  .content { padding: 16px; }
}


.sheet-table th:nth-child(1),
.sheet-table td:nth-child(1) { width: 150px; min-width: 150px; }
.sheet-table th:nth-child(2),
.sheet-table td:nth-child(2) { width: 128px; min-width: 128px; }
.sheet-table th:nth-child(3),
.sheet-table td:nth-child(3) { width: 126px; min-width: 126px; }
.sheet-table th:nth-child(4),
.sheet-table td:nth-child(4) { width: 128px; min-width: 128px; }

.sheet-table th {
  white-space: normal;
  line-height: 1.15;
  vertical-align: middle;
}

.weekly-sheet {
  min-width: 1680px;
}
