:root {
  --bg: #080a0f;
  --surface: #121722;
  --surface-soft: #192131;
  --text: #f8fafc;
  --muted: #9aa4b2;
  --line: #2b3445;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --fight: #ef4444;
  --hiit: #14b8a6;
  --muscle: #eab308;
  --radius: 8px;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #111827 0%, var(--bg) 38%, #05070b 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button,
a,
input {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.9);
}

[hidden] {
  display: none !important;
}

.app-header,
.app-footer {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 16px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-greeting {
  max-width: 38vw;
  overflow: hidden;
  color: #fed7aa;
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.page-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 6px 16px 32px;
}

.panel,
.section-block {
  background: linear-gradient(180deg, rgba(25, 33, 49, 0.98), rgba(18, 23, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-block {
  padding: 16px;
  margin-top: 18px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2,
h1,
h2,
p {
  margin-top: 0;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title span,
.eyebrow,
small {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fdba74;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: var(--brand);
  color: #111827;
}

.secondary-button {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.danger-button {
  background: var(--fight);
  color: white;
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.secondary-button:hover {
  border-color: rgba(249, 115, 22, 0.65);
}

.app-footer {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.app-footer a {
  color: #fdba74;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 720px) {
  .app-header,
  .app-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .page-shell {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-greeting {
    display: none;
  }
}
