@font-face{font-family:'Roboto Mono';src:url('/assets/roboto-mono.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--navy:#202d46;--blue:#54c0f2;--gray:#e7e7e7;--background:#d3e3e9;--muted:rgba(32,45,70,.15);--ink-soft:rgba(32,45,70,.65);--radius:20px;--shell:84.375%;--space:clamp(16px,2.60417vw,50px);--mono:'Roboto Mono',monospace;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--navy);font-family:var(--mono);font-size:clamp(14px,1.04167vw,20px);line-height:1.4}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,textarea,select{border:0}input,textarea,select{color:var(--navy);background:var(--muted);border-radius:12px;width:100%;padding:clamp(14px,1.25vw,24px);min-width:0}input::placeholder,textarea::placeholder{color:#636f84;opacity:1}textarea{resize:vertical}input[type=checkbox]{width:20px;height:20px;accent-color:var(--navy);padding:0}input[type=color]{padding:5px;height:48px}input[type=file]{padding:12px}input:focus,textarea:focus,select:focus{outline:2px solid var(--navy);outline-offset:3px}a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid #1268b3;outline-offset:5px}p,h1,h2,h3{margin:0}img{max-width:100%;display:block}button{color:inherit}button:active{transform:translateY(1px)}[hidden]{display:none!important}.shell{width:var(--shell);max-width:1620px;margin-inline:auto}.hero{padding-top:var(--space);margin-bottom:var(--space)}.topbar{background:var(--navy);color:white;border-radius:var(--radius) var(--radius) 0 0;min-height:clamp(56px,5.20833vw,100px);padding:clamp(14px,1.30208vw,25px) var(--space);display:flex;justify-content:space-between;align-items:center;gap:20px}.wordmark{font-size:clamp(16px,1.875vw,36px);font-weight:400;text-decoration:none}.topbar h1{font-size:clamp(15px,1.875vw,36px);font-weight:400;overflow-wrap:anywhere}.icon-button{border:0;background:transparent;border-radius:50%;padding:7px;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex-shrink:0}.icon-button:hover{background:rgba(255,255,255,.15)}.icon{width:30px;height:30px;flex-shrink:0}.hero-body{position:relative;isolation:isolate;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;background:white;padding:clamp(38px,5.20833vw,100px) var(--space);display:flex;justify-content:space-between;align-items:center;gap:40px}.hero-body:before{content:'';position:absolute;inset:0;z-index:-1;background-image:url('/assets/home-imgFrame.png');background-size:100% 168.9%;background-position:50% 86.1%;opacity:.07}.hero-copy{width:57.9%}.hero h1{font-size:clamp(38px,3.64583vw,70px);line-height:1;font-weight:400;margin-bottom:clamp(24px,2.60417vw,50px)}.hero h1 strong{font-weight:700}.hero-copy p{line-height:1.4;white-space:pre-line}.hero-copy .hero-cta{font-size:clamp(15px,1.25vw,24px);font-weight:700;margin-top:clamp(20px,1.25vw,24px)}.portrait{width:29.08%;height:auto;aspect-ratio:1;object-fit:fill;object-position:bottom;border-radius:12px}.folder-tabs{display:flex;align-items:stretch;margin-bottom:-1px;position:relative;z-index:1}.folder-tab{position:relative;background:transparent;color:white;font-size:clamp(18px,2.08333vw,40px);font-weight:700;width:33.3333%;aspect-ratio:539.333/100;padding:10px;border:0;background-image:url('/assets/home-imgFrame6.svg');background-size:100% 100%;background-repeat:no-repeat}.folder-tab.active{background-image:url('/assets/home-imgFrame4.svg')}.folder-panel{background:var(--blue);padding:var(--space);border-radius:0 var(--radius) var(--radius) var(--radius)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(6px,.52083vw,10px);row-gap:var(--space)}.project-link{text-decoration:none;display:block}.project-cover{aspect-ratio:842/595;background:#eaf0f8;overflow:hidden;border-radius:12px 12px 0 0;display:grid;place-items:center}.project-caption{background:var(--navy);border-radius:0 0 12px 12px;color:white;min-height:clamp(44px,3.64583vw,70px);padding:clamp(10px,1.04167vw,20px) clamp(12px,1.5625vw,30px);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:clamp(11px,1.04167vw,20px)}.project-caption span:first-child{overflow-wrap:anywhere}.project-caption span:last-child{white-space:nowrap}.project-placeholder{border-radius:12px;background:var(--muted);aspect-ratio:755/603.52}.footer{background:var(--navy);color:white;margin-top:clamp(48px,5.20833vw,100px);padding:var(--space) var(--space) clamp(20px,1.30208vw,25px);border-radius:var(--radius) var(--radius) 0 0}.footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.footer-name{font-size:clamp(22px,2.34375vw,45px);font-weight:700;line-height:1;text-decoration:none}.footer nav{display:flex;flex-direction:column;gap:clamp(8px,.78125vw,15px)}.footer nav a{text-decoration:none}.footer nav a:hover{text-decoration:underline}.footer-socials{justify-content:flex-end;margin-top:clamp(22px,3.64583vw,70px)}.socials{display:flex;align-items:center;gap:25px}.social-icon{width:40px;height:40px}.social-icon-dark{width:50.4px;height:50.4px}.footer-bottom{display:flex;justify-content:space-between;align-items:flex-end;font-size:clamp(11px,.83333vw,16px);gap:24px;margin-top:var(--space)}.footer-bottom p{display:flex;align-items:center;gap:7px}.copyright-icon{width:17px;height:17px;flex-shrink:0}.footer-bottom>div{display:flex;gap:clamp(16px,2.60417vw,50px)}.contact-form{display:grid;grid-template-columns:620fr 850fr;gap:var(--space)}.white-panel{background:white;border-radius:var(--radius);padding:clamp(24px,5.20833vw,100px)}.field{display:flex;flex-direction:column;gap:10px}.field label,.field-label{font-weight:700;font-size:clamp(15px,1.45833vw,28px)}.contact-details{display:flex;flex-direction:column;gap:clamp(24px,2.60417vw,50px)}.contact-details>.socials{margin-top:auto;padding-top:clamp(20px,4.55729vw,87px)}.input-icon{display:flex;align-items:center;background:var(--muted);border-radius:12px;padding-inline:clamp(14px,1.25vw,24px);gap:16px}.input-icon input{background:transparent;padding-inline:0}.input-icon:focus-within{outline:2px solid var(--navy);outline-offset:3px}.input-icon input:focus{outline:0}.contact-message{display:flex;flex-direction:column;gap:var(--space)}.contact-message textarea{min-height:clamp(260px,23.4375vw,450px);flex:1}.contact-message>.field{flex:1}.contact-actions{display:flex;gap:clamp(12px,1.30208vw,25px)}.button{background:var(--navy);color:white;padding:clamp(14px,1.25vw,24px);min-height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700;gap:10px;text-align:center}.button:hover{background:#324667}.button.secondary{background:var(--muted);color:var(--navy)}.button.danger{background:#a72f3c;color:white}.button.small{padding:10px 16px;font-size:14px;min-height:42px}.contact-actions .button{flex:1}.reset-button{background:transparent;border-radius:12px;padding:0;width:clamp(48px,3.75vw,72px);height:clamp(48px,3.75vw,72px);flex-shrink:0;align-self:center}.reset-icon{width:72px;height:72px}.honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.form-status{font-size:14px;empty-cells:hide}.form-status:empty{display:none}.loading{text-align:center;padding:100px 24px}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:8px;left:8px;padding:16px;background:white;z-index:100}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:16px 24px;box-shadow:0 6px 30px #0003;border-radius:12px;z-index:1000;max-width:calc(100vw - 32px);font-size:14px}.toast.error{background:#a72f3c}.project-page{background:var(--project-background,#8aafcb)}.project-header{padding-top:var(--space);margin-bottom:var(--space)}.rounded{border-radius:var(--radius)}.project-content{display:flex;flex-direction:column;gap:clamp(8px,.52083vw,10px)}.image-row{display:grid;gap:clamp(6px,.52083vw,10px)}.cols-1{grid-template-columns:1fr}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.project-image{aspect-ratio:297/210;overflow:hidden;border-radius:var(--radius);position:relative}.project-image img{width:100%;height:100%;object-fit:cover}.design-crop .project-image:last-child img{max-width:none;width:164.64%;height:104.75%;position:absolute;left:-24.65%;top:-2.35%}.section-heading{padding:clamp(16px,1.30208vw,25px) var(--space);border-radius:var(--radius);background:var(--ink-soft);color:white;display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{font-size:clamp(16px,1.45833vw,28px)}.section-text{white-space:pre-wrap;overflow-wrap:anywhere;background:white;padding:var(--space);border-radius:var(--radius)}.book-gallery{display:flex;gap:clamp(6px,.52083vw,10px);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:0;border-radius:var(--radius)}.book-gallery>.project-image{flex:0 0 74.074%;scroll-snap-align:start}.book-gallery::-webkit-scrollbar{display:none}.project-page .footer{margin-top:var(--space)}.project-website{align-self:flex-start;margin-top:20px}.legal{margin-top:30px;max-width:1000px;display:flex;flex-direction:column;gap:24px}.legal h1{font-size:clamp(24px,3vw,40px)}.legal>.button{align-self:flex-start}.error-page{margin-top:50px;display:grid;gap:24px}.empty-state{grid-column:1/-1;padding:48px 24px;text-align:center}.empty-state p{margin:16px 0 24px}.no-cover{padding:30px;color:var(--ink-soft)}
/* Owner screens use the same Figma colors, corners, fields and editing bars. */
.owner-shell{padding-top:var(--space);padding-bottom:50px}.owner-topbar{border-radius:20px;flex-wrap:wrap}.owner-topbar .wordmark{font-size:clamp(16px,1.6vw,28px)}.owner-topbar nav{display:flex;align-items:center;gap:12px}.owner-topbar nav a,.owner-topbar nav button{font-size:14px}.owner-topbar nav button{background:transparent;color:white;text-decoration:underline;padding:10px}.owner-nav{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 20px}.owner-nav a{text-decoration:none;padding:12px 20px;border-radius:12px;background:var(--muted);font-weight:700;font-size:14px}.owner-nav a[aria-current=page]{background:var(--navy);color:white}.owner-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0}.owner-title h1{font-size:clamp(24px,2vw,36px)}.owner-title p{font-size:14px;margin-top:8px;color:var(--ink-soft)}.owner-panel{padding:clamp(20px,2.6vw,50px);background:var(--blue);border-radius:20px}.owner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}.card-toolbar{background:var(--navy);color:white;padding:8px 20px;display:flex;align-items:center;justify-content:space-between;border-radius:12px 12px 0 0}.owner-card .project-cover{border-radius:0}.badge{font-size:11px;padding:5px 9px;border-radius:6px;background:#ffffff26;white-space:nowrap}.badge.published{background:#bcebd2;color:#16452a}.badge.unread{background:var(--blue);color:var(--navy)}.owner-card .project-caption{font-size:13px}.login-card{padding-top:var(--space)}.login-body{background:white;padding:clamp(40px,5.20833vw,100px) var(--space);border-radius:0 0 20px 20px}.login-form{max-width:704px;width:46.32%;margin:auto;display:flex;flex-direction:column;gap:15px}.login-form .input-icon>img{opacity:.8}.show-password{background:transparent;flex-shrink:0;padding:6px}.show-password img{width:30px;height:30px}.login-help{margin-top:28px;line-height:1.7;font-size:12px;color:var(--ink-soft);text-align:center}.login-help code{color:var(--navy)}.editor-form,.settings-form{display:flex;flex-direction:column;gap:28px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.4fr);gap:28px;align-items:start}.editor-meta,.editor-side,.settings-panel{background:white;border-radius:20px;padding:clamp(20px,2.6vw,50px);display:flex;flex-direction:column;gap:22px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.owner-shell .field label,.owner-shell .field-label{font-size:14px}.owner-shell input,.owner-shell textarea,.owner-shell select{font-size:14px}.checkbox{display:flex;align-items:center;gap:12px;font-size:14px}.checkbox label{cursor:pointer}.field-help{font-size:12px;color:var(--ink-soft)}.cover-preview{aspect-ratio:842/595;object-fit:cover;border-radius:12px;width:100%;background:var(--muted)}.cover-actions{display:flex;gap:10px;flex-wrap:wrap}.editor-actions{position:sticky;bottom:12px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-radius:14px;background:var(--navy);color:white;box-shadow:0 6px 30px #0002}.editor-actions>.action-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.editor-actions .button{background:white;color:var(--navy)}.editor-actions .button.secondary{background:#ffffff22;color:white}.editor-actions .button.danger{background:#a72f3c;color:white}.block-section{display:flex;flex-direction:column;gap:18px}.block-section>h2{font-size:20px}.block{border-radius:16px;background:white;overflow:hidden}.block-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--navy);color:white;padding:12px 20px;font-size:13px}.block-toolbar div{display:flex;gap:8px}.block-toolbar button{background:#ffffff22;color:white;border-radius:6px;padding:6px 10px;min-width:34px}.block-toolbar button:disabled{opacity:.25;cursor:default}.block-body{padding:24px;display:grid;gap:16px}.block-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.block-image{position:relative}.block-image>img{width:100%;aspect-ratio:297/210;object-fit:cover;border-radius:10px;background:var(--muted)}.block-image input{font-size:11px;padding:8px;margin-top:8px}.block-image-actions{display:flex;justify-content:space-between;gap:4px;margin-top:6px}.block-image-actions button{font-size:11px;padding:5px 8px;border-radius:6px;background:var(--muted)}.add-block{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:20px;border:2px dashed var(--ink-soft);border-radius:14px}.add-block>span{font-size:14px;margin-right:auto}.owner-preview{padding:20px;background:var(--project-background,#8aafcb);border-radius:20px;display:flex;flex-direction:column;gap:10px}.owner-preview .section-heading h2{font-size:18px}.settings-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;align-items:start}.portrait-preview{width:100%;max-width:300px;aspect-ratio:1;object-fit:fill;object-position:bottom;border-radius:12px}.inbox-tools{display:flex;align-items:center;gap:12px;margin-bottom:20px}.inbox-tools input{background:white}.inbox-tools select{background:white;width:auto}.inbox-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.8fr);gap:20px;align-items:start}.message-list{display:flex;flex-direction:column;gap:10px}.message-list button{background:white;border-radius:12px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:8px;border:2px solid transparent;width:100%}.message-list button.selected{border-color:var(--navy)}.message-list button.unread{box-shadow:inset 4px 0 var(--navy)}.message-line{display:flex;justify-content:space-between;align-items:center;gap:8px}.message-line strong{font-size:15px}.message-list small,.message-detail small{font-size:12px;color:var(--ink-soft)}.message-list p{font-size:13px;overflow-wrap:anywhere}.message-detail{padding:clamp(24px,3vw,50px);background:white;border-radius:16px}.message-detail h2{font-size:22px;overflow-wrap:anywhere;margin-bottom:20px}.message-detail .message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:28px 0;font-size:14px}.message-actions{display:flex;gap:8px;flex-wrap:wrap}.message-detail a{overflow-wrap:anywhere}.media-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.media-tile{position:relative;background:white;padding:10px;border-radius:12px;text-align:left;display:grid;gap:10px}.media-tile img{width:100%;aspect-ratio:297/210;object-fit:cover;border-radius:7px}.media-tile span{font-size:11px;overflow-wrap:anywhere}.media-tile.selected{outline:3px solid var(--navy)}dialog{border:0;border-radius:20px;color:var(--navy);background:var(--background);max-width:1100px;width:90vw;max-height:85vh;padding:clamp(20px,3vw,40px)}dialog::backdrop{background:#15213999;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.dialog-top h2{font-size:22px}.dialog-actions{position:sticky;bottom:-40px;margin-top:24px;padding:16px 0;background:var(--background);display:flex;justify-content:flex-end;gap:10px}.media-upload-label{cursor:pointer}.media-upload-label input{display:none}.unsaved{font-size:12px}.owner-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.stat{background:white;padding:24px;border-radius:16px}.stat strong{display:block;font-size:30px}.stat span{font-size:12px;color:var(--ink-soft)}.owner-back{font-size:14px}.empty-inbox{padding:50px 25px;background:white;border-radius:16px;text-align:center;grid-column:1/-1}.settings-form>.button{align-self:flex-start}.media-tile:has(input:checked){outline:3px solid var(--navy)}.confirm-dialog p{margin:20px 0;max-width:550px}.confirm-dialog .dialog-actions{position:static}.owner-notice{font-size:13px;padding:16px 20px;background:white;border-radius:12px;margin:16px 0;line-height:1.7}
@media(min-width:1921px){:root{--space:50px}body{font-size:20px}.hero h1{font-size:70px}.hero-copy .hero-cta{font-size:24px}.hero-body{padding-block:100px}.wordmark{font-size:36px}.topbar{min-height:100px}.folder-tab{font-size:40px}.project-caption{min-height:70px;font-size:20px;padding:20px 30px}.footer-name{font-size:45px}.footer-bottom{font-size:16px}.footer{margin-top:100px}.footer-socials{margin-top:70px}.white-panel{padding:100px}.field label{font-size:28px}.contact-message textarea{min-height:450px}}
@media(max-width:1000px){.hero-body{gap:28px}.hero-copy{width:61%}.portrait{width:32%}.hero-copy p{font-size:12px}.hero-copy .hero-cta{font-size:14px}.contact-form{gap:20px;grid-template-columns:1fr 1.3fr}.contact-form .white-panel{padding:28px}.contact-message textarea{min-height:300px}.contact-details .socials{gap:20px}.editor-grid,.settings-grid{grid-template-columns:1fr}.editor-side{display:grid;grid-template-columns:1fr 1fr}.editor-side .cover-preview{max-width:300px}.login-form{width:70%}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inbox-layout{grid-template-columns:minmax(220px,1fr) minmax(0,1.5fr)}.owner-topbar nav{gap:6px}.owner-topbar nav a{font-size:12px}.owner-grid{gap:20px 10px}}
@media(max-width:600px){:root{--shell:calc(100% - 32px);--space:16px;--radius:12px}.hero{padding-top:40px;margin-bottom:24px}.topbar{min-height:56px;padding:8px 16px}.wordmark{font-size:16px}.topbar .icon-button{min-width:40px;min-height:40px}.topbar .icon{width:24px;height:24px}.hero-body{padding:24px;display:flex;flex-direction:column;align-items:stretch;gap:24px}.hero-copy{width:100%}.hero h1{font-size:40px;line-height:1.05;margin-bottom:24px}.hero-copy p{font-size:13px;line-height:1.5}.hero-copy .hero-cta{font-size:14px;margin-top:24px}.portrait{width:100%;height:auto;aspect-ratio:1;max-width:none}.hero-body:before{background-image:url('/assets/phone-imgIntroduction.png');background-size:cover;background-position:center}.folder-tab{width:50%;font-size:18px;aspect-ratio:179/52;background-image:url('/assets/phone-imgWorkTab1.svg');background-size:100% 100%;min-height:52px}.folder-tab.active{background-image:url('/assets/phone-imgWorkTab.svg')}.folder-panel{padding:12px}.project-grid{grid-template-columns:1fr;gap:20px}.project-placeholder{display:none}.project-caption{font-size:13px;padding:12px;min-height:42px}.project-cover{border-radius:8px 8px 0 0}.project-caption{border-radius:0 0 8px 8px}.footer{margin-top:40px;padding:26px 20px 20px}.footer-name{font-size:20px;max-width:180px;line-height:1.25}.footer nav{font-size:12px}.footer-socials{margin-top:26px}.social-icon{width:28px;height:28px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:20px;font-size:10px;margin-top:28px}.footer-bottom>div{gap:24px}.copyright-icon{width:13px;height:13px}.contact-form{grid-template-columns:1fr;gap:16px}.contact-form .white-panel{padding:24px 20px}.contact-details{gap:24px}.contact-details>.socials{padding-top:0;margin-top:8px}.social-icon-dark{width:35px;height:35px}.contact-message{gap:24px}.field label{font-size:16px}.contact-message textarea{min-height:260px}.input-icon{gap:10px}.input-icon>.icon{width:22px;height:22px}.reset-button{width:48px;height:48px}.reset-icon{width:48px;height:48px}.book-gallery>.project-image{flex-basis:92%}.project-image{border-radius:8px}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.project-header{padding-top:24px;margin-bottom:20px}.section-heading{padding:15px}.section-heading h2{font-size:14px}.section-heading .icon{width:22px;height:22px}.project-content{gap:8px}.project-page .footer{margin-top:30px}.login-card{padding-top:40px}.login-form{width:100%;gap:15px}.login-body{padding:40px 20px}.login-help{font-size:11px}.owner-shell{padding-top:24px}.owner-topbar{padding:16px}.owner-topbar nav{width:100%;justify-content:space-between}.owner-nav{gap:6px;margin-top:20px}.owner-nav a{padding:10px 12px;font-size:12px;flex:1;text-align:center}.owner-title{align-items:flex-start;flex-wrap:wrap}.owner-title h1{font-size:25px}.owner-title p{font-size:12px}.owner-title>.button{font-size:12px}.owner-panel{padding:14px}.owner-grid{grid-template-columns:1fr;gap:22px}.owner-stats{gap:8px}.stat{padding:15px 10px}.stat strong{font-size:24px}.stat span{font-size:10px}.field-row{grid-template-columns:1fr;gap:22px}.editor-meta,.editor-side,.settings-panel{padding:20px}.editor-side{display:flex}.editor-actions{padding:12px;gap:8px;flex-wrap:wrap;bottom:8px}.editor-actions>.action-group{width:100%}.editor-actions .button{flex:1}.editor-actions .unsaved{font-size:11px}.block-toolbar{padding:12px;font-size:12px}.block-toolbar div{gap:5px}.block-toolbar button{min-width:28px;padding:5px 7px}.block-body{padding:16px}.block-images{grid-template-columns:repeat(2,minmax(0,1fr))}.add-block{padding:15px}.add-block>span{width:100%;margin-bottom:6px}.add-block .button{font-size:11px;padding:8px 10px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-heading{align-items:flex-start;flex-wrap:wrap}.media-heading h1{font-size:24px}.dialog-top h2{font-size:18px}.dialog-top{align-items:flex-start}.inbox-tools{flex-wrap:wrap}.inbox-tools select{width:100%}.inbox-layout{grid-template-columns:1fr}.message-list{max-height:360px;overflow-y:auto}.message-detail h2{font-size:20px}.message-actions .button{flex:1}.owner-notice{font-size:12px}.confirm-dialog .dialog-actions{flex-wrap:wrap}}
.card-controls,.project-header-actions{display:flex;align-items:center;gap:10px}
.project-drag-handle{cursor:grab;touch-action:none}
.project-drag-handle:active{cursor:grabbing;transform:none}
.project-drag-handle img{pointer-events:none;-webkit-user-drag:none}
.visibility-toggle .icon{filter:none}
.visibility-toggle[aria-pressed=false]{opacity:1}
.owner-card.is-hidden .project-cover{opacity:.55}
.owner-grid.is-reordering{cursor:grabbing;user-select:none}
.owner-grid.is-reordering .project-card{transition:none}
.owner-card.is-dragging{opacity:.45;outline:3px dashed var(--navy);outline-offset:4px;border-radius:12px;pointer-events:none}
.owner-grid[aria-busy=true]{cursor:progress}
.book-block{display:flex;flex-direction:column;gap:4px;min-width:0}
.book-scrollbar{appearance:none;-webkit-appearance:none;display:block;flex:none;margin:0;padding:0;width:100%;height:20px;min-height:0;background:transparent;border:0;border-radius:0;cursor:pointer;touch-action:pan-y}
.book-scrollbar:focus:not(:focus-visible){outline:none}
.book-scrollbar::-webkit-slider-runnable-track{height:7px;background:rgba(32,45,70,.65);border-radius:20px}
.book-scrollbar::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:32px;height:15px;margin-top:-4px;background:var(--navy);border:0;border-radius:4px;cursor:ew-resize}
.book-scrollbar::-moz-range-track{height:7px;background:rgba(32,45,70,.65);border-radius:20px}
.book-scrollbar::-moz-range-thumb{width:32px;height:15px;background:var(--navy);border:0;border-radius:4px;cursor:ew-resize}
.book-scrollbar:disabled{opacity:.35;cursor:default}
.book-block{gap:0}
.book-scrollbar{--book-progress:0%;--book-track-height:clamp(7px,1.04167vw,20px);--book-thumb-height:clamp(15px,1.82292vw,35px);height:calc(var(--book-thumb-height) + clamp(8px,1.04167vw,20px));border-radius:50px}
.book-scrollbar::-webkit-slider-runnable-track{height:var(--book-track-height);background:linear-gradient(to right,var(--navy) 0%,var(--navy) var(--book-progress),rgba(32,45,70,.65) var(--book-progress),rgba(32,45,70,.65) 100%);border-radius:50px}
.book-scrollbar::-webkit-slider-thumb{width:clamp(20px,2.34375vw,45px);height:var(--book-thumb-height);margin-top:calc((var(--book-track-height) - var(--book-thumb-height)) / 2);border-radius:clamp(2px,.26042vw,5px)}
.book-scrollbar::-moz-range-track{height:var(--book-track-height);background:rgba(32,45,70,.65);border-radius:50px}
.book-scrollbar::-moz-range-progress{height:var(--book-track-height);background:var(--navy);border-radius:50px}
.book-scrollbar::-moz-range-thumb{width:clamp(20px,2.34375vw,45px);height:var(--book-thumb-height);border-radius:clamp(2px,.26042vw,5px)}
.visual-editor-page{background:var(--project-background,#8aafcb)}
.visual-editor-form{display:flex;flex-direction:column;gap:clamp(16px,1.45833vw,28px)}
.visual-editor-header{padding-top:var(--space);margin:0;position:relative;z-index:8}
.visual-editor-header .topbar{min-height:clamp(64px,5.20833vw,100px)}
.visual-project-title{padding:0;border-radius:0;background:transparent;color:white;font-size:clamp(15px,1.875vw,36px);line-height:1.4;min-width:0;flex:1}
.visual-project-title::placeholder{color:#ffffffb3}
.visual-project-title:focus{outline:1px dashed #ffffff80;outline-offset:7px}
.visual-save.has-changes{background:#ffffff18}
.visual-editor-header .project-header-actions{gap:10px}
.visual-editor-tools{display:flex;justify-content:center;align-items:center;gap:15px;height:50px}
.section-add-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:50px;padding:7px;background:var(--navy);border-radius:50%;box-shadow:0 0 20px #0004;border:0;cursor:pointer;position:relative}
.project-color-picker { position: relative; flex-shrink: 0; }
.color-picker-trigger { z-index: 1; transition: background 180ms ease, box-shadow 180ms ease; }
.project-color-picker.is-open { z-index: 40; }
.project-color-picker.is-open .color-picker-trigger { visibility: hidden; }
.color-picker-panel { --wheel-size: 224px; position: absolute; top: calc(50% - 128px); left: calc(50% + var(--picker-shift,0px)); width: 288px; max-width: calc(100vw - 24px); padding: 16px; border: 1px solid #202d4618; border-radius: 24px; background: white; color: var(--navy); box-shadow: 0 16px 48px #202d4633; z-index: 1; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(calc(-1 * var(--picker-anchor-x,144px))) scale(.35); transform-origin: var(--picker-anchor-x,144px) var(--picker-anchor-y,128px); transition: opacity 180ms ease, transform 320ms cubic-bezier(.2,1.2,.3,1), visibility 180ms; font-size: 12px; }
.project-color-picker.is-open .color-picker-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(calc(-1 * var(--picker-anchor-x,144px))) scale(1); }
.color-picker-panel.is-wide { display: grid; grid-template-columns: var(--wheel-size) minmax(0,1fr); align-items: center; gap: 20px; width: 544px; }
.color-picker-panel.is-wide .color-picker-heading { margin-top: 0; }
.color-wheel-stage { position: relative; width: var(--wheel-size); height: var(--wheel-size); margin-inline: auto; }
.color-wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; touch-action: none; cursor: crosshair; }
.visual-editor-tools .color-wheel-center { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%,-50%); background: var(--blue); box-shadow: 0 0 0 7px white, 0 3px 12px #202d4626; }
.color-wheel-center:hover { background: #33ace2; }
.color-wheel-surface { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle,white calc(var(--wheel-size) * 32 / 224),transparent calc(var(--wheel-size) / 2)), conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red); mask-image: radial-gradient(circle,transparent calc(var(--wheel-size) * 30 / 224),black calc(var(--wheel-size) * 31 / 224)); }
.color-wheel-surface::after { content: ''; position: absolute; inset: 0; background: black; border-radius: inherit; opacity: var(--wheel-darkness,0); }
.color-wheel-marker { position: absolute; width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--navy), 0 2px 5px #202d4640; background: var(--picked-color); transform: translate(-50%,-50%); pointer-events: none; }
.color-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; font-weight: 700; }
.color-picker-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; border-radius: 8px; font-size: 22px; }
.color-picker-close:hover { background: var(--muted); }
.color-lightness-label { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; }
.color-picker-panel .color-lightness { appearance: none; display: block; width: 100%; height: 12px; min-height: 0; margin: 0 0 20px; padding: 0; border-radius: 999px; background: linear-gradient(to right,#000,var(--light-color)); cursor: pointer; }
.color-lightness::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border: 3px solid white; border-radius: 50%; background: var(--picked-color); box-shadow: 0 0 0 1px #202d4666; }
.color-lightness::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--picked-color); box-shadow: 0 0 0 1px #202d4666; }
.color-code-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #202d460d; border-radius: 12px; }
.color-preview { width: 24px; height: 24px; flex-shrink: 0; background: var(--picked-color); border: 1px solid #202d4633; border-radius: 7px; }
.color-code-row > label { font-size: 10px; color: var(--ink-soft); }
.color-picker-panel .color-hex { width: 100%; min-width: 0; padding: 4px 0; border-radius: 3px; background: transparent; font-size: 13px; text-align: right; }
.color-hex-error { margin-top: 6px; font-size: 10px; color: #a72f3c; }
.color-hex-error:empty { display: none; }
.color-presets, .color-recent-swatches { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-top: 14px; }
.color-picker-panel .color-swatch { width: 100%; height: 30px; padding: 0; border-radius: 9px; background: var(--swatch); border: 1px solid #202d4626; }
.color-swatch:hover { box-shadow: 0 0 0 2px white, 0 0 0 3px #202d4666; }
.color-swatch[aria-pressed=true] { box-shadow: 0 0 0 2px white, 0 0 0 3px var(--navy); }
.color-recent > span { display: block; margin-top: 16px; color: var(--ink-soft); font-size: 10px; }
.color-recent-swatches { margin-top: 8px; }
@media (max-width: 639px) and (max-height: 700px) {
  .color-picker-panel { --wheel-size: 176px; padding: 12px; }
  .color-picker-heading { margin: 6px 0 4px; }
  .color-lightness-label { margin-bottom: 6px; }
  .color-picker-panel .color-lightness { margin-bottom: 14px; }
  .color-presets, .color-recent-swatches { margin-top: 10px; }
  .color-recent > span { margin-top: 10px; }
}
.visual-sections{display:flex;flex-direction:column;gap:8px;min-width:0}
.visual-section{position:relative;min-width:0}
.visual-image-grid{gap:clamp(6px,.52083vw,10px)}
.visual-image-grid.cols-1{grid-template-columns:1fr}
.visual-image-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.visual-image-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.visual-image-card{position:relative;min-width:0}
.visual-image-card>.project-image{border-top-left-radius:0;border-top-right-radius:0}

.visual-image-grid.design-crop .visual-image-card .project-image img{position:static;width:100%;height:100%;object-fit:cover}
.visual-image-grid.design-crop>.visual-image-card:last-child .project-image img{position:absolute;width:164.64%;height:104.75%;left:-24.65%;top:-2.35%}
.visual-image-card.is-dragging{opacity:.45;outline:3px dashed var(--navy);outline-offset:3px;border-radius:12px;pointer-events:none}
.visual-image-grid.is-reordering{cursor:grabbing;user-select:none}
.visual-heading{padding:0}
.visual-heading>input{padding:clamp(16px,1.30208vw,25px) var(--space);font-size:clamp(16px,1.45833vw,28px);font-weight:700;background:transparent;color:white;border-radius:var(--radius)}
.visual-heading>input::placeholder{color:#ffffffa6}
.visual-heading>input:focus{outline:1px dashed #ffffffa6;outline-offset:-5px}
.visual-paragraph{display:block;font-size:inherit;min-height:150px;line-height:1.6;resize:vertical}
.rich-text-content { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.rich-text-editor { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; background: white; border-radius: var(--radius); }
.rich-text-editor > .rich-text-content { flex: 1; min-height: 180px; width: 100%; padding-top: max(var(--space),56px); border-radius: var(--radius); cursor: text; }
.rich-text-editor > .rich-text-content:focus { outline: none; box-shadow: inset 0 0 0 2px var(--navy); }
.rich-text-content[data-empty=true]::before { content: 'Schrijf hier je tekst…'; color: var(--ink-soft); pointer-events: none; }
.rich-text-tools { position: absolute; inset: 0 0 auto; height: 48px; z-index: 6; pointer-events: none; }
.rich-tools-toggle { position: absolute; top: 7px; right: 10px; display: flex; align-items: center; justify-content: center; width: 36px; min-height: 34px; padding: 7px; border-radius: 999px; background: var(--navy); color: white; font-size: 11px; pointer-events: auto; opacity: 0; transition: opacity .18s; }
.rich-tools-toggle > span { font-weight: 700; font-size: 14px; }
.rich-text-editor:hover .rich-tools-toggle, .rich-text-editor:focus-within .rich-tools-toggle { opacity: 1; }
.rich-text-toolbar { position: absolute; inset: 46px 0 auto; display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 12px; border: 1px solid #202d4618; border-radius: 14px; background: white; box-shadow: 0 8px 24px #202d4626; font-size: 12px; line-height: 1.3; color: var(--navy); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: opacity .18s, transform .18s, visibility .18s; }
.rich-text-tools:focus-within .rich-text-toolbar, .rich-text-editor[data-tools-open=true] .rich-text-toolbar { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .rich-text-toolbar { inset: auto 0 calc(100% + 8px); }
  .section-body > .rich-text-editor > .rich-text-tools::before { content: ''; position: absolute; inset: 0; pointer-events: auto; }
  .rich-text-tools:hover .rich-text-toolbar, .visual-row-card:has(> .editor-block-toolbar:hover) > .rich-text-editor .rich-text-toolbar { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .rich-text-tools::after { content: ''; position: absolute; inset: auto 0 100%; height: 10px; pointer-events: none; }
  .rich-text-tools:hover::after, .visual-row-card:has(> .editor-block-toolbar:hover) > .rich-text-editor > .rich-text-tools::after { pointer-events: auto; }
}
@media (hover: none), (pointer: coarse) {
  .rich-tools-toggle { opacity: 1; width: 40px; min-height: 40px; top: 4px; }
}
.rich-text-toolbar > label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 11px; }
.rich-text-toolbar select, .rich-text-toolbar input { height: 38px; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--muted); font-size: 12px; width: auto; max-width: 100%; }
.rich-text-toolbar select { max-width: 145px; }
.rich-text-toolbar input[type=color] { width: 38px; padding: 7px; cursor: pointer; }
.rich-text-toolbar input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.rich-text-toolbar input[type=color]::-webkit-color-swatch { border: 1px solid #202d4633; border-radius: 5px; }
.rich-size-field { display: inline-flex; align-items: center; position: relative; }
.rich-text-toolbar .rich-size-field input { width: 72px; padding-right: 23px; }
.rich-size-field > span { position: absolute; right: 9px; pointer-events: none; font-size: 10px; }
.rich-text-toolbar input[type=number] { appearance: textfield; }
.rich-text-toolbar input[type=number]::-webkit-inner-spin-button { appearance: none; }
.rich-format-buttons { display: flex; gap: 2px; padding: 2px; background: var(--muted); border-radius: 10px; }
.rich-text-toolbar button { min-height: 38px; min-width: 36px; padding: 7px 10px; border: 0; border-radius: 10px; background: var(--muted); font-size: 12px; }
.rich-format-buttons button { min-height: 34px; padding: 6px 9px; background: transparent; border-radius: 8px; }
.rich-text-toolbar button:hover { background: #e3edf4; }
.rich-text-toolbar button[aria-pressed=true] { background: var(--navy); color: white; }
.rich-text-toolbar .rich-clear { display: grid; place-items: center; width: 38px; padding: 8px; }
.rich-clear > svg { width: 20px; height: 20px; }
.rich-control-icon { width: 18px; height: 18px; flex-shrink: 0; pointer-events: none; }
.rich-text-toolbar { align-items: center; }
.rich-text-toolbar .rich-select { min-width: 0; font-size: 12px; }
.rich-text-toolbar .rich-select-font { flex: 1 1 160px; max-width: 210px; }
.rich-text-toolbar .select-trigger { min-height: 38px; height: 38px; gap: 7px; padding: 8px 10px; border-radius: 10px; background: var(--muted); line-height: 1.2; }
.rich-text-toolbar [data-select-display], .rich-text-toolbar [data-option-label] { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rich-text-toolbar [data-select-display] { flex: 1; }
.rich-text-toolbar [data-select-display] [data-option-text] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rich-font-sample { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.rich-text-toolbar .select-trigger > .rich-control-icon { width: 12px; height: 12px; transition: transform .25s cubic-bezier(.2,1.4,.35,1); }
.rich-text-toolbar .select-trigger[aria-expanded=true] > .rich-control-icon { transform: rotate(180deg); }
.rich-text-toolbar .rich-select-align { flex: 0 0 54px; }
.rich-select-align .select-trigger [data-option-text] { display: none; }
.rich-text-toolbar .select-options { min-width: 100%; width: max-content; max-width: calc(100vw - 64px); max-height: min(270px,45vh); overflow-y: auto; padding: 6px; border-radius: 12px; scrollbar-width: thin; }
.rich-select-align .select-options { inset-inline: auto 0; min-width: 156px; }
.rich-text-toolbar .select-options button { min-height: 38px; gap: 12px; padding: 9px 10px; background: transparent; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.rich-text-toolbar .select-options button:hover, .rich-text-toolbar .select-options button:focus-visible { background: #e3edf4; }
.rich-text-toolbar .select-options button[aria-selected=true] { background: var(--navy); color: white; }
.rich-text-toolbar > .rich-size-control, .rich-text-toolbar > .rich-color-control { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 4px; height: 38px; padding: 6px; border-radius: 10px; background: var(--muted); }
.rich-text-toolbar > .rich-size-control { flex: 0 0 90px; }
.rich-text-toolbar .rich-size-field input { width: 58px; height: 26px; min-height: 26px; padding: 3px 19px 3px 2px; background: transparent; border-radius: 4px; }
.rich-size-field > span { right: 2px; }
.rich-text-toolbar > .rich-color-control { width: 38px; flex: 0 0 38px; cursor: pointer; }
.rich-color-control::after { content: ''; position: absolute; inset: auto 9px 4px; height: 3px; border-radius: 2px; background: var(--rich-swatch,var(--navy)); box-shadow: 0 0 0 1px #202d4626; pointer-events: none; }
.rich-text-toolbar .rich-color-control input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; }
.rich-text-hint { flex-basis: 100%; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.visual-row-card > .rich-text-editor > .rich-text-tools > .rich-tools-toggle { right: 54px; }
.visual-row-card > .rich-text-editor > .rich-text-content { min-height: 260px; }
#section-settings .rich-text-editor { border: 1px solid #202d4626; }
#section-settings .rich-text-content { padding: 20px; }
#section-settings .rich-text-tools { position: relative; height: auto; pointer-events: auto; }
#section-settings .rich-tools-toggle { display: none; }
#section-settings .rich-text-toolbar { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; border: 0; border-bottom: 1px solid #202d4618; border-radius: var(--radius) var(--radius) 0 0; }
#section-settings .rich-text-content { border-top-left-radius: 0; border-top-right-radius: 0; }
@media (hover: none), (pointer: coarse) {
  .rich-text-toolbar select, .rich-text-toolbar input, .rich-text-toolbar button { min-height: 44px; }
  .rich-text-toolbar > .rich-size-control, .rich-text-toolbar > .rich-color-control { height: 44px; }
  .rich-text-toolbar .rich-size-field input { min-height: 30px; }
}
@media (max-width: 600px) {
  .rich-text-toolbar { gap: 6px; padding: 10px; }
  .rich-text-toolbar .rich-select-font { flex: 1 0 calc(100% - 96px); max-width: none; }
}
.section-insert{height:4px;position:relative;display:flex;align-items:center;justify-content:center;z-index:4}
.section-insert:before{content:'';position:absolute;inset:-8px 0}
.section-insert>.section-add-button{position:absolute;width:36px;height:36px;padding:6px;opacity:0;pointer-events:none;transition:opacity .12s}
.section-insert .icon{width:24px;height:24px}
.section-insert:hover>.section-add-button,.section-insert:focus-within>.section-add-button,.section-insert.always-visible>.section-add-button{opacity:1;pointer-events:auto}
.visual-empty-images{width:100%;min-height:220px;background:#ffffff70;border:2px dashed #202d4660;border-radius:var(--radius);padding:40px;display:flex;gap:16px;align-items:center;justify-content:center;flex-direction:column;font-size:14px}
.visual-empty-images>.icon{background:var(--navy);padding:8px;width:46px;height:46px;border-radius:50%}
.visual-editor-empty{background:#ffffff70;padding:60px 20px;text-align:center;border-radius:20px;display:flex;flex-direction:column;gap:24px}
.visual-editor-empty h1{font-size:24px}
.visual-editor-empty p{font-size:14px;margin-bottom:20px}
.visual-editor-page .footer{margin-top:clamp(25px,2.60417vw,50px)}
.visual-details-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}
.visual-details-grid .settings-panel{padding:24px}
.visual-details-grid input,.visual-details-grid textarea{font-size:14px}
.visual-details-grid .field>label{font-size:14px}
.visual-history-controls{background:var(--navy);display:flex;gap:10px;padding:8px;border-radius:12px;align-self:flex-start}
.section-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.section-choice{background:white;padding:18px;border-radius:12px;display:flex;flex-direction:column;gap:10px;text-align:left;border:2px solid transparent}
.section-choice:hover{border-color:var(--navy)}
.section-choice>strong{font-size:14px}
.section-choice>span:last-child{font-size:12px;line-height:1.6;color:var(--ink-soft)}
.section-choice-preview{width:100%;aspect-ratio:2;display:grid;gap:5px;padding:8px;background:var(--muted);border-radius:6px}
.section-choice-preview>i{background:#8aafcb;border-radius:3px}
.section-choice-preview.preview-heading{align-items:center}.preview-heading>i{height:20px;background:var(--navy)}
.section-choice-preview.preview-text{align-items:center}.preview-text>i{height:35px;background:repeating-linear-gradient(to bottom,var(--navy),var(--navy) 3px,transparent 3px,transparent 10px)}
.section-choice-preview.preview-book{display:flex;overflow:hidden}.preview-book>i{flex:0 0 65%}
@media(max-width:600px){.visual-editor-header{padding-top:16px}.visual-editor-header .topbar{padding:12px;gap:8px}.visual-editor-header .project-header-actions{gap:2px}.visual-editor-header .icon-button{min-width:30px;min-height:34px;padding:4px}.visual-editor-header .icon{width:22px;height:22px}.visual-project-title{font-size:12px}.visual-editor-tools{height:40px;gap:12px}.visual-editor-tools .section-add-button{width:38px;height:38px}.visual-editor-tools .icon{width:24px;height:24px}.visual-heading>input{font-size:14px;padding:15px}.visual-empty-images{padding:30px 16px;min-height:170px}.section-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.section-choice{padding:12px}.section-choice>strong{font-size:12px}.section-choice>span:last-child{font-size:11px}.visual-details-grid{grid-template-columns:1fr}.visual-editor-empty h1{font-size:20px}}
.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.visual-image-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.text-columns{display:grid;gap:clamp(10px,.52083vw,16px);min-width:0}
.text-columns>.section-text{min-width:0;overflow-wrap:anywhere}
.visual-section-wrap{display:flex;flex-direction:column;gap:8px;min-width:0}
.visual-section-wrap.is-dragging{opacity:.4;outline:3px dashed var(--navy);outline-offset:4px;border-radius:var(--radius);pointer-events:none}
.visual-sections.is-reordering{user-select:none;cursor:grabbing;overflow-anchor:none}
.visual-sections { position: relative; }
.section-drop-indicator { position: relative; width: 100%; height: 32px; flex-shrink: 0; border-radius: 8px; background: #202d4608; transition: height 180ms cubic-bezier(.22,1,.36,1); pointer-events: none; }
.section-drop-indicator::after { content: ''; position: absolute; inset: calc(50% - 1px) 12px auto; height: 2px; border-radius: 2px; background: var(--ink-soft); }
.visual-sections.is-reordering .visual-section, .visual-sections.is-reordering .section-insert { transition: none; }
.visual-sections.is-reordering .section-insert{visibility:hidden}
.section-drag-handle{touch-action:none;cursor:grab}
.section-drag-handle:active{cursor:grabbing;transform:none}
.section-drag-handle img{pointer-events:none;-webkit-user-drag:none}
.visual-text-block>.visual-paragraph{border-top-left-radius:0;border-top-right-radius:0}
.visual-text-block>.text-columns>.section-text{border-top-left-radius:0;border-top-right-radius:0}
.section-insert{position:relative;height:30px;display:flex;align-items:center;gap:12px;z-index:1}
.section-insert:before,.section-insert:after{content:'';position:static;display:block;flex:1;height:1px;background:#202d4633;inset:auto}
.section-insert-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:3px 10px;border-radius:6px;background:transparent;color:var(--navy);font-size:11px;opacity:.75;white-space:nowrap}
.section-insert-button:hover,.section-insert-button:focus-visible{background:var(--navy);color:white;opacity:1}
.section-insert-button>.icon{width:18px;height:18px;background:var(--navy);border-radius:50%;padding:2px}
.image-slider{position:relative;min-width:0;isolation:isolate}
.image-slider-track{display:flex;overflow:hidden;scrollbar-width:none;border-radius:var(--radius);touch-action:pan-y}
.image-slider-track::-webkit-scrollbar{display:none}
.image-slider-track>.project-image{flex:0 0 100%;transform:translateX(calc(var(--slide-index,0) * -100%));transition:transform .25s ease;user-select:none}
.slider-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;background:var(--navy);color:white;border-radius:50%;box-shadow:0 2px 12px #0003;font-size:25px;display:grid;place-items:center;z-index:2}
.slider-nav:active{transform:translateY(-50%)}
.slider-nav:disabled{opacity:.3;cursor:default}
.slider-prev{left:16px}.slider-next{right:16px}
.slider-pagination{display:flex;justify-content:center;align-items:center;gap:4px;padding:8px;flex-wrap:wrap}
.slider-dot{display:grid;place-items:center;width:28px;height:28px;background:transparent;padding:0;border-radius:50%}
.slider-dot:before{content:'';display:block;width:8px;height:8px;border-radius:50%;background:#202d4659}
.slider-dot[aria-current=true]:before{background:var(--navy);width:10px;height:10px}
.section-choice-preview.preview-slider{position:relative;display:flex;overflow:hidden;padding-bottom:20px}
.preview-slider>i{flex:0 0 100%}
.section-choice-preview.preview-slider:after{content:'● ● ●';position:absolute;bottom:2px;left:0;right:0;text-align:center;font-size:10px;color:var(--navy);letter-spacing:4px}
.section-choice-preview.preview-text-columns>i{align-self:center;height:45px;background:repeating-linear-gradient(to bottom,var(--navy),var(--navy) 3px,transparent 3px,transparent 10px)}
@media(max-width:600px){.cols-4,.visual-image-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.text-columns{grid-template-columns:1fr}.section-insert{gap:8px;height:32px}.section-insert-button{font-size:10px;padding-inline:6px}.slider-nav{width:36px;height:36px;font-size:22px}.slider-prev{left:10px}.slider-next{right:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.login-remember { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14px; }
.login-remember input { flex-shrink: 0; margin: 0; }
.login-remember small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-soft); }
/* Rounded controls and scrollbars share the portfolio's navy palette. */
html { scrollbar-color: var(--navy) var(--background); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: var(--background); border-radius: 20px; }
*::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--background); border-radius: 20px; }
*::-webkit-scrollbar-thumb:hover { background: #405875; }
*::-webkit-scrollbar-corner { background: transparent; }
.ui-icon { width: 24px; height: 24px; flex-shrink: 0; }
.custom-select { position: relative; min-width: 175px; font-size: 14px; }
.select-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; background: white; border-radius: 14px; text-align: left; line-height: 1.2; }
.select-trigger .ui-icon { width: 18px; height: 18px; transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.select-trigger[aria-expanded=true] .ui-icon { transform: rotate(180deg); }
.select-options { position: absolute; inset: calc(100% + 8px) 0 auto; min-width: max-content; padding: 6px; border: 1px solid #202d4618; border-radius: 16px; background: white; box-shadow: 0 12px 32px #202d4626; z-index: 20; transform-origin: top center; }
.select-options button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; border-radius: 10px; padding: 12px; text-align: left; line-height: 1.2; background: transparent; }
.select-options button:hover,.select-options button:focus-visible { background: #e9f0f5; outline-offset: -3px; }
.select-options button[aria-selected=true] { background: var(--navy); color: white; }
@media (prefers-reduced-motion: no-preference) {
  .select-options:not([hidden]) { animation: select-reveal .32s cubic-bezier(.2,.7,.2,1), select-open .54s cubic-bezier(.2,1.4,.35,1); }
}
@keyframes select-reveal {
  from { opacity: 0; clip-path: inset(0 -48px 100% -48px); }
  to { opacity: 1; clip-path: inset(-48px); }
}
@keyframes select-open {
  from { transform: translateY(-20px) scaleY(.9); }
  to { transform: translateY(0) scaleY(1); }
}
.refresh-button { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: white; flex-shrink: 0; }
.refresh-button:hover { background: #405875; }
.is-refreshing .ui-icon { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.autosave-status { margin-top: 22px; font-size: 13px; min-height: 22px; }
.autosave-retry { background: transparent; text-decoration: underline; margin-left: 8px; }
.project-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 12px; }
.project-search { position: relative; flex: 1 1 260px; }
.project-search .ui-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .65; }
.project-search input { background: white; height: 52px; padding: 14px 16px 14px 50px; border-radius: 14px; font-size: 14px; }
#project-result-count { margin-bottom: 18px; }
.card-toolbar button:disabled { cursor: default; }
@media (max-width: 600px) {
  .project-tools > .custom-select { flex: 1 1 145px; min-width: 0; }
  .project-tools .select-trigger { gap: 8px; padding-inline: 12px; }
  .select-options { min-width: 100%; max-width: calc(100vw - 32px); }
  .project-tools .custom-select:nth-child(3) .select-options { left: auto; right: 0; }
}

/* Continuous handbook scrolling, with the Figma range kept directly below it. */
.book-gallery { scroll-snap-type: none; scroll-behavior: auto; overscroll-behavior-x: contain; }
.book-gallery > .project-image { scroll-snap-align: none; flex-shrink: 0; }
.book-gallery .project-image { contain: layout paint; }
.section-insert { height: 54px; gap: 16px; }
.section-insert-button { width: 44px; height: 44px; min-height: 44px; padding: 10px; border-radius: 50%; background: var(--navy); color: white; opacity: 1; flex-shrink: 0; transition: background .15s, transform .15s; }
.section-insert-button:hover { background: #405875; transform: scale(1.08); }
.section-insert-button > .icon { width: 24px; height: 24px; padding: 0; background: transparent; }
@media (prefers-reduced-motion: reduce) { .is-refreshing .ui-icon { animation: none; } .section-insert-button { transition: none; } }
.editor-back .icon { transform: rotate(180deg); }
.visual-row-grid { gap: clamp(10px, 1.1vw, 20px); align-items: stretch; }
.content-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 20px); min-width: 0; align-items: stretch; }
.content-row > .section-text { min-width: 0; }
.content-row > .project-image { height: 100%; min-height: 240px; }
.visual-row-card { min-width: 0; display: flex; flex-direction: column; }
.visual-row-card > .visual-paragraph { flex: 1; min-height: 260px; }
.visual-row-card > .project-image,.visual-row-card > .visual-empty-images { border-top-left-radius: 0; border-top-right-radius: 0; flex: 1; }
.row-image-content { display: block; width: 100%; min-height: 240px; padding: 0; background: #eaf0f8; }
.row-image-content:active { transform: none; }
.row-item-drag { touch-action: none; cursor: grab; }
.row-item-drag:active { cursor: grabbing; transform: none; }
.row-item-drag img { pointer-events: none; -webkit-user-drag: none; }
.visual-row-card.is-dragging { opacity: .4; outline: 3px dashed var(--navy); outline-offset: 3px; border-radius: 12px; pointer-events: none; }
.visual-row-grid.is-reordering { cursor: grabbing; user-select: none; }
.section-choice-preview.preview-content-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.preview-content-row > i { height: 100%; }
.preview-content-row.text-image > i:first-child,.preview-content-row.image-text > i:last-child { height: 70%; background: repeating-linear-gradient(to bottom,var(--navy),var(--navy) 3px,transparent 3px,transparent 10px); }
#section-chooser { padding: 0; overflow: hidden; }
#section-chooser[open] { display: flex; flex-direction: column; }
#section-chooser > .dialog-top { flex-shrink: 0; margin: 0; padding: clamp(18px, 2.5vw, 32px); border-bottom: 1px solid #202d4618; }
.section-choice-scroll { overflow-y: auto; min-height: 0; padding: clamp(16px, 2.5vw, 32px); padding-right: clamp(12px, 2vw, 24px); scrollbar-gutter: stable; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--navy) var(--background); }
@supports selector(::-webkit-scrollbar) {
  .section-choice-scroll { scrollbar-color: auto; scrollbar-width: auto; }
  .section-choice-scroll::-webkit-scrollbar { width: 12px; }
  .section-choice-scroll::-webkit-scrollbar-track { background: var(--background); border-radius: 20px; margin-block: 12px; }
  .section-choice-scroll::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--background); border-radius: 20px; }
  .section-choice-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
.inbox-tools { --inbox-control-height: 64px; align-items: stretch; }
.inbox-tools > #inbox-search { height: var(--inbox-control-height); flex: 1; min-width: 0; }
.inbox-tools > .custom-select { flex: 0 0 210px; }
.inbox-tools .select-trigger { height: var(--inbox-control-height); min-height: var(--inbox-control-height); }
@media (max-width: 600px) {
  .content-row { grid-template-columns: 1fr; }
  .inbox-tools { --inbox-control-height: 56px; }
  .inbox-tools > #inbox-search { flex-basis: 100%; }
  .inbox-tools > .custom-select { flex: 1 1 100%; }
}
/* Shared controls: quiet section labels and block controls shown on hover/focus. */
.visual-editor .editor-block-toolbar {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 44px; min-height: 44px; padding: 4px 8px; margin: 0;
  background: var(--navy); color: white; border-radius: 12px 12px 0 0;
  opacity: 1; pointer-events: auto; flex-shrink: 0;
}
.visual-editor .editor-block-toolbar > .icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border-radius: 50%; padding: 7px; background: transparent; flex-shrink: 0;
}
.visual-editor .editor-block-toolbar > .icon-button:hover { background: #ffffff18; }
.visual-editor .editor-block-toolbar .icon { width: 22px; height: 22px; }
.editor-block-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.visual-editor .visual-section { border-radius: 12px; background: transparent; }
.visual-editor .section-toolbar { position: absolute; top: -57px; left: 0; z-index: 3; width: max-content; max-width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 6px 8px; gap: 4px; background: var(--navy); color: white; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.visual-editor .section-toolbar > .editor-block-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.visual-editor .section-toolbar > .icon-button { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 6px; background: transparent; pointer-events: inherit; }
.visual-editor .section-toolbar > .icon-button .icon { width: 20px; height: 20px; }
.visual-section:hover > .section-toolbar,.visual-section:focus-within > .section-toolbar { opacity: 1; pointer-events: auto; }
.visual-editor .visual-image-card,.visual-editor .visual-row-card { position: relative; }
.visual-editor .visual-image-card > .editor-block-toolbar,.visual-editor .visual-row-card > .editor-block-toolbar { position: relative; inset: auto; z-index: 2; height: var(--editor-block-height); min-height: var(--editor-block-height); opacity: 1; pointer-events: auto; }
.visual-editor .visual-image-card:hover > .editor-block-toolbar,.visual-editor .visual-image-card:focus-within > .editor-block-toolbar,.visual-editor .visual-row-card:hover > .editor-block-toolbar,.visual-editor .visual-row-card:focus-within > .editor-block-toolbar { opacity: 1; pointer-events: auto; }
.visual-editor { --editor-block-height: clamp(44px,3.64583vw,70px); --editor-block-control: clamp(36px,2.60417vw,50px); }
.visual-editor .visual-image-card > .editor-block-toolbar > .icon-button, .visual-editor .visual-row-card > .editor-block-toolbar > .icon-button, .visual-editor .visual-section > .section-toolbar > .icon-button, .visual-editor .section-history > .icon-button { width: var(--editor-block-control); height: var(--editor-block-control); min-width: var(--editor-block-control); min-height: var(--editor-block-control); }
.visual-editor .editor-block-toolbar .icon { width: clamp(22px,1.5625vw,30px); height: clamp(22px,1.5625vw,30px); }
.visual-editor .visual-section > .section-toolbar .icon { width: clamp(22px,1.5625vw,30px); height: clamp(22px,1.5625vw,30px); }
.visual-editor .visual-image-card:has(> .image-edit-toolbar) > .project-image, .visual-editor .visual-row-card > .project-image { border-top-left-radius: 0; border-top-right-radius: 0; }
.visual-editor .visual-section { padding-top: calc(var(--editor-block-height) + 8px); }
.visual-editor .visual-section::before { display: none; }
.visual-editor .visual-section > .section-toolbar { inset: 0 0 auto; width: 100%; max-width: none; height: var(--editor-block-height); min-height: var(--editor-block-height); padding: 4px 12px; border-radius: 12px; background: rgb(32 45 70 / 65%); }
.section-toolbar-spacer { flex: 1; }
.section-history { display: flex; align-items: center; gap: 6px; }
.visual-row-card > .rich-text-editor { border-top-left-radius: 0; border-top-right-radius: 0; }
.visual-row-card > .rich-text-editor > .rich-text-tools { top: calc(-1 * var(--editor-block-height)); height: var(--editor-block-height); }
.visual-row-card > .rich-text-editor > .rich-text-tools > .rich-tools-toggle { top: 50%; right: calc(var(--editor-block-control) + 20px); width: var(--editor-block-control); height: var(--editor-block-control); min-height: var(--editor-block-control); transform: translateY(-50%); opacity: 1; background: transparent; }
.visual-row-card > .rich-text-editor > .rich-text-tools > .rich-tools-toggle:hover { background: #ffffff18; }
.visual-row-card > .rich-text-editor > .rich-text-content { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: var(--space); }
@media (hover: hover) and (pointer: fine) {
  .visual-editor .visual-section-wrap { gap: 0; }
  .visual-editor .visual-sections { gap: 0; }
  .visual-editor .section-insert { height: 8px; z-index: 4; transition: height 280ms cubic-bezier(.22, 1, .36, 1); }
  .visual-editor .section-insert-hit-area { position: absolute; inset: -16px 0; }
  .visual-editor .section-insert-button { position: relative; z-index: 1; }
  .visual-editor .section-insert::before, .visual-editor .section-insert::after { opacity: 0; transition: opacity 180ms ease; }
  .section-insert > .section-insert-button { opacity: 0; pointer-events: none; transform: scale(.85); transition: opacity 180ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1), background 150ms ease; }
  .visual-editor .section-insert:hover, .visual-editor .section-insert:focus-within,
  .visual-editor .section-insert.always-visible { height: 54px; }
  .section-insert:hover::before, .section-insert:hover::after,
  .section-insert:focus-within::before, .section-insert:focus-within::after,
  .section-insert.always-visible::before, .section-insert.always-visible::after { opacity: 1; }
  .section-insert:hover > .section-insert-button, .section-insert:focus-within > .section-insert-button, .section-insert.always-visible > .section-insert-button { opacity: 1; pointer-events: auto; }
  .section-insert:hover > .section-insert-button, .section-insert:focus-within > .section-insert-button,
  .section-insert.always-visible > .section-insert-button { transform: scale(1); }
  .visual-editor .visual-section { padding-top: 0; transition: padding-top 280ms cubic-bezier(.22, 1, .36, 1); }
  .visual-editor .visual-section > .section-toolbar { opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 180ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1); }
  .visual-editor .visual-section:hover,
  .visual-editor .visual-section:focus-within { padding-top: calc(var(--editor-block-height) + 8px); }
  .visual-editor .visual-section:hover:not(:focus-within) { transition-delay: 180ms; }
  .visual-editor .visual-section:hover > .section-toolbar,
  .visual-editor .visual-section:focus-within > .section-toolbar { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .visual-editor .visual-section:hover:not(:focus-within) > .section-toolbar { transition-delay: 180ms; }
}
.visual-editor .editor-heading-input { display: block; min-width: 0; width: 100%; padding: 0; border-radius: 0; background: transparent; color: white; font-size: clamp(16px,1.45833vw,28px); line-height: 1.4; font-weight: 700; }
.visual-editor .editor-heading-input::placeholder { color: #ffffffa6; }
.visual-editor .editor-heading-input:focus { outline: 1px dashed #ffffffa6; outline-offset: 3px; }
.section-body { min-width: 0; border-radius: 0 0 12px 12px; }
.editor-row-body { padding: 0; }
.visual-editor .visual-row-grid,.visual-editor .visual-image-grid { gap: 12px; }
.visual-editor .section-body > .visual-paragraph,.visual-editor .section-body > .visual-empty-images,.visual-editor .visual-image-card > .project-image,.visual-editor .visual-row-card > .visual-paragraph,.visual-editor .visual-row-card > .project-image,.visual-editor .visual-row-card > .visual-empty-images { border-radius: var(--radius); }
.visual-editor .visual-image-card > .editor-block-toolbar + .project-image,
.visual-editor .visual-row-card > .editor-block-toolbar + .project-image { border-top-left-radius: 0; border-top-right-radius: 0; }
.visual-editor .visual-row-card > .visual-paragraph { padding-top: max(var(--space),56px); }
.row-settings-fields { display: flex; flex-direction: column; gap: 20px; }
.row-settings-fields fieldset { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 18px; border: 1px solid #202d4633; border-radius: 12px; }
.row-settings-fields legend { font-size: 14px; font-weight: 700; padding-inline: 8px; }
.contact-settings .custom-select { max-width: 420px; width: 100%; }
.google-settings-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.media-tile .media-file-size { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.media-tile { align-content: start; }
.media-tile .media-size-warning { color: #9a5700; font-weight: 500; }
.media-tile .media-size-heavy { color: #b42332; font-weight: 500; }
.google-settings .field input { font-size: 14px; }
.cookie-preferences { padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; }
.footer-bottom > div { flex-wrap: wrap; }
.analytics-consent { position: fixed; z-index: 60; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(760px,calc(100% - 32px)); display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid #ffffff26; border-radius: 20px; background: var(--navy); color: white; box-shadow: 0 10px 40px #202d4640; font-size: 12px; }
.analytics-consent h2 { margin-bottom: 6px; font-size: 16px; }
.analytics-consent p { line-height: 1.6; }
.analytics-consent-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 210px; }
.analytics-consent-actions button { min-height: 44px; padding: 10px 14px; border-radius: 10px; background: white; color: var(--navy); font-size: 12px; font-weight: 500; }
.analytics-consent-actions button:hover { background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .analytics-consent:not([hidden]) { animation: select-reveal 240ms ease; }
}
@media (max-width: 600px) {
  .google-settings-fields { grid-template-columns: 1fr; gap: 22px; }
  .analytics-consent { bottom: 12px; flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .analytics-consent-actions { flex: auto; }
}
.contact-settings .select-trigger { background: var(--muted); }
#formspree-settings { display: flex; flex-direction: column; gap: 16px; }
#formspree-settings .field { max-width: 700px; }
.contact-settings .field-help { line-height: 1.7; max-width: 850px; }
@media (max-width: 600px) {
  .visual-editor .editor-block-toolbar { gap: 6px; }
  .editor-block-label { font-size: 11px; }
  .visual-editor .visual-row-grid,.visual-editor .visual-image-grid { gap: 8px; }
}
@media (hover: none), (pointer: coarse) {
  .visual-editor .visual-image-card > .editor-block-toolbar,.visual-editor .visual-row-card > .editor-block-toolbar,.visual-editor .section-toolbar { opacity: 1; pointer-events: auto; }
}

/* Animate the tab lettering while keeping the folder colors steady. */
.folder-tab-label { display: inline-block; }
.folder-tab:active { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .folder-tab-label { transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
  .folder-tab:focus-visible .folder-tab-label { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .folder-tab:hover .folder-tab-label { transform: translateY(-3px); }
}
@media (max-width: 600px) {
  .folder-tab:last-child { background-image: none; background-color: var(--navy); border-radius: 20px 20px 0 0; }
  .folder-tab:last-child.active { background-color: var(--blue); }
  .folder-panel { border-top-right-radius: 0; }
}
/* Public and editable projects share the same title bar. */
.topbar.project-titlebar { min-height: clamp(56px,5.20833vw,100px); padding: clamp(14px,1.30208vw,25px) var(--space); gap: 20px; }
.project-titlebar > h1,.project-titlebar > .visual-project-title { flex: 1; min-width: 0; font-size: clamp(15px,1.875vw,36px); font-weight: 400; line-height: 1.4; }
.project-titlebar .project-header-actions { gap: 10px; }
.project-titlebar .icon-button:disabled { cursor: default; opacity: .35; }
.project-titlebar .icon-button:focus-visible { outline-color: white; outline-offset: 0; }
.project-titlebar .icon-button { min-width: 44px; min-height: 44px; padding: 7px; }
.project-titlebar .icon { width: 30px; height: 30px; }
.project-add-bar { min-height: 64px; margin-bottom: var(--space); padding: 10px 20px; border-radius: 8px; background: var(--ink-soft); color: white; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project-add-bar .icon { width: 24px; height: 24px; }
.project-autosave-status { font-size: 12px; min-height: 18px; }
.project-settings { border-radius: var(--radius); background: #ffffff70; padding: 20px; }
.project-settings > summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.project-settings[open] > summary { margin-bottom: 20px; }
@media (max-width: 600px) {
  .topbar.project-titlebar { min-height: 56px; padding: 8px 16px; gap: 8px; }
  .project-titlebar .project-header-actions { gap: 0; }
  .project-titlebar .icon-button { min-width: 36px; min-height: 40px; padding: 6px; }
  .project-titlebar .icon { width: 24px; height: 24px; }
  .project-titlebar > .visual-project-title { font-size: 15px; }
  .project-add-bar { min-height: 46px; padding: 2px 8px; }
}
/* Keep the contact card's size while its confirmation comes in and out. */
.contact-message { position: relative; }
.contact-message-body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: inherit; }
.contact-message-body > .field { flex: 1; }
.contact-success { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.contact-success h2 { font-size: clamp(28px, 2.6vw, 50px); line-height: 1.15; }
.contact-success p { color: var(--ink-soft); }
.contact-success-icon { width: clamp(80px, 7vw, 120px); height: auto; margin-bottom: 8px; overflow: visible; }
.contact-success-ring { stroke: var(--blue); stroke-width: 4; }
.contact-success-check { stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.contact-success:focus { outline: none; }
.contact-message.is-sent .contact-message-body { opacity: 0; visibility: hidden; }
.contact-message.is-sent .contact-success { opacity: 1; visibility: visible; }
@keyframes contact-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes contact-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .contact-message-body { transition: opacity 280ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1), visibility 0s; }
  .contact-message.is-sent .contact-message-body { transform: translateY(-12px); transition-delay: 0ms, 0ms, 280ms; }
  .contact-success { transform: translateY(16px) scale(.96); transition: opacity 280ms ease, transform 460ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 460ms; }
  .contact-message.is-sent .contact-success { transform: translateY(0) scale(1); transition-delay: 140ms, 140ms, 0ms; }
  .contact-message.is-sent .contact-success-ring { stroke-dasharray: 1; animation: contact-ring 600ms cubic-bezier(.22, 1, .36, 1) 240ms both; }
  .contact-message.is-sent .contact-success-check { stroke-dasharray: 1; animation: contact-check 380ms cubic-bezier(.22, 1, .36, 1) 650ms both; }
}
/* Small, one-time entrances preserve the layout and the original visual identity. */
.typed-name { position: relative; display: inline-block; }
.typed-name-visual { display: none; }
.hero-body { padding-block: 60px; }
.hero-photos { position: relative; width: 29.08%; flex-shrink: 0; aspect-ratio: 1; perspective: 1100px; }
.portrait-flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(0deg); }
.portrait-flip > .portrait, .portrait-hover { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hero-photos .portrait { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photos .portrait[src="/assets/home-imgRectangle2.png"], .profile-photo-media .portrait-preview[src="/assets/home-imgRectangle2.png"] { object-fit: fill; object-position: bottom; }
.portrait-hover { overflow: hidden; }
.portrait-hover { position: absolute; inset: 0; border-radius: 12px; transform: rotateY(180deg); pointer-events: none; }
.portrait-hover > img { width: 100%; height: 100%; object-fit: cover; }
.portrait-hover > img.robot-crop, .profile-photo-media > img.portrait-preview.robot-crop { position: absolute; width: 112.26%; height: 112.26%; max-width: none; left: -5.94%; top: -.11%; }
.profile-photo-field { display: flex; flex-direction: column; gap: 14px; }
.profile-photo-card { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--muted); }
.profile-photo-media { position: absolute; inset: 0; display: grid; place-items: center; }
.profile-photo-media .portrait-preview { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.profile-photo-upload { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #202d4680; opacity: 0; cursor: pointer; }
.profile-photo-upload > span { background: var(--blue); color: white; padding: 12px 24px; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.profile-photo-card:hover .profile-photo-upload, .profile-photo-card:focus-within .profile-photo-upload { opacity: 1; }
.profile-photo-card:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }
.profile-photo-card:has(input:disabled) { opacity: .6; }
@media (hover: none), (pointer: coarse) { .profile-photo-upload { opacity: 1; background: #202d4626; } }
.photo-swap { position: absolute; inset: 0; background: transparent; border-radius: 12px; z-index: 3; }
.hero-photos.is-swapped .portrait-flip { transform: rotateY(180deg); }

@media (hover: hover) and (pointer: fine) {
  .hero-photos.has-secondary:hover .portrait-flip { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-flip { transition: transform 700ms cubic-bezier(.34,1.5,.64,1); }
}
/* Each tab keeps its own silhouette; selection changes only the color. */
.folder-tab, .folder-tab.active, .folder-tab:last-child, .folder-tab:last-child.active {
  background-image: none; background-color: var(--navy); border-radius: 0; isolation: isolate;
  mask: url('/assets/home-imgFrame6.svg') 0 0 / 100% 100% no-repeat;
}
.folder-tab:first-child { mask-image: url('/assets/home-imgFrame4.svg'); }
.folder-tab.active, .folder-tab:last-child.active { background-color: var(--blue); }
.folder-tab:focus-visible { outline: none; }
.folder-tab:focus-visible .folder-tab-label { outline: 2px solid white; outline-offset: 5px; border-radius: 2px; }
.project-link { border-radius: 12px; overflow: hidden; }
.project-cover { position: relative; }
.project-cover-media { position: absolute; inset: 0; transform: scale(1); }
.project-cover-media > img { width: 100%; height: 100%; object-fit: cover; }
.project-cover-media > .project-hover-cover { position: absolute; inset: 0; opacity: 0; }
.project-caption { position: relative; }
.project-caption-default, .project-caption-hover { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.project-caption-hover { position: absolute; inset: 0; padding: inherit; opacity: 0; }
.project-caption-hover .icon { width: 26px; height: 26px; }
.project-caption-default > span:first-child, .project-caption-hover > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-link:focus-visible .project-hover-cover { opacity: 1; }
.project-link:focus-visible .project-caption-default { opacity: 0; }
.project-link:focus-visible .project-caption-hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .project-link:hover .project-hover-cover { opacity: 1; }
  .project-link:hover .project-caption-default { opacity: 0; }
  .project-link:hover .project-caption-hover { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .project-cover-media { transition: transform 380ms cubic-bezier(.22,1,.36,1); }
  .project-hover-cover, .project-caption-default, .project-caption-hover { transition: opacity 240ms ease; }
}
.project-link:hover .project-cover-media, .project-link:focus-visible .project-cover-media { transform: scale(1.025); }
.book-gallery { --book-page-height: clamp(160px, calc(100svh - 200px), 900px); align-items: flex-start; }
.book-gallery > .project-image { flex: 0 0 auto; width: min(calc(var(--book-page-height) * 1.4142857), 92%); max-height: none; }
.book-gallery .project-image img { object-fit: contain; background: #eaf0f8; }
.visual-editor .book-gallery { --book-page-height: clamp(160px, calc(100svh - clamp(64px,5.20833vw,100px) - var(--space) - 180px), 848px); }
.book-controls { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 6px; }
.book-controls .book-scrollbar { flex: 1; min-width: 0; width: auto; }
.book-controls .icon-button { width: 44px; height: 44px; min-width: 44px; background: var(--navy); color: white; font-size: 24px; }
.book-controls .icon-button:hover { background: var(--blue); color: var(--navy); }
.book-controls .icon-button:disabled { cursor: default; opacity: .35; }
/* Sliders fit the viewport; standalone images fill the section at their own ratio. */
.image-row.cols-1 > .project-image, .visual-image-grid.cols-1 > .visual-image-card > .project-image, .image-slider-track > .project-image {
  aspect-ratio: auto; height: clamp(180px, calc(100svh - 180px), 900px); min-height: 0; background: #eaf0f8;
}
.image-row.cols-1 > .project-image, .visual-image-grid.cols-1 > .visual-image-card > .project-image {
  width: 100%; max-width: 100%; height: auto; margin-inline: 0; background: transparent;
}
.image-row.cols-1 > .project-image > img, .visual-image-grid.cols-1 > .visual-image-card > .project-image > img {
  position: static; display: block; width: 100%; height: auto; max-width: 100%; max-height: none;
}
.image-row.cols-1 > .project-image > img, .visual-image-grid.cols-1 > .visual-image-card > .project-image > img, .image-slider-track > .project-image > img { object-fit: contain; }
.visual-editor .visual-section { scroll-margin-top: 24px; }
.footer-top { justify-content: center; text-align: center; }
.footer nav { gap: 8px; }
.footer-socials { justify-content: center; margin-top: 32px; }
.footer-bottom { font-size: clamp(10px,.83333vw,16px); }
.owner-nav { gap: 10px; margin-block: var(--space); flex-wrap: nowrap; }
.owner-nav a { padding: clamp(10px,1.04167vw,20px) clamp(12px,2.08333vw,40px); border-radius: var(--radius); color: white; background: #202d4659; font-size: clamp(12px,1.04167vw,20px); }
.owner-topbar .wordmark { font-size: clamp(18px,1.875vw,36px); }
.owner-topbar nav { gap: 24px; }
.owner-topbar nav .icon-button { padding: 7px; text-decoration: none; }
.owner-topbar nav a { font-size: clamp(13px,.83333vw,16px); }
.owner-stats { gap: 15px; margin-block: 0 15px; }
.stat { padding: 25px; border-radius: var(--radius); }
.stat strong { font-size: 32px; margin-bottom: 10px; }
.stat span { font-size: clamp(15px,1.04167vw,20px); }
.stat:nth-child(2) strong { color: #28d642; }
.stat:last-child { background: var(--ink-soft); color: white; }
.stat:last-child span { color: white; }
.project-tools { margin-block: 0 25px; gap: 15px; }
.project-tools .project-search input, .project-tools .select-trigger { height: clamp(50px,3.38542vw,65px); border-radius: var(--radius); }
.project-tools .refresh-button { border-radius: var(--radius); background: var(--ink-soft); }
.owner-add-card { display: grid; place-items: center; text-decoration: none; background: #202d4626; border-radius: 12px; color: white; }
.owner-add-card .icon { width: 30px; height: 30px; }
.owner-add-card:hover { background: #202d4638; }
@media (max-width: 600px) {
  .owner-shell { padding-top: 50px; }
  .owner-topbar { position: relative; flex-wrap: nowrap; padding: 8px 20px; }
  .owner-topbar nav { width: auto; gap: 0; }
  .owner-topbar nav a { position: absolute; top: calc(100% + 25px); left: 0; color: var(--navy); white-space: nowrap; }
  .owner-topbar nav .icon-button { min-width: 40px; min-height: 40px; }
  .owner-topbar nav .icon { width: 24px; height: 24px; }
  .owner-nav { margin-block: 68px 25px; gap: 5px; }
  .owner-nav a { min-width: 0; padding: 10px 6px; font-size: 11px; }
  .owner-stats { grid-template-columns: 1fr; gap: 10px; }
  .project-tools { gap: 10px; margin-bottom: 15px; }
  .project-tools .custom-select { flex-basis: calc(50% - 36px); font-size: 11px; }
  .project-tools .project-search { flex-basis: 100%; }
  .project-tools .select-trigger { min-height: 44px; height: 44px; padding: 10px; border-radius: 12px; }
  .project-tools .refresh-button { width: 44px; height: 44px; }
  .owner-add-card { display: none; }
  .login-form .input-icon > .icon, .contact-form .input-icon > .icon { width: 18px; height: 18px; }
  .login-form .show-password img { width: 18px; height: 18px; }
  .login-card .topbar h1 { font-size: 18px; }
  .contact-details .social-icon-dark { width: 40px; height: 40px; }
  .footer nav { font-size: 12px; gap: 12px; }
  .footer-socials { margin-top: 35px; gap: 20px; }
  .footer-socials .social-icon { width: 20px; height: 20px; }
  .footer-bottom { align-items: center; text-align: center; font-size: 8px; gap: 20px; margin-top: 25px; }
  .footer-bottom > div { justify-content: center; gap: 25px; }
  .footer-bottom .copyright-icon { width: 9px; height: 9px; }
}
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; padding: 8px; color: white; background: var(--navy); box-shadow: 0 4px 16px #202d4626; }
.back-to-top svg { width: 40px; height: 40px; }
.back-to-top:hover { background: var(--blue); color: var(--navy); }
/* Compact fields and a single background keep entered and autofilled text aligned. */
:where(.field, .login-form) > input:not([type=hidden]), .field > select { padding: 14px 16px; border-radius: 10px; min-height: 50px; }
textarea { padding: 14px 16px; }
.input-icon { background: #dfe1e5; padding-inline: 16px; gap: 12px; border-radius: 10px; overflow: clip; }
.input-icon > .icon { width: 20px; height: 20px; }
.input-icon input:not([type=checkbox]) { border-radius: 0; padding: 14px 0; background: transparent; line-height: 22px; }
.input-icon input:autofill { box-shadow: 0 0 0 1000px #dfe1e5 inset; }
.input-icon input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #dfe1e5 inset; -webkit-text-fill-color: var(--navy); }
.input-icon:focus-within { outline: 1px solid var(--navy); outline-offset: 2px; }
.show-password { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 7px; border-radius: 50%; }
.show-password img { width: 22px; height: 22px; }
.show-password:hover { background: #202d4612; }
.login-form { width: min(100%, 540px); gap: 12px; }
.login-form > .button { min-height: 54px; padding: 14px 20px; }
.field-error, .form-error { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 16px; border-radius: 10px; background: rgb(214 40 40 / 15%); color: rgb(214 40 40 / 65%); font-size: 13px; line-height: 1.4; }
.field-error > span, .form-error > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.field-error-icon, .field-error-alert, .field-inline-alert { width: 22px; height: 22px; flex-shrink: 0; }
.field-error-alert { margin-left: auto; }
.field-error.is-embedded { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.input-icon.has-field-error { background: rgb(214 40 40 / 15%); }
.input-icon.has-field-error input::placeholder { color: rgb(214 40 40 / 65%); }
.input-icon.has-field-error .show-password { display: none; }
.login-form .input-icon > .icon { opacity: 1; }
[aria-invalid=true]:not(.custom-select) { outline-color: #c92d36; }
.input-icon:has([aria-invalid=true]) { outline: 1px solid #c92d36; outline-offset: 2px; }
.login-remember { padding: 8px 0; border-radius: 10px; gap: 12px; }
.login-remember input { appearance: none; width: 24px; height: 24px; padding: 0; border: 1px solid var(--navy); border-radius: 6px; background: white; display: grid; place-items: center; cursor: pointer; }
.login-remember:hover input:not(:checked) { border-color: var(--navy); }
.login-remember input:focus:not(:focus-visible) { outline: none; }
.login-remember input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.login-remember input:checked { background: var(--navy); border-color: var(--navy); }
.login-remember input:checked::after { content: ''; width: 10px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-1px) rotate(-45deg); }
.login-remember > span { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 16px; font-weight: 500; }
.login-remember small { margin: 0 0 0 auto; font-size: 12px; font-weight: 400; text-align: right; }
.owner-nav-label { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .owner-nav-label { transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
  .owner-nav a:focus-visible .owner-nav-label { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .owner-nav a:hover .owner-nav-label { transform: translateY(-3px); }
}
.owner-card .project-link { border-top-left-radius: 0; border-top-right-radius: 0; }
.owner-card .project-cover, .owner-card .project-cover-media > img { border-radius: 0; }
/* Keep the image clipped to the same rounded corners as its overlay toolbar. */
.visual-editor .visual-image-card > .editor-block-toolbar, .visual-editor .visual-row-card > .editor-block-toolbar { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.visual-heading .section-heading { width: 100%; }
.project-editor-settings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.project-editor-settings .project-autosave-status { order: 1; }
.project-editor-settings .form-status:empty { display: none; }
.project-settings { background: white; padding: clamp(18px,1.7vw,32px); }
.project-editor-settings { margin-top: calc(-1 * clamp(16px,1.45833vw,28px)); }
.project-settings { border-radius: 0 0 var(--radius) var(--radius); padding: clamp(20px,2.60417vw,50px); }
.project-settings:not([open]), .project-settings > summary { display: none; }
.visual-editor-form:has(.project-settings[open]) .visual-editor-header .topbar { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.project-settings-layout { grid-template-columns: minmax(0,542fr) minmax(0,962fr); gap: clamp(18px,1.5625vw,30px); align-items: center; }
.project-covers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(10px,.78125vw,15px); min-width: 0; }
.project-basic-settings { display: flex; flex-direction: column; gap: clamp(16px,1.5625vw,30px); min-width: 0; }
.project-settings-layout .field { gap: clamp(6px,.52083vw,10px); }
.project-settings-layout .field > label, .project-cover-field > h3 { font-size: clamp(12px,.9375vw,18px); font-weight: 700; }
.project-settings-layout input:not([type=checkbox]):not([type=file]), .project-settings-layout select, .project-settings-layout textarea { height: clamp(44px,3.38542vw,65px); padding: clamp(12px,1.25vw,24px); border-radius: 12px; font-size: clamp(12px,.9375vw,18px); }
.project-settings-layout textarea { min-height: 65px; padding-block: 12px; }
.project-settings-layout .input-icon { gap: 8px; border-radius: 8px; padding-inline: 12px; }
.project-settings-layout .input-icon > .icon { width: 20px; height: 20px; }
.project-settings-layout .input-icon input { padding-inline: 0; background: transparent; }
.project-settings-layout .checkbox { align-items: center; font-size: 11px; gap: 9px; line-height: 1.5; }
.project-settings-layout .checkbox input { flex-shrink: 0; width: 16px; height: 16px; }
.project-year-control { position: relative; }
.project-year-control input { appearance: textfield; padding-right: 48px !important; }
.project-year-control input::-webkit-inner-spin-button { appearance: none; }
.project-year-stepper { position: absolute; inset: 0 8px 0 auto; display: grid; place-items: center; width: 38px; }
.project-year-stepper > button { position: absolute; inset: 0 0 auto; width: 100%; height: 50%; padding: 0; background: transparent; }
.project-year-stepper > button:last-child { inset: auto 0 0; }
.project-settings-layout .project-published { position: relative; gap: clamp(10px,.83333vw,16px); font-size: clamp(11px,.9375vw,18px); color: var(--ink-soft); }
.project-settings-layout .project-published input { position: absolute; left: 0; width: 28px; height: 28px; margin: 0; opacity: 0; }
.project-published-check { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #202d4640; border-radius: 6px; background: var(--muted); }
.project-published-check > img { opacity: 0; }
.project-published input:checked + .project-published-check { border-color: var(--navy); background: var(--navy); }
.project-published input:checked + .project-published-check > img { opacity: 1; }
.project-published input:focus-visible + .project-published-check { outline: 3px solid #1268b3; outline-offset: 3px; }
.project-delete-button { align-self: start; padding: 0; background: transparent; color: #a72f3c; text-decoration: underline; font-size: 11px; }
.project-cover-field { display: flex; flex-direction: column; gap: clamp(10px,.78125vw,15px); min-width: 0; }
.project-cover-preview { display: grid; place-items: center; position: relative; aspect-ratio: 842/595; width: 100%; padding: 0; border-radius: 12px; overflow: hidden; background: #edf2f8; text-align: center; }
.project-cover-preview .cover-preview { width: 100%; height: 100%; border-radius: inherit; }
.cover-empty { font-size: 12px; color: var(--ink-soft); }
.cover-library-hint { position: absolute; inset: auto 0 0; padding: 12px; background: #202d46e8; color: white; font-size: 11px; opacity: 0; transition: opacity .18s; }
.project-cover-preview:hover .cover-library-hint, .project-cover-preview:focus-visible .cover-library-hint { opacity: 1; }
.project-cover-field .cover-actions { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: clamp(10px,.78125vw,15px); }
.cover-upload-button { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border-radius: 12px; background: var(--navy); color: white; font-size: clamp(12px,1.04167vw,20px); font-weight: 500; text-align: center; cursor: pointer; }
.cover-upload-button:has(input:disabled) { opacity: .6; cursor: wait; }
.cover-upload-button:focus-within { outline: 3px solid #1268b3; outline-offset: 3px; }
.cover-upload-button:hover { background: #405875; }
.cover-remove-button { display: grid; place-items: center; width: 64px; min-height: 64px; padding: 0; border-radius: 12px; background: transparent; color: white; }
.cover-remove-button > .icon { width: 22px; height: 22px; }
.cover-remove-button:hover { background: var(--navy); }
.cover-remove-button:disabled { opacity: .4; cursor: default; }
#cover-upload-status:empty { display: none; }
#cover-upload-status { margin-top: 12px; }
@media (max-width: 900px) {
  .project-settings-layout { grid-template-columns: minmax(0,1fr); }
  .project-basic-settings { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project-settings-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .project-covers { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .project-settings-layout .field > label, .project-cover-field > h3 { font-size: 12px; }
  .rich-text-toolbar > label { font-size: 10px; }
  .rich-text-toolbar select, .rich-text-toolbar input, .rich-text-toolbar button { font-size: 11px; }
  .cover-library-hint { position: static; opacity: 1; grid-area: 1 / 1; align-self: end; width: 100%; padding: 8px; font-size: 10px; }
  .project-cover-preview .cover-preview, .project-cover-preview .cover-empty { grid-area: 1 / 1; }
}
.project-input-error { margin-top: 8px; }
.project-title-error { margin-top: 10px; }
.visual-section > .project-input-error { margin-top: 10px; }
/* Reviewed Figma dashboard menus and field states. */
.owner-topbar nav .icon-button { width: 50px; height: 50px; }
.stat { padding: clamp(18px,1.30208vw,25px); }
.stat strong { font-size: clamp(24px,1.66667vw,32px); line-height: 1.3; margin-bottom: clamp(8px,.52083vw,10px); }
.stat span { line-height: 1.3; }
.project-search .ui-icon { width: clamp(18px,1.5625vw,30px); height: clamp(18px,1.5625vw,30px); left: clamp(15px,1.25vw,24px); opacity: 1; }
.project-search input { padding-left: clamp(43px,3.64583vw,70px); font-size: clamp(13px,1.04167vw,20px); }
.project-tools .custom-select { font-size: clamp(13px,1.04167vw,20px); }
.project-tools .select-trigger .ui-icon { width: clamp(18px,1.5625vw,30px); height: clamp(18px,1.5625vw,30px); }
.project-tools .select-options { display: flex; flex-direction: column; gap: clamp(7px,.52083vw,10px); padding: clamp(7px,.52083vw,10px); min-width: max-content; max-width: calc(100vw - 48px); border: 0; border-radius: var(--radius); }
.project-tools .select-options button { min-height: clamp(44px,3.38542vw,65px); padding: 12px clamp(16px,1.25vw,24px); border-radius: 10px; font-weight: 500; }
.project-tools .select-options button > span { display: none; }
.project-tools .select-options button { white-space: nowrap; }
.project-tools .refresh-button { width: clamp(44px,3.33333vw,64px); height: clamp(44px,3.33333vw,64px); padding: 0; background: transparent; }
.admin-reset-icon { width: inherit; height: inherit; }
.project-tools .refresh-button:hover { filter: brightness(1.1); }
.login-form > .button:hover, .contact-actions > .button:hover { background: var(--blue); color: var(--navy); }
.profile-photo-upload:hover > span { background: #54c0f2a6; }
.social-link { position: relative; display: inline-block; }
.social-link .social-hover { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.social-link:hover .social-hover, .social-link:focus-visible .social-hover { opacity: 1; }
.social-link:hover > img:first-child, .social-link:focus-visible > img:first-child { opacity: 0; }
.reset-button { position: relative; }
.reset-button .reset-icon { width: 100%; height: 100%; }
.reset-button .reset-hover { position: absolute; inset: 0; opacity: 0; }
.reset-button:hover .reset-hover, .reset-button:focus-visible .reset-hover { opacity: 1; }
.reset-button:hover > img:first-child, .reset-button:focus-visible > img:first-child { opacity: 0; }
.section-add-button:hover, .section-add-button:focus-within { background: var(--blue); }
@media (max-width: 600px) {
  .owner-shell { width: calc(100% - 48px); }
  .owner-topbar nav .icon-button { width: 40px; height: 40px; }
  .stat { padding: 25px; }
  .stat strong { font-size: 32px; margin-bottom: 10px; }
  .project-tools .custom-select { font-size: 11px; }
  .owner-card .card-toolbar { padding: 2px 10px; }
  .owner-card .card-toolbar .icon-button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 9px; }
  .owner-card .card-toolbar .icon { width: 22px; height: 22px; }
  .field-error-icon, .field-error-alert, .field-inline-alert { width: 18px; height: 18px; }
}
.image-enlarge { position: absolute; inset: 0; width: 100%; padding: 0; background: transparent; border-radius: inherit; cursor: zoom-in; }
.image-enlarge:active { transform: none; }
.image-enlarge:focus-visible { outline-offset: -6px; }
html.lightbox-open { overflow: hidden; }
dialog.project-lightbox { width: var(--shell); max-width: 1620px; height: calc(100svh - 48px); max-height: none; padding: 0; background: var(--blue); color: var(--navy); border-radius: var(--radius); overflow: hidden; }
.project-lightbox[open] { display: flex; flex-direction: column; }
.project-lightbox::backdrop { background: #202d46b8; }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; gap: 20px; background: var(--navy); color: white; padding: 12px 24px; min-height: 68px; }
.lightbox-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(14px,1.4vw,24px); }
.lightbox-header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.lightbox-count { font-size: 13px; white-space: nowrap; }
.lightbox-close { font-size: 32px; line-height: 1; }
.lightbox-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 16px; padding: clamp(12px,1.6vw,28px); }
.lightbox-stage figure { height: 100%; min-height: 0; min-width: 0; margin: 0; display: flex; flex-direction: column; background: #eaf0f8; border-radius: 12px; overflow: hidden; }
.lightbox-image-wrap { flex: 1; min-height: 0; padding: 12px; }
.lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y; }
.lightbox-stage figcaption { flex-shrink: 0; text-align: center; font-size: 13px; width: 100%; overflow-wrap: anywhere; max-height: 5em; overflow: auto; padding: 14px 20px; background: var(--navy); color: white; }
.lightbox-prev, .lightbox-next { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; font-size: 26px; }
.lightbox-prev:hover, .lightbox-next:hover { background: white; color: var(--navy); }
@media (max-width: 1000px) and (min-width: 601px) { .hero-photos { width: 32%; } }
@media (max-width: 600px) {
  .hero-body { padding-block: 32px; }
  .hero-photos { width: 100%; }
  .book-gallery > .project-image { flex-basis: auto; }
  .back-to-top { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .back-to-top svg { width: 32px; height: 32px; }
  dialog.project-lightbox { width: calc(100vw - 16px); height: calc(100svh - 16px); padding: 0; border-radius: 12px; }
  .lightbox-toolbar { padding: 8px 12px; gap: 8px; min-height: 56px; }
  .lightbox-header-actions { gap: 8px; }
  .lightbox-title { font-size: 13px; }
  .lightbox-count { font-size: 11px; }
  .lightbox-stage { display: flex; position: relative; justify-content: center; padding: 12px; }
  .lightbox-stage figure { width: 100%; }
  .lightbox-prev, .lightbox-next { position: absolute; top: 50%; z-index: 1; width: 36px; height: 44px; font-size: 22px; }
  .lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }
}
.footer[data-reveal] { --reveal-distance: 0px; }
@keyframes portfolio-reveal {
  from { opacity: 0; transform: translate3d(0, var(--reveal-distance, 20px), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes portfolio-type-name {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes portfolio-type-caret {
  0%, 100% { border-color: currentColor; }
  50% { border-color: transparent; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] { opacity: 0; transform: translate3d(0, var(--reveal-distance, 20px), 0); }
  [data-reveal="visible"] {
    animation: portfolio-reveal 700ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) backwards;
  }
  .typed-name[data-typing="active"] .typed-name-label { opacity: 0; }
  .typed-name[data-typing="active"] .typed-name-visual {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    box-sizing: content-box;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    border-right: .045em solid currentColor;
    animation: portfolio-type-name calc(var(--type-characters, 4) * 140ms) steps(var(--type-characters, 4), end) 350ms both, portfolio-type-caret 500ms step-end 350ms 3;
  }
  .portfolio-main .button { transition: background-color 220ms ease; }
  .portfolio-main .project-link:focus-visible { box-shadow: 0 0 0 2px var(--navy); }
}
@media (max-width: 600px) {
  [data-reveal] { --reveal-distance: 14px; }
  [data-reveal="visible"] { animation-duration: 600ms; }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .typed-name-label { opacity: 1 !important; }
  .typed-name-visual { display: none !important; }
}
