#portalView,#overviewView,#projectView{display:none}

#overviewView,#projectView{padding:0}
input.invalid{border-color:var(--negative)}
.grow{flex:1}
.sub{color:var(--muted);line-height:1.6;font-size:15px}

.badge{display:inline-block;font-size:12px;font-weight:500;color:var(--muted);
  background:var(--bone-2);border-radius:100px;padding:4px 12px;white-space:nowrap;line-height:1.4}
.badge.run{color:#6f5200;background:#f6e6a6}
.badge.ok{color:var(--accent);background:rgba(0,137,112,.1)}
.badge.gray{color:var(--muted);background:var(--bone-2)}
.badge.warn{color:var(--negative);background:rgba(184,67,60,.09)}

.pbar{position:sticky;top:0;z-index:30;background:var(--ink);border-bottom:1px solid var(--line-ink)}
.pbar-in{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad);
  display:flex;align-items:center;gap:16px;height:var(--navh)}
.ptag{font-size:12.5px;color:var(--muted-ink);border:1px solid var(--line-ink);
  border-radius:100px;padding:3px 11px;white-space:nowrap}
.userchip{display:flex;align-items:center;gap:10px;color:var(--on-ink)}
.userchip b{display:block;font-size:13.5px;font-weight:600;letter-spacing:-.02em}
.userchip span{display:block;font-size:12px;color:var(--muted-ink)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;
  display:grid;place-items:center;font-size:12.5px;font-weight:600;flex:none}
.pbar .btn-ghost{color:var(--on-ink);border-color:var(--line-ink)}
.pbar .btn-ghost:hover{border-color:rgba(247,247,244,.42)}
@media(max-width:700px){.userchip > div{display:none}.ptag{display:none}}

.portal{padding:44px 0 96px}
.phead{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;margin-bottom:30px}
.phead h1{font-size:clamp(30px,3.4vw,44px)}
.phead .sub{margin-top:12px;max-width:64ch}

.pcard{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-card);
  padding:30px 28px;margin-bottom:22px}
.pcard h2{font-size:21px;letter-spacing:-.03em;margin-bottom:20px}
.pcard h2 b{font-weight:500;color:var(--muted)}

.projects{display:grid;gap:22px}
@media(min-width:720px){.projects{grid-template-columns:1fr 1fr}}
@media(min-width:1080px){.projects{grid-template-columns:repeat(3,1fr)}}
.project-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-card);overflow:hidden;text-decoration:none;color:var(--text);
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.project-card:hover{border-color:var(--line-strong);transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(26,23,22,.09)}
.pc-img{display:block;aspect-ratio:16/10;background:var(--bone-2);overflow:hidden}
.pc-img img{width:100%;height:100%;object-fit:cover;display:block}
.pc-body{display:flex;flex-direction:column;gap:16px;padding:20px 22px 22px;flex:1}
.pc-head{display:flex;flex-direction:column;gap:2px}
.pc-head b{font-family:var(--display);font-size:19px;font-weight:500;letter-spacing:-.03em;line-height:1.2}
.pc-ort{font-size:13px;color:var(--muted)}
.pc-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;
  padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pc-facts > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.pc-facts i{font-style:normal;font-size:11.5px;color:var(--muted)}
.pc-facts b{font-family:var(--display);font-size:14.5px;font-weight:500;letter-spacing:-.024em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-status{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.pc-sub{font-size:13px;color:var(--muted);line-height:1.45}

.pc-cta{margin-top:auto;font-size:13.5px;font-weight:600;color:var(--signal)}

.project-grid{display:grid;gap:24px;align-items:start}
@media(min-width:960px){
  .project-grid{grid-template-columns:330px minmax(0,1fr);gap:32px}
  .project-side{position:sticky;top:calc(var(--navh) + 20px)}
}
.project-main{min-width:0}
.project-main .pcard:last-child{margin-bottom:0}
.info-card{margin-bottom:0}

.duo{display:grid;gap:22px;margin-bottom:22px}
.duo .pcard{margin-bottom:0}

.info-card{padding:0;overflow:hidden}
.ic-img{display:block;aspect-ratio:16/10;background:var(--bone-2)}
.ic-img img{width:100%;height:100%;object-fit:cover;display:block}
.ic-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px}
.ic-body .badge{align-self:flex-start;margin-bottom:4px}
.ic-body h2{font-size:22px;letter-spacing:-.032em;margin:0;line-height:1.15}
.ic-ort{font-size:13.5px;color:var(--muted)}
.ic-facts{margin:12px 0 0;display:flex;flex-direction:column}
.ic-facts > div{display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  padding:9px 0;border-top:1px solid var(--line);font-size:13.5px}
.ic-facts dt{color:var(--muted);flex:none}
.ic-facts dd{margin:0;font-family:var(--display);font-weight:500;letter-spacing:-.024em;
  text-align:right;font-size:14px}

.app-card{padding:22px 22px 20px;display:flex;flex-direction:column;gap:12px}
.app-frame{display:block;border-radius:var(--r);overflow:hidden;border:1px solid var(--line);
  aspect-ratio:1656/1036;background:var(--bone)}
.app-frame img{width:100%;height:100%;object-fit:cover;display:block}
.app-note{font-size:12.5px;color:var(--muted);line-height:1.5}
.app-card.is-pending .app-frame{opacity:.55}

.contact-card{padding:20px 22px 22px;display:flex;flex-direction:column;gap:14px}
.cc-lab{font-size:12.5px;font-weight:500;color:var(--muted)}
.cc-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.cc-row{display:flex;align-items:center;gap:14px;min-width:0}
.cc-row > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.cc-row b{font-family:var(--display);font-size:17px;font-weight:500;letter-spacing:-.028em}
.cc-row span{font-size:13px;color:var(--muted)}
.cp-avatar{width:52px;height:52px;border-radius:50%;flex:none;overflow:hidden;
  background:var(--ink);color:var(--on-ink);display:grid;place-items:center;
  font-family:var(--display);font-size:16px;font-weight:600;letter-spacing:-.01em}
.cp-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.cc-btns{display:flex;flex-wrap:wrap;gap:8px}
.cc-btns .btn{font-size:13px;padding:6px 13px}

.pk-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;
  padding:16px 18px;background:var(--bone);border-radius:var(--r)}
