:root {
  color-scheme: light;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #eef1f8;
  --text: #182033;
  --muted: #667085;
  --dim: #98a2b3;
  --primary: #6254e8;
  --primary-dark: #493bd2;
  --border: rgba(33, 43, 70, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.shell {
  width: min(100%, 430px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(29, 36, 58, 0.16);
}

.brand-copy {
  min-width: 0;
}

.app-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.app-domain {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(23, 31, 54, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.title {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.timer-preview {
  margin: 20px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.preview-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(98, 84, 232, 0.12);
  font-size: 20px;
}

.goal-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
}

.goal-time {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.preview-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.actions {
  display: grid;
  gap: 10px;
}

.button {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(98, 84, 232, 0.28);
}

.primary:active {
  background: var(--primary-dark);
}

.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #1b2333;
    --surface-soft: #232c40;
    --text: #f4f6fb;
    --muted: #b5bdcf;
    --dim: #778199;
    --border: rgba(232, 236, 247, 0.12);
    --primary: #8e83ff;
    --primary-dark: #7468f0;
  }
}
