/* Recipe editorial direction — local review, 8px spacing. */
.editorial-ui{--paper:#f1efe9;--ink:#292b27;--muted:#797970;--line:#d9d6cd;--accent:#656b5c;background:var(--paper)}
.editorial-ui .login{grid-template-columns:minmax(0,1.35fr) minmax(360px,1fr);min-height:100svh;max-width:1600px;margin:auto}
.editorial-ui .login-art{padding:40px 48px 32px;background:#e9e8df;justify-content:flex-start;border-right:1px solid var(--line)}
.editorial-ui .login-art::before,.editorial-ui .login-art::after{display:none}
.editorial-ui .login-art h1{font-size:clamp(28px,3vw,44px);line-height:1.5;letter-spacing:.02em;margin:16px 0 24px}
.editorial-ui .login-panel{padding:48px;position:sticky;top:0;align-self:start;min-height:100svh}
.editorial-ui .login-box{max-width:360px;width:100%}.editorial-ui .login-box .brand{font-size:48px;margin-bottom:64px}.editorial-ui .login-box .eyebrow{font-size:10px}.editorial-ui .login-box h2{font-size:28px;margin:16px 0 24px}.editorial-ui .login-box .muted{font-size:14px;line-height:1.8}.editorial-ui .login-box .check{margin-top:24px;font-size:12px}.editorial-ui .login-box .primary{border-radius:4px;margin:24px 0;font-size:14px}.editorial-ui #publicLegalLinks{font-size:12px;margin:8px 0}.editorial-ui .login-box>small{font-size:11px}
.editorial-showcase{width:100%;max-width:640px}.showcase-meta{display:flex;justify-content:space-between;gap:16px;font-size:10px;letter-spacing:.08em;margin-bottom:16px;color:var(--muted)}
.showcase-photo{position:relative;overflow:hidden;aspect-ratio:1.2;background:#d8cbb9}.showcase-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 58%}.showcase-caption{position:absolute;bottom:16px;left:16px;font-size:9px;letter-spacing:.18em;background:#f1efe9df;padding:8px 12px;color:#46463e}
.showcase-controls{display:grid;grid-template-columns:88px 1fr;gap:24px;align-items:center;margin:24px 0}.showcase-number{font:72px/.95 Georgia,serif;letter-spacing:-.07em}.showcase-copy h2{font-size:18px;margin:0 0 8px}.showcase-copy p{font-size:12px;line-height:1.7;margin:0;max-width:34em;color:#74756e}
.showcase-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid #cac9bd}.showcase-steps button{position:relative;border:0;border-radius:0;border-top:2px solid transparent;margin-top:-1px;background:none;padding:16px 0;text-align:left;min-height:56px;font-size:12px;color:#74756e;transition:border-color .25s,color .25s}.showcase-steps small{display:block;font:10px/1.5 system-ui;margin-bottom:4px}.showcase-steps button[aria-pressed="true"]{border-color:#3e4239;color:#272b25}.showcase-steps button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.editorial-ui .sidebar{background:#ebe9e1;padding-top:40px}.editorial-ui .sidebar .brand{font-size:40px}.editorial-ui .sidebar .tagline{letter-spacing:.16em;margin-bottom:40px}.editorial-ui .nav{gap:8px}.editorial-ui .nav button{border-radius:4px;padding-top:12px;padding-bottom:12px;transition:background .2s,transform .2s}.editorial-ui .nav button.active{background:#dcded3}.editorial-ui .nav button:hover{transform:translateX(2px)}
.editorial-ui .main{padding:32px 40px 112px}.editorial-ui .topbar{padding-bottom:24px;margin-bottom:40px}.editorial-ui .page-head{margin-bottom:32px;gap:24px}.editorial-ui .page-head h1{font-size:clamp(28px,3vw,40px);letter-spacing:.04em;margin:8px 0}.editorial-ui .page-head p{font-size:13px;line-height:1.8}.editorial-ui .page-head .eyebrow{font-size:10px;letter-spacing:.18em}
.editorial-ui .grid{gap:32px 24px}.editorial-ui .work-tile{position:relative}.editorial-ui .work-tile .card{border:0;background:transparent;border-radius:0;box-shadow:none}.editorial-ui .work-tile .cover{border-radius:4px;overflow:hidden}.editorial-ui .work-tile .cover img{transition:transform .7s cubic-bezier(.22,1,.36,1)}.editorial-ui .work-tile .card-body{padding:16px 0 24px;border-bottom:1px solid var(--line);position:relative}.editorial-ui .work-tile .card-body .meta{font-size:10px}.editorial-ui .work-tile h3{font-size:18px;margin:12px 0}.editorial-ui .work-tile .tags{font-size:11px}.editorial-ui .work-tile .badge{border-radius:2px}.editorial-ui .panel,.editorial-ui .material-library-sheet{border-radius:8px;border-color:#dedbd3;padding:32px}.editorial-ui .member-actions{background:transparent;border-width:1px 0;border-radius:0}.editorial-ui .member-actions button{min-height:56px}.editorial-ui .member-app-version{margin:32px 0}.editorial-ui .admin-primary-tabs{gap:8px}.editorial-ui .admin-primary-tabs button{border-radius:4px;min-height:48px}.editorial-ui dialog{border-radius:12px}.editorial-ui .mobile-persistent-actions{border-radius:16px;box-shadow:0 8px 32px #302d2514}
@media(hover:hover){.editorial-ui .work-tile .card:hover .cover img{transform:scale(1.035)}.showcase-steps button:hover{color:#272b25;border-top-color:#a0a493}}
@media(min-width:1450px){.editorial-ui .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.editorial-ui .login-art{padding:32px}.editorial-ui .login-panel{padding:32px}.editorial-ui .main{padding:24px 24px 112px}.showcase-controls{grid-template-columns:64px 1fr;gap:16px}.showcase-number{font-size:60px}.editorial-ui .login-box .brand{margin-bottom:40px}}
@media(max-width:700px){.editorial-ui .login{display:flex;flex-direction:column}.editorial-ui .login-art{padding:24px;border:0;border-bottom:1px solid var(--line)}.editorial-ui .login-art h1{font-size:28px;margin:16px 0 24px}.editorial-ui .login-panel{position:static;min-height:0;padding:40px 24px 48px}.editorial-ui .login-box{max-width:none}.editorial-ui .login-box .brand{font-size:40px;margin-bottom:32px}.showcase-photo{aspect-ratio:1.25}.showcase-controls{margin:24px 0 16px}.showcase-number{font-size:56px}.showcase-copy h2{font-size:17px}.showcase-copy p{font-size:12px}.showcase-steps{gap:8px}.showcase-steps button{font-size:12px}.editorial-ui .sidebar{padding:8px 16px}.editorial-ui .nav button{padding:8px}.editorial-ui .main{padding:16px 16px 112px}.editorial-ui .topbar{margin-bottom:24px;padding-bottom:16px}.editorial-ui .page-head{margin-bottom:24px;gap:16px}.editorial-ui .page-head h1{font-size:27px}.editorial-ui .grid{gap:24px 16px}.editorial-ui .work-tile h3{font-size:15px}.editorial-ui .work-tile .card-body{padding-top:16px}.editorial-ui .work-tile .card-body .meta{font-size:9px;padding-right:24px;gap:4px}.editorial-ui .panel,.editorial-ui .material-library-sheet{padding:24px 16px}.editorial-ui .member-actions{padding:16px}.editorial-ui .page-head .eyebrow{display:block;font-size:9px}}
@media(prefers-reduced-motion:reduce){.editorial-ui .nav button,.editorial-ui .work-tile .cover img,.showcase-steps button{transition:none}.editorial-ui .nav button:hover,.editorial-ui .work-tile .card:hover .cover img{transform:none}}

.editorial-mobile-access{display:none}@media(max-width:700px){.editorial-mobile-access{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.editorial-mobile-access .brand{font-size:30px}.editorial-mobile-access button{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;min-height:44px;font-size:12px;padding:8px}}

.showcase-photo .showcase-photo-outgoing{position:absolute;inset:0;pointer-events:none}.showcase-caption{z-index:1}.showcase-playback{display:block;margin:0 0 0 auto;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:4px}.showcase-playback:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

.editorial-ui .login-feature-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}.editorial-ui .login-feature-tags .badge{padding:8px 16px;font-size:12px;line-height:1.5;border-radius:4px;background:#dedfd5;color:#565c50}
.editorial-ui .login-editorial-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:16px 0 24px;width:100%}
.editorial-ui .login-editorial-intro h1{margin:0;flex-shrink:0}
.editorial-ui .login-editorial-intro .login-feature-tags{flex-wrap:nowrap;gap:8px;margin:0 0 8px;justify-content:flex-end}
.editorial-ui .login-editorial-intro .login-feature-tags .badge{padding:8px;font-size:11px;white-space:nowrap}
@media(max-width:900px){.editorial-ui .login-editorial-intro{flex-wrap:wrap;gap:16px}.editorial-ui .login-editorial-intro .login-feature-tags{margin:0;justify-content:flex-start}}
@media(max-width:700px){.editorial-ui .login-editorial-intro{flex-direction:column;align-items:flex-start;gap:16px}.editorial-ui .login-editorial-intro h1{flex-shrink:1;max-width:100%}.editorial-ui .login-editorial-intro .login-feature-tags{flex-wrap:wrap;justify-content:flex-start;width:100%;gap:8px;margin:0}}
/* Keep the mobile sign-in form readable and contained at narrow widths. */
@media(max-width:700px){
 .editorial-ui .login-panel,.editorial-ui .login-box{min-width:0;max-width:100%}
 .editorial-ui .login-box h2{font-size:clamp(22px,6vw,28px);line-height:1.5;overflow-wrap:break-word}
 .editorial-ui .login-box .muted{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
 .editorial-ui .login-box .check{gap:8px;font-size:13px;line-height:1.8;min-width:0}
 .editorial-ui .login-box .check input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;margin:4px 0 0;padding:0}
 .editorial-ui .login-box .check>span{min-width:0;overflow-wrap:anywhere}
 .editorial-ui .login-box button.primary{width:100%;min-height:48px;padding:12px 16px;font-size:16px;line-height:1.5;white-space:normal}
 .editorial-ui #publicLegalLinks{line-height:2;overflow-wrap:anywhere}
 .editorial-ui .login-box>small{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
}
/* Raised create action, keeping its existing click and motion handlers. */
@media(max-width:700px){
 .editorial-ui .mobile-persistent-actions{overflow:visible}
 .editorial-ui .mobile-persistent-actions .home-create{top:-16px;flex:0 0 56px;width:56px;height:56px;padding:16px;border-radius:50%;background:var(--accent);color:#fff;box-shadow:0 0 0 4px var(--paper),0 4px 12px #302d251a}
 .editorial-ui .mobile-persistent-actions .home-create svg{width:24px;height:24px}
}
@media(max-width:700px) and (hover:hover){.editorial-ui .mobile-persistent-actions .home-create:hover{box-shadow:0 0 0 4px var(--paper),0 6px 16px #302d2524}}
@media(max-width:700px){
 .editorial-ui .mobile-persistent-actions{width:min(480px,calc(100% - 24px));height:88px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:24px 8px 8px;gap:0}
 .editorial-ui .mobile-persistent-actions button:not(.home-create){width:100%;height:56px;min-width:0;padding:4px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
 .editorial-ui .mobile-persistent-actions button span{font-size:10px;line-height:1.4;white-space:nowrap}
 .editorial-ui .mobile-persistent-actions .home-create{position:absolute;top:-4px;left:calc(50% - 28px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:8px}
 .editorial-ui .main{padding-bottom:176px}
}
@media(max-width:700px){.editorial-ui .mobile-persistent-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Reserve a middle column so the raised create action never covers a tab. */
@media(max-width:700px){
 .editorial-ui .mobile-persistent-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
 .editorial-ui .mobile-persistent-actions [data-mobile-destination="materials"]{grid-column:4}
 .editorial-ui .mobile-persistent-actions [data-mobile-destination="account"]{grid-column:5}
}

@media(max-width:700px){.editorial-ui .mobile-persistent-actions .home-create{background:#575550;color:#fff}}

@media(max-width:700px){.editorial-ui .mobile-persistent-actions button:not(.home-create){color:#575550}.editorial-ui .mobile-persistent-actions [aria-current='page']{background:#e5e1d8}.editorial-ui .mobile-persistent-actions button:focus-visible{outline-color:#575550}}

@media(max-width:700px){.editorial-ui .mobile-persistent-actions{padding:16px 8px;align-items:center}.editorial-ui .mobile-persistent-actions button:not(.home-create){align-self:center;justify-content:center}}

@media(max-width:700px){.editorial-ui .mobile-persistent-actions{height:80px;padding:8px;align-items:center}.editorial-ui .mobile-persistent-actions .home-create{top:-12px}}

/* Mobile destinations live in the bottom navigation. */
@media(max-width:700px){.editorial-ui .sidebar .nav [data-page='works'],.editorial-ui .sidebar .nav [data-page='shopGallery'],.editorial-ui .sidebar .nav [data-page='materials'],.editorial-ui .sidebar .nav [data-page='account']{display:none!important}.editorial-ui .sidebar .nav{overflow:visible;flex-wrap:wrap}.editorial-ui .sidebar .nav:not(:has(button:not([data-page='works']):not([data-page='shopGallery']):not([data-page='materials']):not([data-page='account']))){display:none}}

@media(max-width:700px){.editorial-ui .sidebar .nav{display:none!important}}
/* Mobile admin: predictable grids and readable touch targets. */
@media(max-width:700px){
 .editorial-ui .main:has(.admin-primary-tabs) .page-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:24px}
 .editorial-ui .main:has(.admin-primary-tabs) .page-head>div{min-width:0;flex:1 1 180px}
 .editorial-ui #adminReturnToMember{font-size:13px;min-height:44px;padding:8px 16px;white-space:normal}
 .editorial-ui .admin-primary-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
 .editorial-ui .admin-primary-tabs button{min-width:0;min-height:48px;padding:8px;font-size:14px;line-height:1.5;white-space:normal}
 .editorial-ui .admin-secondary-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:8px}
 .editorial-ui .admin-secondary-row button{width:100%;min-width:0;min-height:44px;padding:8px;font-size:13px;line-height:1.5;white-space:normal}
 .editorial-ui .admin-secondary-row button{padding:4px;font-size:12px}.editorial-ui .admin-secondary-tabs{margin-bottom:16px}
 .editorial-ui .main:has(.admin-primary-tabs) section.panel{min-width:0;overflow-wrap:anywhere}
 .editorial-ui .main:has(.admin-primary-tabs) .row{flex-wrap:wrap;gap:8px}
 .editorial-ui .main:has(.admin-primary-tabs) input:not([type=checkbox]),.editorial-ui .main:has(.admin-primary-tabs) select,.editorial-ui .main:has(.admin-primary-tabs) textarea{min-width:0;max-width:100%;font-size:16px}
 .editorial-ui .main:has(.admin-primary-tabs) section.panel button{min-height:44px;max-width:100%;white-space:normal;line-height:1.5}
 .editorial-ui .main:has(.admin-primary-tabs) .field-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .editorial-ui .main:has(.admin-primary-tabs) .ops-member{grid-template-columns:minmax(0,1fr);gap:8px}
}

.admin-simple-fold{border-top:1px solid var(--line);margin-top:24px;padding-top:8px}.admin-simple-fold>summary{cursor:pointer;padding:16px 0;min-height:48px;font-size:14px}.admin-simple-fold .admin-global-free,.admin-simple-fold .admin-grant-history,.admin-simple-fold .shop-plan-admin{border-top:0;margin-top:0;padding-top:0}.admin-simple-fold [role='status']:empty{display:none}

/* Six admin categories: 3 columns desktop, 2 on phones. */
.editorial-ui .admin-primary-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:700px){.editorial-ui .admin-primary-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.admin-member-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;box-sizing:border-box}.admin-member-dialog label{display:block;margin-block:16px}.admin-member-dialog .row{display:flex;flex-wrap:wrap;gap:8px}.admin-member-dialog input,.admin-member-dialog select{max-width:100%;box-sizing:border-box}.admin-member-dialog button{min-height:44px}.admin-member-dialog>button:last-child{margin-top:24px;width:100%}

.usage-cost{margin:24px 0;padding:24px 0;border-block:1px solid var(--line)}.usage-cost .field-grid{margin-top:16px}.usage-cost strong{overflow-wrap:anywhere}.usage-cost small{line-height:1.8}

/* Keep sharing status on the photo, with enough contrast over light and dark covers. */
.work-tile .cover{position:relative}
.editorial-ui .work-tile .cover>.work-visibility{position:absolute;top:12px;left:12px;z-index:2;margin:0;padding:5px 10px;border:1px solid #ffffff40;border-radius:5px;background:rgba(247,246,242,.32);color:rgba(65,70,62,.70);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);font-size:11px;line-height:1.5;max-width:calc(100% - 76px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editorial-ui .work-tile .draft-badge,.editorial-ui .work-tile .cover>.badge:not(.work-visibility){position:absolute;left:12px;top:48px;z-index:2;border-radius:5px;background:rgba(247,239,215,.85);font-size:11px;padding:5px 10px}

/* Photos, materials and making steps have separate, quiet surfaces. */
.editorial-ui .sectioned-detail{gap:32px}
.editorial-ui .sectioned-detail .detail-content{min-width:0}
.editorial-ui .sectioned-detail .detail-content>.row:first-child{padding:4px 0 12px}
.editorial-ui .sectioned-detail .browse-materials{margin:24px 0;padding:20px 24px;background:#e9ece4;border:1px solid #d9ded1;border-radius:10px}
.editorial-ui .sectioned-detail .browse-materials h2{font-size:17px;margin:0 0 12px}
.editorial-ui .sectioned-detail .materials-category-row{padding:12px 0;border-color:#d3d9cc}
.editorial-ui .sectioned-detail .materials-category-row:last-child{border-bottom:0;padding-bottom:0}
.editorial-ui .detail-step-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 16px;padding-top:24px;border-top:1px solid var(--line)}
.editorial-ui .detail-step-heading h2{font-size:18px;margin:0}
.editorial-ui .detail-grid .detail-step-heading #browseStart{margin:0;min-height:44px;font-size:13px}
.editorial-ui .sectioned-detail .detail-step{padding:18px 20px;margin:12px 0;background:#ffffff80;border:1px solid #dedbd3;border-radius:8px;column-gap:16px}
.editorial-ui .sectioned-detail .detail-step-number{color:#747a69;font:400 32px/1.1 Georgia,serif;align-self:center;justify-self:center;margin:0;letter-spacing:0;font-variant-numeric:tabular-nums}
.editorial-ui .sectioned-detail .finger-picker{margin:12px 0 20px}

/* A readable numbered step stays in the middle of the available screen. */
.editorial-ui .browse-reader:not(.browse-setup){min-height:100svh;gap:16px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
.editorial-ui .browse-reader>.row:first-child{display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;padding-bottom:14px}
.editorial-ui .browse-reader>.row:first-child>strong{text-align:center;overflow-wrap:anywhere}
.editorial-ui .browse-reader>.row:first-child>#browseClose{justify-self:end}
.editorial-ui .browse-reader>.row:first-child>.browse-current-step-number{font:400 36px/1.1 Georgia,serif;color:#535c4c;font-variant-numeric:tabular-nums}
.editorial-ui .browse-reader .browse-counter{justify-self:start;padding:8px 10px;font:500 17px/1.5 system-ui;border-color:#d9d6cd;background:#ffffff80;white-space:nowrap}
.editorial-ui .browse-counter span{font-size:12px;color:var(--muted)}
.editorial-ui .browse-reader #swipeArea{display:flex;align-items:flex-start;justify-content:center;min-height:calc(100svh - 260px);padding:8px 0 32px}
.editorial-ui .browse-step-frame{width:min(100%,640px);min-width:0;animation:recipe-step-next .32s cubic-bezier(.22,1,.36,1) both}
.editorial-ui .browse-step-content{width:100%;min-width:0;padding:32px;background:#ffffff94;border:1px solid #dedbd3;border-radius:12px;box-sizing:border-box}
.editorial-ui .all-finger-view .browse-step-frame{width:min(100%,1040px)}
.editorial-ui .browse-step-frame[data-direction=previous]{animation-name:recipe-step-previous}
.editorial-ui .browse-step-content .browse-sync-label{font-size:12px;text-align:center;color:var(--muted);margin:0 0 24px}
.editorial-ui .browse-operations .material-line{padding:10px 0}
.editorial-ui .browse-operations .material-heading{gap:12px}
.editorial-ui .browse-operations .material-heading h3{font-size:21px;line-height:1.65}
.editorial-ui .browse-operations .material-heading .badge{padding:4px 7px;font-size:11px}
.editorial-ui .browse-operations .record-group{background:transparent!important;border:0!important;padding:0!important;margin:0!important}
.editorial-ui .browse-operations .record-group+.record-group{border-top:1px solid var(--line)!important;margin-top:16px!important;padding-top:16px!important}
.editorial-ui .browse-reader .browse-controls{background:var(--paper);max-width:844px}
.editorial-ui .browse-reader .browse-controls button{min-height:44px}
.editorial-ui .browse-reader .browse-controls button:disabled{cursor:default}
.editorial-ui .browse-step-numbers{margin-top:24px;max-height:50svh;overflow:auto}
@keyframes recipe-step-next{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@keyframes recipe-step-previous{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:700px){
 .editorial-ui .sectioned-detail .browse-materials{padding:18px 16px;margin-block:20px}
 .editorial-ui .sectioned-detail .detail-step{padding:16px 12px;column-gap:10px}
 .editorial-ui .browse-reader #swipeArea{min-height:calc(100svh - 238px);padding:4px 0 24px}
 .editorial-ui .browse-step-content{padding:24px 20px}
 .editorial-ui .browse-operations .material-heading h3{font-size:19px}
 .editorial-ui .browse-reader>.row:first-child{grid-template-columns:64px minmax(0,1fr) 64px}
 .editorial-ui .browse-reader>.row:first-child>.browse-current-step-number{font-size:32px}
}
@media(prefers-reduced-motion:reduce){.editorial-ui .browse-step-frame{animation:none}}

/* Smaller visible menu with a generous touch target around it. */
.editorial-ui .work-context{top:8px;right:8px}
.editorial-ui .work-context>summary{position:relative;width:44px;height:44px;background:transparent;font-size:20px;isolation:isolate}
.editorial-ui .work-context>summary::before{content:'';position:absolute;width:32px;height:32px;inset:6px;border-radius:50%;background:#fffffff0;z-index:-1}
.editorial-ui .work-context>div{top:44px}

/* The viewer has no inner frame; only the photo sits on a dimmed backdrop. */
.editorial-ui dialog.recipe-photo-lightbox{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;background:transparent;box-shadow:none;overflow:hidden}
.editorial-ui dialog.recipe-photo-lightbox::backdrop{background:rgba(35,32,27,.42)}
.recipe-photo-viewport{position:relative;width:100%;height:100%;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.editorial-ui dialog.recipe-photo-lightbox img.recipe-photo-image{position:absolute;display:block;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform-origin:center;user-select:none;-webkit-user-select:none;touch-action:none;cursor:grab;-webkit-user-drag:none}
.recipe-photo-image.is-dragging{cursor:grabbing!important}
.recipe-photo-help{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.editorial-ui dialog.recipe-photo-lightbox button.recipe-photo-close::before{content:'';position:absolute;inset:6px;border-radius:50%;border:1px solid #ffffff40;background:rgba(247,246,242,.46);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:-1}

/* Each step owns one quiet thumbnail; the original opens in the shared viewer. */
.step-photo-preview{width:96px;max-width:100%;margin:14px 0 0;line-height:0}
.step-photo-preview img,.step-photo-preview>.blank-art,.step-photo-preview>.missing{display:block;width:96px!important;height:96px!important;max-width:100%;aspect-ratio:1;object-fit:cover;border:1px solid #d9d6cd;border-radius:6px;box-sizing:border-box;cursor:zoom-in}
.step-photo-preview img:focus-visible{outline:2px solid #8e8577;outline-offset:4px}
.step-photo-preview .blank-art{min-height:0;font-size:11px;line-height:1.6;display:grid;place-items:center}
.step-photo-annotations-view{display:block;width:100%;min-height:44px;padding:6px 0;border:0;background:transparent;font-size:11px;line-height:1.4;text-decoration:underline;text-underline-offset:3px;color:#665248}
.step-photo-editor .step-photo-annotations-view{display:none}
.step-photo-editor{box-sizing:border-box;max-width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:0;margin:0 0 0 auto;background:transparent;min-width:0}
.step-photo-editor.has-photo{max-width:330px}
.step-photo-layout>.step-editor-heading{gap:12px;align-items:center;margin-bottom:16px}
#inlineStep.step-photo-layout{margin-top:12px;padding-top:0!important}
.step-photo-layout>.step-editor-heading>h2{margin:0;flex:none}
.step-photo-layout>.step-editor-heading>#stepCancel{flex:none;width:44px;height:44px;min-height:44px;padding:0}
.step-photo-layout .operation-hands{margin:0}
.step-photo-layout.quiet-step-editor .operation-hand,.step-photo-layout.quiet-step-editor .operation-form{padding-top:0!important}
.step-photo-layout .operation-hand>h3{margin-top:0}
.step-photo-layout .operation-form>.row:first-child{margin-top:0}
.step-photo-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin:0}
.step-photo-editor-actions button,.step-photo-open-editor{font-size:12px;min-height:40px;padding:8px 10px}
.step-photo-editor .step-photo-preview{width:64px;margin:0;align-self:center}
.step-photo-editor .step-photo-preview img,.step-photo-editor .step-photo-preview>.blank-art,.step-photo-editor .step-photo-preview>.missing{width:64px!important;height:64px!important}
.step-photo-editor-actions input[hidden]{display:none!important}
.step-photo-status{flex-basis:100%;font-size:12px;line-height:1.7;color:#80786e;margin:0;min-height:0}.step-photo-status:empty{display:none}
.step-photo-summary{padding-top:8px}.step-photo-summary .step-photo-open-editor{margin-top:10px;background:transparent;border-color:#d9d6cd}
.editorial-ui .sectioned-detail .detail-step.has-step-photo{grid-template-columns:32px 96px minmax(0,1fr)}
.editorial-ui .detail-grid .detail-step>.detail-step-number{grid-row:1}
.editorial-ui .detail-step[hidden]{display:none!important}
.editorial-ui .detail-step>.step-photo-preview{grid-column:2;grid-row:1;align-self:start;margin:0}
.editorial-ui .detail-step>.detail-step-body{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere;align-self:center}
.editorial-ui .detail-step.has-step-photo>.detail-step-body{grid-column:3}
.editorial-ui .detail-step-body>.record-hand-summary{margin:0}
.editorial-ui .detail-step-body:empty{display:none}
@media(max-width:400px){.editorial-ui .sectioned-detail .detail-step.has-step-photo{grid-template-columns:26px 72px minmax(0,1fr)}.editorial-ui .detail-step.has-step-photo>.step-photo-preview{width:72px}.editorial-ui .detail-step.has-step-photo>.step-photo-preview img,.editorial-ui .detail-step.has-step-photo>.step-photo-preview>.blank-art{width:72px!important;height:72px!important}}
.editorial-ui .browse-step-frame>.step-photo-preview{margin:0 auto 20px}
@media(max-width:650px){.step-photo-editor-actions button,.step-photo-open-editor{min-height:44px}.step-photo-preview{width:88px}.step-photo-preview img,.step-photo-preview>.blank-art,.step-photo-preview>.missing{width:88px!important;height:88px!important}.step-photo-layout>.step-editor-heading{gap:8px}.step-photo-layout>.step-editor-heading>h2{flex:1}.step-photo-layout>.step-editor-heading>#stepCancel{order:3}.step-photo-editor.has-photo{order:4;flex-basis:100%;max-width:none;margin:4px 0 0}.step-photo-editor.has-photo .step-photo-editor-actions{flex:1;gap:4px}.step-photo-editor-actions button{padding-inline:8px}}
.editorial-ui dialog.recipe-photo-lightbox button.recipe-photo-close{position:absolute;z-index:3;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:rgba(59,45,37,.78);font:21px/1 system-ui;box-shadow:none;isolation:isolate}

.editorial-ui dialog.recipe-step-photo-crop{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;border:1px solid #d9d6cd;background:#f7f6f2;color:#3b2d25;overflow:auto}
.recipe-step-photo-crop::backdrop{background:rgba(35,32,27,.42)}
.step-photo-crop-heading h2{font-size:20px;margin:0}
.step-photo-crop-heading p{font-size:12px;color:#80786e;line-height:1.7;margin:6px 0 14px}
.step-photo-crop-canvas{display:block;width:min(100%,calc(100dvh - 240px));height:auto;aspect-ratio:1;margin:0 auto;border-radius:6px;touch-action:none;cursor:grab;outline-offset:3px}
.step-photo-crop-canvas:active{cursor:grabbing}
.step-photo-crop-zoom{display:grid;grid-template-columns:auto minmax(0,1fr) 42px;align-items:center;gap:10px;font-size:12px;margin:12px 0}
.step-photo-crop-zoom input[type=range]{min-width:0;width:100%;min-height:44px;padding:0;background:transparent;accent-color:#575550}
.step-photo-crop-zoom output{text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
.step-photo-crop-status{font-size:12px;color:#9b514d;margin:8px 0}.step-photo-crop-status:empty{display:none}
.step-photo-crop-actions{display:flex;justify-content:flex-end;gap:8px}
.step-photo-crop-actions button{min-height:44px;padding:8px 14px;font-size:13px}
.step-photo-crop-actions button:first-child{margin-right:auto}
@media(max-width:400px){.editorial-ui dialog.recipe-step-photo-crop{padding:16px}.step-photo-crop-heading h2{font-size:18px}.step-photo-crop-zoom{gap:8px}}

.editorial-ui dialog.recipe-step-photo-annotations{box-sizing:border-box;width:min(920px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;background:#f7f6f2;color:#3b2d25;border:1px solid #d9d6cd}
.recipe-step-photo-annotations::backdrop{background:rgba(35,32,27,.42)}
.editorial-ui dialog.recipe-step-photo-reset{width:min(380px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:24px;background:#f7f6f2;color:#3b2d25;border:1px solid #d9d6cd}.recipe-step-photo-reset h2{font-size:20px;margin:0}.recipe-step-photo-reset p{font-size:13px;line-height:1.8;margin:12px 0 20px}.recipe-step-photo-reset>div{display:flex;justify-content:space-between;gap:12px}.recipe-step-photo-reset button{min-height:44px;font-size:13px}
.step-annotations-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:12px}
.step-annotations-heading h2{font-size:20px;margin:0}.step-annotations-heading p{font-size:12px;line-height:1.7;color:#80786e;margin:6px 0 0}
.step-annotations-heading>button{flex:none;width:44px;height:44px;padding:0;font-size:20px}
.step-annotations-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:20px;align-items:start}
.step-annotations-stage-wrap{min-width:0;padding:22px;display:flex;justify-content:center;align-items:center;background:#ebe9e1;border-radius:8px}
.step-annotations-stage{position:relative;display:inline-block;width:fit-content;max-width:100%;line-height:0}
.step-annotations-image{display:block;max-width:100%;max-height:52dvh;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none}
.is-editable .step-annotations-stage{touch-action:none;cursor:crosshair}
.step-annotations-pins{position:absolute;inset:0;pointer-events:none}
.step-annotation-pin{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;font:600 13px/1 system-ui;color:#3b2d25;isolation:isolate;touch-action:none}
.step-annotation-pin::before{content:'';position:absolute;inset:7px;border-radius:50%;background:rgba(247,246,242,.9);border:1px solid #8e8577;box-shadow:0 1px 5px #302d2529;z-index:-1}
.step-annotation-pin.is-selected{color:white}.step-annotation-pin.is-selected::before{background:#575550;border-color:#fff}
.step-annotation-pin:focus-visible{outline:2px solid #665248;outline-offset:2px}
.step-annotations-panel{min-width:0;overflow-wrap:anywhere}.step-annotations-panel[hidden],.step-annotations-fields[hidden],.step-annotations-empty[hidden]{display:none!important}
.step-annotations-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:12px}.step-annotations-tools button{min-height:44px;font-size:12px;padding:8px 10px}
.step-annotations-list{display:flex;flex-wrap:wrap;gap:6px;max-height:112px;overflow:auto;margin-bottom:12px}
.step-annotation-list-item{font-size:12px;min-height:44px;max-width:100%;padding:8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step-annotation-list-item[aria-pressed=true]{background:#e5e1d8;border-color:#b6afa2}
.step-annotations-fields{border-top:1px solid #d9d6cd;padding-top:12px}.step-annotations-fields h3{font-size:15px;margin:0 0 10px}.step-annotations-fields label{font-size:12px;margin:12px 0 6px}
.step-annotations-fields input,.step-annotations-fields textarea{width:100%;font-size:16px;margin-top:6px}.step-annotations-fields textarea{min-height:90px}
.step-annotations-content-picker [hidden]{display:none!important}
.step-annotations-content-picker select{width:100%;min-width:0;min-height:44px;font-size:16px;text-overflow:ellipsis;margin-top:6px}
.step-annotations-content-empty,.step-annotations-content-notice{font-size:12px;line-height:1.7;color:#80786e;margin:8px 0}
.step-annotations-fields .step-annotation-follow{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 12px;background:#e9ece3;border-radius:6px;cursor:pointer}
.step-annotations-fields .step-annotation-follow[hidden]{display:none!important}
.step-annotations-fields .step-annotation-follow input{width:18px;height:18px;flex:none;margin:2px 0;accent-color:#656b5d}
.step-annotation-follow-copy{font-size:13px;line-height:1.7;color:#514a40}.step-annotation-follow-copy small{display:block;font-size:12px;color:#70685e}
.step-annotations-fields .step-annotation-source-status{font-size:12px;line-height:1.7;margin:8px 0;color:#70685e;white-space:normal}
.step-annotation-source-status.is-linked{color:#626b54}.step-annotation-source-status.is-source-warning{color:#8a5b3c}
.step-annotations-fields [data-annotation-delete]{min-height:44px;background:transparent;font-size:12px;color:#9b514d;border-color:transparent;padding:8px 0}
.step-annotations-fields>p{white-space:pre-wrap;font-size:14px;line-height:1.8;margin:10px 0}.step-annotations-fields>strong{font-size:15px}
.step-annotations-empty{font-size:13px;color:#80786e;line-height:1.8}.step-annotations-status{font-size:12px;color:#9b514d;line-height:1.7;margin:12px 0}.step-annotations-status:empty{display:none}
.step-annotations-actions{position:sticky;bottom:-20px;display:flex;justify-content:space-between;gap:12px;padding:14px 0 0;margin-top:14px;background:#f7f6f2;border-top:1px solid #d9d6cd}
.step-annotations-actions button{min-height:44px;font-size:13px}
@media(max-width:650px){.editorial-ui dialog.recipe-step-photo-annotations{padding:16px}.step-annotations-layout{grid-template-columns:minmax(0,1fr);gap:16px}.step-annotations-image{max-height:40dvh}.step-annotations-heading h2{font-size:18px}.step-annotations-actions{bottom:-16px}.step-annotations-list{max-height:100px}}
