:root {
  --bg: #080c12;
  --bg-soft: #101722;
  --panel: rgba(17, 25, 37, 0.86);
  --panel-strong: rgba(21, 32, 48, 0.96);
  --ink: #f2f7fb;
  --muted: #91a2b4;
  --line: rgba(185, 211, 234, 0.14);
  --blue: #5ea1ff;
  --cyan: #5eead4;
  --violet: #9b8cff;
  --green: #37d485;
  --red: #ff6464;
  --gold: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(94, 161, 255, .26), transparent 32rem),
    radial-gradient(circle at 86% 4%, rgba(94, 234, 212, .18), transparent 30rem),
    linear-gradient(180deg, #0a1018 0%, #080c12 48%, #0c1118 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(18px);
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 950;
  box-shadow: 0 12px 34px rgba(94, 234, 212, .26);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  letter-spacing: .08em;
}

.brand-copy small,
.hint,
.steps,
.card span,
.card small,
.hero p,
.group-head p,
.cover-title small,
.footer,
.doc p,
.feature-grid span {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

.nav-button,
.button,
button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(94, 161, 255, .18);
}

button.secondary { background: #2a3a4d; color: var(--ink); box-shadow: none; }
button.danger { background: var(--red); color: #fff; box-shadow: none; }
.ghost, .ghost-button { color: var(--ink); background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--line); }
.user-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 34px);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, .96fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  min-height: min(620px, calc(100vh - 140px));
  margin: 10px 0 24px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 10px 0 14px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.panel {
  padding: clamp(16px, 1.7vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-width: 0;
}

.account-strip {
  display: grid;
  grid-template-columns: .72fr .72fr minmax(320px, 1.56fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.18;
}

.metric-card.wide strong {
  color: #dbeafe;
  font-size: 15px;
}

.premium-panel {
  background:
    linear-gradient(145deg, rgba(94, 161, 255, .16), transparent 44%),
    var(--panel-strong);
}

h1, h2, h3, p { margin: 0; }
h2 { margin: 8px 0 16px; font-size: 25px; }
h3 { margin: 16px 0 8px; }

.dashboard-grid,
.editor-grid,
.auth-layout,
.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  min-width: 0;
}

.editor-grid {
  grid-template-columns: minmax(360px, .72fr) minmax(560px, 1.28fr);
}

.form { display: grid; gap: 13px; }

label {
  display: grid;
  gap: 7px;
  color: #c8d6e3;
  font-weight: 750;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(5, 10, 16, .42);
  font: inherit;
  outline: none;
  min-height: 46px;
}

input:focus, textarea:focus {
  border-color: rgba(94, 234, 212, .68);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .08);
}

textarea { resize: vertical; }

.hero-title-compact {
  font-size: clamp(32px, 4.2vw, 58px) !important;
}

.dashboard-top {
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-top h1 {
  margin: 6px 0 0;
  font-size: clamp(32px, 4vw, 52px);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(94, 234, 212, .32);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(94, 234, 212, .1);
  font-weight: 850;
}

.project-list,
.table-list,
.admin-table {
  display: grid;
  gap: 10px;
}

.project-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(250px, .9fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
}

.table-row,
.admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
}

.project-preview-set {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.pc-preview,
.phone-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #101722;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.pc-preview {
  aspect-ratio: 1590 / 400;
  border-radius: 9px;
}

.phone-preview {
  width: 56px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}

.pc-preview img,
.phone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-row span,
.project-row small {
  min-width: 0;
}

.project-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.project-row em,
.table-row em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}

.new-project-panel {
  margin: 16px 0;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.billing-card h1,
.admin-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 5vw, 68px);
}

.warning {
  color: #ffd166;
}

.admin-layout {
  display: grid;
  gap: 18px;
}

.admin-row {
  grid-template-columns: minmax(180px, 1fr) 150px 150px auto;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card,
.empty-state,
.feature-grid > div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
}

.project-card {
  transition: transform .18s ease, border-color .18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, .42);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #061018;
  background: var(--cyan);
  font-weight: 950;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
}

