/* Round 8: "Your website" editor panel (public/site-editor.js). Organiser chrome: navy, pistachio, cream, like the rest
   of the notebook. The preview frame shows the couple's real site at 1280px (or 390px) scaled into the column. */
.se-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:0 0 8px}
.se-group{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:#e9eee7}
.se-group button{min-height:40px;padding:0 16px;border-radius:999px;background:none;color:#36463b;font-size:13px}
.se-group button[aria-pressed=true]{background:#fff;color:#1b2a48;box-shadow:0 1px 4px #0000001a;font-weight:600}
.se-glabel{font-size:12px;color:#5d6a60;padding:0 8px 0 10px}
.se-select{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#5d6a60}
.se-select select{width:auto;min-height:44px;margin:0;font-size:16px;border-radius:10px}
.se-hint{display:block;font-size:12px;line-height:1.5;color:#5d6a60;margin:6px 0 0}
.se-tierhint{margin:0 0 18px}
.se-link{background:none;padding:0;color:#2f6b52;text-decoration:underline;text-underline-offset:3px;font-size:12px;min-height:0}
.se-layout{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
@media(min-width:1180px){.se-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.se-cards{display:grid;gap:12px;min-width:0}
.se-card{background:#fff;border:1px solid #dce2d6;border-radius:12px;overflow:hidden}
.se-card.is-off .se-head span:first-child{color:#8a948b;text-decoration:line-through;text-decoration-thickness:1px}
.se-card h4{margin:0;font-size:inherit}
.se-head{display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:0 18px;background:none;text-align:left;font-size:15px;font-weight:600;color:#1b2a48}
.se-head small{font-size:11px;font-weight:500;color:#5d6a60;background:#eef3ec;border-radius:999px;padding:3px 9px}
.se-head i{margin-left:auto;width:9px;height:9px;border:solid #1b2a48;border-width:0 2px 2px 0;rotate:45deg;translate:0 -3px;transition:rotate .2s}
.se-head[aria-expanded=true] i{rotate:-135deg;translate:0 2px}
.se-body{padding:4px 18px 20px;display:grid;gap:14px;border-top:1px solid #eef1ea}
.se-field{display:grid;gap:6px;font-size:12px;font-weight:600;color:#36463b}
.se-field input,.se-field textarea,.se-word input{font:400 16px/1.45 var(--sans);margin:0;border-radius:10px;border:1px solid #c9d2c6;padding:11px 12px;min-height:46px;resize:vertical;width:100%}
.se-field input::placeholder,.se-field textarea::placeholder,.se-word input::placeholder{color:#7d877e;opacity:1}
.se-field input:focus,.se-field textarea:focus,.se-word input:focus{outline:3px solid #3f8f6c55;outline-offset:1px;border-color:#3f8f6c}
.se-switch{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:500;cursor:pointer;min-height:44px}
.se-switch input{position:absolute;opacity:0;width:1px;height:1px}
.se-track{position:relative;width:44px;height:26px;border-radius:999px;background:#c9d2c6;transition:background .2s;flex:none}
.se-track::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:translate .2s}
.se-switch input:checked+.se-track{background:#3f8f6c}
.se-switch input:checked+.se-track::after{translate:18px 0}
.se-switch input:focus-visible+.se-track{outline:3px solid var(--orange,#e9a23b);outline-offset:3px}
.se-switch.is-locked{cursor:not-allowed;opacity:.75}
.se-lock{font-size:10px;font-weight:600;letter-spacing:.04em;color:#7b5a12;background:#f6ebcf;border-radius:999px;padding:2px 8px;margin-left:4px}
.se-extra{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;border-bottom:1px solid #eef1ea;padding-bottom:6px}
.se-extra:last-child{border-bottom:0}
.se-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.se-photo{display:grid;gap:6px;align-content:start;font-size:12px}
.se-photo p{margin:0;font-weight:600;color:#36463b}
.se-ph-box{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:4/3;border-radius:10px;background:#f1f4ef;border:1px dashed #c9d2c6;overflow:hidden;padding:0}
.se-ph-box svg{width:34px;height:34px;fill:#a9b4aa}
.se-ph-box.has-photo{border:0;cursor:crosshair}
.se-ph-box img{width:100%;height:100%;object-fit:cover;display:block}
.se-dot{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #1b2a48,0 2px 6px #0006;pointer-events:none}
.se-ph-act{display:flex;flex-wrap:wrap;gap:6px}
.se-ph-act .small-button,.se-upload{min-height:40px;display:inline-flex;align-items:center;cursor:pointer;font-size:12px}
.se-upload input{position:absolute;opacity:0;width:1px;height:1px}
.se-upload:focus-within{outline:3px solid var(--orange,#e9a23b);outline-offset:2px}
.se-photo.is-locked{opacity:.8}.se-photo.is-locked small{color:#5d6a60}
.se-words{display:grid;gap:10px;max-height:520px;overflow:auto;padding-right:4px}
.se-word{display:grid;gap:4px;font-size:12px;color:#5d6a60}
.se-word span{overflow-wrap:anywhere}
/* live preview */
.se-preview{display:none;min-width:0}
@media(min-width:1180px){.se-preview{display:block;position:sticky;top:14px}}
.se-pbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px;font-size:13px;font-weight:600;color:#1b2a48}
.se-pbar .se-link{margin-left:auto}
.se-frame{--k:.4;position:relative;width:100%;height:min(76vh,860px);border-radius:12px;overflow:hidden;border:1px solid #dce2d6;background:#fff;box-shadow:0 10px 30px #1b2a4814}
.se-frame iframe{position:absolute;top:0;left:0;width:1280px;height:calc(100% / var(--k));border:0;transform:scale(var(--k));transform-origin:0 0}
.se-frame.is-phone{width:min(100%,360px);margin:0 auto;border-radius:28px;border:8px solid #1b2a48}
.se-frame.is-phone iframe{width:390px}
.se-phone-preview{display:inline-flex}
@media(min-width:1180px){.se-phone-preview{display:none}}
/* full-screen preview: "Edit this section" */
.se-editbtn{position:absolute;z-index:40;top:12px;left:12px;min-height:40px;padding:0 14px;border-radius:999px;background:#1b2a48;color:#fff;font:600 13px/1 var(--sans,system-ui);letter-spacing:0;text-transform:none;box-shadow:0 4px 14px #0004;border:2px solid #fff;cursor:pointer}
.se-editbtn:hover{background:#3f8f6c}
#guest-view [data-edit]:has(> .se-editbtn),#guest-view section:has(> .se-editbtn),#guest-view header:has(> .se-editbtn){position:relative;outline:2px dashed #3f8f6c99;outline-offset:-6px}
@media(max-width:720px){.se-head{padding:0 14px}.se-body{padding:4px 14px 18px}.se-group button{padding:0 12px}}
.se-ph-box.is-layout{border-style:solid}.se-ph-box.is-layout img{filter:saturate(.6) brightness(.9)}
/* R35: a decoration the photo place stands in for (Expedition's pressed leaf), drawn from its alpha mask */
.se-ph-mark>i{display:block;width:58%;height:78%;margin-bottom:14px;background:#7d8b6a;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.se-ph-box>span{position:absolute;left:8px;bottom:8px;font-size:11px;font-weight:600;color:#fff;background:#1b2a48cc;border-radius:999px;padding:3px 9px}
.se-ph-box:not(.is-layout)>span{position:static;margin-top:-28px;background:none;color:#7d877e;font-weight:500}

/* 390px: the Preview/Anteprima button must not break mid-word */
.panel-title .se-phone-preview{white-space:nowrap;flex:none}
