:root {
  --bg: #f6f7fb;
  --card: rgba(255,255,255,.9);
  --text: #111;
  --sub: #8a8a92;
  --line: rgba(0,0,0,.08);
  --primary: #111;
  --primaryText: #fff;
  --soft: #f0f1f5;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,0,0,.05), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(0,0,0,.04), transparent 30%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 20px 42px;
}

.hero {
  padding: 34px 4px 20px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(42px, 12vw, 64px);
  line-height: .95;
  letter-spacing: -.08em;
}

.hero p,
.note p {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
  backdrop-filter: blur(18px);
}

.label {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 0;
  outline: 0;
  border-radius: 22px;
  background: var(--soft);
  padding: 16px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

textarea::placeholder,
input::placeholder {
  color: #b2b2ba;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin-top: 12px;
}

input {
  height: 52px;
  border: 0;
  outline: 0;
  border-radius: 18px;
  background: var(--soft);
  padding: 0 15px;
  color: var(--text);
  font-weight: 800;
}

.row button,
.section-title button {
  border-radius: 18px;
  background: var(--soft);
  color: var(--text);
  font-weight: 900;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 12px;
}

.actions button {
  height: 58px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 950;
}

.primary {
  background: var(--primary);
  color: var(--primaryText);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.secondary {
  background: var(--soft);
  color: var(--text);
}

.status {
  margin-top: 13px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.progress-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width .15s ease;
}

.progress-wrap span {
  color: var(--sub);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.hidden {
  display: none !important;
}

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

.section-title h2,
.note h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.section-title button {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

video {
  width: 100%;
  border-radius: 20px;
  background: #111;
  max-height: 420px;
}

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

.history-empty {
  color: var(--sub);
  font-size: 14px;
  font-weight: 750;
  padding: 16px 0;
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: var(--soft);
}

.history-item b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item span {
  display: block;
  margin-top: 5px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item button {
  height: 40px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.note {
  padding: 8px 4px 20px;
}

.note h3 {
  margin-bottom: 8px;
}

.note p + p {
  margin-top: 8px;
}

@media (max-width: 390px) {
  .app {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .row {
    grid-template-columns: minmax(0, 1fr) 74px;
  }
}
