:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-soft: #edf4fb;
  --line: #dbe6f2;
  --text: #102a43;
  --muted: #627d98;
  --accent: #0b63ce;
  --accent-strong: #084fa7;
  --good: #138a5e;
  --warn: #b7791f;
  --bad: #c53030;
  --shadow: 0 16px 40px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(11, 99, 206, 0.12), transparent 30%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.top-brand {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.hero,
.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 230, 242, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: 24px;
  margin-bottom: 18px;
  display: grid;
  gap: 18px;
}

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

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
}

.lead {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
}

.brand-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-credit.top {
  padding: 0;
  border: 0;
  background: transparent;
  min-width: auto;
}

.brand-credit span {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.brand-credit img {
  width: 132px;
  height: auto;
  opacity: 0.92;
}

.hero-copy {
  padding: 22px 22px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(239,245,251,0.95) 100%);
  overflow-x: auto;
}

.banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.banner.success {
  background: #ecfdf3;
  border-color: #b7ebcf;
  color: #0b6e45;
}

.banner.error {
  background: #fff1f1;
  border-color: #f3c1c1;
  color: #9b2c2c;
}

.banner.warning {
  background: #fff9e9;
  border-color: #f0d58a;
  color: #8a6110;
}

.banner ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel.compact {
  padding: 16px;
}

.panel-head,
.subsection-head,
.actions,
.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

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

.login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="time"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(11, 99, 206, 0.18);
  border-color: var(--accent);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.secondary-button {
  background: #dcebfb;
  color: var(--accent-strong);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.icon-button {
  min-height: 38px;
  padding: 0 12px;
  background: #f0f5fa;
  color: var(--text);
}

.subsection {
  padding-top: 8px;
}

.schedule-list,
.category-list,
.feed-list,
.task-list,
.feed-results {
  display: grid;
  gap: 12px;
}

.schedule-row,
.feed-row,
.task-card,
.feed-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}

.category-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,248,252,0.96) 100%);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.meter {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}

.meter-label,
.meter-text,
.empty-note,
.feed-result span,
.task-card span {
  color: var(--muted);
}

.meter-bar {
  height: 12px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: #dbe7f4;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b63ce, #1a9cf0);
}

.meter-fill.danger {
  background: linear-gradient(90deg, #c53030, #ed8936);
}

.actions {
  flex-wrap: wrap;
}

.task-card,
.feed-result {
  background: #fff;
}

.feed-result.ok {
  border-color: #b7ebcf;
}

.feed-result.bad {
  border-color: #f3c1c1;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(1180px, calc(100% - 40px));
    padding-top: 24px;
  }

  .hero {
    gap: 24px;
    padding: 30px;
  }

  .hero-actions {
    justify-content: end;
  }

  .panel {
    padding: 24px;
  }

  .grid.two,
  .schedule-row,
  .feed-row,
  .task-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
