/* Three entry choices above the existing, continuously mounted designer. */
.sg-designer-entry{position:relative;isolation:isolate}
.sg-designer-entry.is-choosing{min-height:520px}
.sg-designer-entry.is-choosing .sg-entry-surface{height:620px;overflow:hidden;pointer-events:none;user-select:none}
.sg-designer-entry.is-choosing .sg-mobile-order{visibility:hidden}
.sg-entry-overlay{position:absolute;inset:0;z-index:40;display:grid;align-items:center;padding:48px 32px;background:rgba(7,17,12,.84);backdrop-filter:blur(3px)}
.sg-entry-choices{width:100%;max-width:1120px;margin:0 auto;color:#fff;text-align:center}
.sg-entry-eyebrow{margin:0 0 10px;font-size:11px;font-weight:700;letter-spacing:.19em;text-transform:uppercase;color:#e0bd71}
.sg-entry-choices h2{margin:0;font:600 clamp(28px,3.5vw,44px)/1.15 Oswald,sans-serif;color:#fff}
.sg-entry-intro{max-width:600px;margin:16px auto 28px;color:#dce4de;font-size:16px;line-height:1.6}
.sg-entry-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sg-entry-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;gap:20px;min-width:0;min-height:228px;padding:26px;text-align:left;text-decoration:none;border:1px solid #617567;border-radius:14px;background:#f7f8f4;color:#163c25;box-shadow:0 10px 24px #0002;cursor:pointer;transition:border-color .15s,background-color .15s,transform .15s}
.sg-entry-card:hover{transform:translateY(-3px);border-color:#e0bd71;background:#fff}
.sg-entry-card:focus-visible,.sg-entry-toolbar button:focus-visible,.sg-entry-chat button:focus-visible{outline:3px solid #e0bd71;outline-offset:4px}
.sg-entry-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#e5ebdf;color:#214d32;flex-shrink:0}
.sg-entry-icon svg{width:26px;height:26px}
.sg-entry-card-copy{display:block}
.sg-entry-card-copy strong{display:block;margin:0 0 10px;font:600 22px/1.2 Oswald,sans-serif;color:#163c25}
.sg-entry-card-copy>span{display:block;color:#526157;font-size:14px;line-height:1.55}
.sg-entry-arrow{position:absolute;top:27px;right:25px;font-size:23px;color:#687c6c}
.sg-entry-note{margin:22px 0 0;font-size:13px;color:#dce4de}
.sg-entry-toolbar{display:flex;justify-content:flex-end;padding:10px 20px;background:#f0f3ec;border-bottom:1px solid #d7ded5}
.sg-entry-toolbar button{padding:7px 3px;color:#214d32;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.sg-entry-chat{box-sizing:border-box;position:fixed;inset:0;width:min(640px,calc(100vw - 40px));height:min(720px,calc(100dvh - 40px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #71836f;border-radius:18px;background:#f6f8f2;color:#173d26;box-shadow:0 24px 100px #0007;overflow:hidden}
.sg-entry-chat[open]{display:flex;flex-direction:column}
.sg-entry-chat::backdrop{background:rgba(5,13,8,.78);backdrop-filter:blur(4px)}
.sg-entry-chat-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 14px;background:#173d26;color:#fff}
.sg-entry-chat-header .sg-entry-eyebrow{margin-bottom:5px}
.sg-entry-chat h2{margin:0;color:#fff;font:500 25px/1.2 Oswald,sans-serif}
.sg-entry-chat-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid #ffffff60;border-radius:50%;color:#fff;font:28px/1 Arial,sans-serif}
.sg-entry-chat-intro{margin:0;padding:12px 24px;font-size:13px;line-height:1.5;color:#405849;border-bottom:1px solid #d7ded5}
.sg-entry-chat-loading{position:absolute;top:50%;left:0;right:0;text-align:center;font-size:14px;pointer-events:none}
.sg-entry-chat-frame{position:relative;display:block;flex:1;width:100%;min-height:0;border:0;background:#fff}
.sg-entry-chat-footer{padding:9px 20px;text-align:center;border-top:1px solid #d7ded5}
.sg-entry-chat-footer button{min-height:36px;color:#214d32;font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){
 .sg-designer-entry.is-choosing{min-height:640px}
 .sg-designer-entry.is-choosing .sg-entry-surface{height:640px}
 .sg-entry-overlay{padding:28px 16px}
 .sg-entry-intro{margin:12px auto 20px;font-size:14px}
 .sg-entry-cards{grid-template-columns:1fr;gap:12px}
 .sg-entry-card{flex-direction:row;align-items:center;gap:14px;min-height:106px;padding:18px 42px 18px 16px;border-radius:12px}
 .sg-entry-icon{width:38px;height:38px}
 .sg-entry-card-copy strong{font-size:20px;margin-bottom:5px}
 .sg-entry-card-copy>span{font-size:13px;line-height:1.4}
 .sg-entry-arrow{top:20px;right:15px;font-size:20px}
 .sg-entry-note{margin-top:18px;font-size:12px}
 .sg-entry-chat{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}
 .sg-entry-chat-header{padding:12px 14px}
 .sg-entry-chat h2{font-size:21px}
 .sg-entry-chat-intro{padding:10px 14px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.sg-entry-card{transition:none}.sg-entry-card:hover{transform:none}}

/* Calm mobile chat; the existing iframe still handles every message and upload. */
@media(max-width:767px){
 .sg-entry-chat{inset:var(--sg-chat-top,0px) 0 auto;width:100%;height:var(--sg-chat-height,100dvh);margin:0;border:0;border-radius:0;background:#f8f7f0;box-shadow:none;font-family:"Source Sans 3",system-ui,sans-serif}
 .sg-entry-chat-header,.sg-entry-chat-intro,.sg-entry-chat-footer{display:none}
 .sg-entry-chat-frame{flex:1;min-height:0;background:#f8f7f0}
}

/* Clean popup on every screen: the chat inside supplies the only header and the close button. */
.sg-entry-chat-header,.sg-entry-chat-intro,.sg-entry-chat-footer{display:none}
