:root {
  color-scheme: light;
  --ink: #16211f;
  --muted: #66736f;
  --line: #dfe7e3;
  --panel: #ffffff;
  --soft: #f4f7f5;
  --soft-2: #edf4ef;
  --green: #177e5d;
  --green-dark: #0d6046;
  --teal: #087c8b;
  --gold: #c28b10;
  --red: #b84242;
  --shadow: 0 20px 45px rgba(20, 45, 38, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(23, 126, 93, 0.12), transparent 30%),
    linear-gradient(180deg, #f7faf8 0%, var(--soft) 48%, #eef5f1 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.server-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.server-status.online {
  border-color: rgba(23, 126, 93, 0.25);
  color: var(--green-dark);
  background: #edf8f3;
}

.server-status.online > span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 126, 93, 0.1);
}

.server-status.offline {
  border-color: rgba(184, 66, 66, 0.25);
  color: var(--red);
  background: #fff4f4;
}

.server-status.offline > span {
  background: var(--red);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
  align-items: center;
  gap: 38px;
  padding: clamp(22px, 5vw, 64px);
  background:
    linear-gradient(115deg, rgba(8, 34, 28, 0.9), rgba(23, 126, 93, 0.72)),
    url("assets/solar-hero.jpg") center/cover;
  overflow: hidden;
}

.login-showcase {
  max-width: 760px;
  color: #fff;
  animation: rise-in 680ms ease both;
}

.showcase-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #d6fff1;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-showcase h2 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.login-showcase p:not(.showcase-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.solar-stage {
  position: relative;
  width: min(560px, 100%);
  height: 220px;
  margin-top: 28px;
}

.sun-core {
  position: absolute;
  top: 12px;
  left: 28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c2 0%, #ffd35e 42%, #e4a81b 100%);
  box-shadow: 0 0 46px rgba(255, 211, 94, 0.72);
  animation: solar-pulse 2600ms ease-in-out infinite;
}

.solar-ray {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 239, 169, 0.9), rgba(255, 255, 255, 0));
  animation: ray-flow 2200ms ease-in-out infinite;
}

.ray-one {
  top: 64px;
  left: 116px;
  width: 300px;
  transform: rotate(10deg);
}

.ray-two {
  top: 92px;
  left: 104px;
  width: 380px;
  transform: rotate(22deg);
  animation-delay: 260ms;
}

.ray-three {
  top: 48px;
  left: 106px;
  width: 270px;
  transform: rotate(-8deg);
  animation-delay: 520ms;
}

.panel-field {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, 76%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  transform: perspective(720px) rotateX(58deg) rotateZ(-8deg);
}

.panel-field span {
  aspect-ratio: 1.55;
  border: 1px solid rgba(219, 255, 245, 0.46);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(8, 124, 139, 0.82), rgba(12, 64, 75, 0.95));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  animation: panel-glow 2800ms ease-in-out infinite;
}

.panel-field span:nth-child(2n) {
  animation-delay: 280ms;
}

.panel-field span:nth-child(3n) {
  animation-delay: 560ms;
}

.login-panel {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
  animation: rise-in 720ms ease 120ms both;
}

.brand-lockup,
.sidebar-brand,
.login-meta,
.topbar,
.topbar-actions,
.row-between,
.module-status,
.document-row,
.member-header,
.tabs,
.quick-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
}

h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.form-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.primary-button,
.ghost-button,
.icon-button,
.chip,
.tab {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: #fff;
  padding: 0 16px;
}

.ghost-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  padding: 0 13px;
}

.icon-button {
  width: 40px;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.primary-button:hover {
  background: var(--green-dark);
}

.light-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.login-meta {
  justify-content: space-between;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.sidebar {
  background: #122520;
  color: #effaf5;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  gap: 12px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
}

.sidebar-brand span:not(.brand-mark) {
  display: block;
  color: #bdd7ce;
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dceee8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 700;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  background: rgba(244, 247, 245, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.content {
  padding: 24px 26px 42px;
}

.presentation-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 24px;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 47, 40, 0.96), rgba(13, 96, 70, 0.9)),
    url("https://images.unsplash.com/photo-1624397640148-949b1732bb0a?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
}

.presentation-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), #78d5b1, var(--teal));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.hero-copy .eyebrow {
  color: #bff6e2;
}

.hero-copy h3 {
  max-width: 760px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.energy-board {
  position: relative;
  min-height: 330px;
  z-index: 1;
}

.energy-sun {
  position: absolute;
  top: 16px;
  right: 46px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c7, #f2ba2f 68%);
  box-shadow: 0 0 42px rgba(255, 213, 91, 0.68);
  animation: solar-pulse 2600ms ease-in-out infinite;
}

.energy-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 241, 182, 0), rgba(255, 241, 182, 0.9), rgba(255, 241, 182, 0));
  animation: energy-sweep 2400ms linear infinite;
}

.line-a {
  top: 118px;
  right: 30px;
  width: 310px;
  transform: rotate(18deg);
}

.line-b {
  top: 170px;
  right: 10px;
  width: 340px;
  transform: rotate(-8deg);
  animation-delay: 340ms;
}

.line-c {
  top: 228px;
  right: 70px;
  width: 250px;
  transform: rotate(11deg);
  animation-delay: 680ms;
}

