:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5f6878;
  --line: #d9dee8;
  --accent: #0f766e;
  --accent-strong: #0b5d56;
  --sun: #f59e0b;
  --rose: #e11d48;
  --blue: #2563eb;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.12), transparent 36%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
}

.counter {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.workspace {
  padding-top: 22px;
}

.intro {
  max-width: 720px;
  padding: 26px 0 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.05rem, 6vw, 4.65rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:last-child,
.notice {
  color: var(--muted);
  line-height: 1.65;
}

.intro p:last-child {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 1.02rem;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 12px;
  align-items: end;
  padding: 12px 0 16px;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(10px);
}

.search {
  display: grid;
  gap: 6px;
}

.search span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  min-height: 260px;
}

.shortcut-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  min-height: 246px;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.card-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.app-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  object-fit: cover;
  padding: 2px;
}

h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.22;
}

.maker,
.description {
  margin: 0;
  color: var(--muted);
}

.maker {
  margin-top: 4px;
  font-size: 0.84rem;
}

.description {
  line-height: 1.48;
}

code {
  display: block;
  overflow: hidden;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  align-self: end;
}

.open,
.copy {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.open {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.open:active {
  background: var(--accent-strong);
}

.copy {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.notice {
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

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

  .counter {
    width: 100%;
  }

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

  h1 {
    font-size: 2.6rem;
  }
}
