.project-page {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 5%, rgba(77, 225, 255, .08), transparent 24%),
    linear-gradient(180deg, #060a0f 0, #0a1118 440px, #081018 100%);
  color: var(--ib-text);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  border-radius: var(--ib-radius-sm);
  background: var(--ib-yellow);
  color: var(--ib-ink);
  padding: 10px 16px;
  font-weight: 800;
  transition: transform var(--ib-speed-fast);
}
.skip-link:focus { transform: translateY(0); }

.project-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  border-bottom: 1px solid var(--ib-line);
  background: rgba(5, 8, 12, .94);
  backdrop-filter: blur(18px);
}
.project-topbar-inner {
  width: min(calc(100% - 40px), var(--ib-max));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #f5f8fa; font-family: var(--ib-font-display); font-size: 13px; font-weight: 700; letter-spacing: .075em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(244, 196, 0, .6); border-radius: 7px; background: #10161c; color: var(--ib-yellow); font-size: 20px; }
.brand strong { color: var(--ib-yellow); }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.topbar-actions > a { color: #9aabb7; font-size: 13px; font-weight: 700; }
.topbar-actions > a:hover { color: #fff; }
.secure-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(72, 213, 151, .24); border-radius: 999px; background: rgba(72, 213, 151, .07); color: #c8f7e2; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.secure-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ib-success); box-shadow: 0 0 12px var(--ib-success); }

.project-shell { width: min(calc(100% - 40px), var(--ib-max)); margin-inline: auto; padding: 70px 0 110px; }
.project-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr); align-items: end; gap: 70px; margin-bottom: 56px; }
.project-intro h1 { margin: 0; color: #f6f9fb; font-size: clamp(2.8rem, 5.3vw, 5.6rem); letter-spacing: -.06em; }
.project-intro > p { margin: 0 0 8px; color: #9badb9; font-size: 16px; line-height: 1.75; }
.project-intro > p strong { color: #e9f1f5; }

.project-flow { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 24px; }
.project-progress {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid #263643;
  border-radius: var(--ib-radius-md);
  background: #0c141c;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}
.progress-head { display: flex; justify-content: space-between; gap: 14px; padding: 20px 20px 13px; font-family: var(--ib-font-mono); font-size: 9px; letter-spacing: .1em; }
.progress-head span { color: #708494; }
.progress-head b { color: var(--ib-cyan); }
.progress-track { height: 3px; margin: 0 20px 9px; overflow: hidden; border-radius: 3px; background: #1b2934; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ib-yellow), var(--ib-cyan)); transition: width var(--ib-speed) var(--ib-ease); }
.project-progress ol { padding: 0 12px; margin: 0; list-style: none; }
.step-link { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; min-height: 72px; padding: 10px 8px; border-bottom: 1px solid #1d2b35; color: #738694; }
.step-link > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #314553; border-radius: 50%; font-family: var(--ib-font-mono); font-size: 9px; }
.step-link b,.step-link small { display: block; }
.step-link b { color: #92a3af; font-size: 12px; }
.step-link small { margin-top: 3px; color: #617482; font-size: 9px; }
.step-link.active { color: var(--ib-yellow); }
.step-link.active > span { border-color: var(--ib-yellow); background: rgba(244, 196, 0, .1); color: var(--ib-yellow); box-shadow: 0 0 20px rgba(244, 196, 0, .08); }
.step-link.active b { color: #f2f7fa; }
.step-link.complete > span { border-color: rgba(72, 213, 151, .5); background: rgba(72, 213, 151, .1); color: var(--ib-success); }
.step-link.complete > span::after { content: "✓"; }
.step-link.complete > span { font-size: 0; }
.step-link.complete > span::after { font-size: 12px; }
.draft-note { display: flex; gap: 11px; margin: 18px; padding: 14px; border: 1px solid #23333f; border-radius: 9px; background: #101a22; }
.draft-note > span { color: var(--ib-success); font-size: 12px; }
.draft-note p { margin: 0; }
.draft-note b,.draft-note small { display: block; }
.draft-note b { color: #c9d5dc; font-size: 10px; }
.draft-note small { margin-top: 4px; color: #758895; font-size: 9px; line-height: 1.45; }

#project-form { min-width: 0; }
.form-alert { margin-bottom: 16px; padding: 15px 17px; border: 1px solid rgba(255, 107, 115, .36); border-left: 4px solid var(--ib-error); border-radius: 9px; background: #251218; color: #ffdadd; font-size: 13px; font-weight: 700; }
.form-alert.success-alert { border-color: rgba(72, 213, 151, .36); border-left-color: var(--ib-success); background: #0c2119; color: #d7ffeb; }

.project-panel {
  position: relative;
  display: block;
  min-height: 580px;
  padding: clamp(26px, 4.5vw, 54px);
  border: 1px solid #293b49;
  border-radius: var(--ib-radius-lg);
  background: #101922;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.project-panel::before { content: ""; position: absolute; inset: 0 auto auto 7%; width: 34%; height: 1px; background: linear-gradient(90deg, transparent, var(--ib-cyan), transparent); opacity: .7; }
.panel-heading { max-width: 730px; margin-bottom: 32px; }
.panel-heading > span { display: block; margin-bottom: 13px; color: var(--ib-cyan); font-family: var(--ib-font-mono); font-size: 10px; letter-spacing: .12em; }
.panel-heading h2 { margin: 0; color: #f5f8fa; font-size: clamp(2rem, 3.6vw, 3.35rem); letter-spacing: -.045em; }
.panel-heading p { margin: 14px 0 0; color: #91a3af; font-size: 15px; line-height: 1.7; }

.context-note { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 28px; padding: 15px 17px; border: 1px solid rgba(77, 225, 255, .22); border-radius: 10px; background: #0b1b23; }
.context-note > span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(77, 225, 255, .13); color: var(--ib-cyan); font-family: var(--ib-font-mono); font-size: 11px; font-weight: 800; }
.context-note p { margin: 0; color: #a8bac5; font-size: 12px; line-height: 1.55; }
.context-note strong { color: #e6eef2; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { min-height: 142px; display: grid; grid-template-columns: 30px 1fr; align-content: start; gap: 7px 13px; padding: 18px; border: 1px solid #304351; border-radius: 12px; background: #141f29; color: #dbe5ea; text-align: left; cursor: pointer; transition: border-color var(--ib-speed), background var(--ib-speed), transform var(--ib-speed), box-shadow var(--ib-speed); }
.choice:hover { transform: translateY(-2px); border-color: #577083; background: #17242f; }
.choice > span { grid-row: 1 / span 2; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #3a5060; border-radius: 50%; color: #7f94a3; font-family: var(--ib-font-mono); font-size: 9px; }
.choice strong { color: #ecf3f6; font-size: 14px; }
.choice small { color: #8498a6; font-size: 11px; line-height: 1.5; }
.choice.selected { border-color: var(--ib-yellow); background: #1d211e; box-shadow: 0 0 0 3px rgba(244, 196, 0, .08); }
.choice.selected > span { border-color: var(--ib-yellow); background: var(--ib-yellow); color: var(--ib-ink); }
.choice.selected strong { color: #fff; }

.panel-field { margin-top: 26px; }
.ib-field { position: relative; }
.ib-field > b { color: var(--ib-yellow); }
.ib-field > em { justify-self: end; position: absolute; top: 0; right: 0; }
.ib-field > small { color: #708491; font-size: 10px; font-weight: 500; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #263642; }
.panel-actions:has(.ib-btn:only-child) { justify-content: flex-end; }
.required-note { color: #718491; font-size: 10px; }

.dropzone {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 34px;
  border: 1px dashed #4d6576;
  border-radius: 16px;
  background:
    linear-gradient(rgba(77, 225, 255, .025), rgba(77, 225, 255, .025)),
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(121, 162, 183, .035) 33px),
    #0c151d;
  color: #eaf2f5;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ib-speed), background var(--ib-speed), transform var(--ib-speed);
}
.dropzone:hover,.dropzone.drag { border-color: var(--ib-cyan); background-color: rgba(77, 225, 255, .04); transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 6px; border: 1px solid #456071; border-radius: 16px; background: #15232d; color: var(--ib-cyan); font-size: 25px; box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.dropzone b { font-family: var(--ib-font-display); font-size: 18px; }
.dropzone > span:not(.drop-icon) { color: #91a4b1; font-size: 12px; }
.dropzone small { margin-top: 8px; color: #718592; font-size: 10px; }
.dropzone em { margin-top: 10px; color: var(--ib-yellow); font-size: 10px; font-style: normal; font-weight: 800; }
.file-list { display: grid; gap: 9px; margin-top: 18px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; padding: 10px 12px 10px 16px; border: 1px solid #2d404e; border-radius: 10px; background: #131f29; }
.file-item > div { min-width: 0; }
.file-item b,.file-item small { display: block; }
.file-item b { overflow: hidden; color: #e7eef2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-item small { margin-top: 4px; color: #718693; font-size: 9px; }
.file-item button { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #3d4f5b; border-radius: 8px; background: #0d151c; color: #aebdc6; cursor: pointer; }
.file-item button:hover { border-color: var(--ib-error); color: var(--ib-error); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.full-field { grid-column: 1 / -1; }
.optional-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding: 14px 16px; border: 1px solid #304553; border-radius: 9px; background: #121e27; }
.optional-banner span { flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; background: rgba(142, 124, 255, .13); color: #b8abff; font-family: var(--ib-font-mono); font-size: 9px; }
.optional-banner p { margin: 0; color: #8fa1ad; font-size: 11px; }

.review { overflow: hidden; border: 1px solid #2d404d; border-radius: 13px; background: #0c141b; }
.review-row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 16px 20px; border-bottom: 1px solid #253540; }
.review-row:last-child { border: 0; }
.review-row span { color: #758996; font-size: 11px; }
.review-row b { color: #e4edf1; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.privacy { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 18px; border: 1px solid #30434f; border-radius: 10px; background: #121d25; color: #9aacb7; cursor: pointer; }
.privacy input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--ib-yellow); }
.privacy b { display: block; margin-bottom: 4px; color: #e4edf1; font-size: 12px; }
.privacy span { font-size: 10px; line-height: 1.55; }
.submit-note { display: flex; gap: 12px; margin-top: 15px; color: #7f93a0; }
.submit-note > span { color: var(--ib-cyan); }
.submit-note p { margin: 0; }
.submit-note b,.submit-note small { display: block; }
.submit-note b { color: #b8c7d0; font-size: 10px; }
.submit-note small { margin-top: 3px; font-size: 9px; }

.success { min-height: 620px; display: grid; align-content: center; justify-items: center; text-align: center; }
.success::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(72, 213, 151, .08); filter: blur(70px); pointer-events: none; }
.success > * { position: relative; z-index: 1; }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 26px; border: 1px solid rgba(72, 213, 151, .55); border-radius: 50%; background: rgba(72, 213, 151, .1); color: var(--ib-success); font-size: 32px; box-shadow: 0 0 32px rgba(72, 213, 151, .12); }
.success h2 { max-width: 680px; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.05em; }
.success > p:not(.ib-kicker) { max-width: 650px; margin: 22px 0; color: #92a5b1; }
.reference-card { min-width: min(100%, 430px); margin: 12px 0 28px; padding: 18px; border: 1px solid #304653; border-radius: 12px; background: #0a1219; }
.reference-card span,.reference-card code { display: block; }
.reference-card span { color: #748895; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.reference-card code { margin-top: 8px; color: var(--ib-yellow); font-family: var(--ib-font-mono); font-size: 17px; font-weight: 800; }

@media (max-width: 940px) {
  .project-intro { grid-template-columns: 1fr; gap: 22px; }
  .project-intro > p { max-width: 680px; }
  .project-flow { grid-template-columns: 1fr; }
  .project-progress { position: static; }
  .project-progress ol { display: grid; grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding: 0 10px 10px; scrollbar-width: thin; }
  .step-link { min-height: 64px; grid-template-columns: 30px 1fr; border-bottom: 0; border-right: 1px solid #1d2b35; }
  .step-link small { display: none; }
  .draft-note { display: none; }
}

@media (max-width: 680px) {
  .project-topbar-inner,.project-shell { width: min(calc(100% - 28px), var(--ib-max)); }
  .project-topbar { height: 68px; }
  .brand { font-size: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .secure-badge { display: none; }
  .topbar-actions { gap: 12px; }
  .topbar-actions > a { font-size: 11px; }
  .project-shell { padding: 46px 0 72px; }
  .project-intro { margin-bottom: 34px; }
  .project-intro h1 { font-size: clamp(2.55rem, 13vw, 3.8rem); }
  .project-progress ol { grid-template-columns: repeat(5, 100px); }
  .step-link { grid-template-columns: 26px 1fr; gap: 7px; padding-inline: 4px; }
  .step-link > span { width: 26px; height: 26px; }
  .step-link b { font-size: 10px; }
  .project-panel { min-height: 0; padding: 23px; border-radius: 14px; }
  .panel-heading { margin-bottom: 24px; }
  .choice-grid,.form-grid { grid-template-columns: 1fr; }
  .choice { min-height: 124px; }
  .dropzone { min-height: 260px; padding: 25px 16px; }
  .panel-actions { display: grid; grid-template-columns: 1fr; }
  .panel-actions .required-note { order: 3; text-align: center; }
  .panel-actions .ib-btn { width: 100%; }
  .review-row { grid-template-columns: 1fr; gap: 5px; padding: 14px 16px; }
  .optional-banner { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .dropzone:hover { transform: none; }
}
