[hidden] { display: none !important; }

.profile-head .wrap,
.workspace-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.profile-head .wrap { padding-block: 30px 26px; }
.profile-head h1 { margin: 6px 0; }
.profile-head p { max-width: 680px; margin: 0; color: var(--bone-2); }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr);
  gap: 24px;
  padding-block: 28px 72px;
  align-items: start;
}
.profile-form,
.profile-side-card,
.workspace-first-work {
  border: 1px solid var(--line);
  background: var(--ink-1, #111);
}
.profile-form { padding: clamp(18px, 3vw, 34px); }
.profile-progress {
  display: flex;
  list-style: none;
  padding: 0 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.profile-progress li { display: flex; align-items: center; gap: 9px; color: var(--muted, #929292); }
.profile-progress li span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 12px var(--f-mono);
}
.profile-progress li.is-current { color: var(--bone); }
.profile-progress li.is-current span,
.profile-progress li.is-done span { color: var(--bone); border-color: var(--red, #c75c4d); background: #612b25; }
.profile-form h2,
.profile-side-card h2,
.workspace-first-work h2 { margin: 0; font-size: 22px; font-weight: 600; }
.profile-intro { max-width: 690px; color: var(--bone-2); line-height: 1.55; margin: 8px 0 22px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.profile-field,
.profile-note-field { display: grid; gap: 7px; color: var(--bone); font-size: 14px; }
.profile-field span { display: flex; justify-content: space-between; gap: 12px; }
.profile-field small,
.profile-note-field small { color: var(--muted, #999); font-size: 12px; }
.profile-field input,
.profile-note-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0a0a0a;
  color: var(--bone);
  font: inherit;
  padding: 11px 12px;
}
.profile-field input:focus,
.profile-note-field textarea:focus { outline: 2px solid #c75c4d; outline-offset: 1px; }
.profile-workflows { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.profile-workflows legend { width: 100%; margin-bottom: 12px; color: var(--bone); font-weight: 600; }
.profile-workflows legend span { float: right; color: var(--muted, #999); font-size: 12px; font-weight: 400; }
.profile-workflow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  padding: 14px;
  cursor: pointer;
}
.profile-workflow:has(input:checked) { border-color: #a9574d; background: #19100f; }
.profile-workflow input { margin: 3px 0 0; accent-color: #c75c4d; }
.profile-workflow span { display: grid; gap: 3px; }
.profile-workflow b { font-weight: 600; }
.profile-workflow small { color: var(--bone-2); line-height: 1.4; }
.profile-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.profile-form-actions > span { max-width: 390px; color: var(--muted, #999); font-size: 12px; line-height: 1.5; }
.profile-form-actions-secondary { flex-wrap: wrap; }
.profile-form-actions-secondary > span { flex: 1; }
.profile-inline-error { margin: 12px 0 0; color: #ff9b8e; font-size: 13px; }
.profile-message { margin: 0 0 18px; color: #b9d7b7; font-size: 13px; }
.profile-message.is-error { color: #ff9b8e; }
.profile-knowledge-group { display: grid; gap: 16px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-knowledge-group h3 { margin: 0; font-size: 16px; }
.profile-note-field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.profile-note-field small { line-height: 1.45; }
.profile-side { display: grid; gap: 12px; position: sticky; top: 82px; }
.profile-side-card { padding: 20px; }
.profile-side-card h2 { margin-top: 9px; font-size: 19px; }
.profile-side-card p { color: var(--bone-2); line-height: 1.55; font-size: 14px; margin-bottom: 0; }
.profile-side-note { background: #151211; }
.profile-side-note b { font-size: 13px; }
.workspace-head-actions { justify-content: flex-end; }
.workspace-first-work { margin: 20px 0; padding: clamp(20px, 3vw, 30px); }
.workspace-first-work h2 { margin-top: 7px; }
.workspace-first-work > p { color: var(--bone-2); line-height: 1.5; margin: 8px 0 18px; }
.workspace-first-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.workspace-edit-link { margin-left: 4px; color: var(--bone-2); font-size: 13px; }
.workspace-load-error { padding-block: 60px; }
.workspace-load-error p { max-width: 650px; color: var(--bone-2); }
.profile-guidance {
  margin: 0 auto 18px;
  width: min(100% - 36px, 1380px);
  border: 1px solid var(--line);
  background: #12100f;
}
.profile-guidance summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 13px 16px; }
.profile-guidance summary span { font-weight: 600; }
.profile-guidance summary small { color: var(--muted, #999); font-size: 12px; text-align: right; }
.profile-guidance-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.profile-guidance-content > div { border-left: 2px solid #8c4c43; padding-left: 11px; }
.profile-guidance-content b { font-size: 12px; color: var(--bone-2); }
.profile-guidance-content p { margin: 5px 0 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; padding-top: 16px; }
  .profile-side { position: static; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-form-actions { align-items: stretch; flex-direction: column; }
  .profile-form-actions .btn { width: 100%; }
  .profile-progress { gap: 14px; }
  .profile-progress li { font-size: 12px; }
  .profile-head .wrap { align-items: flex-start; flex-direction: column; }
  .workspace-head-actions { width: 100%; flex-wrap: wrap; }
  .workspace-head-actions .btn { flex: 1; text-align: center; }
  .profile-guidance summary { align-items: flex-start; flex-direction: column; }
  .profile-guidance summary small { text-align: left; }
}
