/* Studio UI: visual layer only. Forms, permissions and data remain server-owned. */
body[data-admin-state="authorized"] {
  --canvas:#f5f3f1;--surface:#fff;--surface-soft:#faf8f7;
  --ink:#272229;--ink-soft:#726b73;--ink-faint:#8c858d;
  --line:#e8e2e5;--line-strong:#d6ccd2;
  --brand:#9d526d;--brand-dark:#773c54;--brand-soft:#f7ecf1;
  --sidebar:#241f27;--sidebar-soft:#38303c;--sidebar-text:#fff9fc;--sidebar-muted:#c6bac7;
  --shadow:0 8px 28px #38203906;--sidebar-width:236px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55;
}
body[data-admin-state="authorized"] :is(button,input,textarea,select){font-family:inherit}
body[data-admin-state="authorized"] .sidebar{border-right:1px solid #ffffff0b}
body[data-admin-state="authorized"] .brand{gap:12px;padding:24px 20px;border-bottom:1px solid #ffffff0b}
body[data-admin-state="authorized"] .brand-emblem{width:42px;height:42px;flex-basis:42px;border-radius:13px}
body[data-admin-state="authorized"] .brand strong{font-family:inherit;font-size:14px;font-weight:650;letter-spacing:-.2px}
body[data-admin-state="authorized"] .brand small{font-size:11px;margin-top:4px}
body[data-admin-state="authorized"] .side-nav{padding:26px 12px}
body[data-admin-state="authorized"] .nav-label{font-size:9px;letter-spacing:1.3px;font-weight:600;margin-bottom:16px}
body[data-admin-state="authorized"] .nav-link{border-radius:11px;min-height:44px;padding:11px 13px;gap:11px;font-size:13px;margin:4px 0;font-weight:450}
body[data-admin-state="authorized"] .nav-link--active{background:#f4e4eb;color:#743d55;font-weight:650;box-shadow:0 3px 12px #00000012}
body[data-admin-state="authorized"] .nav-link--active:hover{background:#f4e4eb;color:#743d55}
body[data-admin-state="authorized"] .nav-link .icon{width:17px;height:17px;opacity:.9}
body[data-admin-state="authorized"] .sidebar-footer{padding:18px 16px;background:#ffffff03}
body[data-admin-state="authorized"] .button{border-radius:10px;min-height:42px;font-size:13px;font-weight:600;padding:10px 15px;white-space:normal}
body[data-admin-state="authorized"] .button--primary{box-shadow:0 3px 9px #773c5416}
body[data-admin-state="authorized"] .button--secondary{border-color:var(--line);background:#fff}
body[data-admin-state="authorized"] .icon-button{border-radius:9px}
body[data-admin-state="authorized"] :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #9d526d55;outline-offset:3px}
body[data-admin-state="authorized"] :is(input,textarea,select){accent-color:var(--brand-dark)}
body[data-admin-state="authorized"] .page-header h1{font-family:inherit;font-size:32px;font-weight:650;line-height:1.18;letter-spacing:-1.1px}
body[data-admin-state="authorized"] .page-header .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:10px;font-weight:650}
body[data-admin-state="authorized"] .page-header p:last-child{font-size:13px;line-height:1.65;max-width:520px}
body[data-admin-state="authorized"] .page-actions{flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;gap:8px}
body[data-admin-state="authorized"] .mobile-bar{border-bottom-color:var(--line);background:#fffcfaf5;backdrop-filter:blur(12px)}
body[data-admin-state="authorized"] .mobile-brand{font-family:inherit;font-size:13px;font-weight:600;letter-spacing:-.2px}
body[data-admin-state="authorized"] .mobile-menu{border-radius:14px;box-shadow:0 16px 48px #34202a24}
body[data-admin-state="authorized"] .mobile-menu a{border-radius:8px}

/* Content editing is a workbench with distinct cards, rather than a nested website. */
body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .workspace{padding:36px clamp(20px,3vw,42px) 64px}
body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .page-header{gap:20px;align-items:center;margin-bottom:26px;min-height:80px}
body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .context-bar{padding:15px 18px;border:1px solid var(--line);border-radius:13px;box-shadow:none;gap:12px 22px;font-size:12px;margin-bottom:24px;background:#ffffffb3;flex-wrap:wrap}
body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .context-bar strong{font-weight:650;color:var(--ink)}
body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .context-status{font-size:10px;padding:5px 10px;font-weight:600;white-space:normal}
.page-editor{gap:20px;border:0;background:transparent;min-width:0}
.page-editor>section{min-width:0;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.page-editor .editor-save-bar{top:18px;margin:0;gap:16px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 24px #33232b0a;background:#fffffff5;backdrop-filter:blur(14px)}
.editor-save-state>.icon{color:var(--sage);width:18px;height:18px;flex-basis:18px}
.editor-save-state strong{font-size:12px;font-weight:600}
.editor-save-state small{font-size:11px;margin-top:2px}
.editor-save-bar.is-dirty{border-color:var(--brand);background:#fff8fb}
.editor-save-bar.is-dirty .editor-save-state>.icon{color:var(--brand-dark)}
.page-editor .editor-nav-band{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:24px;background:var(--surface)}
.editor-nav-heading .eyebrow{font-size:9px;letter-spacing:1.3px;margin:0 0 6px}
.editor-nav-heading h2{font-size:18px;font-weight:650;letter-spacing:-.4px;margin:0}
.editor-nav-heading p:last-child{font-size:12px;color:var(--ink-soft);margin:5px 0 0;line-height:1.6}
.page-editor .editor-nav-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;width:100%}
.page-editor .editor-nav-fields .inline-field{gap:7px}
.page-editor .editor-nav-fields .inline-field>span{font-size:11px;font-weight:500;color:var(--ink-soft);opacity:1}
.page-editor .editor-nav-fields .inline-field input{min-width:0;width:100%;height:42px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:10px 12px;color:var(--ink);font-size:13px;font-weight:500;text-align:left}
.page-editor .editor-nav-fields .inline-field input:focus{background:#fff;border-color:var(--brand);outline:3px solid #9d526d20}
.page-editor .editor-hero-band{border:0;min-height:430px;border-radius:16px;padding:70px 5% 30px}
.editor-hero-band .editor-band-label{font-size:9px;letter-spacing:1px;top:22px;left:24px;text-transform:uppercase}
body[data-admin-state="authorized"] .editor-hero-band .editor-hero-manage{top:15px;right:18px;border-radius:9px;font-size:11px;min-height:34px;padding:8px 12px;background:#2c2229cc;color:#fff;border-color:#ffffff50}
body[data-admin-state="authorized"] .editor-hero-band .editor-hero-manage:hover{background:#2c2229ef;color:#fff}
.editor-hero-band .inline-field--display input{font-size:clamp(28px,3.5vw,48px)}
.editor-hero-band .hero-layout-item{padding:10px 12px 8px;border-color:#ffffff15;background:#0c080a12;border-radius:9px}
.editor-hero-band .inline-field>span{font-size:9px;letter-spacing:.4px;font-weight:500}
.editor-hero-band .inline-field input,.editor-hero-band .inline-field textarea{border-radius:6px}
.editor-hero-band .inline-field--lead textarea{font-size:16px}
.page-editor :is(.editor-copy-band,.editor-portfolio-band,.editor-services-band,.editor-contact-band,.editor-process-band){padding:26px;background:var(--surface)}
.page-editor .editor-about-band{border:0;border-radius:16px;padding:30px;gap:26px}
.page-editor .editor-about-photo{border-radius:11px}
.page-editor .editor-section-heading h2,.editor-toolbar h2,.photo-organizer-header h2{font-family:inherit;font-size:21px;font-weight:650;letter-spacing:-.5px;line-height:1.3}
.page-editor .editor-section-heading .eyebrow,.editor-toolbar .eyebrow{font-size:9px;letter-spacing:1px;font-weight:600}
.page-editor :is(.editor-field input,.editor-field textarea,.editor-field select){border-color:var(--line);border-radius:9px;background:var(--surface-soft);font-size:13px;padding:11px 13px;min-width:0}
.page-editor :is(.editor-copy-band,.editor-portfolio-band,.editor-services-band,.editor-contact-band,.editor-process-band) .inline-field{color:var(--ink)}
.page-editor :is(.editor-portfolio-band,.editor-services-band,.editor-process-band) .inline-field>span{color:var(--ink-soft);opacity:1;font-size:10px}
.page-editor :is(.editor-portfolio-band,.editor-services-band,.editor-process-band) .inline-field :is(input,textarea){border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);padding:10px 12px;font-family:inherit;font-size:15px;line-height:1.5}
.page-editor :is(.editor-portfolio-band,.editor-services-band,.editor-process-band) .inline-field--eyebrow input{font-size:11px;font-weight:600;letter-spacing:.5px}
.page-editor :is(.editor-portfolio-band,.editor-services-band,.editor-process-band) .inline-field--section-title :is(input,textarea){font-size:23px;font-weight:600;line-height:1.3}
.page-editor .editor-process-step{border-color:var(--line);border-radius:12px}
.editor-tabs{border-radius:11px;border:1px solid var(--line);padding:4px;gap:4px;background:#fff}
.editor-tabs a{border:0;border-radius:7px;font-size:12px;font-weight:600;text-decoration:none;min-width:150px;min-height:38px}
.editor-toolbar{gap:18px;margin-bottom:24px;align-items:center}
.editor-toolbar p{font-size:12px;line-height:1.6;max-width:520px}
.direction-editor-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px}
.direction-editor-card{border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}
.direction-cover-preview{border-radius:0}
.direction-editor-card :is(input,textarea),.service-editor-form :is(input,textarea){font-size:13px;border-color:var(--line);border-radius:8px;background:var(--surface-soft);padding:10px 12px}
.service-editor-list{gap:18px}
.service-editor-row{border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:22px;gap:18px}
.service-position{border-radius:9px;background:var(--brand-soft);color:var(--brand-dark)}
.service-editor-form label>span{font-size:11px;font-weight:500;color:var(--ink-soft)}
.service-editor-form{gap:16px}

@media(min-width:1250px){.page-editor .editor-nav-fields{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){
  body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .page-header{align-items:flex-start;flex-wrap:wrap}
  body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .page-actions{justify-content:flex-start}
  .editor-save-state small{max-width:200px}
}
@media(max-width:760px){
  body[data-admin-state="authorized"] .page-header h1{font-size:28px}
  body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .workspace{padding:24px 18px 44px}
  .page-editor{gap:16px}
  .page-editor .editor-save-bar{top:74px;gap:12px;padding:12px;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
  .editor-save-state{flex:0 0 auto;width:100%}.editor-save-state small{max-width:none}
  .page-editor .editor-save-bar .button{flex:0 0 auto;width:100%;min-height:42px}
  .page-editor .editor-nav-band{padding:20px}
  .page-editor .editor-nav-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
  .page-editor .editor-nav-fields .inline-field:last-child{grid-column:1/-1}
  .page-editor .editor-hero-band{min-height:440px;padding:75px 4% 24px}
  .editor-hero-band .inline-field--display input{font-size:clamp(16px,4.6vw,22px)}
  .editor-hero-band .inline-field--eyebrow input{font-size:10px;letter-spacing:0}
  .editor-hero-band .inline-field--lead textarea{min-height:132px;font-size:14px;line-height:1.6}
  .page-editor>section{scroll-margin-top:210px}
  .page-editor :is(input,textarea,select){scroll-margin-top:220px}
  .page-editor :is(.editor-copy-band,.editor-portfolio-band,.editor-services-band,.editor-contact-band,.editor-process-band){padding:20px}
  .page-editor .editor-about-band{padding:22px;gap:20px}
  .page-editor .editor-about-photo{min-height:330px}
  .page-editor .editor-contact-band .inline-grid{grid-template-columns:minmax(0,1fr)}
  .editor-toolbar{align-items:stretch;flex-direction:column;gap:16px}
  .editor-tabs{width:100%;display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr}
  .editor-tabs a{min-width:0;padding:9px 10px}
  .service-editor-row{padding:17px;gap:12px}
}
@media(max-width:420px){
  body:is([data-admin-view="overview"],[data-admin-view="gallery"],[data-admin-view="services"]) .workspace{padding-inline:14px}
  body[data-admin-state="authorized"] .page-actions{width:100%}
  body[data-admin-state="authorized"] .page-actions>a,body[data-admin-state="authorized"] .page-actions>form{flex:1;min-width:0}
  body[data-admin-state="authorized"] .page-actions>form .button{width:100%}
  .page-editor .editor-nav-band{padding:17px}
  .editor-hero-band .editor-band-label{left:16px;top:20px;font-size:8px;max-width:44%}
  .editor-hero-band .editor-hero-manage{right:13px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){body[data-admin-state="authorized"] :is(.button,.nav-link,.icon-button){transition:none}}
