.portal-body { min-height: 100vh; padding-top: 108px; background: radial-gradient(ellipse at 76% 6%, #10234a66, transparent 44%), #050507; }
[hidden] { display: none !important; }
.portal-header { line-height: 1.5; }
.portal-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.portal-main { max-width: 1380px; padding: 0 28px; margin: 0 auto; min-height: 75vh; }
.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 10%; padding: 80px 0 100px; }
.eyebrow, .card-kicker { color: #9abfff; font-size: 10px; font-weight: 600; letter-spacing: .18em; margin-bottom: 20px; }
.blue-dot { display: inline-block; width: 7px; height: 7px; background: #4c92ff; border-radius: 50%; box-shadow: 0 0 15px #3b82f6; margin-right: 9px; }
.login-intro h1 { font-size: clamp(76px, 9vw, 132px); font-weight: 400; line-height: .91; text-transform: uppercase; letter-spacing: -.015em; }
.login-intro h1 span { color: #438bff; font-family: inherit; }
.intro-copy { color: #a6abba; max-width: 440px; font-size: 16px; margin-top: 28px; line-height: 1.8; }
.login-benefits { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; font-size: 11px; color: #8d96aa; }
.panel { border: 1px solid #ffffff18; background: linear-gradient(145deg, #151820aa, #0b0c10dd); border-radius: 22px; }
.login-card { padding: 44px; box-shadow: 0 20px 90px #0007; transition: border-color .25s, box-shadow .25s; }
.login-card h2 { font-size: 38px; font-weight: 400; margin: 16px 0; }
.login-card > p { font-size: 14px; color: #a6abba; line-height: 1.8; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.google-button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 12px; background: white; border: 0; border-radius: 100px; color: #16171a; font-size: clamp(12px, 3.4vw, 14px); font-weight: 600; line-height: 20px; margin: 30px 0 14px; min-height: 50px; transition: background .2s, color .2s, box-shadow .2s; }
.google-button > svg { flex-shrink: 0; }
.google-button:focus-visible { outline: 3px solid #83b4ff; outline-offset: 4px; }
.login-card .login-status { font-size: 12px; min-height: 3.6em; margin-bottom: 14px; }
.login-card.is-connecting { border-color: #4b8eff80; box-shadow: 0 20px 90px #0007, 0 0 48px #2878ef20; }
.is-connecting .google-button { opacity: 1; color: #fff; background: linear-gradient(115deg, #245cda, #337ef2); box-shadow: 0 8px 28px #2878ef40, inset 0 1px #ffffff30; }
.is-connecting .google-button::after { content: ''; position: absolute; bottom: 0; left: -40%; width: 40%; height: 3px; background: linear-gradient(90deg, transparent, #c5e2ff, transparent); animation: login-sweep 1.8s ease-in-out infinite; }
.is-connecting .login-status { color: #b5d3ff; }
.login-spinner { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid #ffffff40; border-top-color: #fff; border-right-color: #fff; border-radius: 50%; animation: login-spin .85s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-sweep { to { transform: translateX(350%); } }
@media (prefers-reduced-motion: reduce) {
  .login-card, .google-button { transition: none; }
  .login-spinner, .is-connecting .google-button::after { animation: none; }
  .is-connecting .google-button::after { left: 30%; }
}
.login-divider { height: 1px; background: #ffffff14; margin: 28px 0; }
.login-card .small-copy { font-size: 12px; }
.text-link { color: #9abfff; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.portal-footer { max-width: 1324px; margin: 30px auto 0; border-top: 1px solid #ffffff15; padding: 24px 28px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #858d9f; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.dashboard-heading .eyebrow { margin-bottom: 6px; }
.dashboard-heading h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.1; font-weight: 400; }
.dashboard-heading .muted { font-size: 11px; margin-top: 6px; }
.muted { color: #a6abba; font-size: 13px; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.primary-button, .secondary-button, .icon-button { border-radius: 100px; min-height: 44px; padding: 11px 18px; font-size: 12px; font-weight: 600; border: 1px solid #ffffff25; color: white; background: #ffffff07; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button { background: #2878ef; border-color: #5596f9; box-shadow: 0 4px 20px #145fff20; }
.primary-button:hover { background: #3987ff; }
.secondary-button:hover, .icon-button:hover { background: #ffffff10; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.summary-item { padding: 12px; display: flex; flex-direction: column; align-items: start; gap: 8px; border-radius: 12px; background: #ffffff03; }
.summary-item p { color: #939daf; font-size: 10px; }
.summary-item strong { font-family: 'Bebas Neue', sans-serif; font-size: 28px; font-weight: 400; line-height: 1; }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.project-sidebar { padding: 22px 16px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-top h2 { font: 600 15px 'Helvetica Neue', Arial, sans-serif; }
.count-pill { border: 1px solid #ffffff20; border-radius: 99px; padding: 1px 9px; font-size: 11px; color: #a9bbd7; }
input, select, textarea { width: 100%; min-width: 0; color: #eef2fa; border: 1px solid #ffffff24; border-radius: 10px; padding: 11px 12px; background: #0c0f16; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #737f93; }
textarea { resize: vertical; }
.project-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; max-height: 480px; overflow: auto; }
.project-choice { display: block; text-align: left; width: 100%; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 15px 12px; }
.project-choice[aria-pressed=true] { background: #2364ca22; border-color: #4b8fff66; }
.project-choice:hover { background: #ffffff08; }
.project-choice strong { display: block; font-size: 13px; margin-bottom: 5px; overflow-wrap: anywhere; }
.project-choice small { display: block; font-size: 11px; color: #96a2b7; overflow-wrap: anywhere; }
.project-pending { display: inline-block; margin-top: 8px; font-size: 10px; color: #a5c8ff; }
.mobile-project-picker { display: none; }
#new-project { width: 100%; }
.sidebar-help { border-top: 1px solid #ffffff14; margin-top: 28px; padding-top: 20px; display: flex; align-items: baseline; }
.sidebar-help p { font-size: 11px; color: #a6abba; line-height: 1.8; }
.sidebar-help a { color: #97beff; }
.project-detail { display: grid; gap: 18px; min-width: 0; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0 2px; }
.project-heading > div:first-child { min-width: 0; }
.project-heading .eyebrow { margin-bottom: 6px; }
.project-heading h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.project-heading .muted { font-size: 11px; margin-top: 6px; }
.project-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 45%; }
.project-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ffffff18; }
.project-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; color: #9aa9bf; background: transparent; font-size: 13px; font-weight: 600; }
.project-tabs button:hover { color: #fff; background: #ffffff05; }
.project-tabs button[aria-selected=true] { color: #a7caff; border-bottom-color: #5495ff; background: #337be40c; }
.project-tabs .count-pill { font-size: 10px; padding: 0 6px; }
[data-project-panel] { scroll-margin-top: 120px; min-width: 0; }
.web-card { overflow: hidden; }
.web-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px; }
.web-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 400; line-height: 1.1; margin-bottom: 6px; overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: #ffffff08; border: 1px solid #ffffff15; color: #adb6c6; font-size: 10px; white-space: nowrap; }
.status-badge.completed { color: #8ae9b1; background: #1e9b5d16; border-color: #4ade8030; }
.status-badge.in_progress { color: #9dc3ff; background: #3b82f61a; border-color: #3b82f640; }
.status-badge.waiting { color: #f8ce8a; background: #dca24112; border-color: #dca24135; }
.web-preview { margin: 0 24px; border: 1px solid #ffffff1a; border-radius: 12px; overflow: hidden; background: #080b12; }
.browser-bar { padding: 9px 14px; border-bottom: 1px solid #ffffff13; font-size: 10px; color: #8d99ad; display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.browser-dots { flex: 0 0 auto; letter-spacing: 3px; color: #555e70; }
.web-preview img { width: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.web-placeholder { min-height: 190px; display: grid; place-content: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at center, #17346177, transparent 70%); }
.web-placeholder strong { font: 400 clamp(28px, 5vw, 56px) 'Bebas Neue', sans-serif; overflow-wrap: anywhere; }
.web-placeholder p { color: #8996ab; font-size: 12px; }
.web-card-bottom { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.web-card-bottom p { max-width: 430px; }
.milestones-panel, .activity-panel { padding: 28px; }
.milestones-panel > .section-top { margin-bottom: 16px; }
.milestones-panel .eyebrow { margin-bottom: 6px; }
.milestones-panel .section-top h2 { font-size: 18px; }
.timeline-percentage { font: 400 42px 'Bebas Neue', sans-serif; color: #90baff; line-height: 1; }
.timeline-percentage small { font: 500 14px 'Helvetica Neue', Arial, sans-serif; margin-left: 3px; }
.timeline-focus { display: flex; gap: 4px; align-items: baseline; padding: 16px 18px; background: #2b71d516; border: 1px solid #477fd33d; border-radius: 12px; margin-bottom: 26px; }
.timeline-focus .blue-dot { flex-shrink: 0; }
.timeline-focus p { font-size: 9px; letter-spacing: .12em; color: #94baff; margin-bottom: 4px; }
.timeline-focus strong { font-size: 14px; font-weight: 600; }
.timeline-focus span:not(.blue-dot) { display: block; color: #a7b6cb; font-size: 12px; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.timeline-focus.waiting { border-color: #dca24155; background: #dca2410b; }
.timeline-focus.waiting p { color: #f8ce8a; }
.milestone-list { list-style: none; padding: 0; margin: 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: #95a5bd; margin-bottom: 8px; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 100px; overflow: hidden; margin-bottom: 22px; background: #ffffff12; accent-color: #438bff; }
progress::-webkit-progress-bar { background: #ffffff12; }
progress::-webkit-progress-value { background: #438bff; border-radius: 100px; }
progress::-moz-progress-bar { background: #438bff; }
.milestone { position: relative; padding: 0 0 22px 36px; }
.milestone:last-child { padding-bottom: 0; }
.milestone:not(:last-child)::before { content: ''; position: absolute; top: 22px; bottom: 0; left: 10px; width: 1px; background: #ffffff17; }
.step-icon { position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-content: center; font-size: 10px; border: 1px solid #ffffff24; border-radius: 50%; color: #9aa6ba; background: #131720; }
.milestone.completed .step-icon { color: #81e8a7; border-color: #42bc7850; background: #13281e; }
.milestone.in_progress .step-icon { color: #9dc5ff; border-color: #568dfa; background: #152b50; }
.milestone-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; justify-content: space-between; }
.milestone h3 { font-size: 13px; font-weight: 600; }
.milestone.pending h3 { color: #9aa9bf; }
.milestone[aria-current=step] h3 { color: #accdff; }
.milestone p { margin-top: 6px; color: #99a5b9; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.milestone time { color: #75839b; font-size: 10px; }
.milestone-editor { margin-top: 12px; display: grid; gap: 8px; }
.milestone-controls { margin-top: 6px; }
.milestone-controls summary { cursor: pointer; width: fit-content; color: #94b8ed; font-size: 11px; padding: 6px 0; }
.milestone-controls[open] { background: #ffffff03; border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.milestone-editor select, .milestone-editor textarea { font-size: 12px; }
.milestone-editor button { justify-self: start; min-height: 36px; padding: 7px 13px; }
.activity-list { list-style: none; margin-top: 22px; }
.activity-item { border-bottom: 1px solid #ffffff12; padding: 0 0 16px; margin-bottom: 16px; }
.activity-item time { font-size: 10px; color: #7f93b1; }
.activity-item p { font-size: 12px; color: #c1cad8; line-height: 1.7; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-panel form { display: grid; gap: 10px; }
label { display: grid; gap: 7px; font-size: 12px; color: #b9c5d8; }
.empty-state { text-align: center; padding: 70px 24px; }
.empty-state h2 { font-size: 36px; font-weight: 400; margin-bottom: 12px; }
.empty-state p { max-width: 400px; margin: 0 auto 20px; color: #9ba8bd; font-size: 14px; }
.notice, .demo-banner { padding: 14px 20px; border: 1px solid #3b82f644; border-radius: 12px; background: #11213c; font-size: 13px; color: #c7dcff; margin-bottom: 18px; }
.notice.error, .form-error { color: #ffb6b6; }
.demo-banner { max-width: 1324px; margin: 16px auto; background: #322717; border-color: #ab854655; color: #f0ce99; }
.demo-banner a { text-decoration: underline; margin-left: 12px; }
dialog { position: fixed; margin: auto; width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; color: white; background: #10131b; border: 1px solid #ffffff25; border-radius: 22px; padding: 28px; }
dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 34px; font-weight: 400; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.icon-button { width: 44px; padding: 0; font-size: 26px; flex-shrink: 0; }
#project-form { display: grid; gap: 16px; }
.field-help { color: #8393ae; font-size: 11px; margin-top: -10px; }
.form-error { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 99; background: #fff; color: #000; padding: 12px; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid #85b6ff; outline-offset: 4px; }
@media (max-width: 1100px) { .workspace { grid-template-columns: 220px minmax(0,1fr); gap: 20px; } .project-heading { align-items: start; } .project-actions { max-width: 40%; } .project-tabs button { padding-inline: 12px; } .login-layout { gap: 6%; } .login-card { padding: 32px; } }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; gap: 18px; }
  .project-sidebar { padding: 12px 16px; border-radius: 14px; display: flex; gap: 12px; align-items: end; }
  .project-sidebar > .section-top, .project-sidebar > #project-search, .project-list, .sidebar-help, .project-sidebar #summary { display: none; }
  .mobile-project-picker { display: grid; flex: 1; min-width: 0; font-size: 10px; gap: 5px; }
  .mobile-project-picker select { padding: 9px 10px; min-height: 44px; }
  #new-project { width: auto; max-width: 42%; flex-shrink: 0; }
}
@media (max-width: 767px) { .portal-body { padding-top: 84px; } }
@media (max-width: 760px) { .portal-main { padding: 0 16px; } .login-layout { grid-template-columns: 1fr; padding: 44px 0; gap: 36px; } .login-intro h1 { font-size: clamp(70px, 16vw, 110px); } .intro-copy { font-size: 14px; } .login-card { padding: 28px; } .login-benefits { margin-top: 24px; gap: 12px; font-size: 10px; } .dashboard-heading { align-items: start; flex-direction: column; padding-top: 28px; } .summary-grid { gap: 8px; } .summary-item { padding: 16px 12px; flex-direction: column; align-items: start; gap: 10px; } .summary-item p { font-size: 10px; } .summary-item strong { font-size: 30px; } .workspace { grid-template-columns: 1fr; } .project-list { max-height: 220px; } .sidebar-help { display: none; } .web-card-head, .web-card-bottom, .milestones-panel, .activity-panel { padding: 20px; } .web-preview { margin: 0 16px; } .web-card-bottom .primary-button { width: 100%; } .portal-footer { flex-wrap: wrap; justify-content: center; text-align: center; padding: 22px 16px; gap: 12px; } .demo-banner { margin: 12px; } input, select, textarea, .milestone-editor select, .milestone-editor textarea { font-size: 16px; } dialog { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  .dashboard-heading { flex-direction: row; gap: 10px; padding: 18px 0; }
  .dashboard-heading h1 { font-size: 29px; }
  .dashboard-heading .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .dashboard-heading .muted { font-size: 10px; }
  .dashboard-heading .toolbar { flex-direction: column; gap: 4px; flex-shrink: 0; }
  .dashboard-heading .secondary-button { font-size: 10px; min-height: 36px; padding: 7px 11px; }
  .project-heading { gap: 12px; flex-direction: column; }
  .project-heading h2 { font-size: 30px; }
  .project-actions { justify-content: start; max-width: 100%; }
  .project-actions .primary-button, .project-actions .secondary-button { font-size: 11px; min-height: 40px; padding: 9px 14px; }
  .project-detail { gap: 14px; }
  .project-tabs { gap: 0; }
  .project-tabs button { flex: 1; min-width: 0; gap: 4px; padding: 10px 3px; font-size: 11px; }
  .project-tabs .count-pill { font-size: 9px; padding: 0 4px; }
  .milestones-panel, .activity-panel { padding: 20px 16px; }
  .milestones-panel .section-top h2 { font-size: 15px; }
  .timeline-percentage { font-size: 36px; }
  .timeline-focus { padding: 13px; margin-bottom: 22px; }
  .milestone-head { align-items: start; gap: 5px; }
  .milestone h3 { font-size: 12px; }
  .milestone .status-badge { white-space: normal; font-size: 9px; }
  .milestone { padding-left: 32px; }
  #new-project { font-size: 10px; padding-inline: 10px; }
  [data-project-panel] { scroll-margin-top: 90px; }
}
