/* FlypigBOX R1.3A.18.39 — navigation, plain-language copy and visual continuity closure */
:root{--fp39-blue:#2563eb;--fp39-blue-soft:#eef5ff;--fp39-ink:#17243a;--fp39-muted:#6d7b91;--fp39-line:#dfe7f1;--fp39-soft:#f8faff;--fp39-shadow:0 12px 30px rgba(31,55,92,.06)}
html[data-fp39="enabled"]{--fp39-ok:#138a59}

/* 1. Desktop shell: stop leaving a large dead area when the browser is zoomed out. */
html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .app-shell{width:min(1780px,calc(100% - 28px));grid-template-columns:206px minmax(0,1fr);gap:16px}
html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .sidebar{width:206px;min-width:206px;padding:14px 10px;border-radius:20px}
html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .main{max-width:none;width:100%}
@media(min-width:1800px){html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .app-shell{width:calc(100% - 28px);max-width:1960px}}

/* 2. Left navigation: clearer hierarchy, less equal-weight visual noise. */
html[data-fp39="enabled"] body.fp-v3368-workspace .sidebar>.brand{padding:3px 8px 11px;margin-bottom:2px;border-bottom:1px solid rgba(132,154,186,.13)}
html[data-fp39="enabled"] body.fp-v3368-workspace .brand b{font-size:15px}
html[data-fp39="enabled"] body.fp-v3368-workspace .brand small{font-size:10px;color:#8b9bb1}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2{gap:7px;padding:2px 1px 8px}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 .nav-group{gap:3px;margin:0;padding:4px 0 7px;border-bottom:1px solid rgba(137,155,181,.10)}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 .nav-group:last-child{border-bottom:0}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 .nav-group-title{padding:5px 9px 3px;margin:0;color:#8b9bb1;font-size:9px;letter-spacing:.05em;text-transform:none}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 [data-view]{position:relative;min-height:36px;padding:0 10px 0 13px;border-radius:10px;color:#46576e;font-size:12px;font-weight:650;transition:background .15s,color .15s,transform .15s}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 [data-view]:hover{background:#f1f5fb;color:#1f3b68;transform:translateX(1px)}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 [data-view].active{background:#1d2a42;color:#fff;font-weight:800;box-shadow:0 7px 18px rgba(26,42,70,.12)}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 [data-view].active::before{content:'';position:absolute;left:5px;top:50%;width:3px;height:15px;border-radius:99px;background:#75a8ff;transform:translateY(-50%)}
html[data-fp39="enabled"] body.fp-v3368-workspace .workspace-nav-v2 button em{display:none!important}
html[data-fp39="enabled"] body.fp-v3368-workspace .create-doc{min-height:40px;margin:2px 2px 0;border-radius:11px;font-size:12px;box-shadow:none;border:1px solid #d7e1ed;background:#17243a;color:#fff}
html[data-fp39="enabled"] body.fp-v3368-workspace .create-doc:hover{background:#223653}
html[data-fp39="enabled"] body.fp-v3368-workspace .sidebar-bottom{padding-top:7px;border-top:1px solid rgba(137,155,181,.12)}
html[data-fp39="enabled"] body.fp-v3368-workspace .account-button{color:#6f8096;font-size:10px}

/* Collapsible non-core navigation groups. */
html[data-fp39="enabled"] body.fp-v3368-workspace .fp39-nav-group-toggle{width:100%;min-height:27px!important;padding:0 8px!important;border:0!important;background:transparent!important;color:#8b9bb1!important;border-radius:7px!important;font-size:9px!important;font-weight:850!important;letter-spacing:.04em!important;transform:none!important}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp39-nav-group-toggle span:last-child{font-size:11px;transition:transform .15s}
html[data-fp39="enabled"] body.fp-v3368-workspace .nav-group[data-fp39-collapsed="true"] .fp39-nav-group-toggle span:last-child{transform:rotate(-90deg)}
html[data-fp39="enabled"] body.fp-v3368-workspace .nav-group[data-fp39-collapsed="true"]>[data-view]{display:none}

/* 3. Top bar and module guidance: clearer priority and less header density. */
html[data-fp39="enabled"] body.fp-v3368-workspace .topbar-structure-v2{grid-template-columns:minmax(185px,.65fr) minmax(360px,1.25fr) auto;gap:10px;margin:-8px 0 14px;padding:8px 0 10px}
html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .topbar{min-height:68px;padding:11px 14px;border-radius:16px}
html[data-fp39="enabled"] body.fp-v3368-workspace .topbar-copy h1{font-size:22px!important;letter-spacing:-.02em}
html[data-fp39="enabled"] body.fp-v3368-workspace .topbar-copy p{font-size:10px!important;letter-spacing:0!important;color:#718096!important}
html[data-fp39="enabled"] body.fp-v3368-workspace .topbar-actions{gap:6px}
html[data-fp39="enabled"] body.fp-v3368-workspace .topbar-actions .btn{min-height:34px!important;padding:0 10px!important;font-size:11px}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide{grid-template-columns:minmax(0,1.2fr) minmax(165px,.55fr) minmax(190px,.65fr);gap:8px;margin-bottom:10px}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide>div{padding:9px 11px;border-radius:11px}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide small{font-size:9px}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide b{font-size:11px}
html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide span{font-size:10px}

/* 4. Workspace home: action-first, fewer blocks competing for attention. */
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-hero-v1{padding:15px 17px;border-radius:14px;background:linear-gradient(135deg,#fff,#f7faff)}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-hero-copy h2{font-size:21px;line-height:1.3;letter-spacing:-.02em}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-hero-copy>span{font-size:11px;line-height:1.55}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:9px 0}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .metric-grid article{padding:11px 12px;border-radius:12px;box-shadow:none}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .metric-grid strong{font-size:20px;margin:3px 0 1px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .metric-grid span{font-size:9px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .dashboard-grid{gap:9px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .dashboard-grid .panel{padding:13px;border-radius:13px;box-shadow:none}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-quick-start{padding:12px 13px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-action-grid article{min-height:106px;padding:10px 11px;border-radius:12px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-action-grid b{font-size:13px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .home-action-grid span{font-size:10px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="dashboard"] .fp38-home-more{margin-top:9px;padding:9px 11px;border-radius:10px;background:#fff}

/* 5. Order source picker: force a card list even when a legacy/cached stylesheet wins. */
html[data-fp39="enabled"] #fp-order-picker-dialog{width:min(720px,calc(100% - 30px))}
html[data-fp39="enabled"] #fp-order-picker-dialog .dialog{max-width:none!important;padding:20px!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-list{display:grid!important;gap:9px!important;max-height:min(52vh,470px)!important;padding:8px 2px!important;overflow:auto!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item{appearance:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;width:100%!important;min-height:66px!important;margin:0!important;padding:12px 13px!important;border:1px solid #dce5ef!important;border-radius:12px!important;background:#fff!important;color:#25364d!important;text-align:left!important;box-shadow:none!important;white-space:normal!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item:hover,html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item:focus-visible{border-color:#8eb2e7!important;background:#f7faff!important;box-shadow:0 7px 18px rgba(40,79,132,.08)!important;outline:none!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item span{display:grid!important;gap:4px!important;min-width:0!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item b{font-size:13px!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item small{font-size:10px!important;color:#718096!important;line-height:1.45!important;white-space:normal!important;overflow:visible!important}
html[data-fp39="enabled"] #fp-order-picker-dialog .fp-order-picker-item em{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:0 9px!important;border-radius:999px!important;background:#eef5ff!important;color:#245ca8!important;font-size:11px!important;font-weight:850!important;white-space:nowrap!important}

/* 6. Notification wizard: fix the role step that was rendered like raw checkboxes. */
html[data-fp39="enabled"] .fpn-guided-modal .fpn-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-field{display:grid!important;gap:6px!important;min-width:0!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-field.full{grid-column:1/-1!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-field>label,html[data-fp39="enabled"] .fpn-guided-modal .fpn-field-label-row>label{font-size:11px!important;font-weight:800!important;color:#50617a!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-field input,html[data-fp39="enabled"] .fpn-guided-modal .fpn-field textarea,html[data-fp39="enabled"] .fpn-guided-modal .fpn-field select{box-sizing:border-box!important;width:100%!important;min-height:39px!important;padding:8px 10px!important;border:1px solid #cfd9e7!important;border-radius:9px!important;background:#fff!important;color:#21324c!important;font:inherit!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-presets{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-presets button{min-height:34px!important;border-radius:9px!important;padding:6px 8px!important;font-size:11px!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 20px!important;align-items:center!important;gap:8px!important;min-height:39px!important;margin:0!important;padding:8px 10px!important;border:1px solid #dce4ee!important;border-radius:9px!important;background:#fff!important;color:#465a74!important;cursor:pointer!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option:hover{border-color:#adc5e8!important;background:#f9fbff!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option span{font-size:11px!important;font-weight:700!important;line-height:1.3!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option i{width:19px!important;height:19px!important;display:grid!important;place-items:center!important;border-radius:6px!important;background:#edf1f6!important;color:transparent!important;font-size:10px!important;font-style:normal!important;font-weight:900!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option.active{border-color:#8fb2e5!important;background:#f3f7ff!important;color:#244e92!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-option.active i{background:#2c66c5!important;color:#fff!important}
html[data-fp39="enabled"] .fpn-guided-modal .fpn-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}

/* 7. Smart capture / material organizing: make this a normal business page, not an AI console. */
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-panel{border-color:#dce5ef;border-radius:14px;background:#fff;box-shadow:none}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-head{padding:14px 16px;border-bottom-color:#e5ebf3;background:#f8faff}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-head h3{font-size:17px;color:#1c3358}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-head span{font-size:11px;line-height:1.55}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-head p{text-transform:none;letter-spacing:.04em;font-size:9px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-body{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:12px;padding:13px 16px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-compose,html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-current{border-radius:11px;padding:12px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-types{gap:6px;margin-bottom:10px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-type span{min-height:58px;padding:8px 9px;border-radius:9px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-form textarea{min-height:112px}
html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-safety{background:#f8fafc;color:#66758b;border:1px solid #e5ebf2}

/* 8. Public home: improve hierarchy and fix the pale bottom CTA shown in the online screenshot. */
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .site-header{max-width:1320px}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .hero{gap:18px}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .hero-copy,html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .hero-card{box-shadow:0 12px 34px rgba(33,58,96,.07)}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .proof{gap:10px}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .proof article{box-shadow:0 10px 28px rgba(34,56,89,.055)}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .pilot{border:1px solid #dce6f0!important;background:linear-gradient(135deg,#f7fbff,#eef6ff)!important;color:#20324b!important;box-shadow:0 12px 30px rgba(35,72,122,.06)}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .pilot p,html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .pilot span{color:#5e6f86!important}
html[data-fp39="enabled"] body:not(.fp-v3368-workspace) .trust-line{color:#78879a!important}

/* 9. General plain-language visual rules. */
html[data-fp39="enabled"] .fp39-technical-hidden{display:none!important}
html[data-fp39="enabled"] .fp39-plain-note{color:#6e7c91!important;font-size:10px!important;line-height:1.5!important}
html[data-fp39="enabled"] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid rgba(37,99,235,.18);outline-offset:2px}

@media(max-width:1180px){
  html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .app-shell{grid-template-columns:190px minmax(0,1fr)}
  html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .sidebar{width:190px;min-width:190px}
  html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide{grid-template-columns:1fr 1fr}
  html[data-fp39="enabled"] body.fp-v3368-workspace .fp30-module-guide>div:first-child{grid-column:1/-1}
}
@media(max-width:900px){
  html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .app-shell{display:block;width:100%;margin:0}
  html[data-fp39="enabled"] body[data-fp-workspace-closure="18.30"] .sidebar{width:auto;min-width:0}
  html[data-fp39="enabled"] .fpn-guided-modal .fpn-form-grid{grid-template-columns:1fr!important}
  html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-fp39="enabled"] .fpn-guided-modal .fpn-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-fp39="enabled"] body.fp-v3368-workspace[data-workspace-view="ai"] .fp-os-task-body{grid-template-columns:1fr}
}
