/* FEBRY.OPS V295 — actual alternative workspace, not a dialog. */
#chatView .sd-entry{box-sizing:border-box;border:1px solid #3a6e30;border-radius:17px;background:linear-gradient(120deg,#173018,#08160d);padding:15px 16px;margin:12px 0;color:#F5F9F3;display:grid;gap:11px}
#chatView .sd-entry-tag{color:#B6FF40;font-size:10px;letter-spacing:.16em;font-weight:900}#chatView .sd-entry strong{display:block;font-size:18px}#chatView .sd-entry p{font-size:12px;margin:5px 0 0;color:#F5F9F3}#chatView .sd-entry-button{border:0;border-radius:11px;background:#B6FF40;color:#090D0B;font-weight:900;min-height:46px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
#sdScreen[hidden],#sdScreen [hidden]{display:none!important}
#sdScreen{color:#F5F9F3;line-height:1.5;font-family:inherit}#sdScreen *,#sdScreen *::before,#sdScreen *::after{box-sizing:border-box}
body.sd-mode-simple #chatView{display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;min-height:100dvh!important;margin:0!important;padding:0!important;overflow:visible!important;grid-template-columns:none!important}
body.sd-mode-simple #chatView > :not(#sdScreen){display:none!important}
body.sd-mode-simple #chatView > #sdScreen{display:block!important;position:relative!important;width:100%;margin:0;min-height:100dvh;padding:0 0 72px!important}
html:has(body.sd-mode-simple),body.sd-mode-simple{height:auto!important;min-height:100dvh!important;overflow:auto!important;position:static!important;overscroll-behavior:auto!important}
body.sd-mode-simple .ms-mobile-nav,body.sd-mode-simple #msMobileNav{display:none!important}
#sdScreen .sd-shell{width:min(1170px,calc(100% - 36px));margin:0 auto;padding:24px 0 60px}
#sdScreen .sd-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:13px 0 23px;border-bottom:1px solid #29432e}
#sdScreen .sd-eyebrow{font-size:10px;font-weight:900;letter-spacing:.15em;color:#B6FF40}
#sdScreen .sd-dot{color:#B6FF40}
#sdScreen .sd-brand h1{font-size:clamp(28px,4vw,41px);line-height:1.15;letter-spacing:-.045em;margin:10px 0 5px;color:#F5F9F3}
#sdScreen .sd-brand p{font-size:13px;color:#F5F9F3;max-width:620px;margin:0;line-height:1.6}
#sdScreen button,#sdScreen input,#sdScreen select,#sdScreen textarea{font-family:inherit}#sdScreen button{cursor:pointer}#sdScreen button:disabled{opacity:.55;cursor:wait}
#sdScreen button:focus-visible,#sdScreen input:focus-visible,#sdScreen textarea:focus-visible,#sdScreen select:focus-visible{outline:2px solid #B6FF40;outline-offset:2px}
#sdScreen .sd-mode-tabs{border:1px solid #3a5039;border-radius:13px;background:#0a170d;padding:4px;display:flex;gap:4px;flex-shrink:0}#sdScreen .sd-mode-tabs button{border:0;border-radius:9px;padding:12px 15px;font-weight:850;font-size:12px;color:#F5F9F3;background:transparent;white-space:nowrap}#sdScreen .sd-mode-tabs button.current{background:#B6FF40;color:#090D0B}
#sdScreen .sd-metrics{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:16px 0 19px}#sdScreen .sd-metrics span{background:#102015;border:1px solid #2b4830;border-radius:99px;color:#B6FF40;padding:8px 12px;font-size:11px}#sdScreen .sd-quiet{border:1px solid #39593e;background:#0c1a11;border-radius:10px;color:#B6FF40;font-size:12px;font-weight:850;padding:10px 14px}#sdScreen .sd-metrics .sd-quiet{margin-left:auto}
#sdScreen .sd-connect{background:#1c2e14;border:1px solid #B6FF40;border-radius:15px;padding:14px 18px;display:flex;justify-content:space-between;gap:13px;align-items:center;margin-bottom:20px}#sdScreen .sd-connect b{color:#F5F9F3}#sdScreen .sd-connect p{color:#F5F9F3;font-size:12px;margin:4px 0 0}#sdScreen .sd-connect button{border:0;border-radius:9px;background:#B6FF40;color:#090D0B;font-weight:900;padding:12px 14px;white-space:nowrap}
#sdScreen .sd-nav{display:flex;gap:8px;margin:0 0 23px;padding-bottom:8px;border-bottom:1px solid #28412d}#sdScreen .sd-nav button{color:#F5F9F3;background:transparent;border:1px solid transparent;border-radius:11px 11px 0 0;padding:12px 17px;font-size:13px;font-weight:850}#sdScreen .sd-nav button.selected{background:#182d16;border-color:#3c7036;color:#B6FF40}
#sdScreen .sd-two-col{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,.82fr);gap:21px;align-items:start}
#sdScreen .sd-compose{background:#0b160e;border:1px solid #2b4831;border-radius:20px;padding:25px}
#sdScreen .sd-title{display:flex;gap:14px;align-items:flex-start}#sdScreen .sd-count{width:34px;height:34px;background:#B6FF40;color:#090D0B;border-radius:10px;font-size:13px;font-weight:950;flex:0 0 34px;display:grid;place-items:center}#sdScreen .sd-title h2{font-size:20px;font-weight:850;color:#F5F9F3;margin:2px 0 4px;letter-spacing:-.025em}#sdScreen .sd-title p{font-size:12px;color:#F5F9F3;margin:0;line-height:1.65}
#sdScreen .sd-form{padding:15px 0 2px}#sdScreen .sd-form-field{margin:17px 0}#sdScreen .sd-form-field>label,#sdScreen .sd-date-row label{display:block;color:#F5F9F3;font-size:12px;font-weight:850;margin-bottom:8px}#sdScreen .sd-form-field label span{font-weight:500;color:#F5F9F3}
#sdScreen .sd-form-field>input:not([type=file]),#sdScreen .sd-form-field>textarea,#sdScreen .sd-form-field>select,#sdScreen .sd-date-row input{display:block;width:100%;color:#F5F9F3;background:#060f09;border:1px solid #39583c;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;min-height:48px}#sdScreen textarea{resize:vertical}#sdScreen .sd-form-field>textarea{min-height:111px}#sdScreen .sd-form-field>textarea.sd-caption{min-height:163px}#sdScreen .sd-form-field small{font-size:11px;color:#F5F9F3;margin-top:7px;display:block}
#sdScreen .sd-upload{display:flex;gap:13px;align-items:center;text-align:left;border:1px dashed #60844a;background:#0d2110;padding:16px;width:100%;border-radius:13px;color:#F5F9F3}#sdScreen .sd-upload b{display:block;font-size:13px}#sdScreen .sd-upload small{display:block;margin-top:4px;font-size:11px;color:#F5F9F3}#sdScreen .sd-upload-ico{width:39px;height:39px;background:#B6FF40;color:#090D0B;border-radius:11px;font-weight:900;font-size:24px;display:grid;place-items:center}
#sdScreen .sd-media-preview{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}#sdScreen .sd-media-item{position:relative;width:80px;height:80px;border:1px solid #557748;border-radius:11px;overflow:hidden}#sdScreen .sd-media-item img{width:100%;height:100%;object-fit:cover}#sdScreen .sd-media-item button{position:absolute;top:2px;right:2px;background:#111c16;border:1px solid #78916e;color:#F5F9F3;border-radius:50%;font-size:18px;width:25px;height:25px;line-height:1}
#sdScreen .sd-primary{display:inline-flex;align-items:center;justify-content:center;background:#B6FF40;color:#090D0B !important;border:1px solid #B6FF40;border-radius:11px;padding:13px 18px;font-size:13px;font-weight:950;min-height:48px}#sdScreen .sd-ai-line{display:flex;align-items:center;gap:13px;margin:20px 0 13px}#sdScreen .sd-ai-line>span{font-size:11px;color:#F5F9F3;line-height:1.5}
#sdScreen .sd-preview-heading,#sdScreen .sd-publish-heading{border-top:1px solid #2b4830;margin-top:24px;padding-top:24px}#sdScreen .sd-countrow{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#F5F9F3;margin-top:8px}#sdScreen .sd-text-btn{font-size:11px;background:none;border:0;color:#B6FF40;text-decoration:underline}
#sdScreen .sd-delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:14px}#sdScreen .sd-delivery-options label{display:flex;gap:10px;align-items:center;background:#0b1d11;border:1px solid #315437;padding:14px;border-radius:12px;cursor:pointer}#sdScreen .sd-delivery-options label:has(input:checked){border-color:#B6FF40;background:#193015}#sdScreen .sd-delivery-options input{accent-color:#B6FF40}#sdScreen .sd-delivery-options b{display:block;font-size:12px}#sdScreen .sd-delivery-options small{display:block;font-size:11px;color:#F5F9F3;margin-top:4px}
#sdScreen .sd-date-row{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:17px}#sdScreen .sd-date-row p{grid-column:1/-1;color:#F5F9F3;font-size:11px;margin:0}#sdScreen .sd-confirm-line{margin-top:23px}#sdScreen .sd-big{width:100%;font-size:14px}#sdScreen .sd-confirm-line p{font-size:11px;color:#F5F9F3;line-height:1.6}
#sdScreen .sd-side{position:sticky;top:14px;display:grid;gap:14px}#sdScreen .sd-side-card{background:linear-gradient(155deg,#163014,#0a170e);border:1px solid #365b36;border-radius:19px;padding:22px}#sdScreen .sd-side h3{color:#F5F9F3;font-size:22px;letter-spacing:-.03em;line-height:1.23;margin:12px 0 20px}#sdScreen .sd-summary-row{border-top:1px solid #2d4830;display:flex;justify-content:space-between;gap:8px;padding:13px 0;font-size:12px}#sdScreen .sd-summary-row span{color:#F5F9F3}#sdScreen .sd-summary-row b{color:#B6FF40;text-align:right;max-width:65%;overflow-wrap:anywhere}#sdScreen .sd-side-note{font-size:11px;line-height:1.65;color:#F5F9F3;background:#0a1b0c;border-radius:12px;padding:13px}#sdScreen .sd-tip-card{background:#09160d;border:1px solid #28492d;border-radius:17px;padding:19px}#sdScreen .sd-tip-card b{color:#B6FF40}#sdScreen .sd-tip-card p{font-size:12px;color:#F5F9F3;line-height:1.8;margin:9px 0 0}
#sdScreen .sd-notice{position:sticky;bottom:12px;z-index:3;max-width:870px;margin:22px 0;border:1px solid #568251;background:#133018;color:#B6FF40;border-radius:13px;padding:16px 18px;font-size:13px;line-height:1.6;box-shadow:0 10px 25px #0008}#sdScreen .sd-notice[data-kind=error]{background:#2c1810;border-color:#c56550;color:#F5F9F3}#sdScreen .sd-notice[data-kind=ok]{background:#1b3412;border-color:#B6FF40}
#sdScreen .sd-schedules{padding:22px;border:1px solid #305238;border-radius:19px;background:#0b190f}#sdScreen .sd-schedules>.sd-quiet{margin:20px 0}#sdScreen .sd-schedule-list{display:grid;gap:10px;color:#F5F9F3;font-size:13px}#sdScreen .sd-schedule-card{border:1px solid #2e4b31;background:#0b210f;border-radius:13px;padding:16px}#sdScreen .sd-schedule-card b{display:block;color:#B6FF40;font-size:12px}#sdScreen .sd-schedule-card small{display:block;color:#F5F9F3;font-size:11px;margin:5px 0}#sdScreen .sd-schedule-card p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}#sdScreen .sd-schedule-footer{margin-top:17px}
@media(max-width:900px){#chatView .sd-entry-desktop{display:none}#chatView .sd-entry-mobile{display:grid}#sdScreen .sd-two-col{grid-template-columns:1fr}#sdScreen .sd-side{position:static;grid-row:1}#sdScreen .sd-side-card{display:none}#sdScreen .sd-tip-card{display:none}#sdScreen .sd-top{flex-direction:column}#sdScreen .sd-mode-tabs{width:100%}#sdScreen .sd-mode-tabs button{flex:1}#sdScreen .sd-shell{width:min(100% - 26px,760px);padding:14px 0 55px}#sdScreen .sd-compose{padding:18px 15px}}
@media(min-width:901px){#chatView .sd-entry-mobile{display:none}#chatView .sd-entry-desktop{display:grid}}
@media(max-width:550px){#sdScreen .sd-brand h1{font-size:29px}#sdScreen .sd-title h2{font-size:18px}#sdScreen .sd-ai-line{flex-direction:column;align-items:stretch}#sdScreen .sd-ai-line>span{text-align:center}#sdScreen .sd-nav button{flex:1;padding:12px 8px}#sdScreen .sd-delivery-options{grid-template-columns:1fr}#sdScreen .sd-date-row input{font-size:13px}#sdScreen .sd-metrics .sd-quiet{margin-left:0}#sdScreen .sd-connect{flex-direction:column;align-items:stretch}}

/* Multiple link inputs - novice dashboard */
#sdScreen .sd-links{display:grid;gap:9px}
#sdScreen .sd-link-row{display:flex;gap:9px;align-items:stretch}
#sdScreen .sd-link-input{min-width:0;flex:1;width:100%;color:#F5F9F3;background:#060f09;border:1px solid #39583c;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;min-height:48px}
#sdScreen .sd-remove-link{background:#24140f;border:1px solid #7b493b;color:#F5F9F3;border-radius:11px;padding:10px 13px;font-size:12px;font-weight:800}
#sdScreen .sd-add-link{margin-top:10px;min-height:42px}
#sdScreen .sd-add-link:disabled{opacity:.5}
@media(max-width:550px){#sdScreen .sd-link-row{gap:6px}#sdScreen .sd-remove-link{padding:9px 10px;font-size:11px}}

/* FEBRY.OPS V296 - target accounts, per-account counts, random WIB scheduling */
#sdScreen .sd-account-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:8px;margin-top:10px}
#sdScreen .sd-account-choice{display:flex;gap:9px;align-items:center;border:1px solid #375b39;border-radius:11px;background:#0c2011;padding:11px 12px;font-size:12px;cursor:pointer;min-width:0;overflow-wrap:anywhere}
#sdScreen .sd-account-choice:has(input:checked){background:#183115;border-color:#B6FF40;color:#F5F9F3}
#sdScreen .sd-account-choice input,#sdScreen .sd-random-toggle input{accent-color:#B6FF40;flex-shrink:0}
#sdScreen .sd-account-counts{margin-top:12px;display:grid;gap:10px}
#sdScreen .sd-account-count{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #315535;background:#0b1c10;padding:10px 12px;border-radius:11px;font-size:12px}
#sdScreen .sd-account-count input{width:96px;min-height:42px;border:1px solid #446746;background:#060f09;color:#F5F9F3;border-radius:9px;padding:8px 11px;font-size:14px}
#sdScreen .sd-variant-editor{margin-top:16px;padding:16px;border:1px solid #43663b;border-radius:13px;background:#101d11}
#sdScreen .sd-variant-editor>b{color:#B6FF40;font-size:14px}#sdScreen .sd-variant-editor>p{font-size:12px;color:#F5F9F3;line-height:1.6}
#sdScreen .sd-variant-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#sdScreen .sd-variant-list{max-height:450px;overflow:auto;display:grid;gap:10px}
#sdScreen .sd-draft-row{padding:11px;background:#08150c;border:1px solid #38543a;border-radius:11px}
#sdScreen .sd-draft-row label{display:block;color:#B6FF40;font-size:12px;font-weight:800;margin-bottom:7px}
#sdScreen .sd-draft-row textarea{width:100%;min-height:90px;border:1px solid #3e6040;border-radius:9px;background:#030b05;color:#F5F9F3;padding:10px 12px;font-size:13px}
#sdScreen .sd-schedule-options{margin-top:15px}
#sdScreen .sd-random-toggle{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid #395e32;background:#102314;color:#F5F9F3;border-radius:12px;font-size:13px;cursor:pointer}
#sdScreen .sd-random-fields{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
#sdScreen .sd-date-row select,#sdScreen .sd-random-fields input{width:100%;min-height:48px;border:1px solid #39583c;border-radius:12px;background:#060f09;color:#F5F9F3;padding:12px;font-size:13px}
#sdScreen .sd-random-fields label{display:block;font-size:12px;font-weight:800;margin-bottom:7px}#sdScreen .sd-random-fields p{grid-column:1/-1;color:#F5F9F3;font-size:11px;margin:0}
#sdScreen .sd-date-row>div{min-width:0}
@media(max-width:550px){#sdScreen .sd-random-fields{grid-template-columns:1fr 1fr}#sdScreen .sd-account-list{grid-template-columns:1fr}}

/* V297: Four-step composing, real chain editor, and explicit draft/auto modes */
#sdScreen .sd-generation-options{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:19px 0 12px}
#sdScreen .sd-generation-option{display:flex;align-items:flex-start;gap:11px;padding:16px;border-radius:13px;border:1px solid #375e3a;background:#0d1f11;cursor:pointer}
#sdScreen .sd-generation-option:has(input:checked){border-color:#B6FF40;background:#1a3215}
#sdScreen .sd-generation-option input{accent-color:#B6FF40;margin-top:5px;flex:none}
#sdScreen .sd-generation-option b{display:block;font-size:13px;color:#F5F9F3}
#sdScreen .sd-generation-option small{display:block;font-size:11px;line-height:1.65;color:#F5F9F3;margin-top:5px}
#sdScreen .sd-automatic{border-color:#6b6341}
#sdScreen .sd-auto-alert{border:1px solid #d69c55;border-radius:12px;padding:13px;background:#2e2210;color:#F5F9F3;font-size:12px;line-height:1.7}
#sdScreen .sd-draft-label{display:block;color:#B6FF40;font-size:13px;margin:0 0 8px}
#sdScreen .sd-chain-label{display:block;color:#F5F9F3;font-size:12px;margin:12px 0 6px}
#sdScreen .sd-final-note{font-size:11px;color:#F5F9F3;line-height:1.7;margin:16px 0 0}
#sdScreen .sd-variant-list{max-height:680px}
#sdScreen .sd-ai-line .sd-primary{flex:1}
@media(max-width:650px){#sdScreen .sd-generation-options{grid-template-columns:1fr}#sdScreen .sd-auto-alert{font-size:11px}}


/* FEBRY.OPS V343 — hard fix for mobile simple dashboard compose layout */
#sdScreen .sd-account-choice{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;overflow:hidden}
#sdScreen .sd-account-choice span,#sdScreen .sd-account-count span,#sdScreen .sd-delivery-options label>span,#sdScreen .sd-generation-option>span{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word;word-break:break-word}
#sdScreen .sd-account-choice{overflow-wrap:normal}
#sdScreen .sd-account-count{align-items:start}
#sdScreen .sd-account-count input{justify-self:end}
#sdScreen .sd-form-field>textarea,#sdScreen .sd-form-field>textarea.sd-caption,#sdScreen .sd-draft-row textarea{height:auto;max-height:none}
#sdScreen .sd-delivery-options label,#sdScreen .sd-generation-option{min-width:0}

@media(max-width:900px){
  #sdScreen .sd-shell{padding-bottom:84px}
  #sdScreen .sd-form{display:block}
  #sdScreen .sd-form-field{margin:15px 0}
  #sdScreen .sd-account-list,
  #sdScreen .sd-account-counts,
  #sdScreen .sd-delivery-options,
  #sdScreen .sd-generation-options,
  #sdScreen .sd-date-row,
  #sdScreen .sd-random-fields{grid-template-columns:1fr!important}
  #sdScreen .sd-account-choice,
  #sdScreen .sd-account-count,
  #sdScreen .sd-delivery-options label,
  #sdScreen .sd-generation-option{align-items:flex-start!important;justify-content:flex-start!important;min-height:auto!important}
  #sdScreen .sd-account-choice{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;padding:14px 13px!important}
  #sdScreen .sd-account-choice input{margin:4px 0 0!important;justify-self:start}
  #sdScreen .sd-account-choice span{width:100%!important}
  #sdScreen .sd-account-count{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  #sdScreen .sd-account-count input{width:100%!important;justify-self:stretch!important}
  #sdScreen .sd-delivery-options label,
  #sdScreen .sd-generation-option{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}
  #sdScreen .sd-delivery-options label input,
  #sdScreen .sd-generation-option input{margin:4px 0 0!important}
  #sdScreen .sd-form-field>textarea{min-height:112px!important}
  #sdScreen .sd-form-field>textarea.sd-caption{min-height:112px!important}
  #sdScreen .sd-variant-editor{padding:14px}
  #sdScreen .sd-variant-list{max-height:none!important}
  #sdScreen .sd-title{gap:12px}
}

@media(max-width:550px){
  #sdScreen .sd-shell{width:min(100% - 20px,760px);padding:12px 0 92px}
  #sdScreen .sd-compose{padding:16px 13px}
  #sdScreen .sd-form-field>input:not([type=file]),
  #sdScreen .sd-form-field>textarea,
  #sdScreen .sd-form-field>select,
  #sdScreen .sd-date-row input,
  #sdScreen .sd-date-row select,
  #sdScreen .sd-random-fields input,
  #sdScreen .sd-link-input,
  #sdScreen .sd-account-count input{font-size:16px}
  #sdScreen .sd-nav{margin-bottom:18px}
  #sdScreen .sd-title h2{font-size:17px}
  #sdScreen .sd-title p{font-size:11px}
  #sdScreen .sd-primary.sd-big{min-height:50px}
}