.energy-tile {
  position: absolute;
  min-width: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.18);
  animation: float-card 3600ms ease-in-out infinite;
}

.energy-tile strong {
  display: block;
  font-size: 24px;
}

.energy-tile span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.tile-one {
  top: 88px;
  left: 4px;
}

.tile-two {
  top: 178px;
  right: 18px;
  animation-delay: 420ms;
}

.tile-three {
  bottom: 14px;
  left: 60px;
  animation-delay: 760ms;
}

.energy-panel-grid {
  position: absolute;
  right: 70px;
  bottom: 24px;
  width: 210px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: perspective(520px) rotateX(54deg) rotateZ(-10deg);
}

.energy-panel-grid span {
  aspect-ratio: 1.35;
  border-radius: 6px;
  border: 1px solid rgba(224, 255, 246, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(7, 112, 125, 0.92), rgba(9, 54, 62, 0.98));
  animation: panel-glow 2600ms ease-in-out infinite;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.stat-card,
.folder-card,
.person-card,
.flow-card,
.info-box,
.compact-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(22, 33, 31, 0.04);
}

.panel {
  padding: 20px;
}

.stat-card,
.folder-card,
.person-card,
.flow-card,
.info-box,
.compact-row {
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  margin-bottom: 5px;
}

.stat-card span,
.muted {
  color: var(--muted);
}

.folder-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.folder-card button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.folder-card .count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.folder-path {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  color: var(--muted);
  font-weight: 800;
}

.folder-path button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
  padding: 0;
}

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

.file-node {
  position: relative;
  gap: 9px;
}

.file-node .quick-actions {
  width: 100%;
}

.node-delete {
  position: absolute;
  right: 10px;
  top: 10px;
}

.person-card {
  margin-bottom: 10px;
}

.person-card.selected {
  border-color: rgba(23, 126, 93, 0.55);
  background: #f2faf6;
}

.member-list-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-list-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.member-list-photo.placeholder {
  display: grid;
  place-items: center;
  background: #d9ebe5;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.flow-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.flow-card span {
  color: var(--green);
}

.flow-card strong {
  font-size: 15px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.flow-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

.section-stack {
  display: grid;
  gap: 22px;
}

.row-between {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.document-row {
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.document-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.document-main i,
.folder-icon {
  color: var(--green);
}

.document-title {
  margin: 0 0 7px;
  font-weight: 800;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  min-height: 26px;
  padding: 0 9px;
  background: var(--soft-2);
  color: var(--green-dark);
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.status-dot.done {
  background: var(--green);
}

.status-dot.wait {
  background: var(--muted);
}

.module-status {
  gap: 8px;
  font-weight: 700;
}

.member-header {
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d9ebe5;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.photo-avatar {
  object-fit: cover;
  background: #d9ebe5;
}

.member-photo-actions {
  margin-top: 10px;
}

.member-doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.member-doc-toolbar h3 {
  margin-bottom: 5px;
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tabs {
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab {
  min-height: 34px;
  padding: 0 11px;
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.tab.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.info-box {
  display: grid;
  gap: 6px;
}

.info-box span,
.compact-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.info-box strong {
  overflow-wrap: anywhere;
}

.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-form,
.modal-form {
  display: grid;
  gap: 14px;
}

.settings-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.settings-block h3 {
  margin-bottom: 4px;
}

.check-line {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.check-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.days-grid .check-line {
  min-height: 38px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.backup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.backup-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backup-summary strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.modal-form {
  margin-top: 18px;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 17, 0.55);
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(780px, 92vh);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: #122520;
  color: #fff;
  padding: 13px 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.report-bars {
  display: grid;
  gap: 14px;
}

.home-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.home-signature strong {
  color: var(--green-dark);
}

.bar-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
}

.bar-row span {
  font-weight: 800;
}

.bar-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes solar-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.05);
    filter: saturate(1.2);
  }
}

@keyframes ray-flow {
  0%,
  100% {
    opacity: 0.28;
    clip-path: inset(0 80% 0 0);
  }
  50% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes panel-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes energy-sweep {
  from {
    opacity: 0.28;
    background-position: -220px 0;
  }
  to {
    opacity: 0.9;
    background-position: 220px 0;
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.only-mobile {
  display: none;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell,
  .presentation-hero {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    max-width: none;
  }

  .energy-board {
    min-height: 280px;
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .only-mobile {
    display: inline-flex;
  }

  .topbar,
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-actions .ghost-button {
    display: none;
  }

  .login-shell {
    padding: 18px;
  }

  .login-showcase h2 {
    font-size: 30px;
  }

  .solar-stage {
    height: 150px;
  }

  .sun-core {
    width: 68px;
    height: 68px;
  }

  .presentation-hero {
    padding: 20px;
  }

  .hero-copy h3 {
    font-size: 30px;
  }

  .energy-board {
    min-height: 250px;
  }

  .energy-tile {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: inline-block;
    margin: 6px;
  }

  .energy-line,
  .energy-sun,
  .energy-panel-grid {
    display: none;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .file-manager-grid {
    grid-template-columns: 1fr;
  }

  .row-between,
  .document-row,
  .member-header,
  .compact-row,
  .member-doc-toolbar,
  .attachment-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .days-grid,
  .backup-summary {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 24px;
  }
}
