/* Creation is a workspace: keep the content and its next action together. */
body:has(.editor-page) .site-header{height:72px}
.editor-page{max-width:1240px;padding-bottom:24px}
.editor-page .page-heading{padding:18px 0 20px;border-top:1px solid var(--line);margin:0}
.editor-page .page-heading h1{font-size:28px;margin:0;color:var(--ink);letter-spacing:0}
.editor-page .page-heading p:last-child{font-size:12px;color:var(--gray);margin-top:5px}
.editor-main .form-section.format-section{padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;margin:0 0 25px}
.editor-page .format-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:66px;padding:12px 18px;border:0;background:transparent;text-align:left}
.editor-page .format-current{display:flex;align-items:center;gap:18px;min-width:0}
.editor-page .format-label{font-size:12px;color:var(--gray);font-weight:400;white-space:nowrap}
.editor-page .format-current strong{font-size:15px;line-height:1.6}
.editor-page .format-change{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;color:var(--red);flex-shrink:0}
.editor-page .format-chevron{width:7px;height:7px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg)}
.editor-page .format-toggle[aria-expanded=true] .format-chevron{transform:rotate(225deg)}
.editor-page .format-toggle[aria-expanded=false]+.format-controls{display:none}
.editor-page .format-controls{padding:0 16px 16px}
.intro-formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.intro-format{position:relative;display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:6px;padding:15px 10px;margin:0;cursor:pointer;background:#fff;min-width:0}
.intro-format input{position:absolute;width:1px;height:1px;opacity:0}
.intro-format:has(:checked){border-color:var(--red);background:#fff6f7;box-shadow:inset 0 0 0 1px var(--red)}
.intro-format:focus-within{outline:2px solid var(--red);outline-offset:3px}
.intro-format:hover{border-color:var(--red)}
.intro-format-copy strong{font-size:13px;display:block;line-height:1.5}
.intro-format-copy small{font-size:11px;font-weight:400;color:var(--gray);display:block;margin-top:5px}
.format-check{position:absolute;right:8px;top:6px;color:var(--red);visibility:hidden;font-size:15px}
.intro-format:has(:checked) .format-check{visibility:visible}
.format-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:58px;height:43px;align-self:center}
.format-mini i{background:#e5c6c9;border-radius:1px}
.mini-tier{grid-template-columns:15px 1fr 1fr;gap:2px}
.mini-tier i:nth-child(3n+1){background:#ec9b9c}.mini-tier i:nth-child(4){background:#f1c17b}.mini-tier i:nth-child(7){background:#b5d7af}
.mini-tier i:nth-child(3n+2){background:#e4e4e4}.mini-tier i:nth-child(3n){background:#f0f0f0}
.mini-timeline{grid-template-columns:5px 1fr;gap:4px 7px}.mini-timeline i:nth-child(odd){background:#e27680}.mini-timeline i:nth-child(n+7){display:none}
.mini-brain{border-radius:20px 20px 17px 17px;overflow:hidden;gap:2px}.mini-brain i:nth-child(-n+4){background:#e27680}.mini-brain i:nth-child(n+7){background:#f1c17b}
.mini-simple{display:block;text-align:center}.mini-simple i{display:none}.mini-simple i:first-child{display:block;width:32px;height:43px;margin:auto;background:#e27680;border:3px solid #f7dfe2}
.editor-page .format-done{display:flex;margin:14px 0 0 auto;min-height:44px;width:auto;font-size:13px;padding:8px 20px;border-radius:4px}
.editor-page .bingo-size{margin-top:16px;align-items:center}.editor-page .bingo-size .format-options{max-width:400px}
.editor-page .format-section .form-error{padding:0 16px 12px;margin:0}
.editor-page .works-section{border:0;padding:0 0 22px}
.editor-page .editor-works-heading{margin-bottom:15px}
.editor-page .editor-works-heading h2{font-size:20px;margin:0}
.editor-layout[data-format=tier] .editor-works-heading{display:none}
.editor-page #slot-count{font-size:12px;font-weight:400;color:var(--gray);margin:0}
.editor-page .tier-title-field{font-size:13px;margin:0 0 18px;display:block}
.editor-page .tier-title-field input{font-size:18px;font-weight:700;border:1px solid var(--line);border-radius:5px;min-height:52px;margin-top:6px;background:#fff}
.editor-page .tier-title-field .help{display:block;font-size:11px;font-weight:400;margin:4px 0 0;color:var(--gray);line-height:1.6}
.editor-profile-section{padding:18px 0;border-top:1px solid var(--line);margin-bottom:18px}
.editor-profile-section h2{font-size:14px;font-weight:700;margin:0}
.editor-profile-section .editor-profile{margin-top:18px}
.editor-page .editor-profile input,.editor-page .editor-profile textarea{border-radius:5px}
.editor-page .publish-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:12px 0;bottom:0;box-shadow:0 -7px 16px #ffffffdb;min-height:75px}
.editor-page .publish-actions .button{min-width:0;min-height:48px;padding:10px 22px;font-size:14px;border-radius:5px}
.editor-page .publish-actions .draft-status{margin-right:auto;font-size:11px;color:var(--gray);text-align:left;max-width:40%}
.editor-page .publish-actions .form-error{width:100%;text-align:left;margin:0;font-size:13px}
.editor-page #footer-add{display:none}
.editor-page .tier-editor{margin:0}
.tier-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tier-instruction{font-size:12px;color:var(--gray);line-height:1.7}
.tier-mobile-help{display:none}
.tier-tool{border:1px solid var(--line);border-radius:5px;background:#fff;min-height:40px;padding:6px 12px;font-size:12px;white-space:nowrap}
.tier-workspace{display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:20px;align-items:start}
.tier-table-area{min-width:0}
.tier-editor .tier-board{border-radius:7px;border-color:#d6d8dc}
.tier-editor .tier-row{grid-template-columns:84px minmax(0,1fr) 48px;min-height:92px;border-color:#e4e5e7;background:#fcfcfc}
.tier-editor .tier-label{flex-direction:column;gap:3px;font-size:24px;padding:10px 7px;cursor:pointer}
.tier-editor .tier-label small{font-size:10px;font-weight:400;opacity:.65}
.tier-editor .tier-label:hover{box-shadow:inset 0 0 0 2px #3336}
.tier-editor .tier-label.long-label{font-size:12px;padding-inline:4px}
.tier-editor .tier-items{padding:0;gap:2px;background:#fcfcfc}
.tier-editor .tier-empty{font-size:12px;padding:6px;color:#777;flex:1}
.tier-editor .tier-row-add{border:1px dashed #bfc1c6;background:#fff;width:44px;height:44px;min-width:44px;border-radius:5px;color:#74777d;font-size:22px;margin:0;align-self:center;justify-self:center}
.tier-editor .tier-row-add:hover{border-color:var(--red);color:var(--red);background:#fff4f5}
.tier-editor .tier-card>span:not(.tier-card-check){font-size:11px;line-height:1.5;padding:5px;max-height:100%;overflow:hidden;overflow-wrap:anywhere}
.tier-card-check{position:absolute;right:0;bottom:0;background:var(--red);color:#fff;font-size:11px;width:20px;height:20px;display:grid;place-items:center}
.tier-card.is-drop-before{box-shadow:-4px 0 0 var(--red)}
.tier-editor .tier-add-row{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;margin:8px 0 0;padding:8px 12px;border:0;border-radius:5px;background:#f5f5f5;font-size:12px}
.tier-add-row small{font-size:10px;color:var(--gray)}
.tier-sidebar{position:sticky;top:18px;min-width:0}
.tier-inbox{border:1px solid var(--line);border-radius:8px;background:#fafafa;padding:16px}
.tier-inbox-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}
.tier-inbox-heading h3{font-size:14px;margin:0}.tier-inbox-heading h3 span{font-size:12px;display:inline-grid;place-items:center;min-width:23px;min-height:23px;border-radius:12px;background:#e9e9e9;margin-left:4px;font-weight:400}
.tier-inbox-heading>span{font-size:10px;color:var(--gray)}
.tier-inbox .button{font-size:13px;min-height:46px;padding:10px;border-radius:5px}
.tier-pool-items{display:flex;flex-wrap:wrap;gap:3px;max-height:330px;overflow-y:auto;padding:3px;margin:12px -3px 0}
.tier-pool-items:empty{display:none}
.tier-inbox-help{font-size:11px;color:var(--gray);line-height:1.8;margin-top:12px}
.tier-inbox.is-drag-over{background:#fff0f2;outline:2px solid var(--red)}
.tier-editor .tier-selection{display:block;min-height:0;padding:14px;background:#fff;border:1px solid #e5b8bd;border-radius:8px;margin:12px 0 0;box-shadow:0 4px 14px #00000008}
.tier-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.tier-selection-heading>div{min-width:0}.tier-selection-heading small{font-size:10px;color:var(--gray)}.tier-selection-heading strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;color:var(--ink)}
.tier-editor .tier-selection button{min-width:44px;min-height:44px;padding:5px 9px;font-size:12px;border-radius:5px}
.tier-selection-heading button{flex:none;font-size:22px!important;border:0!important}
.tier-targets{display:flex;flex-wrap:wrap;gap:6px}
.tier-editor .tier-targets button{flex:1 0 45px;background:var(--tier-color);border:2px solid transparent;overflow-wrap:anywhere;font-weight:700;color:var(--ink);max-width:100%}
.tier-editor .tier-targets button[aria-pressed=true]{border-color:var(--ink)}
.tier-editor .tier-selection-actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tier-editor .tier-selection-actions button{font-size:11px}
.tier-editor .tier-status{font-size:12px;line-height:1.8;color:var(--gray);min-height:0;margin:10px 0 0}
.tier-status:empty{display:none}
.tier-settings-dialog{width:min(480px,calc(100vw - 32px));max-height:85dvh;padding:24px;border:0;border-radius:12px;box-shadow:0 16px 60px #0003;overflow-y:auto}
.tier-settings-dialog::backdrop{background:#16181d66}
.tier-dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.tier-dialog-heading h2{font-size:20px;margin:0}.tier-dialog-heading .close-button{width:44px;height:44px}
.tier-settings-dialog label{font-size:13px}.tier-settings-dialog input{font-size:16px;border-radius:5px}
.tier-settings-dialog .help{font-size:11px;color:var(--gray);margin:8px 0 16px}
.tier-colors{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.tier-colors legend{font-size:13px;font-weight:700;margin-bottom:8px}
.tier-colors button{width:44px;height:44px;background:var(--tier-color);border:2px solid transparent;border-radius:7px;font-weight:700}.tier-colors button[aria-pressed=true]{border-color:var(--ink)}
.tier-row-settings-actions{display:flex;gap:8px;flex-wrap:wrap}.tier-row-settings-actions button{min-height:44px;padding:6px 12px;background:#fff;border:1px solid var(--line);border-radius:5px;font-size:12px}.tier-row-settings-actions button:last-child{margin-left:auto;color:#a52230}
.tier-settings-dialog [data-tier-done]{min-height:48px;border-radius:5px}
body:has(.tier-settings-dialog[open]){overflow:hidden}
#work-tier-field{margin-top:18px}#work-tier{font-size:16px}
#picker:has(#work-tier-field:not([hidden])) .confirm-work-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#picker:has(#work-tier-field:not([hidden])) .confirm-work-actions .button{font-size:13px;min-height:48px;padding:10px;border-radius:5px}
@media(max-width:900px){.tier-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:14px}.tier-inbox{padding:12px}}
@media(min-width:761px){
  .editor-page .format-toggle{min-height:54px}
  .editor-main .form-section.format-section{margin-bottom:18px}
  .editor-page .tier-title-field{margin-bottom:8px}
  .tier-editor .tier-row{min-height:82px}
}
@media(max-width:760px){
  body:has(.editor-page) .site-header{height:70px}
  .editor-page{padding-inline:16px;padding-bottom:90px}
  .editor-page .page-heading{padding:18px 0}.editor-page .page-heading h1{font-size:22px}.editor-page .page-heading p{display:none}
  .editor-main .form-section.format-section{margin-bottom:20px}
  .editor-page .format-toggle{min-height:58px;padding:10px 12px}.editor-page .format-current{gap:10px;flex-direction:row}.editor-page .format-current strong{font-size:13px}.editor-page .format-label{font-size:10px}.editor-page .format-change{font-size:11px}
  .editor-page .format-controls{padding:0 10px 12px}
  .intro-formats{grid-template-columns:1fr 1fr;gap:8px}.intro-format{padding:12px 8px;gap:8px}.intro-format-copy strong{font-size:12px}.intro-format-copy small{font-size:10px;margin-top:2px}.format-mini{width:48px;height:36px}.mini-simple i:first-child{height:36px;width:27px}
  .editor-page .editor-works-heading{margin-bottom:12px}.editor-page .editor-works-heading h2{font-size:18px}
  .editor-page .tier-title-field{font-size:12px;margin-bottom:12px}.editor-page .tier-title-field input{font-size:16px;min-height:48px;padding:10px}.editor-page .tier-title-field .optional{font-size:10px}.editor-page .tier-title-field .help{font-size:10px}
  .tier-toolbar{gap:8px;align-items:center;margin-bottom:10px}.tier-instruction{font-size:12px}.tier-tool{font-size:11px;min-height:44px;padding:6px 8px}
  .tier-desktop-help{display:none}.tier-mobile-help{display:inline}
  .tier-workspace{display:flex;flex-direction:column;gap:12px}.tier-table-area{width:100%;order:2}.tier-sidebar{display:contents}
  .tier-inbox{order:1;width:100%;padding:12px;display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:center}
  .tier-inbox-heading{margin:0;display:block}.tier-inbox-heading h3{font-size:13px}.tier-inbox-heading>span{display:none}.tier-inbox .button{min-height:44px;padding:8px 12px;font-size:12px;width:auto}
  .tier-pool-items{grid-column:1/-1;margin:0;padding:3px;max-height:236px;gap:3px}.tier-inbox-help{grid-column:1/-1;margin:0;font-size:10px}.tier-inbox-help br{display:none}
  .tier-inbox:has(.tier-card) .tier-inbox-help{display:none}
  .tier-editor .tier-row{grid-template-columns:60px minmax(0,1fr) 48px;min-height:78px}.tier-editor .tier-label{font-size:20px;padding:8px 5px;gap:2px}.tier-editor .tier-label small{font-size:9px}.tier-editor .tier-label.long-label{font-size:11px}
  .tier-editor .tier-empty{font-size:10px;padding:5px}.tier-editor .tier-row-add{font-size:20px;width:44px;height:44px;min-width:44px;flex-basis:44px}
  .tier-editor .tier-selection{position:fixed;z-index:8;bottom:0;left:0;right:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border:1px solid #e1d7d8;border-bottom:0;border-radius:14px 14px 0 0;margin:0;box-shadow:0 -6px 30px #0002;max-height:48dvh;overflow-y:auto}
  .tier-selection-heading{margin-bottom:8px}.tier-selection-heading small{font-size:10px}.tier-selection-heading strong{font-size:13px}.tier-selection-heading button{height:44px}
  .tier-editor .tier-targets{gap:5px}.tier-editor .tier-targets button{flex:1 0 44px;font-size:12px;min-width:44px;min-height:44px;padding:5px 7px;max-width:100%}
  .tier-editor .tier-selection-actions{grid-template-columns:auto auto 1fr auto;margin-top:8px;gap:5px}.tier-editor .tier-selection-actions button{padding:5px 6px;font-size:10px;min-width:44px}
  .editor-page:has(.tier-editor[data-selected=true]){padding-bottom:330px}
  .editor-page:has(.tier-editor[data-selected=true]) .publish-actions{visibility:hidden;pointer-events:none}
  .editor-page .publish-actions,.editor-layout[data-has-items=false] .publish-actions{position:fixed;bottom:0;left:0;right:0;padding:8px 16px max(9px,env(safe-area-inset-bottom));gap:6px 8px;min-height:0;border-top:1px solid var(--line);box-shadow:0 -4px 18px #00000008}
  .editor-page .publish-actions .draft-status{max-width:none;width:100%;font-size:9px;text-align:center;line-height:1.5;margin:0}
  .editor-page .publish-actions .button{font-size:12px;padding:9px 12px;min-height:46px;flex:1}
  .editor-page #footer-add{display:inline-flex}
  .editor-profile-section{padding:16px 0;margin-bottom:0}.editor-profile-section h2{font-size:13px}
  .tier-settings-dialog{padding:20px}.tier-settings-dialog .help{font-size:12px}.tier-colors{gap:9px;width:220px}.tier-row-settings-actions{gap:6px}.tier-row-settings-actions button{font-size:12px;padding:6px 8px}
  #picker:has(#work-tier-field:not([hidden])) .selected-work textarea{min-height:110px;height:110px}
}
@media(prefers-reduced-motion:reduce){.editor-page *,#picker *{scroll-behavior:auto;transition:none}}
