:root {
  color-scheme: dark;
  --bg: #101418;
  --panel: #171d23;
  --panel-2: #1d252d;
  --text: #eef3f7;
  --muted: #9aa7b2;
  --soft: #c7d0d8;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #62c98c;
  --accent-2: #77d99d;
  --accent-soft: rgba(98, 201, 140, .13);
  --danger: #f27f7f;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-2: #f8fafb;
  --text: #101418;
  --muted: #65717d;
  --soft: #3a4651;
  --line: rgba(16, 20, 24, .1);
  --line-strong: rgba(16, 20, 24, .16);
  --accent: #238957;
  --accent-2: #2f9b67;
  --accent-soft: rgba(35, 137, 87, .1);
  --danger: #c74e4e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(98, 201, 140, .12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(98, 201, 140, .28);
  color: var(--accent-2);
  font-weight: 900;
}

.brand__text {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
}

.theme-toggle:active,
.small-button:active,
.tool-card--active:active {
  transform: scale(.985);
}
.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: .98;
  letter-spacing: -.06em;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 850;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.section-head p {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.layout-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.small-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.small-button--ghost {
  color: var(--muted);
}

.edit-hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(98, 201, 140, .22);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 10px;
}

.tool-card {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden;
  transition: transform .14s ease, border-color .14s ease, opacity .14s ease;
}

.tool-card[hidden] {
  display: none !important;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: auto -55px -75px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: var(--accent-soft);
  opacity: .64;
  pointer-events: none;
}

.tool-card--active {
  border-color: rgba(98, 201, 140, .44);
}

.tool-card--soon {
  opacity: .72;
}

.tool-card__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
}

.tool-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 19px;
  font-weight: 900;
}

.tool-card h3 {
  margin: 1px 0 6px;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.tool-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.36;
}

.tool-card__action {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: var(--accent-2);
  font-weight: 850;
  font-size: 14px;
}

.tool-card__action--soon {
  color: var(--muted);
}

.tool-card__controls {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
}

.is-customizing .tool-card {
  padding-top: 54px;
  cursor: grab;
}

.is-customizing .tool-card:active {
  cursor: grabbing;
}

.is-customizing .tool-card__controls {
  display: inline-flex;
}

.tool-card.is-dragging {
  opacity: .48;
  transform: scale(.985);
}

.tool-control {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
}

.tool-control:active {
  transform: scale(.96);
}

.tool-control--hide {
  color: var(--danger);
}

.hidden-panel {
  margin-top: 10px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

:root[data-theme="light"] .hidden-panel {
  background: rgba(16, 20, 24, .035);
}

.hidden-panel__head {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hidden-panel__head span {
  color: var(--muted);
  font-size: 13px;
}

.hidden-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hidden-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(98, 201, 140, .26);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 850;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 1120px) {
  .tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .compact-hero {
    display: block;
  }

  .section-head {
    align-items: start;
  }
}

@media (max-width: 520px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-head {
    margin-bottom: 16px;
  }

  .compact-hero {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  h1 {
    font-size: clamp(29px, 10vw, 42px);
  }

  .layout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .small-button {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .layout-actions {
    margin-top: 12px;
  }

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

  .tool-card {
    min-height: 122px;
  }

  .tool-card__controls {
    left: 10px;
    right: auto;
  }
}
