/* Bas Breet CMS v1.0 Beta: shared design language for site and administration */
:root{--bg:#0b111b;--panel:#131e2b;--panel2:#172537;--border:#263c4f;--white:#f3f8fc;--muted:#a3b7c7;--blue:#56d9ec;--orange:#56d9ec;--violet:#94b1e7;--green:#54d5a1;--red:#ed7383}
body{background:radial-gradient(circle at 82% 3%,#123b48 0%,#0b111b 36%,#091019 100%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--white)}
.surface,.project-card{border:1px solid #294353;background:linear-gradient(145deg,#162535,#101c2a);box-shadow:0 14px 36px #02070d50;border-radius:16px}
.site-header{background:#0d1723ed;border-color:#294050;grid-template-columns:1fr auto auto;height:auto;min-height:76px;gap:24px;padding:12px max(24px,calc((100vw - 1480px)/2));backdrop-filter:blur(12px)}
.header-brand{font-size:19px;letter-spacing:-.04em}.brand-accent,.eyebrow{color:var(--blue)}.header-tagline{color:#8da6b7;font-size:10px;letter-spacing:.075em}.site-header nav{gap:24px}.site-header nav a{font-size:13px}.site-header nav a.active{color:var(--blue);border-bottom-color:var(--blue)}
.portfolio-hero{max-width:1480px;margin:28px auto 0;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.58fr);padding:42px 46px;gap:32px;align-items:center;background:radial-gradient(ellipse at 73% 32%,#0d596174 0%,transparent 50%),linear-gradient(130deg,#172839,#111e2b)}
.portfolio-hero .eyebrow,.eyebrow{font-size:10px;letter-spacing:.17em;text-transform:uppercase;font-weight:800;margin:0 0 15px}
.portfolio-hero h1{font-size:clamp(28px,3.5vw,54px);line-height:1.12;letter-spacing:-.055em;margin:0 0 18px;max-width:890px}.portfolio-hero h1 span{color:var(--blue)}.portfolio-hero p:not(.eyebrow){max-width:670px;font-size:14px;line-height:1.7;color:#b4c4d2}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.hero-actions a{border-radius:9px;padding:12px 18px;text-decoration:none;font-weight:700;font-size:13px}.hero-primary{background:var(--blue);color:#081a25}.hero-secondary{border:1px solid #406276;background:#172633}.hero-aside{display:grid;align-content:center;justify-items:center;gap:12px;min-height:185px;border:1px solid #2b6370;border-radius:15px;background:#0c263544;color:#9bd4e0;font-size:10px;letter-spacing:.12em;text-align:center;padding:20px}.hero-aside .hero-code{font-size:80px;line-height:1;color:var(--blue);font-weight:700;letter-spacing:-.19em}.hero-aside strong{font-size:13px;color:#effaff;letter-spacing:0}
.portfolio-grid{max-width:1540px;grid-template-columns:minmax(240px,.85fr) minmax(390px,1.35fr) minmax(300px,1fr);padding:24px 30px 35px;gap:20px}.profile-column,.side-column,.feature-column{gap:18px}.intro-card{padding:23px;font-size:15px}.intro-secondary{color:#8facbe}.developer-focus,.currently-building{padding:22px}.developer-focus h3,.currently-building h3{font-size:16px;margin:0 0 15px;letter-spacing:-.025em}.currently-building .section-topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.currently-building .eyebrow{margin:0}.status-pulse{font-size:10px;letter-spacing:.04em;color:#6eebc2}.currently-building>p{font-size:12px;color:var(--muted);margin:0 0 14px}.build-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #2b4050}.build-item .build-symbol{display:grid;place-items:center;min-width:36px;height:36px;background:#173848;border:1px solid #315668;border-radius:9px;color:#70e5f3;font-size:18px}.build-item strong{display:block;font-size:13px}.build-item small{display:block;margin-top:2px;color:#9bafbd;font-size:11px}.project-card{display:flex;flex-direction:column;padding:14px}.project-copy{display:flex;flex-direction:column;flex:1}.project-detail-link{margin-top:auto;padding-top:14px}.project-art{background:#102432}.featured .project-art{aspect-ratio:1.72}.project-copy h2{letter-spacing:-.035em}.chip{border-color:#356f7c;background:#12343f;color:#87e5f0}.chip-1{border-color:#445a82;background:#24314c;color:#bacdf9}.chip-2{border-color:#477c68;background:#1f3b35;color:#9ce6c8}.infra-card,.server-status,.contact-card,.experiment-card{border-radius:16px}.site-footer{max-width:1540px}
body.admin{background:#0b111b;color:#edf8ff;font-family:Inter,system-ui,sans-serif}body.admin .admin-top{background:#111d2b;border-bottom:1px solid #254353;height:73px}body.admin .admin-logo{font-size:18px;letter-spacing:-.045em}.version-label{background:#19383d;color:#93e8ed;border:1px solid #316168;border-radius:6px;padding:4px 8px;font-size:10px;letter-spacing:0;margin-left:8px;font-weight:600}.admin-identity{color:#9db3c2;font-size:12px}body.admin .admin-layout{grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 73px)}body.admin .admin-sidebar{background:#0e1825;border-right:1px solid #21394a;padding:28px 13px}body.admin .side-label{color:#7993a4;font-size:10px;letter-spacing:.15em}body.admin .sidebar-link{font-size:13px;color:#adbfcb;margin:3px 0;transition:background .15s,color .15s}body.admin .sidebar-link:hover{background:#1a3140;color:#f2fcff}body.admin .sidebar-link.active{background:#123845;border:1px solid #27586b;color:#73e2f0}body.admin .admin-main{max-width:1470px;padding:36px 38px 85px}body.admin h1{font-size:30px;letter-spacing:-.045em;margin-bottom:7px}body.admin .subhead{color:#91aabd}body.admin .metric,body.admin .admin-panel{background:linear-gradient(135deg,#152535,#121e2b);border:1px solid #284355;border-radius:15px}body.admin .metric{min-height:115px}body.admin .metric small{color:#95b5c6;font-size:10px}body.admin .metric strong{font-size:31px;letter-spacing:-.04em}body.admin .metric span{color:#7fcbbf}body.admin .btn{background:#46cfe1;color:#0a1a26;border:1px solid #64dfed;border-radius:9px;font-weight:750}body.admin .btn:hover{filter:brightness(1.1)}body.admin .btn.ghost{background:#1a303f;border:1px solid #365568;color:#d7eaf3}body.admin .btn.danger{background:#4b2636;border:1px solid #865061;color:#ffd3d7}body.admin .admin-panel a{color:#7fdfed}body.admin .admin-panel h2{font-size:17px;letter-spacing:-.025em}body.admin input:not([type=checkbox]):not([type=file]),body.admin textarea,body.admin select{background:#101d2a;border:1px solid #365368;color:#f5faff}body.admin .list li{border-bottom-color:#263e50}.owner-badge{color:#85e5cd;font-size:10px;font-weight:800;letter-spacing:.08em}.cms-settings{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.cms-settings p{color:#a0b2c0;font-size:13px}.cms-toggle-form{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.permission-grid{display:grid;grid-template-columns:150px 1fr;gap:12px;font-size:13px;color:#a4bac8}.permission-grid span:nth-child(odd){color:#f4fbff;font-weight:700}
@media(max-width:1200px){.portfolio-hero{margin:18px 22px 0}.portfolio-grid{grid-template-columns:minmax(230px,1fr) minmax(350px,1.3fr)}.side-column{grid-column:2}.portfolio-hero{grid-template-columns:1fr}.hero-aside{display:none}}
@media(max-width:760px){.site-header{display:flex;gap:10px;padding:16px}.site-header nav{width:100%;gap:18px}.portfolio-hero{padding:25px 20px;margin:16px}.portfolio-hero h1{font-size:34px}.portfolio-grid{grid-template-columns:1fr;padding:16px;gap:17px}.side-column{grid-column:1}.hero-aside{display:none}body.admin .admin-layout{grid-template-columns:1fr}body.admin .admin-sidebar{display:flex;overflow-x:auto;padding:8px}body.admin .side-label{display:none}body.admin .admin-main{padding:24px 16px}body.admin .admin-top{padding:12px 16px;height:auto;flex-wrap:wrap}body.admin .admin-top-actions{flex-wrap:wrap}body.admin .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.media-tile{background:#102232;border:1px solid #315163;border-radius:11px;padding:9px;min-width:0;display:flex;flex-direction:column;gap:6px}.media-tile img{width:100%;height:130px;object-fit:cover;border-radius:7px}.media-tile span{font-size:11px;color:#e5f4fb;overflow-wrap:anywhere}.media-tile small{color:#8dafbf}

/* Remove empty experiment containers after excluding legacy personal cards. */
.experiments-stack:empty{display:none}

/* V1 Beta premium homepage: public content is rendered in a coherent page grid.
   The legacy column editor stays available in authenticated edit mode. */
body.portfolio{background:radial-gradient(ellipse at 51% 0%,#102735 0%,#0b141e 40%,#080f18 100%);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.55;color:#eef7fb}
body.portfolio .site-header{max-width:none;min-height:76px;padding:14px max(24px,calc((100vw - 1500px)/2));background:#0b1520f0}
body.portfolio .header-brand{font-weight:750;font-size:20px}
body.portfolio .header-tagline{letter-spacing:.09em}
body.portfolio .site-header nav a{font-size:13px}
body.portfolio .site-header nav a:hover{color:#6fe8f2}
.pro-home{max-width:1500px;margin:0 auto;padding:26px 26px 52px}
.pro-top-grid{display:grid;grid-template-columns:minmax(0,1.56fr) minmax(360px,1fr);gap:20px;align-items:stretch}
.pro-top-grid>*,.pro-projects>*,.pro-bottom-grid>*{min-width:0}
.pro-hero{position:relative;overflow:hidden;isolation:isolate;min-height:328px;padding:37px 38px;background:radial-gradient(circle at 95% 82%,#127f9a88,transparent 44%),linear-gradient(115deg,#101c28 0%,#111f2d 55%,#063c51 100%)}
.pro-hero:after{content:"";position:absolute;width:80%;height:85%;right:-25%;bottom:-57%;border:2px solid #12ddf58c;border-radius:50%;transform:rotate(-26deg);box-shadow:0 0 85px #04d4e759;z-index:-1}
.pro-hero-content{max-width:720px;position:relative;z-index:1}
.pro-kicker{font-size:11px;letter-spacing:.28em;color:#4bdced;font-weight:800}
.pro-hero h1{font-size:clamp(28px,2.75vw,43px);line-height:1.15;letter-spacing:-.035em;margin:18px 0 13px;font-weight:780}
.pro-hero h1 em{color:#4be7ed;font-style:normal}
.pro-hero p{font-size:14px;max-width:650px;color:#bed0db;margin:0}
.pro-actions{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}
.pro-button,.pro-outline{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-size:13px;font-weight:750;border-radius:8px;padding:11px 18px;cursor:pointer}
.pro-button{background:#39dbea;color:#04202b;border:1px solid #5df0f6}.pro-button:hover{background:#7af5fa}.pro-outline{background:#101f2b;color:#d9f0f7;border:1px solid #4a6e7c}.pro-outline:hover{border-color:#63d5e9}
.pro-building-wrap>.currently-building{height:100%;background:linear-gradient(130deg,#152536,#101d2a);padding:28px 25px;display:flex;flex-direction:column}
.pro-building-wrap .currently-building .section-topline{margin-bottom:2px}.pro-building-wrap .currently-building h3{font-size:23px;margin:5px 0 4px}.pro-building-wrap .currently-building>p{margin-bottom:10px}.pro-building-wrap .build-item{flex:1;padding:12px 0}.pro-building-wrap .build-item strong{font-size:14px}.pro-building-wrap .build-item small{font-size:12px}
.pro-projects{display:grid;grid-template-columns:1.22fr 1fr;gap:20px;margin-top:20px;align-items:stretch}
.pro-projects>.project-card{padding:18px;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,.95fr);gap:20px;min-height:264px;border-radius:16px;overflow:hidden}
.pro-projects>.project-card.featured{padding:18px}
.pro-projects .project-art,.pro-projects .featured .project-art{height:100%;min-height:226px;aspect-ratio:auto;background:#122534}
.pro-projects .project-copy{min-width:0;display:flex;flex-direction:column;justify-content:center}
.pro-projects .project-copy h2,.pro-projects .featured .project-copy h2{font-size:clamp(19px,1.75vw,27px);margin:0 0 12px;line-height:1.2;letter-spacing:-.04em}
.pro-projects .chip{font-size:10px;padding:3px 8px}.pro-projects .project-copy p{font-size:13px;line-height:1.55;margin:12px 0}
.pro-projects .project-status{margin:3px 0 0;font-size:10px}.pro-projects .project-detail-link{font-size:12px;color:#54e2f0;margin-top:12px;text-decoration:none;font-weight:700;padding:0}
.pro-projects .project-detail-link:hover{text-decoration:underline}
.pro-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px;align-items:stretch}
.pro-bottom-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.pro-bottom-col>.pro-info-card{flex:1}
.pro-info-card{padding:24px 22px;min-width:0}
.pro-info-card h2{font-size:19px;line-height:1.3;letter-spacing:-.03em;margin:0 0 6px}
.pro-info-card h2>span{color:#36dce9;display:inline-block;min-width:29px;font-size:23px;vertical-align:-2px}
.pro-info-card p{margin:5px 0 17px;font-size:12px;line-height:1.65;color:#aebfce}
.pro-tech-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pro-tech-grid span{border:1px solid #2e4a5c;background:#102333;border-radius:8px;text-align:center;padding:10px 4px;font-size:12px;font-weight:750;color:#deecf7}
.pro-service-chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pro-service-chips span{font-size:11px;background:#112a38;border:1px solid #355d68;border-radius:7px;padding:9px 10px;color:#d4eff7}
.pro-inline-link{display:inline-block;margin-top:9px;font-size:12px;color:#5ce5f2;text-decoration:none}
.pro-selected-list{display:flex;flex-direction:column}
.pro-selected-list>a{border-top:1px solid #2a4352;display:flex;align-items:center;justify-content:space-between;gap:15px;text-decoration:none;padding:12px 0;color:#f0f9fc;font-size:13px}
.pro-selected-list>a>span,.pro-selected-row>span{color:#7ee0ef;font-size:11px;white-space:nowrap}
.pro-selected-row{border-top:1px solid #2a4352;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;color:#f0f9fc;font-size:13px}
.pro-selected-list>a:hover strong{color:#54dbea}
.pro-timeline{height:100%}
.pro-milestone{position:relative;margin-left:9px;padding:0 0 24px 26px;border-left:2px solid #345568}
.pro-milestone:before{content:"";position:absolute;left:-6px;top:3px;width:10px;height:10px;border-radius:50%;background:#36d5e4}
.pro-milestone:last-child{border-left-color:transparent;padding-bottom:0}
.pro-milestone strong{display:block;font-size:13px;color:#f3f9fd;margin:0 0 4px}
.pro-milestone span{display:block;font-size:12px;line-height:1.6;color:#a6bbca}
.pro-contact{display:flex;flex-direction:column;align-items:flex-start}.pro-contact-details{width:100%;margin-top:auto}.pro-contact-details summary{width:max-content;list-style:none}.pro-contact-details summary::-webkit-details-marker{display:none}
.pro-contact-details[open] summary{margin-bottom:14px}.pro-contact-details form{display:flex;flex-direction:column;gap:10px;width:100%}.pro-contact-details label{display:flex;flex-direction:column;font-size:12px;gap:5px;color:#b8cfdb}.pro-contact-details input,.pro-contact-details textarea{width:100%;border:1px solid #315263;border-radius:7px;background:#0d1a26;padding:10px;color:#fff}.pro-contact-details button{border:0;background:#39dbea;color:#031c26;border-radius:7px;padding:10px;font-weight:700;cursor:pointer}
.pro-extra-section{margin-top:22px}.pro-section-heading h2{font-size:19px;margin:0}.pro-section-heading p{color:#93adbb;font-size:13px;margin:3px 0 15px}
.pro-extra-section .experiments-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.pro-extra-section .experiment-card{min-width:0}
.pro-status-section>.server-status{padding:20px 24px}
.editor-context-note{max-width:1520px;margin:20px auto 0;padding:14px 20px;display:flex;gap:14px;align-items:flex-start;color:#c1d8e6;font-size:13px}.editor-context-note strong{color:#58e2eb;white-space:nowrap}
body.portfolio .site-footer{max-width:1500px}
@media(max-width:1150px){.pro-top-grid{grid-template-columns:1fr}.pro-building-wrap .currently-building{display:block}.pro-projects{grid-template-columns:1fr 1fr}.pro-projects>.project-card{grid-template-columns:1fr;min-height:0}.pro-projects .project-art,.pro-projects .featured .project-art{height:auto;min-height:0;aspect-ratio:1.85}.pro-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pro-bottom-col:last-child{grid-column:1/-1}}
@media(max-width:760px){.pro-home{padding:16px 14px 30px}.pro-hero{padding:28px 23px;min-height:0}.pro-hero h1{font-size:clamp(28px,7vw,38px)}.pro-projects,.pro-bottom-grid{grid-template-columns:1fr;gap:15px}.pro-bottom-col:last-child{grid-column:auto}.pro-building-wrap>.currently-building{padding:22px}.pro-projects>.project-card{padding:14px}.pro-projects .project-copy h2,.pro-projects .featured .project-copy h2{font-size:22px}.pro-extra-section .experiments-stack{grid-template-columns:1fr}.editor-context-note{margin:14px;flex-direction:column}.pro-tech-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

body.portfolio .site-header nav .header-admin{border:1px solid #21bfd2;color:#9bf3fa;border-radius:9px;padding:8px 13px;margin-left:8px;font-weight:700}body.portfolio .site-header nav .header-admin:hover{background:#123b49}body.portfolio .site-header nav .header-admin.active{border-bottom:1px solid #21bfd2}

/* Authenticator enrollment and backup codes */
.mfa-secret,.mfa-codes{font-family:ui-monospace,monospace;letter-spacing:.12em;white-space:pre-wrap;overflow-wrap:anywhere;background:#081723;color:#8eeaff;border:1px solid #28546a;padding:18px;border-radius:12px;user-select:all}.mfa-codes{line-height:1.9}.admin-login{max-width:560px}

/* CMS v1.0 Beta: editable Discord bot development and hosting panel. */
.pro-discord-services{display:flex;flex-direction:column;gap:0;margin-top:13px}
.pro-discord-service{padding:10px 0;border-top:1px solid #2a4352;display:flex;flex-direction:column;gap:3px}
.pro-discord-service strong{font-size:12px;color:#eaf8ff;font-weight:750}
.pro-discord-service small{font-size:11px;color:#9db9c8;line-height:1.55}

/* Unified public member/staff login controls. */
body.portfolio .site-header nav .header-account{font-size:12px;color:#b8eaf1;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.portfolio .site-header nav .header-logout{display:inline-flex;margin:0}
body.portfolio .site-header nav .header-logout button{appearance:none;border:1px solid #416278;border-radius:9px;color:#ecfaff;background:#132a38;padding:8px 13px;cursor:pointer;font:inherit;font-size:13px;font-weight:700}
body.portfolio .site-header nav .header-logout button:hover{background:#184154;border-color:#27c6db}
@media(max-width:900px){body.portfolio .site-header nav{flex-wrap:wrap;justify-content:center;row-gap:12px}body.portfolio .site-header nav .header-account{max-width:110px}}

/* Admin bot display name: a clear gap between text field and save action. */
body.admin .bot-rename-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;margin-bottom:12px}
body.admin .bot-rename-field input[name="name"]{flex:1 1 250px;width:auto;min-width:0}
body.admin .bot-rename-field .btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:530px){body.admin .bot-rename-field{flex-direction:column;align-items:stretch}body.admin .bot-rename-field input,body.admin .bot-rename-field .btn{width:100%}}
/* Non-destructive per-image focal point editing in the CMS. */
body.admin .image-position-editor{max-width:780px;margin:16px 0;padding:18px;border:1px solid #326070;border-radius:12px;background:#102432;display:grid;gap:12px}
body.admin .image-position-heading{display:grid;gap:3px}body.admin .image-position-heading small{color:#9dbccb;font-size:12px}
body.admin .focal-preview-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap}body.admin .focal-preview-options select{max-width:270px}
body.admin .focal-viewport{position:relative;width:100%;aspect-ratio:1.32;background:#07131c;border:1px solid #3c6477;border-radius:10px;overflow:hidden;touch-action:none;cursor:grab;user-select:none}
body.admin .focal-viewport:active{cursor:grabbing}body.admin .focal-viewport[data-view="small"]{aspect-ratio:1.85}body.admin .focal-viewport[data-view="detail"]{aspect-ratio:2.1}
body.admin .focal-viewport img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
body.admin .focal-viewport .focal-empty{position:absolute;inset:0;display:grid;place-items:center;color:#9bbac9;font-size:12px;text-align:center;padding:18px}
body.admin .focal-viewport .focal-empty[hidden]{display:none}
body.admin .focal-crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:30px;color:#e2ffff9c;text-shadow:0 1px 5px #000;pointer-events:none}
body.admin .focal-sliders{display:grid;gap:6px}body.admin .focal-sliders label{display:flex;justify-content:space-between;align-items:center}
body.admin .focal-sliders input{width:100%;accent-color:#3bd5e5}body.admin .image-position-editor .btn{justify-self:start}
/* Card imagery respects the chosen focal point at every responsive width. */
.pro-projects .project-art img,.project-art img,.experiment-visual img{object-fit:cover}

body.admin .focal-viewport img[hidden]{display:none}

/* Language-pack selector: appears after a second locale is installed. */
.cms-language-form{display:inline-flex;align-items:center;gap:6px;margin:0 0 0 9px;font:inherit;color:#a9c8d1;white-space:nowrap}
.cms-language-form label{font-size:11px}
.cms-language-form select,.cms-language-form button{padding:6px 8px;background:#0a1b29;color:#eaf8ff;border:1px solid #285368;border-radius:6px;font:inherit;font-size:12px}
.cms-language-form button{cursor:pointer}
.admin-top-actions .cms-language-form{margin-left:8px}
@media(max-width:780px){.cms-language-form{margin:6px 0}.cms-language-form label{display:none}}

.custom-card-art{width:100%;aspect-ratio:1.85;overflow:hidden;border-radius:11px;margin-bottom:16px;background:#10202e}
.custom-card-art img{width:100%;height:100%;object-fit:cover;display:block}

/* Same public template for normal, preview and authenticated visual editing. */
body.portfolio:not(.cms-visual-edit) .cms-section-hidden{display:none!important}
.cms-visual-edit [data-cms-section]{position:relative}
.cms-visual-edit .cms-editable-block{outline:1px dashed #3a8ca0;outline-offset:3px}
.cms-visual-edit .cms-section-hidden{opacity:.46;outline:2px dashed #e5aa67}
/* Visual editor controls float ABOVE the content: never create a new grid/flex item. */
.cms-visual-edit .cms-block-menu{position:absolute;top:8px;right:8px;left:auto;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:calc(100% - 16px);width:max-content;box-sizing:border-box;background:var(--panel,#133346f2);border:1px solid var(--border,#369aab);border-radius:9px;padding:6px 9px;margin:0;color:var(--white,#f4fdff);font-size:11px;z-index:20;box-shadow:0 7px 22px #0008}
.cms-block-menu strong{text-transform:capitalize;margin-right:auto}
.cms-block-menu a,.cms-block-menu button{color:#e2faff;background:#123042;border:1px solid #437486;border-radius:6px;padding:5px 8px;font:inherit;text-decoration:none;cursor:pointer}
.cms-block-menu a:hover,.cms-block-menu button:hover{border-color:#54efff}
.cms-visual-edit .pro-projects>.project-card{pointer-events:auto}
@media(max-width:760px){.cms-block-menu{gap:4px}.cms-block-menu a,.cms-block-menu button{padding:4px 6px}}


/* Single source of truth for homepage project-card layout (v1.0 Beta). */
.pro-projects > .project-card,
.pro-projects > .project-card.featured {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  height:auto;
  padding:16px;
  gap:0;
  overflow:hidden;
}
.pro-projects > .project-card > .project-card-main {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  flex:1 1 auto;
  min-width:0;
  align-items:stretch;
}
.pro-projects > .project-card .project-art {
  min-height:230px;
  height:100%;
  aspect-ratio:auto;
  background:#102432;
}
/* Project logos stay fully readable rather than being unintentionally clipped. */
.pro-projects > .project-card .project-art img {
  width:100%;height:100%;display:block;
  object-fit:contain;
}
.pro-projects > .project-card > .project-card-main > .project-copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
}
.pro-projects .project-copy .project-detail-link {margin-top:12px;padding-top:0}
.pro-projects > .project-card > .project-social-actions {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  border-top:1px solid #315064;
  padding:12px 0 0;
  margin:13px 0 0;
  min-width:0;
  width:100%;
  visibility:visible;
}
.pro-projects .project-social-actions form{display:flex;flex:0 0 auto;margin:0}
.pro-projects .project-social-actions button,
.pro-projects .project-social-actions a,
.pro-projects .project-social-actions .project-social-disabled {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:4px;
  border-radius:8px;
  border:1px solid #356478;
  background:#102f40;
  color:#d5f4ff;
  padding:8px 11px;
  min-height:36px;
  text-decoration:none;
  white-space:nowrap;
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
  cursor:pointer;
}
.pro-projects .project-social-actions button:hover,
.pro-projects .project-social-actions a:hover {background:#1b495c;border-color:#4bdcec}
.pro-projects .project-social-actions .project-social-disabled {opacity:.7;cursor:not-allowed}
.pro-projects .project-social-actions span{color:#bfeef6}
@media(max-width:1150px){
 .pro-projects > .project-card > .project-card-main{grid-template-columns:1fr}
 .pro-projects > .project-card .project-art{height:auto;min-height:0;aspect-ratio:1.85}
}
@media(max-width:760px){
 .pro-projects > .project-card > .project-card-main{grid-template-columns:1fr}
 .pro-projects > .project-card > .project-social-actions{flex-wrap:wrap}
}

/* BAS-FIX-20261108-B: scoped project card layout; avoids old grid conflicts. */
.pro-home .pro-projects > article.project-card {
  display:block !important; min-width:0; padding:16px; overflow:hidden;
}
.pro-home .pro-projects > article.project-card > .project-card-main {
  display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  align-items:stretch; gap:16px; min-width:0;
}
.pro-home .pro-projects > article.project-card .project-copy {
  display:flex !important; flex-direction:column; align-items:stretch; min-width:0;
}
.pro-home .pro-projects > article.project-card .project-art {
  min-height:220px; height:auto; overflow:hidden; background:#122534;
}
.pro-home .pro-projects > article.project-card .project-art img {
  object-fit:contain !important; object-position:center center !important;
  width:100%; height:100%; max-height:100%;
}
.pro-home .pro-projects > article.project-card .project-social-actions {
  display:flex !important; flex-direction:row; flex-wrap:wrap; width:100%;
  align-items:center; justify-content:flex-start; gap:5px; margin-top:12px;
  padding-top:9px; border-top:1px solid #315064;
}
.pro-home .pro-projects > article.project-card .project-social-actions form {display:contents !important; margin:0;}
.pro-home .pro-projects > article.project-card .project-social-actions button,
.pro-home .pro-projects > article.project-card .project-social-actions a,
.pro-home .pro-projects > article.project-card .project-social-actions .project-social-disabled {
  display:inline-flex !important; align-items:center; justify-content:center;
  padding:6px 7px; min-height:30px; border-radius:7px; font-size:11px;
  color:#ddf5fa; background:#102f40; border:1px solid #356478;
  font-weight:600; white-space:nowrap; line-height:1.2; margin:0;
}
@media(max-width:850px){
 .pro-home .pro-projects > article.project-card > .project-card-main{grid-template-columns:1fr !important}
 .pro-home .pro-projects > article.project-card .project-art{height:180px;min-height:0}
}

/* CMS v1 Beta — Admin navigation, languages and share dialog */
body.admin .admin-nav-search-label{display:block;font-size:11px;color:#a6c8d6;margin:0 4px 6px}
body.admin #admin-menu-search{width:100%;box-sizing:border-box;margin:0 0 14px;border:1px solid #365368;background:#101d2a;color:#f5faff;border-radius:9px;padding:10px 12px}
body.admin .admin-nav-group{margin-bottom:11px}
body.admin .admin-nav-group .side-label{padding:8px 12px 5px;color:#83aabc}
body.admin .admin-nav-group[hidden],body.admin .sidebar-link[hidden]{display:none!important}
body.admin #admin-menu-no-results{color:#a6c8d6;padding:12px;font-size:12px}
body.admin .language-pack-list{display:grid;gap:10px}
body.admin .language-pack{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px;border:1px solid #304d60;border-radius:10px}
body.admin .language-pack span{color:#9cb6c6;font-size:12px}
body.admin .media-tile form{width:100%;margin-top:5px}
.cms-share-dialog{border:1px solid #356077;border-radius:17px;background:#142333;color:#edfaff;width:min(480px,calc(100vw - 28px));max-height:calc(100vh - 35px);padding:0;box-shadow:0 24px 85px #000b}
.cms-share-dialog::backdrop{background:rgba(0,9,19,.75);backdrop-filter:blur(4px)}
.cms-share-content{padding:25px;font-family:Inter,system-ui,sans-serif}
.cms-share-header{display:flex;justify-content:space-between;align-items:start;gap:10px}
.cms-share-header h2{font-size:22px;margin:3px 0 8px;color:#f1fcff}
.cms-share-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#5de1ee;margin:0}
.cms-share-close{background:#203649;color:white;border:1px solid #3d6477;border-radius:9px;font-size:22px;width:35px;height:35px;cursor:pointer}
.cms-share-description{font-size:13px;color:#a6c3d1;margin:0 0 20px}
.cms-share-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:19px}
.cms-share-services a,.cms-share-link-row button,.cms-share-native{color:#dbf9ff;background:#1c3548;border:1px solid #376780;border-radius:10px;padding:12px;text-align:center;text-decoration:none;cursor:pointer;font-size:13px}
.cms-share-services a:hover,.cms-share-link-row button:hover{background:#225069}
.cms-share-link-row{display:flex;gap:7px}
.cms-share-link-row input{min-width:0;flex:1;color:#a5d9e9;background:#0e1d29;border:1px solid #355567;border-radius:9px;padding:10px;font-size:12px}
.cms-share-link-row button{white-space:nowrap;background:#32cce1;color:#09212b;font-weight:750}
.cms-share-feedback{min-height:19px;margin:9px 0 0;color:#91e8d0;font-size:12px}
.cms-share-native{margin-top:10px;width:100%}
@media(max-width:760px){body.admin #admin-menu-search{min-width:180px}body.admin .admin-nav-group{display:flex;align-items:center}body.admin .admin-nav-group .side-label{display:none}.cms-share-services{grid-template-columns:1fr 1fr}}

/* Project vote-count spacing (Like 0 / Dislike 0) in homepage cards. */
.pro-home .pro-projects > article.project-card .project-social-actions button,
.pro-home .pro-projects > article.project-card .project-social-actions a { gap: 6px; }
.pro-home .pro-projects > article.project-card .project-social-actions button span,
.pro-home .pro-projects > article.project-card .project-social-actions a span { margin-left: 2px; }

/* Universal content type editor (v1.0 Beta, step 2) */
.universal-field{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:10px 0;padding:12px;border:1px solid rgba(140,160,180,.24);border-radius:10px}.universal-field>input{flex:1 1 160px;min-width:120px}.universal-field>select{flex:0 1 140px}.universal-field>label{display:flex;align-items:center;gap:5px;margin:0}.universal-field .btn{flex:0 0 auto}

/* Universal content usability: readable custom labels and compact field grouping. */
body.admin .universal-entry-field{display:flex;flex-direction:column;gap:6px;margin:15px 0 18px;max-width:680px;padding:13px 14px;border:1px solid #315063;border-radius:10px;background:rgba(10,24,38,.42)}
body.admin .universal-entry-field-label{display:block!important;color:#f4fbff!important;font-size:13px!important;font-weight:750!important;visibility:visible!important;opacity:1!important;margin:0!important}
body.admin .universal-entry-field input:not([type=checkbox]),body.admin .universal-entry-field textarea{width:100%;max-width:100%}
body.admin .universal-field-meta{font-size:11px;color:#8ab4c5}
body.admin .universal-slug-help{font-size:12px;color:#a8c5d0;margin:4px 0 12px;max-width:680px}

/* Guided universal content type wizard */
.universal-wizard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.universal-wizard-head h2,.universal-wizard-head h3{margin:0 0 6px}
.universal-step{white-space:nowrap;color:#64d9e9;border:1px solid #2a5565;padding:5px 9px;border-radius:6px;font-size:12px}
.universal-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:16px 0}
.universal-template{cursor:pointer;text-align:left;background:#102b39;border:1px solid #325266;border-radius:10px;padding:14px;color:#eef9ff;display:flex;gap:7px;flex-direction:column;font:inherit}
.universal-template span{font-size:22px;color:#4ad2e6}.universal-template small{color:#9db7c7}.universal-template.is-active,.universal-template:hover{border-color:#46d6e8;background:#164153}
.universal-advanced-panel{margin:8px 0 16px}.universal-advanced-panel #universal-advanced-content{padding:12px 0}
.universal-wizard-divider{height:1px;background:#315062;margin:20px 0}
.universal-wizard-field{display:grid;grid-template-columns:minmax(170px,2fr) minmax(130px,1fr) auto auto;align-items:end;gap:10px;margin-bottom:12px;padding:12px;background:#102333;border:1px solid #294c60;border-radius:8px}
.universal-wizard-field>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#c6e5f1}.universal-wizard-field .universal-wizard-required{display:flex;flex-direction:row;align-items:center;padding-bottom:10px}
.universal-wizard-field input,.universal-wizard-field select{max-width:100%}
@media(max-width:800px){.universal-wizard-field{grid-template-columns:1fr 1fr}.universal-wizard-head{flex-wrap:wrap}}@media(max-width:530px){.universal-wizard-field{grid-template-columns:1fr}}
/* v1.0 Beta: collapsible admin groups and pin-to-favorites shortcuts. */
body.admin .admin-nav-collapsible{display:block;margin:0 0 8px}
body.admin .admin-nav-collapsible>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;user-select:none;border-radius:7px;min-height:32px}
body.admin .admin-nav-collapsible>summary::-webkit-details-marker{display:none}
body.admin .admin-nav-collapsible>summary:hover{background:#172c3a;color:#b4deed}
body.admin .nav-chevron{font-size:16px;letter-spacing:0;transition:transform .18s}
body.admin .admin-nav-collapsible:not([open]) .nav-chevron{transform:rotate(-90deg)}
body.admin .sidebar-nav-row{display:flex;align-items:center;min-width:0;gap:3px}
body.admin .sidebar-nav-row[hidden]{display:none!important}
body.admin .sidebar-nav-row .sidebar-link{flex:1;min-width:0;margin:2px 0;padding-right:3px}
body.admin .sidebar-favorite-toggle{appearance:none;border:0;background:transparent;color:#7996a9;font-size:18px;line-height:1;cursor:pointer;min-width:26px;min-height:30px;border-radius:5px;flex-shrink:0}
body.admin .sidebar-favorite-toggle:hover,body.admin .sidebar-favorite-toggle[aria-pressed="true"]{color:#ffcf72;background:#223542}
body.admin .admin-favorites{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #294354}
body.admin .admin-favorites .side-label{color:#ffd17a;font-weight:700}
body.admin .admin-nav-collapsible[hidden],body.admin .admin-favorites[hidden]{display:none!important}
body.admin .cms-legacy-name{font-size:13px;color:#86a5b4;font-weight:400;white-space:nowrap}
body.admin .universal-explainer{max-width:950px;background:#102b38;border:1px solid #2a5265;border-radius:10px;padding:12px 16px;color:#c3dce8}
body.admin .universal-delete-entry{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}
body.admin .btn.danger{background:#512735!important;border-color:#b25263!important;color:#ffe0e4!important}
body.admin .btn.danger:hover{background:#702d41!important}
body.admin .btn.danger:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:760px){body.admin .admin-nav-collapsible>summary.side-label{display:flex}body.admin .admin-nav-group.admin-nav-collapsible{display:block;min-width:165px}body.admin .admin-sidebar{display:block;max-height:65vh;overflow:auto}body.admin .admin-favorites .side-label{display:block}}

/* Owner guide panels on every administrator screen. */
body.admin .cms-page-guide{max-width:none;margin:0 0 22px;background:#102b38;border:1px solid #2a5265;border-radius:11px;overflow:hidden;color:#c9e2ed}
body.admin .cms-guide-example{padding:13px 16px;margin:0;line-height:1.6;font-size:13px}
body.admin .cms-guide-example strong{color:#77e6ef}
body.admin .cms-page-help{border-top:1px solid #25495d}
body.admin .cms-page-help summary{padding:10px 16px;cursor:pointer;color:#7de5ed;display:flex;justify-content:space-between;align-items:center;list-style:none;font-weight:700;font-size:12px}
body.admin .cms-page-help summary::-webkit-details-marker{display:none}
body.admin .cms-page-help summary:hover{background:#163b4d}
body.admin .cms-page-help summary:focus-visible{outline:2px solid #65d6e5;outline-offset:-2px}
body.admin .cms-help-chevron{transition:transform .2s}
body.admin .cms-page-help[open] .cms-help-chevron{transform:rotate(180deg)}
body.admin .cms-help-body{padding:0 18px 16px;max-width:900px;line-height:1.65}
body.admin .cms-help-body h2{font-size:15px;margin:13px 0 6px}
body.admin .cms-help-body h3{font-size:14px;margin:14px 0 6px;color:#d4f7fb}
body.admin .cms-help-body p,body.admin .cms-help-body li{font-size:13px;margin:4px 0}
body.admin .cms-help-body ol{padding-left:25px}
body.admin .cms-guide-note{color:#a2c1cb}
/* Sidebar and content scroll separately. Keep the sidebar scrollbar unobtrusive. */
@media(min-width:761px){
  body.admin .admin-top{position:sticky;top:0;z-index:30}
  body.admin .admin-layout{align-items:start}
  body.admin .admin-sidebar{position:sticky;top:73px;height:calc(100dvh - 73px);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}
  body.admin .admin-sidebar::-webkit-scrollbar{width:0;height:0;display:none}
  body.admin .admin-main{min-width:0}
}
@media(max-width:760px){body.admin .cms-page-guide{margin:0 0 18px}body.admin .admin-sidebar{scrollbar-width:thin}}

/* Contextual help belongs after each page introduction, never before its heading. */
body.admin .cms-page-guide {margin-top:16px;margin-bottom:20px}

/* Admin scrollbar preferences: BOTH bars are visible by default.
   Only an explicit, browser-saved opt-out hides a scrollbar. Scrolling remains enabled. */
html.cms-admin-document { scrollbar-width:auto; -ms-overflow-style:auto; }
html.cms-admin-document::-webkit-scrollbar { display:block; width:12px; height:12px; }
html.cms-admin-document.cms-admin-page-scrollbar-hidden { scrollbar-width:none; -ms-overflow-style:none; }
html.cms-admin-document.cms-admin-page-scrollbar-hidden::-webkit-scrollbar { display:none; width:0; height:0; }
body.admin .admin-scrollbar-setting { display:flex; align-items:center; gap:9px; margin:12px 0 8px; color:#a9c8d8; cursor:pointer; font-size:12px; line-height:1.4; }
body.admin .admin-scrollbar-setting input { width:16px; height:16px; accent-color:#47cfe1; cursor:pointer; flex:0 0 auto; }
body.admin .admin-scrollbar-setting:focus-within { outline:2px solid #47cfe1; outline-offset:3px; border-radius:3px; }

/* Sidebar remains its own independent scroll area. */
@media(min-width:761px) {
  body.admin .admin-sidebar { scrollbar-width:thin; -ms-overflow-style:auto; scrollbar-color:#486d80 transparent; }
  body.admin .admin-sidebar::-webkit-scrollbar { display:block; width:8px; height:8px; }
  body.admin .admin-sidebar::-webkit-scrollbar-thumb { background:#486d80; border-radius:8px; }
  html.cms-admin-document.cms-admin-sidebar-scrollbar-hidden body.admin .admin-sidebar { scrollbar-width:none; -ms-overflow-style:none; }
  html.cms-admin-document.cms-admin-sidebar-scrollbar-hidden body.admin .admin-sidebar::-webkit-scrollbar { display:none; width:0; height:0; }
}

/* Strongly visible native page scrollbar when enabled (Opera/Chromium/Firefox).
   Keep page scrolling on the document itself; the menu scrolls independently. */
@media (min-width:761px) {
  html.cms-admin-document:not(.cms-admin-page-scrollbar-hidden) {
    overflow-y:scroll;
    scrollbar-width:auto;
    scrollbar-color:#577d91 #0b1723;
  }
  html.cms-admin-document:not(.cms-admin-page-scrollbar-hidden)::-webkit-scrollbar {
    display:block;
    width:14px;
    background:#0b1723;
  }
  html.cms-admin-document:not(.cms-admin-page-scrollbar-hidden)::-webkit-scrollbar-track {
    background:#0b1723;
    border-left:1px solid #274354;
  }
  html.cms-admin-document:not(.cms-admin-page-scrollbar-hidden)::-webkit-scrollbar-thumb {
    background:#577d91;
    border:3px solid #0b1723;
    border-radius:10px;
    min-height:35px;
  }
  html.cms-admin-document:not(.cms-admin-page-scrollbar-hidden)::-webkit-scrollbar-thumb:hover { background:#79a5b9; }
  html.cms-admin-document.cms-admin-page-scrollbar-hidden {
    overflow-y:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  html.cms-admin-document.cms-admin-page-scrollbar-hidden::-webkit-scrollbar { display:none; width:0; height:0; }
}

/* Phase 3B: universal collection cards. Uses existing portfolio surfaces. */
.cms-content-collection { margin-top:14px; }
.cms-collection-items { display:grid; gap:12px; }
.cms-collection-cards { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.cms-collection-item { border-top:1px solid #294457; padding-top:10px; min-width:0; }
.cms-collection-cards .cms-collection-item { border:1px solid #294457; border-radius:9px; padding:12px; }
.cms-collection-item strong { display:block; overflow-wrap:anywhere; }
.cms-collection-item p, .cms-collection-empty { font-size:12px; line-height:1.6; color:#b7cbd6; overflow-wrap:anywhere; }

.cms-item-publish-actions { border:1px solid #315063; border-radius:9px; padding:12px; margin:16px 0; }
.cms-item-publish-actions p { margin:0 0 12px; font-size:13px; }

/* Content Items: explicit editor steps and uncluttered template picker */
.cms-content-type-picker { display:block; margin:0 0 18px; max-width:100%; }
.cms-content-type-picker > label { display:block; margin:0 0 6px; font-weight:700; }
.cms-content-type-picker > select { display:block; width:100%; max-width:100%; box-sizing:border-box; margin:0; }
.cms-content-type-picker > p { margin:8px 0 0; font-size:12px; }
.cms-item-workflow { border:1px solid #315063; border-radius:9px; padding:14px; margin:16px 0; background:rgba(12,38,52,.3); }
.cms-item-workflow h3 { margin:0 0 8px; font-size:16px; }
.cms-item-workflow p { margin:0 0 12px; font-size:13px; line-height:1.55; }
.cms-item-workflow .bar2 { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cms-item-publish-actions.cms-item-workflow { margin:16px 0; }
.cms-item-publish-note { border-top:1px solid #315063; padding-top:12px; margin-top:14px !important; }

/* Phase 3C standalone pages: same visual language, independent layouts. */
.cms-page-container{max-width:1160px;margin:0 auto;padding:36px 22px 90px;display:grid;gap:20px}
.cms-page-back{font-size:13px;color:#6ee4f4;text-decoration:none}
.cms-page-intro,.cms-page-body,.cms-page-collection{padding:24px 28px}
.cms-page-intro h1{font-size:clamp(30px,4vw,50px);line-height:1.13;letter-spacing:-.04em;margin:0 0 14px}
.cms-page-intro p,.cms-page-body{line-height:1.75;white-space:normal;color:#c4d7e4}
.cms-page-blocks{display:grid;gap:18px}.cms-page-collection h2{font-size:21px;margin:0 0 16px}
.cms-page-collection .cms-collection-items{display:grid;gap:12px}.cms-page-collection .cms-collection-cards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.cms-page-collection .cms-collection-item{border-top:1px solid #294353;padding-top:12px}.cms-page-collection .cms-collection-item h3{margin:0 0 7px;font-size:16px}
.cms-page-collection .cms-collection-item p{margin:0;color:#a9bfcd;font-size:13px;line-height:1.6}
.cms-page-draft-notice{padding:12px 16px;border:1px solid #346d79;background:#123440;border-radius:9px;color:#8eeafa}
@media(max-width:700px){.cms-page-container{padding:20px 14px 60px}.cms-page-intro,.cms-page-body,.cms-page-collection{padding:18px}}

/* Phase 3C collection editor: consistent native controls and grouped, responsive settings. */
body.admin .cms-collection-form {max-width:none;width:100%;gap:20px}
body.admin .cms-collection-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%}
body.admin .cms-collection-fieldset {min-width:0;margin:0;padding:18px;border:1px solid #2d5063;border-radius:12px;background:rgba(9,25,39,.27);display:flex;flex-direction:column;gap:9px}
body.admin .cms-collection-fieldset legend {font-weight:800;color:#eafaff;padding:0 7px;font-size:14px}
body.admin .cms-collection-step {display:inline-grid;place-items:center;width:23px;height:23px;border-radius:6px;background:#143b4a;border:1px solid #31738b;color:#79e9f6;margin-right:7px}
body.admin .cms-collection-fieldset label {margin-top:6px}
body.admin .cms-collection-fieldset input:not([type=checkbox]),body.admin .cms-collection-fieldset select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:43px;border-radius:8px;background-color:#0d1d2b;border:1px solid #36586c;color:#eaf8ff;font:inherit}
body.admin .cms-collection-fieldset select{appearance:auto;-webkit-appearance:menulist;color-scheme:dark;cursor:pointer}
body.admin .cms-collection-fieldset select option{color:#edf8ff;background:#0d1d2b}
body.admin .cms-collection-fieldset select:focus-visible,body.admin .cms-collection-fieldset input:focus-visible{outline:2px solid #58d8eb;outline-offset:2px}
body.admin .cms-collection-help{color:#a7c3d2;font-size:12px;line-height:1.55;margin:0 0 3px}
body.admin .cms-collection-tip{color:#9ac1d0;font-size:11px;line-height:1.5}
body.admin .cms-collection-fieldset .cms-collection-enabled{display:flex;gap:10px;align-items:flex-start;line-height:1.5;margin-top:15px}
body.admin .cms-collection-enabled input[type=checkbox]{flex:none;width:17px;height:17px;margin-top:1px}
body.admin .cms-collection-actions{border-top:1px solid #315365;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
body.admin .cms-collection-actions>div:first-child{display:flex;flex-direction:column;gap:3px}
body.admin .cms-collection-actions small{font-size:11px}
@media(max-width:960px){body.admin .cms-collection-form-grid{grid-template-columns:1fr}}

/* Phase 3D: shared grouped editor layout across multi-setting CMS screens. */
body.admin .cms-general-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;margin:12px 0 18px}
body.admin .cms-general-editor-panel{min-width:0;margin:0;border:1px solid rgba(91,178,201,.28);border-radius:13px;padding:18px;background:rgba(16,36,51,.7);display:flex;flex-direction:column;gap:8px}
body.admin .cms-general-editor-panel legend{padding:0 10px;color:#d9f8ff;font-size:1rem;font-weight:800}
body.admin .cms-general-editor-panel .cms-collection-help{margin:0 0 8px;color:#b1c9d6;line-height:1.55}
body.admin .cms-general-editor-panel label{margin:5px 0 0}
body.admin .cms-general-editor-panel input:not([type=checkbox]),body.admin .cms-general-editor-panel select,body.admin .cms-general-editor-panel textarea{width:100%;max-width:none;min-width:0;box-sizing:border-box}
body.admin .cms-general-editor-wide{grid-column:1 / -1}
body.admin .cms-general-custom-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.admin .cms-general-custom-fields .universal-entry-field{max-width:none;min-width:0;margin:0}
body.admin .cms-general-editor-panel .cms-rich-wrapper{width:100%;max-width:none;min-width:0}
body.admin .cms-general-editor-panel .cms-rich-wrapper textarea{max-width:none}
/* Existing content editors that already have fieldsets get the same visual hierarchy. */
body.admin form.f > fieldset:not(.cms-general-editor-panel):not(.cms-collection-fieldset){border-radius:13px;border-color:rgba(91,178,201,.28)}
@media(max-width:960px){body.admin .cms-general-editor-grid,body.admin .cms-general-custom-fields{grid-template-columns:minmax(0,1fr)}}

/* Responsive group cards for the existing multi-section Homepage Text settings. */
body.admin form.cms-homepage-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;max-width:none}
body.admin form.cms-homepage-groups>fieldset{margin:0!important;min-width:0;border:1px solid rgba(91,178,201,.28)!important;padding:18px!important;background:rgba(16,36,51,.6);border-radius:13px!important}
body.admin form.cms-homepage-groups>fieldset input,body.admin form.cms-homepage-groups>fieldset textarea{max-width:none;width:100%;box-sizing:border-box}
body.admin form.cms-homepage-groups>button,body.admin form.cms-homepage-groups>a{justify-self:start}
@media(max-width:960px){body.admin form.cms-homepage-groups{grid-template-columns:minmax(0,1fr)}}

/* Rich content may contain block elements; avoid nesting it in paragraph tags. */
.cms-home-rich{margin:0 0 12px;line-height:1.55}
.cms-home-rich p,.cms-project-rich p{margin:0 0 .55em}
.cms-home-rich p:last-child,.cms-project-rich p:last-child{margin-bottom:0}
.cms-home-rich ul,.cms-home-rich ol,.cms-project-rich ul,.cms-project-rich ol{padding-left:1.5em}
.cms-home-rich a,.cms-project-rich a{color:#61dff4;text-decoration:underline}

/* Phase 3E: consistent full-width editor cards and reliable rich-editor layout. */
body.admin .f.cms-grouped-editor-form { width:100%;max-width:none;min-width:0;box-sizing:border-box; }
body.admin .cms-grouped-editor-form>.cms-general-editor-grid { width:100%;min-width:0;max-width:none;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr)); }
body.admin .cms-grouped-editor-form .cms-general-editor-panel {width:100%;max-width:none;min-width:0;box-sizing:border-box;align-self:start;}
body.admin .cms-grouped-editor-form .cms-general-editor-panel .cms-rich-wrapper,
body.admin .cms-grouped-editor-form .cms-general-editor-panel .cms-rich-canvas {width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
body.admin .cms-grouped-editor-form .cms-general-editor-panel textarea {width:100%;min-width:0;max-width:100%;box-sizing:border-box;}
body.admin .cms-grouped-editor-form .cms-rich-toolbar {display:flex;flex-wrap:wrap;gap:5px;min-width:0;}
body.admin .cms-grouped-editor-form .cms-rich-toolbar[hidden] {display:none!important;}
body.admin .cms-grouped-editor-form .cms-rich-wrapper .cms-rich-canvas[hidden],
body.admin .cms-grouped-editor-form .cms-rich-wrapper textarea[hidden] {display:none!important;}
body.admin .cms-grouped-editor-form .cms-rich-modes button {white-space:nowrap;}
body.admin .cms-grouped-editor-form .cms-editor-help {line-height:1.55;}
body.admin .cms-general-editor-panel .cms-collection-step{vertical-align:middle;}
@media(max-width:1050px){body.admin .cms-grouped-editor-form>.cms-general-editor-grid{grid-template-columns:minmax(0,1fr)}}

/* Phase 3F: page-specific, accessible Collection Block ordering. */
body.admin .cms-page-builder{display:grid;gap:16px;max-width:none}
body.admin .cms-builder-summary,body.admin .cms-builder-blocks{border:1px solid #325568;border-radius:13px;background:#122637;padding:18px}
body.admin .cms-builder-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
body.admin .cms-builder-summary>div:first-child{display:grid;gap:5px;min-width:190px;flex:1}
body.admin .cms-builder-summary small,body.admin .cms-builder-block-info small{display:block;color:#a2c7d3;line-height:1.5}
body.admin .cms-builder-eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#63d9ee}
body.admin .cms-builder-list{list-style:none;display:grid;gap:10px;padding:0;margin:15px 0}
body.admin .cms-builder-block{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #34596d;background:#0d2030;border-radius:10px}
body.admin .cms-builder-block.cms-builder-dragging{opacity:.55;border-color:#5bdbea}
body.admin .cms-builder-grip{font-size:23px;cursor:grab;color:#79dcee;user-select:none}
body.admin .cms-builder-block-info{flex:1;min-width:140px}
body.admin .cms-builder-controls,body.admin .cms-builder-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.admin .cms-builder-controls .btn{padding:8px 12px}
body.admin .cms-builder-actions{margin-top:16px;justify-content:flex-end}
body.admin .cms-builder-blocks h2 small{font-size:13px;color:#8eafbc}
@media(max-width:700px){body.admin .cms-builder-block{flex-wrap:wrap}body.admin .cms-builder-controls{width:100%;justify-content:flex-end}}

/* Phase 3G: composable, accessible page sections. */
.cms-page-blocks .cms-universal-block{background:linear-gradient(125deg,#142637,#10202f);border:1px solid #2b4b60;border-radius:14px;padding:24px;min-width:0}
.cms-page-blocks .cms-universal-block h2{font-size:clamp(1.35rem,2.4vw,2rem);margin:0 0 12px}
.cms-page-blocks .cms-universal-rich{line-height:1.7;overflow-wrap:anywhere}
.cms-align-center{text-align:center}.cms-align-right{text-align:right}
.cms-universal-image figure{margin:0}.cms-universal-image img{max-width:100%;height:auto;border-radius:10px}.cms-universal-image figcaption{margin-top:10px;color:#acd0dc}
.cms-universal-quote blockquote{border-left:3px solid #3ecad9;margin:0;padding:8px 18px;font-size:1.2rem}.cms-universal-quote cite{display:block;margin-top:14px;color:#a8bccb}
.cms-universal-callout{background:rgba(36,194,211,.1);border-left:3px solid #32c8d9;border-radius:8px;padding:16px}
.cms-universal-callout strong{display:block;margin-bottom:8px}.cms-universal-divider{border:0;border-top:1px solid #34556a;margin:12px 0}
.cms-universal-editor{margin:20px 0}.cms-universal-editor .cms-general-editor-grid{max-width:none}.cms-page-blocks{min-width:0}

/* Phase 3G preview polish: CTA blocks should look like buttons on public pages. */
.cms-page-blocks .cms-universal-button a.btn {
 display:inline-flex;align-items:center;justify-content:center;min-height:40px;
 padding:10px 17px;border:1px solid #65e1ed;border-radius:9px;
 background:#39d1e1;color:#081925;font-weight:750;text-decoration:none;
 box-shadow:0 4px 14px rgba(0,0,0,.12);transition:filter .15s ease,transform .15s ease;
}
.cms-page-blocks .cms-universal-button a.btn:hover {filter:brightness(1.10);transform:translateY(-1px)}
.cms-page-blocks .cms-universal-button a.btn:focus-visible {outline:3px solid #d2faff;outline-offset:3px}

/* Phase 3G UX — numbered blocks, direct editing and contextual inputs. */
body.admin .cms-builder-block{flex-wrap:wrap}
body.admin .cms-builder-number{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:8px;border:1px solid #35768b;background:#10394a;color:#83ecf5;font-weight:800;font-variant-numeric:tabular-nums}
body.admin .cms-inline-editor{flex:0 0 100%;width:100%;margin-top:12px;padding:16px;border:1px solid #315466;border-radius:12px;background:#112b3b}
body.admin .cms-inline-editor[hidden],body.admin [data-for-kinds][hidden]{display:none!important}
body.admin .cms-inline-editor .cms-general-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.admin .cms-builder-top-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}
body.admin .cms-preview-direct{background:#164556;color:#b8f6fc;border-color:#368a9d}
body.admin .cms-conditional-editor [data-for-kinds]>label{display:block;margin-top:11px}
body.admin .cms-conditional-editor [data-for-kinds]>input,body.admin .cms-conditional-editor [data-for-kinds]>select{width:100%}
@media(max-width:850px){body.admin .cms-inline-editor .cms-general-editor-grid{grid-template-columns:1fr}}

/* v1.0 Beta: homepage Collection Blocks follow the same card rhythm as native cards.
   They should size to their content instead of stretching to fill a tall grid column. */
body.portfolio .pro-bottom-col > .cms-content-collection {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin: 0;
  align-self: stretch;
}
body.portfolio .pro-bottom-col > .cms-content-collection .cms-collection-items {
  gap: 12px;
}
body.portfolio .pro-bottom-col > .cms-content-collection .cms-collection-item {
  padding-top: 10px;
}
body.portfolio .pro-bottom-col > .cms-content-collection .cms-collection-item p {
  margin: 5px 0 0;
}

/* Phase 3H-K visual builder suite, isolated to custom pages and its editor. */
.cms-suite-workspace{display:grid;grid-template-columns:minmax(165px,220px) minmax(300px,1fr) minmax(220px,290px);gap:14px;align-items:start;margin-top:18px}
.cms-suite-panel{background:#111c2a;border:1px solid #2b4056;border-radius:14px;padding:16px;min-width:0}
.cms-suite-panel h2{font-size:1rem;margin:0 0 12px}.cms-suite-panel p{color:#a9bbcc;font-size:.83rem}
.cms-suite-tools{display:grid;gap:7px}.cms-suite-tools button{width:100%;text-align:left;cursor:pointer}
.cms-suite-canvas{min-height:400px;background:#0b1420;border:1px solid #324b65;border-radius:14px;padding:16px}
.cms-suite-canvas-item{border:2px solid transparent;border-radius:9px;padding:14px;margin-bottom:10px;background:#182638;cursor:pointer;position:relative;overflow-wrap:anywhere}
.cms-suite-canvas-item[aria-selected=true]{border-color:#43d3e7;box-shadow:0 0 0 2px #43d3e729}
.cms-suite-canvas-item:focus-visible{outline:3px solid #43d3e7}
.cms-suite-canvas-item .cms-suite-number{position:absolute;top:5px;right:8px;font-size:11px;color:#88a6bd}
.cms-suite-canvas-item h3{margin:0 0 9px}.cms-suite-canvas-item p{margin:6px 0}
.cms-suite-panel label{display:block;margin:10px 0 4px}.cms-suite-panel input,.cms-suite-panel textarea,.cms-suite-panel select{width:100%;box-sizing:border-box}
.cms-suite-panel .cms-suite-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.cms-suite-grid{display:grid;grid-template-columns:repeat(var(--cms-columns,2),minmax(0,1fr));gap:18px}
.cms-suite-cell,.cms-suite-card,.cms-suite-faq{background:#142436;border:1px solid #2a4960;border-radius:12px;padding:15px}
.cms-suite-faq{margin:10px 0}.cms-suite-faq summary{cursor:pointer;font-weight:650}.cms-suite-faq p{margin:10px 0 0}
.cms-suite-card h3{margin:0 0 10px}.cms-suite-gallery img{display:block;width:100%;height:190px;object-fit:cover;border-radius:9px}
.cms-suite-gallery figure{margin:0}.cms-suite-gallery figcaption{font-size:.85rem;margin-top:6px}
.cms-suite-video{aspect-ratio:16/9;max-width:900px}.cms-suite-video iframe{width:100%;height:100%;border:0;border-radius:12px}
.cms-suite-status{min-height:20px;color:#7bdae6;font-size:.84rem}.cms-suite-revision{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #2b4056;padding:10px 0}
@media(max-width:1100px){.cms-suite-workspace{grid-template-columns:minmax(150px,210px) minmax(320px,1fr)}.cms-suite-properties{grid-column:1/-1}}
@media(max-width:740px){.cms-suite-workspace{grid-template-columns:1fr}.cms-suite-properties{grid-column:auto}.cms-suite-grid{grid-template-columns:1fr}}

.cms-suite-direct-edit{box-sizing:border-box;width:100%;min-height:40px;background:#081524;color:#eef7ff;border:1px solid #43d3e7;border-radius:8px;padding:12px;font:inherit;}

/* Custom Page ordering: human-friendly positions with accessible arrow controls. */
body.admin .cms-custom-pages-list{list-style:none;padding:0;margin:14px 0}
body.admin .cms-custom-pages-list>li{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
body.admin .cms-custom-page-identity{display:flex;align-items:center;gap:12px;min-width:200px;flex:1 1 240px}
body.admin .cms-custom-page-position{display:inline-grid;place-items:center;min-width:31px;height:31px;border-radius:8px;border:1px solid #337488;color:#83eafa;background:#123643;font-size:13px;font-weight:800}
body.admin .cms-custom-page-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
body.admin .cms-custom-page-actions .btn{font-size:12px;padding:8px 10px;white-space:nowrap}
body.admin .cms-custom-page-actions button:disabled{opacity:.3;cursor:not-allowed}
body.admin .cms-page-advanced-order{margin:12px 0;padding:12px;border:1px solid #2a5062;border-radius:9px}
body.admin .cms-page-advanced-order summary{cursor:pointer;color:#88dfe9;font-weight:700}
body.admin .cms-page-advanced-order input{margin-top:8px;max-width:180px}
/* Primary link buttons inside panels must have dark-on-cyan contrast, not general link cyan. */
body.admin .admin-panel a.btn:not(.ghost):not(.danger),body.admin .cms-custom-page-actions a.cms-visual-builder-link{color:#081d2a!important;background:#46cfe1;border-color:#64dfed;font-weight:800;text-decoration:none;opacity:1}
body.admin .admin-panel a.btn:not(.ghost):not(.danger):hover,body.admin .cms-custom-page-actions a.cms-visual-builder-link:hover{background:#75e4ee;color:#071621!important}
body.admin .admin-panel a.btn:not(.ghost):not(.danger):focus-visible{outline:3px solid #fff;outline-offset:2px}

/* Visual builder stability: consistent visible drag grips and in-browser device widths. */
.cms-suite-drag-handle{display:inline-flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;color:#54d9e9;padding:5px 8px;border:1px solid #35566e;border-radius:7px;margin-bottom:8px;user-select:none;font-size:1.15rem}
.cms-suite-drag-handle:active{cursor:grabbing}
.cms-suite-dragging{opacity:.58;border:2px dashed #4dd6e7!important}
.cms-suite-canvas[data-device="tablet"]{max-width:768px;margin-inline:auto;width:100%;box-sizing:border-box}
.cms-suite-canvas[data-device="mobile"]{max-width:390px;margin-inline:auto;width:100%;box-sizing:border-box}
.cms-suite-device-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 12px;font-size:.8rem}
.cms-suite-device-toolbar button[aria-pressed="true"]{background:#42d0e1!important;color:#091d28!important}
.cms-suite-properties input[type="file"]{color:#dfedfb;padding:10px;border:1px dashed #4a7a94;border-radius:8px}
.cms-suite-properties button:disabled{opacity:.48;cursor:not-allowed}

/* Unified product credit. It stays centered independently of adjacent footer content. */
body.portfolio .site-footer.cms-attribution-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:22px;row-gap:12px}
.cms-attribution-footer .cms-footer-left{grid-column:1;justify-self:start;min-width:0}
.cms-attribution-footer .cms-footer-center{grid-column:2;justify-self:center;text-align:center}
.cms-attribution-footer .cms-footer-right{grid-column:3;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:14px;min-width:0}
.site-footer .cms-attribution-link,.site-footer .cms-attribution-link:visited{color:#68d9ef;text-decoration:none;font-weight:600}
.site-footer .cms-attribution-link:hover,.site-footer .cms-attribution-link:focus-visible{text-decoration:underline;color:#baf6ff}
@media(max-width:780px){body.portfolio .site-footer.cms-attribution-footer{grid-template-columns:1fr;text-align:center;justify-items:center} .cms-attribution-footer .cms-footer-left,.cms-attribution-footer .cms-footer-center,.cms-attribution-footer .cms-footer-right{grid-column:1;justify-self:center} .cms-attribution-footer .cms-footer-right{justify-content:center}}

/* Favorites shortcuts mirror the highlighted star state of original sidebar rows. */
body.admin .admin-favorites .sidebar-favorite-toggle.is-favorite,body.admin .sidebar-favorite-toggle[aria-pressed="true"]{color:#ffcf72!important;background:color-mix(in srgb,var(--panel2,#223542) 80%,#ffcf72 20%)!important}

/* Favorite stars: no colored square, including hover/pressed states. */
body.admin .sidebar-favorite-toggle,
body.admin .sidebar-favorite-toggle:hover,
body.admin .sidebar-favorite-toggle:focus-visible,
body.admin .sidebar-favorite-toggle[aria-pressed="true"],
body.admin .admin-favorites .sidebar-favorite-toggle.is-favorite{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
}
body.admin .sidebar-favorite-toggle[aria-pressed="true"],
body.admin .admin-favorites .sidebar-favorite-toggle.is-favorite{color:#ffcf72!important}
body.admin .sidebar-favorite-toggle:focus-visible{outline:2px solid var(--blue,#48cadd);outline-offset:1px}
body.admin .cms-mail-folders{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
body.admin .cms-mail-folders .btn{width:auto!important;text-decoration:none}
body.admin .cms-mail-folders .is-active{border-color:var(--blue,#48cadd)!important;color:var(--blue,#48cadd)!important}
body.admin .cms-unread-pill[hidden]{display:none!important}

/* Item editor: balanced independent columns, controls and actions last. */
body.admin .cms-item-editor-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;align-items:start;margin:16px 0}
body.admin .cms-item-editor-column{display:flex;flex-direction:column;gap:18px;min-width:0}
body.admin .cms-item-editor-column .cms-general-editor-panel{min-width:0;width:100%;max-width:none;box-sizing:border-box; margin:0}
body.admin .cms-item-editor-column .project-detail-fields legend:nth-of-type(2){display:none}
body.admin .cms-item-editor-column .image-position-editor{max-width:none;width:100%;box-sizing:border-box;background:var(--panel2);border-color:var(--border)}
body.admin .cms-item-editor-column .focal-viewport{aspect-ratio:1.32}
body.admin .cms-item-editor-column .focal-viewport img{will-change:transform}
body.admin .cms-item-editor-bottom{margin:22px 0 0;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
body.admin .cms-item-editor-bottom p{margin:5px 0 0;color:var(--muted)}
body.admin .cms-item-bottom-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body.admin .cms-item-bottom-actions .btn{width:auto;margin:0}
@media(max-width:1000px){body.admin .cms-item-editor-columns{grid-template-columns:1fr}}

/* Clip non-destructive zoom on detailed project media, never text. */
.project-detail-image-crop{overflow:hidden;border-radius:11px;min-width:0;display:grid;place-items:center}.project-detail-image-crop img{width:100%;max-height:520px;object-fit:contain}

/* Unified one-row visual editing header: CMS identity, editor title, status and actions. */
body.portfolio.cms-visual-edit .cms-visual-shell{position:sticky;top:0;z-index:102;display:flex;align-items:center;gap:clamp(14px,1.6vw,26px);width:100%;min-height:73px;box-sizing:border-box;padding:0 27px;color:var(--white,#f2f8ff);background:var(--panel,#14263a);border-bottom:1px solid var(--border,#315064);box-shadow:0 6px 20px #0005}
.cms-visual-admin-brand{display:inline-flex;align-items:center;flex:0 0 auto;gap:4px;text-decoration:none;color:var(--white,#f2f8ff);font-weight:800;font-size:18px;white-space:nowrap;letter-spacing:-.045em;line-height:1.2}
.cms-visual-admin-brand:hover{color:var(--white,#f2f8ff)}
.cms-visual-code{color:var(--blue,#40c9df)}
.cms-visual-version{display:inline-block;vertical-align:middle;margin-left:8px;padding:4px 8px;border:1px solid var(--border,#315064);border-radius:6px;color:var(--blue,#40c9df);background:var(--panel2,#182f40);font-size:10px;letter-spacing:0;font-weight:600}
body.portfolio.cms-visual-edit #cms-visual-editor{position:static;top:auto;z-index:auto;display:flex;align-items:center;gap:clamp(14px,1.5vw,26px);flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;box-shadow:none;color:var(--white,#f2f8ff)}
.cms-visual-description{display:flex;align-items:center;gap:clamp(10px,1.2vw,20px);min-width:0;flex:1 1 auto}
body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-description strong{flex:0 0 auto;color:var(--blue,#40c9df);font-size:14px;white-space:nowrap}
body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-description span{padding-left:clamp(10px,1.1vw,18px);border-left:1px solid var(--border,#54748b);color:var(--muted,#d0d9e2);font-size:12px;line-height:1.4}
.cms-visual-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;flex-wrap:nowrap;gap:clamp(10px,1.4vw,23px);margin-left:auto}
body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-actions a{color:var(--blue,#40c9df);white-space:nowrap;font-size:12px}
body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-actions button{background:var(--panel2,#314b5a);color:var(--white,#eff8ff);border:1px solid var(--border,#65869b);border-radius:8px;padding:9px 13px;cursor:pointer;white-space:nowrap;font-size:12px}
body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-actions button:hover{border-color:var(--blue,#40c9df)}
body.portfolio.cms-visual-edit #visual-editor-status:empty{display:none}
body.portfolio.cms-visual-edit #visual-editor-status:not(:empty){position:absolute;right:16px;top:100%;padding:6px 10px;border:1px solid var(--border,#315064);border-radius:0 0 8px 8px;background:var(--panel,#14263a);font-size:12px;color:var(--blue,#40c9df)}
@media(max-width:1320px){body.portfolio.cms-visual-edit .cms-visual-shell{flex-wrap:wrap;gap:8px 18px}body.portfolio.cms-visual-edit #cms-visual-editor{flex-basis:100%;justify-content:space-between}}
@media(max-width:820px){body.portfolio.cms-visual-edit #cms-visual-editor{flex-wrap:wrap}body.portfolio.cms-visual-edit .cms-visual-description{flex-basis:100%}.cms-visual-actions{margin-left:0;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:600px){body.portfolio.cms-visual-edit .cms-visual-shell{padding:10px 13px}.cms-visual-admin-brand{font-size:14px}body.portfolio.cms-visual-edit #cms-visual-editor .cms-visual-description span{font-size:11px}.cms-visual-actions{gap:12px}}

/* Shared v1.0 Beta identity: identical to the approved Visual Editor badge.
   Theme variables intentionally follow each edition's current selected theme. */
body.admin .admin-top .version-label,
body.portfolio.cms-visual-edit .cms-visual-version{
    display:inline-block;
    vertical-align:middle;
    margin-left:8px;
    padding:4px 8px;
    border:1px solid var(--border,#315064);
    border-radius:6px;
    background:var(--panel2,#182f40);
    color:var(--blue,#40c9df);
    font-size:10px;
    font-weight:600;
    line-height:normal;
    letter-spacing:0;
    box-shadow:none;
}


/* One identity / one header component: this markup is rendered by cms-shared-header.php.
   Both modes must keep identical logo and beta styles; only the actions vary. */
body.admin .cms-shared-header,
body.portfolio.cms-visual-edit .cms-shared-header{
    box-sizing:border-box;
    width:100%;
    min-height:73px;
    padding:0 27px;
    display:flex;
    align-items:center;
    gap:clamp(14px,1.6vw,26px);
    background:var(--panel,#111d2b);
    border-bottom:1px solid var(--border,#254353);
    color:var(--white,#edf8ff);
}
body.admin .cms-shared-header .cms-shared-brand,
body.portfolio.cms-visual-edit .cms-shared-header .cms-shared-brand{
    display:inline-flex;
    align-items:center;
    flex:0 0 auto;
    gap:0;
    margin:0;
    color:var(--white,#edf8ff);
    font-family:var(--cms-theme-font,Inter,system-ui,sans-serif);
    font-size:18px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:-.045em;
    white-space:nowrap;
    text-decoration:none;
}
body.admin .cms-shared-header .cms-shared-brand .brand-accent,
body.portfolio.cms-visual-edit .cms-shared-header .cms-shared-brand .brand-accent{
    color:var(--blue,#40c9df);
}
body.admin .cms-shared-header .cms-shared-brand .version-label,
body.portfolio.cms-visual-edit .cms-shared-header .cms-shared-brand .version-label{
    display:inline-block;
    flex:0 0 auto;
    margin-left:8px;
    padding:4px 8px;
    border:1px solid var(--border,#315064);
    border-radius:6px;
    background:var(--panel2,#182f40);
    color:var(--blue,#40c9df);
    font-size:10px;
    font-weight:600;
    line-height:normal;
    letter-spacing:0;
    box-shadow:none;
}
body.portfolio.cms-visual-edit .cms-shared-header{position:sticky;top:0;z-index:102;height:auto}
@media(max-width:1320px){
    body.portfolio.cms-visual-edit .cms-shared-header{flex-wrap:wrap;gap:8px 18px;padding-top:10px;padding-bottom:10px}
}
@media(max-width:760px){
    body.admin .cms-shared-header,body.portfolio.cms-visual-edit .cms-shared-header{padding-left:13px;padding-right:13px}
    body.admin .cms-shared-header .cms-shared-brand,body.portfolio.cms-visual-edit .cms-shared-header .cms-shared-brand{font-size:16px}
}

/* Release browser actions: owner-only signed update publishing */
.cms-release-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.cms-release-actions form{margin:0}
.cms-release-actions .btn.danger{border-color:#bb5063;color:#fff;background:#6d2536}
.cms-release-actions .btn.danger:hover{background:#882e43}
@media(max-width:620px){.cms-release-actions{justify-content:flex-start}}

/* Time settings two-column form */
.cms-time-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:16px;align-items:start}.cms-time-layout .admin-panel{min-width:0}.cms-time-layout select{max-width:100%}@media(max-width:800px){.cms-time-layout{grid-template-columns:1fr}}

/* Beta 5: homepage block editor — keep the save buttons on their own row (they stretched into the 2nd grid column). */
body.admin form.cms-homepage-groups>.cms-form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
/* Homepage buttons: "Goes to" */
.cms-btn-goto{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:8px 0 14px;padding:10px 12px;border:1px dashed var(--border,#315064);border-radius:10px}
.cms-btn-goto label{display:grid;gap:5px;font-size:12px;color:var(--muted,#a8c2d1);margin:0!important}
.cms-btn-goto select,.cms-btn-goto input[type=url]{min-width:220px}
.cms-btn-goto .chk{display:flex!important;align-items:center;gap:7px;font-size:13px;color:var(--white,#e5f7ff);white-space:nowrap}
.cms-btn-goto .chk input[type=checkbox]{width:18px!important;height:18px;flex:none;margin:0}
.cms-btn-goto .cms-btn-url{display:none}
.cms-btn-goto:has(option[value=url]:checked) .cms-btn-url{display:grid}
/* Live preview beside the editor */
.cms-live-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(400px,1.1fr);gap:22px;align-items:start}
.cms-live-layout>form>fieldset,.cms-live-layout>form .cms-general-editor-grid{width:100%;min-width:0;box-sizing:border-box}
.cms-live-layout>form{min-width:0}
.cms-live-pane{position:sticky;top:84px;display:grid;gap:8px;padding:12px;border:1px solid var(--border,#315064);border-radius:14px;background:var(--panel,#122333);min-width:0}
.cms-live-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.cms-live-head strong{font-size:14px}.cms-live-status{color:var(--muted,#a8c2d1);font-size:12px}.cms-live-sp{flex:1}
.cms-live-devices{display:inline-flex;padding:3px;border:1px solid var(--border,#315064);border-radius:9px;gap:3px}
.cms-live-devices button,.cms-live-hide{border:0;border-radius:7px;padding:5px 11px;background:transparent;color:var(--white,#e5f7ff);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.cms-live-devices button.on{background:var(--blue,#40c9df);color:#03222b}
.cms-live-hide{border:1px solid var(--border,#315064)}
.cms-live-stage{position:relative;overflow:hidden;border-radius:10px;background:#05080d;display:flex;justify-content:center}
.cms-live-screen{flex:none;transform-origin:top left;border-radius:10px;overflow:hidden;background:#0b101b}
.cms-live-screen.is-phone{transform-origin:top center;border:6px solid #1b2433;border-radius:24px}
.cms-live-screen iframe{display:block;width:100%;height:100%;border:0;background:#0b101b}
.cms-live-stage:has(.is-phone){justify-content:center}
.cms-live-stage:not(:has(.is-phone)){justify-content:flex-start}
.cms-live-note{margin:0;font-size:12px;color:var(--muted,#a8c2d1)}
.cms-live-off{grid-template-columns:minmax(0,1fr) auto}.cms-live-off .cms-live-stage,.cms-live-off .cms-live-note,.cms-live-off .cms-live-devices{display:none}
@media (max-width:1200px){.cms-live-layout{grid-template-columns:minmax(0,1fr)}.cms-live-pane{position:static}}
.cms-live-layout>.cms-homepage-groups{grid-template-columns:minmax(0,1fr)!important}

/* Homepage on one grid of three columns (wide screens): the top row (intro = 2 columns, Currently building = 1),
   the project cards and the bottom row (Tech Stack · Selected Projects · Development Focus) share the same lines.
   1, 4, 7 … projects: the first card takes the full width; 2, 5, 8 …: the first card takes two columns. */
@media(min-width:1151px){
 .pro-home .pro-top-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pro-home .pro-top-grid>:first-child{grid-column:span 2}
 .pro-home .pro-top-grid>:only-child{grid-column:1/-1}
 .pro-home .pro-projects{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pro-home .pro-projects>article.project-card>.project-card-main{grid-template-columns:1fr !important}
 .pro-home .pro-projects>article.project-card .project-art{height:210px;min-height:0}
 .pro-home .pro-projects:is([data-count="1"],[data-count="4"],[data-count="7"],[data-count="10"])>article.project-card:first-child{grid-column:1/-1}
 .pro-home .pro-projects:is([data-count="2"],[data-count="5"],[data-count="8"],[data-count="11"])>article.project-card:first-child{grid-column:span 2}
 .pro-home .pro-projects:is([data-count="1"],[data-count="2"],[data-count="4"],[data-count="5"],[data-count="7"],[data-count="8"],[data-count="10"],[data-count="11"])>article.project-card:first-child>.project-card-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;align-items:center;height:100%}
 .pro-home .pro-projects:is([data-count="1"],[data-count="2"],[data-count="4"],[data-count="5"],[data-count="7"],[data-count="8"],[data-count="10"],[data-count="11"])>article.project-card:first-child .project-art{height:auto;min-height:240px}
}

/* Admin → Projects while the homepage shows member projects */
.mp-home-panel{border-color:#2fb8cc66}
.mp-home-panel .list li>span:last-child{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.mp-portfolio-backup>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.mp-portfolio-backup>summary::-webkit-details-marker{display:none}
.mp-portfolio-backup>summary::before{content:"▸";color:#54e2f0}.mp-portfolio-backup[open]>summary::before{content:"▾"}
.mp-portfolio-backup[open]>summary{margin-bottom:12px}
.mp-portfolio-backup .admin-panel{background:transparent;box-shadow:none}

/* Admin menu search: matching tabs inside admin pages */
.admin-tab-results{display:grid;gap:4px;margin:6px 0 12px}
.admin-tab-hit{display:block!important;padding:9px 12px!important;border-radius:10px;line-height:1.3}
.admin-tab-hit small{display:block;font-size:11.5px;opacity:.7}

/* Footer credit added to every public page */
.site-footer .cms-footer-credit{margin-left:auto;margin-right:auto;text-align:center}
.cms-footer-credit a,.cms-credit-footer a{color:var(--accent,#41dbe8);font-weight:700;text-decoration:none}
.cms-credit-footer{display:block;padding:22px 16px 28px;text-align:center;font-size:14px;border-top:1px solid rgba(255,255,255,.08)}
/* One footer for every page (same as the homepage) */
.site-footer.cms-attribution-footer .cms-footer-left{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
body .site-footer.cms-unified-footer{max-width:1500px;width:100%;margin:40px auto 0;padding:26px 30px;font-size:12px;color:var(--muted,#8aa0b4);box-sizing:border-box}
body .site-footer.cms-unified-footer a{color:var(--blue,#68d9ef)}
@media(max-width:760px){.site-footer.cms-attribution-footer{grid-template-columns:1fr;justify-items:center;text-align:center}.site-footer.cms-attribution-footer>div{grid-column:1!important;justify-self:center!important;justify-content:center!important}}
/* Admin menu: six groups (sidebar) + page tabs + dashboard hub */
body.admin .admin-group>summary{list-style:none;padding:0;letter-spacing:0;text-transform:none;font-size:13px}
body.admin .admin-group>summary::-webkit-details-marker{display:none}
body.admin .admin-group-link,body.admin .admin-group-home{display:flex;align-items:center;gap:13px;padding:10px 14px;border-radius:10px;text-decoration:none;color:#adbfcb;font-weight:600;font-size:13px;margin:3px 0}
body.admin .admin-group-link:hover,body.admin .admin-group-home:hover{background:#1a3140;color:#f2fcff}
body.admin .admin-group.is-active .admin-group-link,body.admin .admin-group-home.active{background:#123845;color:#73e2f0;box-shadow:inset 0 0 0 1px #27586b}
body.admin .admin-group-link .nav-icon,body.admin .admin-group-home .nav-icon{width:22px;text-align:center;font-size:16px}
body.admin .admin-sidebar:not(.is-searching) .admin-group .admin-nav-children{display:none}
body.admin .admin-sidebar.is-searching .admin-group>summary{pointer-events:none;opacity:.7}
body.admin .admin-group-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;border-bottom:1px solid #21394a;margin:-8px 0 24px;padding-bottom:0}
body.admin .admin-group-tabs-title{color:#7993a4;font-size:10px;letter-spacing:.15em;text-transform:uppercase;margin-right:4px}
body.admin .admin-group-tabs a{color:#91aabd;text-decoration:none;font-size:13px;font-weight:600;padding:8px 0 10px;border-bottom:2px solid transparent;margin-bottom:-1px}
body.admin .admin-group-tabs a:hover{color:#f2fcff}
body.admin .admin-group-tabs a.active{color:#73e2f0;border-bottom-color:#46cfe1}
body.admin .cms-hub{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:12px;margin:0 0 16px;align-items:stretch}
body.admin .cms-hub-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.admin .cms-hub-tile{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid #284355;border-radius:15px;background:#121e2b;text-decoration:none;color:#edf8ff;transition:border-color .15s,background .15s}
body.admin .cms-hub-tile:hover{border-color:#46cfe1;background:#152535}
body.admin .cms-hub-icon{font-size:20px;color:#73e2f0}
body.admin .cms-hub-tile strong{font-size:15px}
body.admin .cms-hub-tile small{color:#91aabd;font-size:12px;line-height:1.4}
body.admin .cms-news-mini{border:1px solid #284355;border-radius:15px;background:#121e2b;padding:12px 14px}
body.admin .cms-news-mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
body.admin .cms-news-mini-head a{color:#7fdfed;font-size:12px;text-decoration:none}
body.admin .cms-news-mini-item{display:flex;gap:8px;align-items:baseline;padding:8px 0;border-top:1px solid #263e50;text-decoration:none;color:#edf8ff;font-size:13px}
body.admin .cms-news-mini-item:hover{color:#73e2f0}
body.admin .cms-news-mini-item small{display:block;font-size:11px;margin-top:2px}
body.admin .cms-news-mini-dot{flex:0 0 7px;height:7px;border-radius:50%;background:#46cfe1;transform:translateY(-1px)}
body.admin .cms-news-mini p{margin:6px 0 0;font-size:12px}
@media(max-width:1000px){body.admin .cms-hub{grid-template-columns:1fr}body.admin .cms-hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.admin .admin-group>summary.side-label{display:block}body.admin .admin-group-link,body.admin .admin-group-home{white-space:nowrap;padding:8px 12px}body.admin .admin-group-tabs{flex-wrap:nowrap;overflow-x:auto;margin-top:0}body.admin .admin-group-tabs a{white-space:nowrap}}
body.admin .admin-nav-collapsible.admin-group{margin:0}
body.admin .admin-nav-collapsible.admin-group>summary{display:block;min-height:0;padding:0;border-radius:10px}
body.admin .admin-nav-collapsible.admin-group>summary:hover{background:none}
body.admin .admin-group-home{margin-top:6px}
@media(max-width:760px){body.admin .admin-nav-collapsible.admin-group>summary.side-label{display:block}body.admin .admin-nav-group.admin-nav-collapsible.admin-group{min-width:0}}
body.admin .admin-page-star{background:none;border:0;padding:0 4px;margin-left:10px;font-size:22px;line-height:1;vertical-align:middle;color:#5d7a8c;cursor:pointer;border-radius:6px}
body.admin .admin-page-star:hover{color:#ffd166}
body.admin .admin-page-star.is-on{color:#ffd166}
body.admin .admin-page-star:focus-visible{outline:2px solid #46cfe1;outline-offset:2px}

body.admin .cms-hub-grid-metrics{grid-template-columns:repeat(3,minmax(0,1fr)) 270px;gap:12px;margin:0 0 12px}
body.admin .cms-news-mini{display:flex;flex-direction:column}
@media(max-width:1000px){body.admin .cms-hub-grid-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The help box is moved under the page title by admin-help-position.js; keep it hidden until then so it never flashes above the title. */
body.admin main.admin-main .cms-page-guide:not(.is-placed){visibility:hidden;position:absolute;pointer-events:none}
/* Checkbox rows (poll "Allow multiple answers" etc.): normal-size box with the text beside it */
label.forum-check{display:flex!important;align-items:center;gap:8px;width:auto;margin:10px 0 0;font-size:14px;cursor:pointer}
label.forum-check input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;margin:0!important;flex:0 0 18px;accent-color:#46cfe1}
/* Header search: link that turns into a text field */
.bb-hsearch{display:inline-flex;align-items:center;margin:0}
.bb-hsearch input[type=search]{width:150px;height:34px;padding:0 12px;border-radius:9px;border:1px solid #46cfe1;background:#0d1a26;color:#edf8ff;font:inherit;font-size:14px;outline:none;box-shadow:0 0 0 3px rgba(70,207,225,.15);animation:bbHs .15s ease-out}
.bb-hsearch input[type=search]::placeholder{color:#7f97a8}
@keyframes bbHs{from{width:80px;opacity:.4}to{width:150px;opacity:1}}
@media(prefers-reduced-motion:reduce){.bb-hsearch input[type=search]{animation:none}}
.bb-hsearch [hidden]{display:none!important}
.bb-util .bb-hsearch a .fi{color:var(--f-ok)}
