/* One quiet workspace shell, with navigation in a drawer on compact screens. */
.app-shell{min-height:100dvh}
.flow-header{display:none;min-height:65px;padding:9px 25px;background:linear-gradient(110deg,#fff 45%,#F1FAFC);border-bottom:1px solid #DCE9EC;align-items:center;justify-content:space-between;gap:15px}
.flow-header-start{display:flex;align-items:center;gap:15px;min-width:0}
.flow-menu-toggle{display:inline-flex;width:42px;min-height:42px;flex-shrink:0;align-items:center;justify-content:center;border:1px solid #D4E6ED;border-radius:10px;background:#fff;color:#0A4058}
.flow-menu-toggle:hover{background:#EAF7FA;border-color:#91CBDD}
.flow-header-brand{display:inline-flex;align-items:baseline;color:#0A4058;font:800 29px/1.15 Manrope,Arial,sans-serif;letter-spacing:-1.7px;white-space:nowrap}
.flow-header-brand>span{color:#1AA7CF}
.flow-header-brand small{font:500 11px/1.4 'DM Sans',Arial,sans-serif;color:#648493;letter-spacing:0;margin-left:14px}
.flow-header-profile{display:inline-flex;gap:9px;align-items:center;min-height:42px;border-radius:9px;padding:4px 5px;font-size:11px;color:#547887;white-space:nowrap}
.flow-header-profile .avatar{width:32px;height:32px;border-color:#fff;font-size:10px;background:#DBEFF6;color:#235E74}
.flow-header-profile:hover{background:#EAF7FA}
.sidebar nav [data-flow-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.sidebar nav [data-flow-icon] svg{width:20px;height:20px;stroke-width:1.6}
.sidebar-help{display:flex;align-items:center;gap:9px;min-height:43px;width:100%;padding:12px 4px;color:#547887;font-size:11px;text-align:left}
.sidebar-help>span{width:23px;height:23px;border:1px solid #D5E6ED;background:#F6FBFD;color:#315F73;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}
.sidebar-help>b{margin-left:auto;font-weight:400;color:#0A4058}
.sidebar-help:hover{color:#0A4058}
.sidebar-bottom>.profile{margin-top:7px}
body.studio-mode .flow-header{display:flex}
body.studio-mode .app-shell{min-height:calc(100dvh - 65px)}

/* Native dialog provides modal focus handling, Escape and an inert background. */
.flow-nav-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(340px,90vw);max-width:none;height:100dvh;max-height:100dvh;border:0;border-right:1px solid #D6E7EE;border-radius:0 20px 20px 0;padding:0;background:linear-gradient(170deg,#FFFFFF 55%,#F2FAFC);color:#0A4058;box-shadow:18px 0 70px #06324A26;overflow:auto;overscroll-behavior:contain}
.flow-nav-drawer[open]{display:flex;flex-direction:column;animation:flow-drawer-enter .18s ease-out}
.flow-nav-drawer::backdrop{background:#12384A61;backdrop-filter:blur(3px)}
.flow-drawer-top{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 23px 19px;border-bottom:1px solid #E1EDF1}
.flow-drawer-close{width:43px;min-height:43px;display:inline-flex;justify-content:center;align-items:center;border:1px solid #DCE9EC;background:#F9FCFD;border-radius:10px;font-size:28px;line-height:1;color:#426E82}
.flow-drawer-close:hover{background:#EAF7FA}
.flow-drawer-content{padding:25px 19px 20px}
.flow-drawer-eyebrow{margin:0 10px 17px;color:#668493;font-size:9px;font-weight:700;letter-spacing:1.5px}
.flow-drawer-links{display:grid;gap:7px}
.flow-drawer-links>a{display:flex;align-items:center;gap:13px;min-height:51px;padding:13px 14px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:500;color:#426B7F}
.flow-drawer-links>a:hover{background:#F0F9FB}
.flow-drawer-links>a.active{background:linear-gradient(100deg,#E4F4F9,#EFFAFA);border-color:#D6EBF2;color:#06324A;font-weight:700}
.flow-drawer-links>a [data-flow-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px}
.flow-drawer-links>a svg{width:22px;height:22px;stroke-width:1.6}
.flow-nav-arrow{margin-left:auto;font-size:13px;color:#7B9BAA}
.flow-drawer-request{width:100%;margin-top:25px;min-height:46px;font-size:12px;border-radius:9px}
.flow-drawer-content .sidebar-help{padding:15px 4px;margin-top:5px;min-height:47px;font-size:12px}
.flow-drawer-bottom{margin-top:auto;padding:20px 23px 23px;border-top:1px solid #DCE9EC;background:#EFF8FB88}
.flow-drawer-profile{display:flex;align-items:center;gap:12px;padding:0;width:100%;min-height:48px;text-align:left}
.flow-drawer-profile .avatar{width:38px;height:38px;border-color:#fff;font-size:11px;background:#DBEFF6;color:#235E74}
.flow-drawer-profile strong{display:block;font-size:12px;color:#174B62}
.flow-drawer-profile small{display:block;margin-top:4px;font-size:10px;color:#648493}
.flow-drawer-profile>b{margin-left:auto;font-size:14px;font-weight:400}
.flow-drawer-bottom>p{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px;margin:22px 0 0;color:#7896A3;font-size:9px}
.flow-drawer-bottom>p span{font-size:8px;letter-spacing:.3px}
body.flow-nav-open{overflow:hidden}
.flow-header button:focus-visible,.flow-header a:focus-visible,.flow-nav-drawer button:focus-visible,.flow-nav-drawer a:focus-visible,.sidebar-help:focus-visible{outline:2px solid #087DA4;outline-offset:3px}
@keyframes flow-drawer-enter{from{transform:translateX(-24px);opacity:.4}to{transform:translateX(0);opacity:1}}

/* Give the composition the width of the device, without stacked frame padding. */
@media(max-width:1099px){
  body.studio-mode main{padding:21px clamp(10px,2.5vw,24px) 30px}
  body.studio-mode .studio-paper-wrap{padding:15px 6px 22px;min-height:480px}
  body.studio-mode .studio-paper,body.studio-mode .studio-paper-wrap[data-device="mobile"] .studio-paper{width:100%;max-width:none}
  body.studio-mode .studio-paper>.email-preview{padding:0;border-radius:9px;box-shadow:0 6px 22px #06324A08}
  body.studio-mode .studio-canvas{border-radius:11px}
  body.studio-mode .studio-canvas-toolbar{padding:12px 15px}
  body.studio-mode .studio-block{margin-bottom:12px}
  body.studio-mode .studio-paper .email-brand{padding:21px 12px}
  body.studio-mode .studio-paper .email-bottom{padding:23px 15px}
}
@media(max-width:850px){
  .flow-header{display:flex;padding:9px clamp(10px,2.5vw,21px)}
  .flow-header-start{gap:12px}
  .app-shell{grid-template-columns:minmax(0,1fr);min-height:calc(100dvh - 65px)}
  .app-shell>.sidebar{display:none}
  main{padding:22px clamp(12px,3vw,24px) 32px}
  .flow-header-profile{padding-right:0}
}
@media(max-width:620px){
  .flow-header-brand{font-size:27px}
  .flow-header-brand small{display:none}
  .flow-header-profile{font-size:10px;gap:6px}
  .flow-header-profile .avatar{width:29px;height:29px;font-size:9px}
  body.studio-mode main{padding-top:17px}
  body.studio-mode .topbar{gap:9px;align-items:flex-start}
  body.studio-mode .topbar .crumb{font-size:9px;line-height:1.6;gap:6px;flex-wrap:wrap}
  body.studio-mode .top-tools{gap:7px}
  body.studio-mode .top-tools>span{display:none}
  body.studio-mode .studio-canvas-toolbar{padding:11px 12px}
  body.studio-mode .studio-paper-wrap{padding-top:12px;min-height:440px}
  body.studio-mode .studio-mobile-tabs button{font-size:11px;min-height:45px;padding-inline:5px}
  body.studio-mode .studio-header{gap:11px}
  body.studio-mode .studio-header h1{font-size:25px}
  body.studio-mode .studio-header>.btn{min-height:43px;padding:10px 12px}
  body.studio-mode .studio-header>div{flex:1;min-width:180px}
  body.studio-mode .studio-header p{font-size:11px}
  body.studio-mode .studio-paper .email-section{padding:25px 19px}
  body.studio-mode .studio-paper .email-section.section-padding-compact{padding:18px 16px}
  body.studio-mode .studio-paper .email-section.section-padding-spacious{padding:32px 22px}
  body.studio-mode .studio-paper .email-section.email-block-image{padding:7px}
  body.studio-mode .studio-paper .email-section.email-block-divider{padding:19px}
  .flow-nav-drawer{border-radius:0 17px 17px 0}
}
@media(prefers-reduced-motion:reduce){.flow-nav-drawer[open]{animation:none}}

/* Conditional resources stay hidden on both navigation surfaces. */
[data-mc-resource][hidden]{display:none!important}
