.hss-app{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:840px;margin:24px auto;color:#253349;font-size:17px;line-height:1.5}
.hss-app *{box-sizing:border-box}
.hss-header{border-radius:25px;padding:30px 26px;background:linear-gradient(125deg,#fff1d5,#e2f0ff);margin-bottom:20px}
.hss-header h1{font-size:clamp(27px,5vw,38px);margin:8px 0;color:#243b59;line-height:1.15}
.hss-header p{margin:5px 0;font-size:18px}
.hss-kicker{font-weight:800;letter-spacing:.09em;font-size:12px;color:#54728c}
.hss-card{background:#fff;border:1px solid #e6eaf0;border-radius:22px;box-shadow:0 6px 22px rgba(21,49,84,.07);padding:25px;margin-bottom:18px}
.hss-app label:not(.hss-checkbox){font-weight:750;display:block;margin:15px 0 7px}
.hss-app input[type="text"],.hss-app textarea,.hss-app select{width:100%;min-height:50px;background:#fff;color:#243b59;border:2px solid #d9e2ef;border-radius:12px;padding:12px 14px;font:inherit}
.hss-app textarea{min-height:240px;resize:vertical;line-height:1.65}
.hss-app input:focus,.hss-app textarea:focus,.hss-app select:focus{outline:3px solid #bfddff;outline-offset:1px;border-color:#2f6ead}
.hss-hint{font-size:14px;color:#617186;margin:8px 0 16px}
.hss-checkbox{display:flex;gap:10px;align-items:flex-start;padding:16px;background:#eef6ff;border-radius:12px;font-weight:650;margin:18px 0 5px}
.hss-checkbox input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:#235bb5}
.hss-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.hss-app button,.hss-app .hss-button{border:0;display:inline-block;text-align:center;cursor:pointer;border-radius:12px;min-height:50px;padding:13px 20px;font:inherit;font-weight:750;text-decoration:none}
.hss-primary,.hss-button{background:#285da4!important;color:#fff!important}
.hss-secondary{background:#edf2f7!important;color:#283d5a!important}
.hss-app button:hover,.hss-app .hss-button:hover{filter:brightness(.94)}
.hss-notice{background:#e6f6ea;color:#205132;padding:14px 18px;border-radius:14px;border:1px solid #add4b5}
.hss-list-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.hss-list-heading h2{font-size:23px;margin:0 0 14px}
.hss-list ul{list-style:none;padding:0;margin:0}
.hss-list li{padding:12px 0;border-top:1px solid #e6eaf0;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.hss-list li a{color:#215fa7;font-weight:700}
.hss-list li span{font-size:13px;background:#eef2f5;border-radius:20px;padding:5px 10px}
@media(max-width:600px){.hss-app{margin:8px auto;font-size:16px}.hss-card{padding:18px;border-radius:18px}.hss-header{padding:24px 18px}.hss-actions{display:flex;flex-direction:column}.hss-actions button{width:100%}}
.hss-autosave{font-size:14px;color:#456480;margin:8px 0}
.hss-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:15px;margin:12px 0}
.hss-photo{border:1px solid #dce4ef;border-radius:12px;overflow:hidden;padding:6px}
.hss-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.hss-photo button{min-height:38px;font-size:14px;padding:8px 11px}
.hss-ideas{margin:16px 0;line-height:1.8}
.hss-app details summary{cursor:pointer;font-weight:750;color:#285da4}
.hss-app input[type=file]{display:block;width:100%;margin:8px 0 16px;max-width:100%}

.hss-upload-status{padding:12px 14px;border-radius:10px;background:#eaf4fc;color:#244567;font-size:14px;margin:12px 0;line-height:1.6}
#hss-upload-button:disabled{opacity:.55;cursor:not-allowed}

.hss-preview-card .hss-list-heading h2{margin:0}
.hss-preview-article{background:#fbfdff;border:1px solid #e8edf4;border-radius:18px;padding:22px}
.hss-preview-category{display:inline-block;background:#eef6ff;color:#285da4;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-bottom:12px}
.hss-preview-title{font-size:clamp(28px,5vw,40px);line-height:1.12;margin:0 0 18px;color:#223a58}
.hss-preview-content{font-size:18px;line-height:1.8;color:#27384f}
.hss-preview-content p{margin:0 0 16px}
.hss-preview-empty{background:#f6f8fb;border:1px dashed #cfdbe9;border-radius:12px;padding:12px 14px;color:#63748a;font-style:italic}
.is-hidden{display:none!important}
.hss-preview-pending{opacity:.92}
.hss-preview-pending figcaption{opacity:.8}
@media(max-width:600px){.hss-preview-article{padding:16px}.hss-preview-content{font-size:17px}}

/* One explicitly chosen featured image per story; the real WP thumbnail is assigned only on publication. */
.hss-photo-featured{border:2px solid #e2ae3b;background:#fffaf0;box-shadow:0 3px 12px rgba(144,98,16,.12)}
.hss-app .hss-featured-option{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;color:#244468;line-height:1.35;margin:9px 0;padding:8px 6px;border-radius:8px;cursor:pointer}
.hss-featured-option input[type=radio]{width:19px;height:19px;accent-color:#a56b11;flex:0 0 auto;cursor:pointer}
#hss-featured-form{background:#fff9e8;border:1px solid #eddbb6;border-radius:12px;padding:12px 14px;margin:14px 0 22px}
#hss-featured-form .hss-hint{margin:0 0 12px;color:#5b4b2e}
.hss-story-gallery .hss-is-featured{outline:2px solid #e2ae3b;outline-offset:4px}
.hss-story-gallery .hss-featured-tag{position:absolute;top:4px;right:4px;background:#ffe39b;color:#503a16;font:700 12px/1.2 system-ui,sans-serif;padding:7px 10px;border-radius:8px;z-index:2;box-shadow:0 1px 6px rgba(0,0,0,.12)}

/* Short, child-friendly captions for each photo (20 characters). */
.hss-app .hss-photo .hss-photo-caption-label{font-size:13px;font-weight:750;display:block;margin:10px 4px 5px;color:#3a5270;line-height:1.3}
.hss-app .hss-photo input.hss-photo-caption{width:100%;height:42px;min-height:42px;font-size:14px;line-height:1.3;padding:8px 10px;border:1px solid #bfcddd;border-radius:9px;color:#283d5a;background:#fff}
.hss-app .hss-photo .hss-featured-option{margin:7px 0 6px}
.hss-app .hss-photo{padding:10px}
.hss-story-gallery .hss-story-photo figcaption{overflow-wrap:anywhere}