.checks input { width: auto; }
.inline { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

.group-head h1 {
  margin: 8px 0 4px;
  font-size: clamp(32px, 4vw, 54px);
}

.back-link { color: var(--cyan); font-weight: 800; }

.status-card {
  min-width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.status-card span { color: var(--muted); }
.status-card strong { display: block; margin-top: 5px; font-size: 22px; }

.preview {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #101722;
  aspect-ratio: 1590 / 400;
  object-fit: cover;
}

.preview-panel,
.hero-preview {
  min-width: 0;
  overflow: hidden;
}

.builder-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cron-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}

code {
  display: block;
  overflow: auto;
  padding: 9px;
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(5, 10, 16, .55);
}

.auth { max-width: 460px; }
.auth-side p { margin-bottom: 18px; color: var(--muted); line-height: 1.6; }

.feature-list,
.steps.rich {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li,
.steps.rich li {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}

.steps.rich li {
  display: grid;
  gap: 4px;
}

.doc {
  max-width: 920px;
}

.doc p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.demo-panel .cover-mockup.large {
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.flash {
  padding: 13px 15px;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #dffbea;
  background: rgba(55, 212, 133, .14);
  border: 1px solid rgba(55, 212, 133, .28);
}

.flash.error {
  color: #ffe1e1;
  background: rgba(255, 100, 100, .12);
  border-color: rgba(255, 100, 100, .3);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 18, .72);
}

.footer div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); }

.editor-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.editor-page-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(34px, 4vw, 56px);
}

.editor-page-head p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.55;
}

.cover-editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.cover-workbench {
  min-width: 0;
}

.cover-stage-shell {
  width: 100%;
  overflow: visible;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}

.cover-editor-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1590 / 400;
  overflow: hidden;
  border-radius: 14px;
  background: #17243a;
  background-size: cover;
  background-position: center;
  color: var(--text);
  touch-action: none;
}

.editor-cover-bg,
.editor-cover-overlay {
  position: absolute;
  inset: 0;
}

.editor-cover-bg {
  background:
    linear-gradient(135deg, rgba(94,234,212,.42), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(155,140,255,.42), transparent 26%),
    var(--bg-image);
  background-size: cover;
  background-position: center;
}

.editor-cover-overlay {
  background: rgba(3, 8, 15, var(--overlay-opacity));
}

.editor-item {
  position: absolute;
  z-index: 2;
  user-select: none;
  cursor: grab;
}

.editor-item:active {
  cursor: grabbing;
}

.editor-title {
  display: grid;
  gap: 5px;
  max-width: 46%;
}

