.portal{grid-template-rows:auto 1fr;min-height:100vh;display:grid}.portal-top{padding:1rem var(--gutter);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;display:flex}.portal-brand{font-family:var(--font-display);font-size:var(--fs-lg);font-weight:500;text-decoration:none}.lang{color:var(--text-dim);border-color:var(--line);background:0 0}.lang:hover{color:var(--text);border-color:var(--text);background:0 0}button{font:inherit;font-size:var(--fs-sm);cursor:pointer;transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease);border:1px solid;border-radius:0;padding:.5rem 1rem;font-weight:500}.portal-main{width:100%;max-width:40rem;padding:4rem var(--gutter) 5rem;margin:0 auto}.portal-main h1{font-family:var(--font-display);letter-spacing:-.02em;font-size:2.5rem;font-weight:500;line-height:1.1}.portal-lead{font-size:var(--fs-lg);color:var(--text-dim);margin-top:1rem;line-height:1.5}.portal-main h2{font-size:var(--fs-md);border-bottom:1px solid var(--text);margin-top:3.5rem;padding-bottom:.75rem;font-weight:600}.steps{counter-reset:step;margin:0;padding:0;list-style:none}.steps li{border-bottom:1px solid var(--line-soft);counter-increment:step;grid-template-columns:2rem 1fr;padding:1rem 0;display:grid}.steps li:before{content:counter(step);font-family:var(--font-display);font-size:var(--fs-lg);color:var(--accent);line-height:1.3}.portal-contact{color:var(--text-dim);margin:2.5rem 0 1rem}.portal-contact a{color:var(--text)}@media (width<=40rem){.portal-main{padding-top:2.5rem}.portal-main h1{font-size:2rem}}.portal-top-actions{gap:.5rem;display:flex}.p-label{color:var(--text-dim);margin:0 0 .6rem}.p-expired{background:var(--accent-soft);color:var(--text);margin:0 0 .6rem;padding:.75rem .9rem}.p-link{margin-top:2.5rem}.p-link-row{gap:.5rem;display:flex}.p-link-row input,.p-write textarea{min-width:0;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:0;flex:auto;padding:.65rem .8rem}.p-link-row input:focus,.p-write textarea:focus{border-color:var(--accent);outline:none}.p-primary{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}.p-primary:hover{color:var(--accent);background:0 0}.p-primary:disabled{opacity:.5;cursor:default}.p-ok{color:var(--ok);font-size:var(--fs-sm);min-height:1.2em;margin:.5rem 0 0}.p-error{color:var(--alert);font-size:var(--fs-sm);min-height:1.2em;margin:.5rem 0 0}.p-dim{color:var(--text-mute)}.p-skeleton{background:var(--bg-elev);height:16rem}.request h1{font-family:var(--font-display);letter-spacing:-.02em;font-size:2.25rem;font-weight:500;line-height:1.1}.stage-note{color:var(--text-dim)}.progress{grid-template-columns:repeat(6,minmax(0,1fr));margin:2rem 0 0;padding:0;list-style:none;display:grid}.step{font-size:var(--fs-xs);color:var(--text-mute);justify-items:start;gap:.5rem;padding-top:.9rem;display:grid;position:relative}.step:before{content:"";background:var(--line);height:1px;position:absolute;top:.3rem;left:0;right:0}.step-dot{background:var(--bg);border:1px solid var(--line);width:.6rem;height:.6rem;margin-top:-.9rem;position:relative}.step-done{color:var(--text-dim)}.step-done:before,.step-now:before{background:var(--accent)}.step-done .step-dot{background:var(--accent);border-color:var(--accent)}.step-now{color:var(--text);font-weight:600}.step-now .step-dot{background:var(--bg);border:2px solid var(--accent);width:.75rem;height:.75rem}.step-label{padding-right:.25rem}.p-thread{gap:.6rem;margin:0 0 1rem;padding:0;list-style:none;display:grid}.p-msg{max-width:92%;padding:.8rem 1rem}.p-msg p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.55}.p-msg-out{background:var(--bg-elev);justify-self:start}.p-msg-in{background:var(--accent-soft);justify-self:end}.p-msg-meta{font-size:var(--fs-xs);color:var(--text-mute);margin-bottom:.3rem;display:block}.p-write{gap:.5rem;display:grid}.p-write textarea{resize:vertical;width:100%;line-height:1.5}.p-write-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.p-history{font-size:var(--fs-sm);margin:0;padding:0;list-style:none}.p-history li{border-bottom:1px solid var(--line-soft);grid-template-columns:11rem 1fr;gap:.75rem;padding:.55rem 0;display:grid}.p-when{color:var(--text-mute)}.p-list{border-top:1px solid var(--text);margin:1.5rem 0 0;padding:0;list-style:none}.p-list a{border-bottom:1px solid var(--line-soft);justify-content:space-between;gap:1rem;padding:.9rem 0;text-decoration:none;display:flex}.p-list a:hover{background:var(--bg-elev)}.p-list-id{font-weight:600}@media (width<=40rem){.p-link-row{flex-direction:column}.progress{grid-template-columns:1fr;gap:0}.step{grid-template-columns:1rem 1fr;align-items:center;padding:.35rem 0}.step:before{width:1px;height:auto;inset:0 auto 0 .3rem}.step-dot{margin-top:0}.p-history li{grid-template-columns:1fr;gap:.1rem}.p-msg{max-width:100%}.request h1{font-size:1.75rem}}