.pk-ist{display:flex;flex-direction:column;gap:2px;flex:1;min-width:200px}
.pk-ist b{font-family:var(--display);font-size:18px;font-weight:500;letter-spacing:-.03em}
.pk-ist span{font-size:13.5px;color:var(--muted)}
.pk-umfang{font-size:12.5px}
.pk-note{margin-top:14px;font-size:13px;color:var(--muted);line-height:1.55;max-width:70ch}

.progress-line{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.pbar-track{flex:1;height:4px;background:var(--bone-2);border-radius:2px;overflow:hidden}
.pbar-fill{height:100%;width:100%;background:var(--accent);border-radius:2px;
  transform:scaleX(0);transform-origin:left;transition:transform .6s ease}
.progress-line b{font-family:var(--display);font-size:16px;font-weight:500;
  letter-spacing:-.028em;font-variant-numeric:tabular-nums}
.steps{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden}
.step{background:var(--paper);padding:13px 16px;display:flex;align-items:center;gap:13px;font-size:14px}
.sdot{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-size:12px;font-weight:600;color:var(--muted);border:1px solid var(--line-strong);
  font-variant-numeric:tabular-nums}
.step.done .sdot{background:var(--accent);border-color:var(--accent);color:#fff}
.step.current .sdot{border-color:var(--ink);color:var(--text)}
.stxt{display:flex;flex-direction:column;gap:1px;min-width:0}
.stxt b{font-weight:500}
.stxt span{font-size:12.5px;color:var(--muted);line-height:1.45}
.sdate{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap;flex:none}
.step.current .sdate{color:var(--accent);font-weight:500}
@media(max-width:520px){.stxt span{display:none}}
.now-box{margin-top:18px;padding:16px 18px;background:var(--bone);border-radius:var(--r);
  font-size:14px;color:var(--muted);line-height:1.6}
.now-box b{color:var(--text)}

.req{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.req:last-child{border-bottom:0}
.rico{width:36px;height:36px;flex:none;border-radius:var(--r);background:var(--bone);
  display:grid;place-items:center;color:var(--muted)}
.rico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.rtxt{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.rtxt b{font-size:14.5px;font-weight:500}
.rtxt span{font-size:12.5px;color:var(--muted);line-height:1.45}
.req .badge{flex:none}

.dropzone{margin-top:18px;border:1px dashed var(--line-strong);border-radius:var(--r-card);
  padding:34px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;
  cursor:pointer;transition:border-color .18s ease,background .18s ease}
.dropzone:hover{border-color:var(--accent);background:var(--bone)}
.dropzone svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--muted)}
.dropzone b{font-size:15px;font-weight:600;letter-spacing:-.02em}
.dropzone span{font-size:12.5px;color:var(--muted);max-width:52ch;line-height:1.5}
.dropzone.drag{border-color:var(--accent);background:var(--bone)}
.dropzone.is-locked{opacity:.55;cursor:not-allowed;border-style:solid}
.dropzone.is-locked:hover{border-color:var(--line-strong);background:transparent}

.frow{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px}
.fico{width:34px;height:24px;flex:none;border-radius:3px;background:var(--bone-2);color:var(--muted);
  font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  display:grid;place-items:center}
.fname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsize{font-size:12.5px;color:var(--muted);white-space:nowrap}
.frow select{width:auto;padding:6px 9px;font-size:13px}
.frow button{appearance:none;background:none;border:1px solid var(--line);border-radius:var(--r);
  width:28px;height:28px;cursor:pointer;color:var(--muted);font-size:16px;line-height:1}
.frow button:hover{border-color:var(--text);color:var(--text)}
.hrow{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:13px;color:var(--muted)}

.upbar{height:3px;background:var(--bone-2);border-radius:2px;margin-top:14px;overflow:hidden;display:none}
.upbar i{display:block;height:100%;width:100%;background:var(--accent);
  transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.upload-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
.upload-note{font-size:12.5px;color:var(--muted)}
.history{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);display:none}
.history > p{font-size:12.5px;font-weight:500;color:var(--muted);margin-bottom:10px}

.msg-grid{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.contact-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px;
  padding-top:18px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.contact-row b{color:var(--text);font-weight:600}

.proto-note{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad) 22px;
  font-size:12.5px;color:var(--muted);line-height:1.6}

.pfoot{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad) 60px;
  display:flex;flex-wrap:wrap;gap:18px;font-size:12.5px;color:var(--muted);
  background:transparent;border-top:0}
.pfoot a{color:inherit}
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);
  background:var(--ink);color:var(--on-ink);padding:12px 20px;border-radius:var(--r);
  font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:60}
.toast.show{opacity:1;transform:translateX(-50%)}
.toast{display:flex;align-items:center;gap:10px}
.toast svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