.editor-title span {
  color: var(--theme);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.editor-title strong {
  color: var(--text);
  font-size: var(--title-size);
  line-height: 1;
  overflow-wrap: anywhere;
}

.editor-title small {
  color: rgba(230, 242, 255, .78);
  font-size: calc(var(--widget-size) * .82);
}

.editor-widget {
  display: grid;
  gap: 5px;
  min-width: 150px;
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(5, 13, 22, var(--panel-opacity));
  backdrop-filter: blur(8px);
}

.editor-widget span {
  color: rgba(225, 238, 250, .78);
  font-size: calc(var(--widget-size) * .78);
}

.editor-widget strong {
  color: var(--text);
  font-size: calc(var(--widget-size) * 1.25);
}

.editor-active {
  min-width: 230px;
}

.editor-watermark {
  pointer-events: none;
}

.editor-underbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.editor-controls {
  position: static;
  display: grid;
  gap: 13px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.editor-checks {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.editor-note {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(94, 234, 212, .28);
  border-radius: 12px;
  background: rgba(94, 234, 212, .08);
}

.editor-note span {
  color: var(--muted);
}

.cover-mockup {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1590 / 400;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(210, 230, 248, .2);
  border-radius: 18px;
  background: #152033;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  touch-action: none;
  contain: layout paint;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(94,234,212,.9), transparent 22%),
    radial-gradient(circle at 76% 24%, rgba(155,140,255,.74), transparent 22%),
    radial-gradient(circle at 48% 118%, rgba(255,209,102,.32), transparent 30%),
    linear-gradient(120deg, #132743, #086b78 52%, #101722);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,8,16,.76), rgba(2,8,16,.2) 56%, rgba(2,8,16,.66));
}

.cover-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 90px 90px,
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 90px 90px;
  opacity: .16;
  pointer-events: none;
}

.cover-title {
  position: absolute;
  left: 4%;
  top: 17%;
  right: 42%;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cover-title span {
  color: var(--cyan);
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 900;
  letter-spacing: .12em;
}

.cover-title strong {
  font-size: clamp(23px, 4vw, 52px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.cover-title small {
  overflow-wrap: anywhere;
}

.cover-copyright {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 8, 15, .68);
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.cover-cv {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
  font-weight: 950;
}

.cover-widget {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(5,13,22,.62));
  backdrop-filter: blur(8px);
  cursor: grab;
  user-select: none;
  max-width: 42%;
  box-sizing: border-box;
  overflow: hidden;
}

.cover-widget:active { cursor: grabbing; }
.cover-widget span { color: #b8c8d8; font-size: 13px; }
.cover-widget strong { color: #fff; font-size: 22px; }
.cover-widget span,
.cover-widget strong { overflow-wrap: anywhere; }

.widget-time { right: 4%; top: 12%; }
.widget-weather { left: 4%; bottom: 12%; }
.widget-stats { left: 22%; bottom: 12%; }
.widget-active { right: 4%; bottom: 12%; min-width: 230px; }

.avatar-row {
  display: flex;
  gap: 8px;
}

.avatar-row i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #061018;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  font-style: normal;
  font-weight: 900;
}

@media (min-width: 1500px) {
  .topbar {
    padding-inline: max(34px, calc((100vw - 1440px) / 2 + 34px));
  }

  .hero-copy h1 {
    font-size: 76px;
  }

  .cover-mockup.hero {
    min-height: 330px;
  }
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav a,
  .user-pill {
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
  }

  .hero,
  .account-strip,
  .billing-layout,
  .cover-editor-layout,
  .dashboard-grid,
  .editor-grid,
  .auth-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-preview {
    order: -1;
  }

  .feature-grid { grid-template-columns: 1fr 1fr; }

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

  .editor-controls {
    position: static;
  }

}

@media (max-width: 680px) {
  .footer,
  .group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-copy small {
    font-size: 12px;
  }

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

  .nav a,
  .user-pill {
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  .shell { padding: 12px; }

  .hero {
    gap: 16px;
    margin-top: 4px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 11vw, 46px);
    line-height: 1.03;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  button,
  .ghost {
    width: 100%;
  }

  .panel {
    border-radius: 14px;
  }

  .head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .checks, .inline, .feature-grid { grid-template-columns: 1fr; }

  .project-row,
  .table-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-row em,
  .table-row em {
    grid-column: 2;
  }

  .project-preview-set {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .cover-stage-shell {
    padding: 8px;
    border-radius: 14px;
  }

  .editor-underbar,
  .control-grid,
  .editor-checks {
    grid-template-columns: 1fr;
  }

  .editor-underbar {
    display: grid;
  }

  .cover-mockup {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .cover-title {
    left: 18px;
    top: 72px;
    right: 18px;
  }

  .cover-title strong {
    font-size: 30px;
  }

  .cover-widget {
    min-width: 126px;
    max-width: calc(100% - 28px);
    padding: 10px 11px;
  }

  .cover-copyright {
    top: 16px;
    padding: 7px 12px;
  }

  .cover-widget strong {
    font-size: 18px;
  }

  .widget-time { left: 16px; right: auto; top: 162px; }
  .widget-weather { left: 16px; bottom: 18px; }
  .widget-stats { right: 16px; left: auto; bottom: 18px; }
  .widget-active { right: 16px; left: auto; top: 162px; min-width: 172px; }

  .avatar-row i {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .footer {
    padding: 18px 12px;
  }
}

@media (max-width: 420px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .cover-mockup {
    min-height: 470px;
  }

  .widget-time,
  .widget-active,
  .widget-weather,
  .widget-stats {
    left: 16px;
    right: auto;
    width: calc(100% - 32px);
    min-width: 0;
  }

  .widget-time { top: 164px; }
  .widget-active { top: 244px; }
  .widget-weather { top: 336px; bottom: auto; }
  .widget-stats { top: 392px; bottom: auto; }
}
