@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--bg:#f5f5f5;--surface:#fff;--text:#171717;--muted:#737373;--border:#d4d4d4;--danger:#b91c1c;--ok:#15803d;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}*,:before,:after{box-sizing:border-box}html{max-width:100%;overflow-x:hidden}body{background:var(--bg);min-height:100svh;color:var(--text);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}main{min-width:0;max-width:48rem;padding-inline:max(.75rem,env(safe-area-inset-left,0px));padding-inline-end:max(.75rem,env(safe-area-inset-right,0px));padding-top:max(.5rem,env(safe-area-inset-top,0px));padding-bottom:max(1.25rem,env(safe-area-inset-bottom,0px));margin-inline:auto}@media(min-width:640px){main{padding-inline:max(1.25rem,env(safe-area-inset-left,0px));padding-inline-end:max(1.25rem,env(safe-area-inset-right,0px));padding-top:max(.75rem,env(safe-area-inset-top,0px));padding-bottom:max(2rem,env(safe-area-inset-bottom,0px))}}h1,h2,h3,p{margin:0}h2{margin-bottom:.65rem;font-size:clamp(1rem,4.5vw,1.1rem);font-weight:600;line-height:1.25}h3{margin-bottom:.35rem;font-size:.95rem;font-weight:600}a{color:inherit}label{gap:.35rem;min-width:0;font-size:.9rem;font-weight:500;display:grid}input,textarea,select{border:1px solid var(--border);width:100%;min-width:0;max-width:100%;min-height:2.75rem;font:inherit;background:var(--surface);color:var(--text);border-radius:8px;padding:.5rem .65rem;font-size:1rem}textarea{resize:vertical;min-height:6rem}select{appearance:auto}input[type=file]{text-overflow:ellipsis;flex-direction:row;justify-content:flex-start;align-items:center;gap:.75rem;padding-inline:.75rem;font-size:.9rem;display:flex;overflow:hidden}input[type=file]::file-selector-button{border:1px solid var(--text);background:var(--text);color:var(--surface);font:inherit;cursor:pointer;appearance:none;margin:0;border-radius:8px;flex-shrink:0;order:-1;margin-inline-end:1.125rem;padding:.4rem .75rem;font-size:.88rem;font-weight:600}input[type=file]::-webkit-file-upload-button{border:1px solid var(--text);background:var(--text);color:var(--surface);font:inherit;cursor:pointer;appearance:none;border-radius:8px;flex-shrink:0;order:-1;margin:0;margin-inline-end:1.125rem;padding:.4rem .75rem;font-size:.88rem;font-weight:600}input[type=file]::-moz-browse-button{margin-inline-end:1.125rem}input:focus,textarea:focus,select:focus{outline:2px solid var(--text);outline-offset:1px;border-color:var(--text)}button{border:1px solid var(--text);background:var(--text);min-height:2.75rem;color:var(--surface);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:.35rem;padding:.5rem 1rem;font-size:.95rem;font-weight:600;display:inline-flex}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible{outline:2px solid var(--text);outline-offset:2px}code{font-family:var(--mono);word-break:break-word;background:#e5e5e5;border-radius:4px;padding:.1em .35em;font-size:.85em}[hidden]{display:none!important}}@layer components{.skip-link{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link:focus{clip:auto;white-space:normal;border:1px solid var(--border);background:var(--surface);border-radius:8px;width:auto;height:auto;margin:0 0 .75rem;padding:.5rem .75rem;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-block;position:static;overflow:visible}.auth-shell{min-height:100svh;padding:max(1rem,env(safe-area-inset-top,0px)) max(1rem,env(safe-area-inset-right,0px)) max(1rem,env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px));place-items:center;display:grid}.auth-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:1rem;width:min(100%,24rem);padding:1.5rem;display:grid}.auth-title{font-size:1.35rem;font-weight:700}.auth-copy{color:var(--muted);margin-top:.25rem;font-size:.9rem}.auth-form{gap:.85rem;display:grid}.auth-form button{width:100%}.auth-error{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:.65rem .75rem;font-size:.9rem}.auth-build{text-align:center;color:var(--muted);margin:0;font-size:.72rem}.app-header{flex-direction:column;align-items:stretch;gap:.65rem;min-width:0;margin-bottom:.85rem;display:flex}@media(min-width:480px){.app-header{flex-flow:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem}.logout-link{align-self:center}}.home-btn{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;width:100%;min-width:0;min-height:0;margin:0;padding:0;display:block}@media(min-width:480px){.home-btn{width:auto;max-width:min(100%,22rem)}}.home-btn:focus-visible{outline:2px solid var(--text);outline-offset:2px;border-radius:4px}.home-btn:hover .home-title{text-decoration:underline}.home-title{font-size:clamp(1.05rem,5vw,1.35rem);font-weight:700;line-height:1.2;display:block}.home-subtitle{color:var(--muted);word-break:break-word;margin-top:.15rem;font-size:clamp(.72rem,2.8vw,.82rem);line-height:1.35;display:block}.logout-link{border:1px solid var(--border);background:var(--surface);min-height:2.75rem;color:var(--muted);white-space:nowrap;border-radius:8px;justify-content:center;align-self:flex-start;align-items:center;padding:.45rem .75rem;font-size:.85rem;font-weight:500;text-decoration:none;display:inline-flex}.logout-link:hover{color:var(--text);border-color:var(--text)}.step-indicator{flex-wrap:wrap;align-items:center;gap:.4rem;min-width:0;margin-bottom:.85rem;display:flex}.step-badge{border:1px solid var(--border);background:var(--surface);min-height:2.75rem;color:var(--muted);border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .65rem;font-size:clamp(.72rem,3vw,.8rem);font-weight:600;display:inline-flex}.step-badge .num{background:#e5e5e5;border-radius:999px;flex-shrink:0;place-items:center;width:1.5rem;height:1.5rem;font-size:.72rem;display:grid}.step-label{white-space:nowrap}.step-badge.active{border-color:var(--text);color:var(--text)}.step-badge.active .num{background:var(--text);color:var(--surface)}.step-badge.done{color:var(--muted)}.step-badge.done .num{background:var(--muted);color:var(--surface)}.step-connector{background:var(--border);flex:1;min-width:.75rem;height:1px;display:none}@media(min-width:400px){.step-connector{display:block}}.card{border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:0;padding:.85rem}@media(min-width:640px){.card{padding:1.25rem}}.card>section:not([hidden]),.stack,.fields-stack{gap:.85rem;min-width:0;display:grid}.hint{color:var(--muted);font-size:.8rem;font-weight:400}.required{color:var(--danger)}.dropbox{border:1px dashed var(--border);background:var(--bg);border-radius:8px;gap:.85rem;padding:.85rem;display:grid}.schema-hint{border:1px solid var(--border);background:var(--bg);border-radius:8px;padding:.6rem .75rem;font-size:.85rem}.demo-hint{border:1px solid var(--border);background:var(--bg);color:var(--muted);border-radius:8px;margin:0;padding:.6rem .75rem;font-size:.8rem}.demo-hint a{font-weight:600;text-decoration:underline}#mdTextarea,textarea.body-editor{font-family:var(--mono);font-size:.88rem;line-height:1.55}textarea.body-editor{min-height:12rem}@media(min-width:640px){textarea.body-editor{min-height:16rem}}.actions{gap:.65rem;display:grid}.actions.two{grid-template-columns:1fr}@media(min-width:560px){.actions.two{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:900px){#step2 .actions.two{grid-template-columns:repeat(3,minmax(0,1fr))}}.btn-secondary{border-color:var(--border);color:var(--text);background:#e5e5e5}.btn-secondary:hover:not(:disabled){background:#d4d4d4}.status{white-space:pre-wrap;word-break:break-word;border-radius:8px;padding:.65rem .75rem;font-size:.88rem;display:none}.status.success{color:var(--ok);background:#f0fdf4;border:1px solid #86efac;display:block}.status.error{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;display:block}.status.info{border:1px solid var(--border);background:var(--bg);color:var(--text);display:block}.sec-title{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin-bottom:.35rem;font-size:clamp(.7rem,2.8vw,.75rem);font-weight:600;line-height:1.3}.step2-stack{flex-direction:column;gap:1.25rem;min-width:0;display:flex}.step2-subline{margin:-.15rem 0 .5rem}.field-group{border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:0;padding:.75rem}.field-group>label.field-group-control{gap:.5rem;min-width:0;margin:0;font-size:1rem;font-weight:400;display:grid}.field-group .field-label-text{color:var(--muted);font-size:.82rem;line-height:1.35}.field-group .field-label-text strong{color:var(--text);font-weight:700}.field-group .field-label-text .required{margin-left:.15em;font-weight:700}@media(min-width:640px){.field-group>label.field-group-control{grid-template-columns:9rem minmax(0,1fr);align-items:center;column-gap:1rem}.field-group>label.field-group-control>.field-label-text{grid-column:1}.field-group>label.field-group-control>input,.field-group>label.field-group-control>select{grid-column:2}}.image-gallery-root{min-width:0;max-width:100%;overflow:hidden}.cover-card{border:1px solid var(--border);background:var(--bg);border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;max-width:100%;padding:.65rem;display:grid}.cover-card .thumb-wrap{background:#e5e5e5;border-radius:6px;flex-shrink:0;width:4.5rem;height:3.4rem;overflow:hidden}.cover-card .thumb,.cover-preview-slot .thumb{object-fit:cover;width:100%;height:100%;display:block}.cover-card .thumb.placeholder{color:var(--muted);place-items:center;font-size:.7rem;display:grid}.cover-card .meta{overflow-wrap:anywhere;min-width:0}.cover-card .meta strong{word-break:break-word;font-size:.82rem;display:block}.cover-card .meta .hint{margin-top:.15rem;font-size:.78rem;display:block}.cover-card .meta code{word-break:break-all;margin-top:.25rem;font-size:.75rem;display:block}.cover-preview-slot{margin-top:.35rem;display:none}.cover-preview-slot.shown{display:block}.cycle-cover-btn{box-sizing:border-box;width:100%;margin-top:.65rem;display:flex}.cover-section{margin-bottom:.75rem}.gallery-section{margin-top:.75rem}.md-preview-title{margin-bottom:.5rem}.summary-source-tag{color:var(--muted);margin-left:.25rem;font-size:.85em}#step2 .cover-card{grid-template-columns:minmax(0,min(200px,100%)) minmax(0,1fr);align-items:start}#step1 .cover-preview-slot .cover-card{grid-template-columns:minmax(0,min(200px,100%)) minmax(0,1fr) auto;align-items:start}#step1 .cover-preview-slot .cover-card .thumb-wrap,#step2 .cover-card .thumb-wrap{aspect-ratio:4/3;contain:layout;width:100%;height:auto}#step1 .cover-preview-slot .cover-card .thumb,#step1 .cover-preview-slot .cover-card .thumb-wrap .thumb,#step2 .cover-card .thumb,#step2 .cover-card .thumb-wrap .thumb{object-fit:cover;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}#step1 .cover-preview-slot .cover-card .thumb.placeholder,#step2 .cover-card .thumb.placeholder{width:100%;height:100%;min-height:0}@media(max-width:520px){#step1 .cover-preview-slot .cover-card,#step2 .cover-card{grid-template-rows:auto auto;grid-template-columns:minmax(0,min(200px,100%)) 1fr}#step1 .cover-preview-slot .cover-card .remove-btn{grid-column:1/-1;justify-self:start}}.cover-card .remove-btn{border:1px solid var(--border);background:var(--surface);min-height:2.25rem;color:var(--text);border-radius:8px;padding:.35rem .6rem;font-size:.8rem;font-weight:600}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(7.5rem,1fr));gap:.65rem;min-width:0;display:grid}.gallery-item{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-direction:column;display:flex;overflow:hidden}.gallery-item>img{object-fit:cover;background:#e5e5e5;width:100%;height:5rem}.gallery-meta{flex:1;padding:.4rem .5rem}.gallery-name{text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:600;display:block;overflow:hidden}.gallery-size{color:var(--muted);font-size:.72rem}.remove-img-btn,.insert-btn{border:0;border-top:1px solid var(--border);background:var(--bg);width:100%;min-height:2.25rem;color:var(--text);border-radius:0;margin:0;padding:.45rem;font-size:.78rem;font-weight:600}.insert-btn{background:#e5e5e5}.empty-gallery{color:var(--muted);padding:.35rem 0;font-size:.85rem}.md-preview-box{border:1px solid var(--border);background:var(--bg);border-radius:8px;gap:.5rem;max-height:min(70vh,28rem);margin-top:.75rem;padding:.75rem;display:grid;overflow:auto}.md-preview-box pre{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word;font-family:var(--mono);margin:0;font-size:.82rem;line-height:1.55}.deploy-summary{gap:.5rem;margin-bottom:.25rem;display:grid}.summary-item{border:1px solid var(--border);background:var(--bg);border-radius:8px;align-items:start;gap:.35rem;padding:.65rem .75rem;font-size:.9rem;display:grid}@media(min-width:560px){.summary-item{grid-template-columns:8.5rem minmax(0,1fr);align-items:start}}.summary-label{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;font-size:.75rem;font-weight:600}.summary-value{overflow-wrap:anywhere;word-break:break-word;line-height:1.45}.summary-value a{text-decoration:underline}@keyframes spin{to{transform:rotate(360deg)}}.spinner{border:2px solid;border-top-color:#0000;border-radius:50%;width:.9rem;height:.9rem;animation:.65s linear infinite spin;display:inline-block}.success-link{color:var(--ok);word-break:break-word;background:#f0fdf4;border:1px solid #86efac;border-radius:8px;margin-top:.5rem;padding:.65rem .75rem;font-size:.9rem;font-weight:600;text-decoration:none;display:none}.success-link:hover{text-decoration:underline}.summary-thumb{border:1px solid var(--border);object-fit:cover;border-radius:6px;flex-shrink:0;width:3.5rem;height:2.6rem}.summary-cover-text{vertical-align:middle;display:inline}.summary-value--cover{flex-wrap:wrap;align-items:flex-start;gap:.5rem;display:flex}}@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
