/* ============================================================
   НАЧАЛЬНЫЙ ЭКРАН
   Пользуется теми же токенами, что и рабочая область: цвета,
   скругления и тени берутся из studio-base.css, поэтому светлая
   и тёмная темы получаются сами собой.
   ============================================================ */
.start-body{margin:0;background:var(--m-surface)}

.app.start{height:100vh;height:100dvh;display:flex;flex-direction:column}
.app.start .topbar{height:44px;padding:0 18px}
.app.start .crumb{background:transparent;padding:0}

.start-scroll{flex:1;min-height:0;overflow-y:auto}
.start-page{max-width:1080px;margin:0 auto;padding:32px 28px 56px}

/* Шапка страницы: знак и название */
.start-head{display:flex;align-items:center;gap:14px;margin-bottom:30px}
.start-mark{
  display:grid;place-items:center;width:48px;height:48px;border-radius:16px;
  background:var(--m-primary-c);color:var(--m-on-primary-c);
}
.start-mark svg{width:26px;height:26px}
.start-name{
  font-family:"Barlow Condensed","Barlow",system-ui,sans-serif;
  font-size:23px;font-weight:600;letter-spacing:.06em;line-height:1.1;
}
.start-note{font-size:13px;color:var(--m-on-variant)}

.start-title{
  max-width:19ch;margin:0 0 12px;
  font-size:clamp(30px,4.4vw,50px);font-weight:500;line-height:1.08;
  letter-spacing:-.01em;color:var(--text);
}
.start-lead{
  max-width:56ch;margin:0 0 26px;
  font-size:15.5px;line-height:1.55;color:var(--m-on-variant);
}

/* Кнопки */
.start-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:38px}
.start-btn{
  display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 24px;
  border:1px solid var(--m-outline);border-radius:16px;
  background:transparent;color:var(--m-primary);
  font-size:15px;font-weight:600;text-decoration:none;
  transition:background .12s ease;
}
.start-btn:hover{background:var(--m-hover)}
.start-btn .ico{width:20px;height:20px}
.start-btn.primary{
  border-color:transparent;background:var(--m-primary);color:var(--m-on-primary);
  box-shadow:var(--m-e1);padding-left:22px;
}
.start-btn.primary:hover{box-shadow:var(--m-e2);background:var(--m-primary)}
/* «Открыть проект» — кнопка среди ссылок: шрифт и курсор как у соседей */
button.start-btn{font-family:inherit;cursor:pointer}

/* Сообщение под кнопками (067-d): файл не проект, браузер не передаёт файл */
.start-error{margin:-24px 0 30px;font-size:13.5px;line-height:1.5;color:var(--m-primary)}
.start-error[hidden]{display:none}

/* Три карточки в ряд: параметры, история, профиль */
.start-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:start}
@media (max-width:1040px){ .start-cols{grid-template-columns:1fr 1fr} }
@media (max-width:820px){ .start-cols{grid-template-columns:1fr} }

.start-cap{
  margin:0 0 14px;
  font-family:"Barlow Condensed","Barlow",system-ui,sans-serif;
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--m-primary);
}
.start-side{
  padding:22px 24px;border-radius:20px;
  background:var(--m-s-low);border:1px solid var(--m-outline-var);
}

.start-rows{display:flex;flex-direction:column}
.start-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:11px 0;border-bottom:1px solid var(--m-outline-var);font-size:14px;
}
.start-row:last-child{border-bottom:0}
.start-row span{color:var(--m-on-variant)}

.start-hint{margin:16px 0 0;font-size:12.5px;line-height:1.5;color:var(--m-on-variant)}

/* ------------------------------------------------------------
   ТЕСТОВЫЙ РЕЖИМ И КАРТОЧКА ГОСТЯ — задача 064
   ------------------------------------------------------------ */

/* Полоса под шапкой: вторичный акцент, тот же, что у счётчика элементов */
.test-banner{
  flex:none;padding:7px 18px;text-align:center;
  background:var(--m-secondary-c);color:var(--m-on-secondary-c);
  font-size:12.5px;font-weight:600;
}

/* История: список проектов браузера появится с 067-c; до него пуст */
.history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.history-list:empty + .start-hint{margin-top:0}
.history-list li{
  display:flex;flex-direction:column;gap:2px;
  padding:11px 0;border-bottom:1px solid var(--m-outline-var);
}
.history-list li:last-child{border-bottom:0}
.history-list b{font-size:14.5px;font-weight:600}
.history-list span{font-size:12.5px;color:var(--m-on-variant)}

.profile-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.profile-avatar{
  display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:28px;
  background:var(--m-primary-c);color:var(--m-on-primary-c);
}
.profile-avatar svg{width:30px;height:30px}
.profile-name{font-size:17px;font-weight:600;line-height:1.2}
.profile-note{margin-top:2px;font-size:13px;color:var(--m-on-variant)}

/* Кнопки входа. Пока выключены все три: нажатие не перехватывается,
   кнопка выключена атрибутом, и браузер сам не даёт ни клика, ни фокуса */
.profile-auth{display:flex;flex-direction:column;gap:8px}
.auth-btn{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-height:42px;padding:8px 14px;
  border:1px solid var(--m-outline);border-radius:14px;
  background:transparent;color:var(--m-primary);
  font:600 14px/1.25 "Barlow",system-ui,sans-serif;text-align:left;cursor:pointer;
}
.auth-btn:hover{background:var(--m-hover)}
.auth-btn:disabled{opacity:.45;cursor:default}
.soon{
  flex:none;padding:2px 8px;border-radius:9px;
  background:var(--m-s-cont);color:var(--m-on-variant);
  font-size:11px;font-weight:600;
}

/* Подписка: будущая цена зачёркнута, рядом та, что действует сейчас */
/* Метка над значением, а не рядом: в узкой карточке длинная подпись
   иначе ломается пополам и тянет за собой дату */
.profile-plan{margin-top:18px}
.profile-plan .start-row{flex-direction:column;align-items:flex-start;gap:2px}
.price-was{color:var(--m-on-variant);text-decoration:line-through}
