:root{--portal-navy:#1f3653;--portal-navy-deep:#14263b;--portal-copper:#b46a3c;--portal-ink:#243447;--portal-muted:#627286;--portal-line:#d9e2eb;--portal-surface:#fff;--portal-soft:#f3f6f9;--portal-warm:#fff7f1;--portal-shadow:0 18px 50px rgba(20,38,59,.10)}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{margin:0;background:linear-gradient(145deg,#edf2f6 0%,#f8fafb 54%,#f5eee8 100%);color:var(--portal-ink);font:16px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--portal-navy);font-weight:750;text-underline-offset:3px}
.portal-shell{min-height:100vh;padding:28px 20px 56px}
.portal-frame{max-width:1100px;margin:0 auto}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 0 34px}
.portal-brand{display:flex;align-items:center;gap:12px;color:var(--portal-navy);text-decoration:none}
.portal-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--portal-navy);color:#fff;font-weight:900;letter-spacing:-.04em;box-shadow:0 8px 20px rgba(31,54,83,.2)}
.portal-brand strong{display:block;font-size:1rem;letter-spacing:.01em}.portal-brand small{display:block;color:var(--portal-muted);font-size:.76rem;line-height:1.2}
.portal-header-link{font-size:.9rem}
.portal-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:28px;align-items:stretch;margin-bottom:30px}
.portal-hero-main,.portal-hero-aside,.portal-card{background:rgba(255,255,255,.93);border:1px solid rgba(217,226,235,.9);border-radius:24px;box-shadow:var(--portal-shadow)}
.portal-hero-main{padding:clamp(28px,5vw,58px);position:relative;overflow:hidden}
.portal-hero-main:after{content:"";position:absolute;right:-100px;bottom:-115px;width:300px;height:300px;border:1px solid rgba(180,106,60,.17);border-radius:50%;box-shadow:0 0 0 28px rgba(180,106,60,.05),0 0 0 58px rgba(180,106,60,.03)}
.portal-eyebrow{color:var(--portal-copper);font-size:.75rem;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
h1,h2,h3{color:var(--portal-navy);line-height:1.15;letter-spacing:-.025em}h1{font-size:clamp(2rem,4vw,3.8rem);max-width:680px;margin:12px 0 18px}h2{font-size:1.55rem;margin:0 0 10px}h3{font-size:1.05rem;margin:0 0 6px}p{margin:0 0 14px}.portal-lead{font-size:1.1rem;max-width:650px;color:#40536a}.portal-hero-aside{padding:28px;background:var(--portal-navy);color:#eaf1f7;border-color:var(--portal-navy)}.portal-hero-aside h2,.portal-hero-aside h3{color:#fff}.portal-hero-aside p{color:#d8e2eb}.portal-aside-line{border-top:1px solid rgba(255,255,255,.2);padding-top:18px;margin-top:22px}
.portal-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px;position:relative;z-index:1}
.portal-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;border:1px solid var(--portal-navy);border-radius:12px;background:var(--portal-navy);color:#fff;text-decoration:none;font:750 .95rem/1.2 inherit;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.portal-btn:hover{background:var(--portal-navy-deep);box-shadow:0 8px 18px rgba(31,54,83,.2);transform:translateY(-1px)}.portal-btn.secondary{background:#fff;color:var(--portal-navy)}.portal-btn.copper{background:var(--portal-copper);border-color:var(--portal-copper)}.portal-btn.full{width:100%}
.portal-section{margin-top:30px}.portal-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:14px}.portal-section-head p{color:var(--portal-muted);margin:0}.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.portal-card{padding:24px}.portal-card-accent{border-top:4px solid var(--portal-copper)}.portal-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:16px;border-radius:12px;background:#f6e9e0;color:var(--portal-copper);font-weight:900}.portal-muted{color:var(--portal-muted);font-size:.92rem}.portal-note{padding:15px 17px;border-left:4px solid var(--portal-copper);border-radius:0 12px 12px 0;background:var(--portal-warm);color:#5c4a40}.portal-soft{padding:16px 18px;border-radius:14px;background:var(--portal-soft)}
.portal-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 24px;padding:0;list-style:none}.portal-step{padding:11px 12px;border-top:3px solid var(--portal-line);color:var(--portal-muted);font-size:.82rem;font-weight:750}.portal-step.active{border-color:var(--portal-copper);color:var(--portal-navy)}.portal-step b{display:block;color:var(--portal-copper);font-size:.72rem}
.portal-form{display:grid;gap:20px}.portal-field{display:grid;gap:7px}.portal-field label{color:var(--portal-navy);font-weight:800}.portal-help{color:var(--portal-muted);font-size:.86rem;margin:0}.portal-field input,.portal-field textarea,.portal-field select{width:100%;min-height:48px;padding:12px 14px;border:1px solid #b9c7d5;border-radius:12px;background:#fff;color:var(--portal-ink);font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.portal-field textarea{min-height:150px;resize:vertical}.portal-field input:focus,.portal-field textarea:focus,.portal-field select:focus{border-color:var(--portal-copper);box-shadow:0 0 0 4px rgba(180,106,60,.13)}.portal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.portal-span{grid-column:1/-1}
.portal-switch{display:flex;align-items:center;gap:13px;padding:15px 16px;border:1px solid var(--portal-line);border-radius:14px;background:#fbfcfd}.portal-switch input{position:absolute;opacity:0;width:1px;height:1px}.portal-switch-control{width:44px;height:25px;flex:0 0 auto;padding:3px;border-radius:999px;background:#b9c7d5;transition:background .15s}.portal-switch-control:after{content:"";display:block;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #17223544;transition:transform .15s}.portal-switch input:checked+.portal-switch-control{background:var(--portal-copper)}.portal-switch input:checked+.portal-switch-control:after{transform:translateX(19px)}.portal-switch input:focus-visible+.portal-switch-control{outline:3px solid rgba(180,106,60,.35);outline-offset:2px}.portal-switch-copy{display:grid;gap:1px}.portal-switch-copy strong{color:var(--portal-navy)}
.portal-footer{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid rgba(98,114,134,.22);color:var(--portal-muted);font-size:.86rem}
.portal-key{padding:18px;border:1px dashed var(--portal-copper);border-radius:15px;background:#fffaf6;color:var(--portal-navy);font:800 1.15rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.portal-timeline{display:grid;gap:12px;margin:18px 0}.portal-event{position:relative;padding:15px 17px 15px 22px;border-left:3px solid var(--portal-copper);border-radius:0 13px 13px 0;background:#f8fafc}.portal-event strong{color:var(--portal-navy)}.portal-event time{display:block;color:var(--portal-muted);font-size:.82rem}.portal-list{display:grid;gap:8px;padding:0;margin:0;list-style:none}.portal-list li{padding:12px 14px;border:1px solid var(--portal-line);border-radius:11px;background:#fbfcfd}.portal-list form{display:flex;justify-content:space-between;align-items:center;gap:12px}.portal-list .portal-btn{min-height:38px;padding:8px 12px;font-size:.84rem}.portal-error{max-width:680px;margin:8vh auto}.portal-error .portal-card{border-top:4px solid #9e4b3d}.portal-error strong{color:#8d4035}
@media(max-width:780px){.portal-shell{padding:18px 14px 40px}.portal-header{padding-bottom:22px}.portal-hero{grid-template-columns:1fr}.portal-grid{grid-template-columns:1fr}.portal-form-grid{grid-template-columns:1fr}.portal-span{grid-column:auto}.portal-steps{grid-template-columns:repeat(2,1fr)}h1{font-size:clamp(2rem,10vw,3rem)}.portal-section-head{display:block}.portal-section-head p{margin-top:6px}}
@media(max-width:480px){.portal-header-link{font-size:.8rem}.portal-brand small{display:none}.portal-hero-main,.portal-hero-aside,.portal-card{border-radius:18px}.portal-hero-main{padding:25px 20px}.portal-hero-aside,.portal-card{padding:20px}.portal-actions{display:grid}.portal-btn{width:100%}.portal-list form{display:grid;align-items:start}.portal-list .portal-btn{width:100%}.portal-footer{display:grid}.portal-step{padding:9px 6px;font-size:.76rem}}

.portal-field input,.portal-field select{height:48px;min-height:48px}
.portal-btn{min-height:54px;padding:14px 24px;font-size:1rem;font-weight:800;letter-spacing:.005em}
@media(max-width:480px){.portal-actions{gap:10px}.portal-btn{min-height:52px;padding:14px 20px}}
.portal-form-grid>.portal-field{min-width:0;align-content:start}
.portal-form-grid>.portal-field:not(.portal-span){grid-template-rows:minmax(24px,auto) 48px minmax(0,auto)}
.portal-copy-status{min-height:0;margin:12px 0 0;padding:0;opacity:0;transform:translateY(-3px);transition:opacity .16s ease,transform .16s ease}
.portal-copy-status.is-visible{padding:10px 13px;border-radius:11px;opacity:1;transform:translateY(0);font-size:.9rem;font-weight:750}
.portal-copy-status.is-success{background:#edf9f1;color:#17653f;border:1px solid #b9dfc5}
.portal-copy-status.is-error{background:#fff3f1;color:#8d4035;border:1px solid #e4b7b0}
.portal-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.portal-event-author{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px;color:var(--portal-muted);font-size:.8rem}
.portal-event-author span{padding:3px 8px;border-radius:999px;background:#edf2f6}
.portal-event-body{min-width:0;overflow-wrap:anywhere;word-break:break-word;line-height:1.65}
.portal-event-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}
.portal-event-actions form{margin:0}
.portal-event-editor{min-width:0}
.portal-event-editor summary{list-style:none;cursor:pointer}
.portal-event-editor summary::-webkit-details-marker{display:none}
.portal-event-editor[open]{flex:1 1 100%}
.portal-event-editor form{display:grid;gap:8px;margin-top:9px}
.portal-event-editor textarea{width:100%;min-height:100px;box-sizing:border-box}
.portal-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border:1px solid var(--portal-line);border-radius:10px;background:#fff;color:var(--portal-navy);font-weight:800;cursor:pointer}
.portal-action:hover{border-color:var(--portal-navy);background:#f8fafc}
.portal-action.danger{border-color:#e3b6af;color:#8d4035}
.portal-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.portal-event-head{display:grid}.portal-event-actions{justify-content:stretch}.portal-event-actions .portal-action,.portal-event-actions form,.portal-event-actions .portal-btn{width:100%}}
