/* CEO_SHIELD_PC_SUBMASTER_CARD_PARITY_S351
   Extends the current S313-S316 desktop CRM card presentation to read-only managed customer cards.
   Presentation only: no save, status, delete, or assignment mutation is enabled. */

/* CEO_SHIELD_PC_COMPANY_CARD_COMMERCIAL_S313
   PC company card presentation only. No business logic changes. */

@media (min-width:901px){
  html[data-ceo-crm-premium] body{
    --s313-surface:#111f33;
    --s313-surface-2:#0b182a;
    --s313-surface-3:#162840;
    --s313-border:rgba(133,177,215,.22);
    --s313-border-strong:rgba(77,195,244,.42);
    --s313-text:#f4f8ff;
    --s313-muted:#9fb3c8;
    --s313-cyan:#54d7ff;
    --s313-blue:#5b8dff;
    --s313-green:#53dfaf;
    --s313-gold:#f5cb6b;
    --s313-danger:#ff8494;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody{
    display:flex!important;
    flex-direction:column!important;
    gap:20px!important;
    width:100%!important;
    max-width:1600px!important;
    margin:0 auto!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:20px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border:1px solid var(--s313-border)!important;
    border-radius:20px!important;
    background:
      radial-gradient(circle at 100% 0,rgba(43,139,195,.11),transparent 30%),
      linear-gradient(155deg,rgba(18,35,57,.99),rgba(9,23,40,.99))!important;
    box-shadow:0 18px 42px rgba(0,0,0,.22)!important;
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr:hover{
    border-color:rgba(77,195,244,.38)!important;
    box-shadow:0 22px 52px rgba(0,0,0,.27)!important;
    transform:translateY(-1px);
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:14px!important;
    box-sizing:border-box!important;
    border:1px solid var(--s313-border)!important;
    border-radius:14px!important;
    background:rgba(5,18,32,.5)!important;
    color:var(--s313-text)!important;
    font-size:14px!important;
    line-height:1.65!important;
    text-align:left!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td::before{
    display:block!important;
    content:attr(data-label)!important;
    position:static!important;
    transform:none!important;
    width:auto!important;
    min-width:0!important;
    margin:0 0 8px!important;
    padding:0!important;
    color:#8ba4bd!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.35!important;
    letter-spacing:.015em!important;
    text-align:left!important;
    white-space:normal!important;
    pointer-events:none!important;
  }

  /* 1. Company identity becomes the card header. */
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(1){
    grid-column:1/-1!important;
    padding:16px 17px!important;
    border-color:rgba(77,195,244,.24)!important;
    background:linear-gradient(115deg,rgba(20,53,81,.88),rgba(12,29,49,.58))!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(1)::before{
    display:none!important;
    content:none!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .company-title-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    width:100%!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .company-title-left{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    min-width:0!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .company-link{
    color:#fff!important;
    font-size:21px!important;
    font-weight:750!important;
    line-height:1.35!important;
    letter-spacing:-.035em!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .company-link::before{
    display:inline-grid!important;
    place-items:center!important;
    width:30px!important;
    height:30px!important;
    margin-right:2px!important;
    border:1px solid rgba(84,215,255,.24)!important;
    border-radius:10px!important;
    background:rgba(84,215,255,.09)!important;
    font-size:15px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(.client-source-badge,.company-status-badge){
    min-height:27px!important;
    box-sizing:border-box!important;
    padding:5px 9px!important;
    border-radius:999px!important;
    font-size:11px!important;
    font-weight:700!important;
  }

  /* 2. Core company information: contact / owner / business number. */
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(2){grid-column:span 5!important}
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(3){grid-column:span 4!important}
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(4){grid-column:span 3!important}

  /* 3. Funding information: institution / calculated limit. */
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(5){grid-column:span 7!important}
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(6){grid-column:span 5!important}

  /* 4. Workflow, schedule and consultation history. */
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(7){
    grid-column:1/-1!important;
    padding:16px!important;
    background:rgba(5,18,32,.68)!important;
  }

  /* 5. Primary and destructive actions. */
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(8),
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:last-child{
    grid-column:1/-1!important;
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    padding:12px 14px!important;
    border-color:rgba(133,177,215,.16)!important;
    background:rgba(7,20,35,.42)!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:last-child::before{
    display:none!important;
    content:none!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .action-buttons{
    display:flex!important;
    justify-content:flex-end!important;
    gap:9px!important;
    width:auto!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(.btn-sm-tax,.btn-sm-del){
    flex:0 0 auto!important;
    min-width:124px!important;
    min-height:42px!important;
    padding:10px 16px!important;
    border-radius:10px!important;
    font-size:13px!important;
    font-weight:750!important;
    box-shadow:none!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .btn-sm-tax{
    border-color:rgba(84,215,255,.42)!important;
    background:linear-gradient(135deg,rgba(16,120,164,.72),rgba(24,78,127,.88))!important;
    color:#fff!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .btn-sm-del{
    border-color:rgba(255,132,148,.3)!important;
    background:rgba(109,31,48,.25)!important;
    color:#ffb5bf!important;
  }

  /* Labels stay above values; old negative transforms are explicitly cancelled. */
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="정책자금 기관"],
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="산출 한도"],
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="정책자금 상태"]{
    display:block!important;
    grid-template-columns:none!important;
    align-items:initial!important;
    column-gap:0!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="정책자금 기관"]::before,
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="산출 한도"]::before,
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="정책자금 상태"]::before{
    position:static!important;
    transform:none!important;
    padding:0!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="산출 한도"]>*{
    justify-self:auto!important;
    align-self:auto!important;
    max-width:100%!important;
    padding-top:0!important;
    text-align:left!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(input,select,textarea,button){
    font-family:inherit!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(select,input:not([type="checkbox"]):not([type="radio"]),textarea){
    min-height:42px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(133,177,215,.26)!important;
    border-radius:10px!important;
    background:#071526!important;
    color:#f2f7ff!important;
    font-size:14px!important;
    line-height:1.45!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(select,input,textarea,button):focus-visible{
    outline:2px solid rgba(84,215,255,.65)!important;
    outline-offset:2px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .agency-control{
    width:100%!important;
    margin:0!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(.consultant-inline-row,.status-inline-row,.next-contact-row){
    justify-content:flex-start!important;
    gap:9px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .owner-assignment-s292{
    align-items:flex-start!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .status-control-panel{
    justify-content:flex-start!important;
    gap:9px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .recent-change-box{
    margin-top:11px!important;
    padding:11px 13px!important;
    border:1px solid rgba(133,177,215,.14)!important;
    border-radius:11px!important;
    background:rgba(13,31,51,.72)!important;
    color:#a9bdd0!important;
    font-size:12px!important;
    line-height:1.65!important;
    text-align:left!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .history-panel{
    margin-top:12px!important;
    padding:13px!important;
    border:1px solid rgba(167,139,250,.16)!important;
    border-radius:12px!important;
    background:rgba(35,29,68,.18)!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .history-title{
    margin-bottom:9px!important;
    color:#c4b5fd!important;
    font-size:12px!important;
  }

  /* Schedule is a distinct work card. */
  html[data-ceo-crm-premium] body #s149_managed_tbody .contact-schedule-card{
    margin-top:12px!important;
    padding:14px!important;
    border:1px solid rgba(84,215,255,.2)!important;
    border-radius:13px!important;
    background:linear-gradient(135deg,rgba(8,60,83,.23),rgba(7,25,42,.72))!important;
    box-sizing:border-box!important;
  }

  /* Consultation log becomes readable timeline cards. */
  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-panel{
    margin-top:12px!important;
    padding:15px!important;
    border:1px solid rgba(83,223,175,.22)!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,rgba(9,55,48,.17),rgba(7,22,38,.76))!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-title{
    margin-bottom:11px!important;
    color:#8cecc9!important;
    font-size:13px!important;
    letter-spacing:-.01em!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(.memo-input-row,.memo-compose){
    gap:9px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody :is(.memo-input-row textarea,.memo-compose textarea){
    min-height:78px!important;
    padding:11px!important;
    resize:vertical!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-save-btn{
    min-width:74px!important;
    min-height:42px!important;
    border-color:rgba(83,223,175,.38)!important;
    border-radius:10px!important;
    background:rgba(21,112,86,.3)!important;
    color:#a5f3d5!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-list{
    gap:9px!important;
    margin-top:12px!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-item{
    display:grid!important;
    grid-template-columns:98px minmax(0,1fr) 54px!important;
    gap:12px!important;
    align-items:start!important;
    margin:0!important;
    padding:13px!important;
    border:1px solid rgba(133,177,215,.14)!important;
    border-radius:11px!important;
    background:rgba(7,21,37,.74)!important;
    font-size:13px!important;
    line-height:1.7!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-date{
    color:#f3d58c!important;
    font-size:11px!important;
    line-height:1.55!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-text{
    max-width:110ch!important;
    color:#e9f1fb!important;
    font-size:13px!important;
    line-height:1.72!important;
    overflow-wrap:anywhere!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-item.consultant .memo-text,
  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-item.consultant .history-author{
    color:#b8f3df!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-delete{
    min-width:48px!important;
    padding:6px!important;
    color:#ff98a6!important;
    text-align:right!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .memo-meta-hint{
    color:#889fb5!important;
    line-height:1.55!important;
  }

  @media(max-width:1250px){
    html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(2){grid-column:span 6!important}
    html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(3){grid-column:span 6!important}
    html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(4){grid-column:span 4!important}
    html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(5){grid-column:span 8!important}
    html[data-ceo-crm-premium] body #s149_managed_tbody>tr>td:nth-child(6){grid-column:span 12!important}
  }
}

/* CEO_SHIELD_PC_LIMIT_HEADING_S354
   Partner/direct and submaster/managed cards share one compact limit heading. */
@media(min-width:901px){
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) td[data-label="산출 한도"]::before{
    display:none!important;
    content:none!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-heading-s354{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:0 0 10px!important;
    padding:0 0 10px!important;
    border-bottom:1px solid rgba(133,177,215,.22)!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-heading-s354 span{
    color:#8ba4bd!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.35!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-heading-s354 strong{
    color:#f5cb6b!important;
    font-size:15px!important;
    font-weight:850!important;
    line-height:1.35!important;
    text-align:right!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-card-s314{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    align-self:start!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-guidance-s314{
    flex:0 0 auto!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html[data-ceo-crm-premium] body #s149_managed_tbody>tr{transition:none!important}
}

/* S351 read-only affordances and exact managed-card parity overrides. */
@media(min-width:901px){
  html[data-ceo-crm-premium] body #s149_managed_tbody .s351-readonly-action{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    cursor:default!important;
    user-select:none!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="산출 한도"]{
    overflow:hidden!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .s351-readonly-limit{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    align-self:start!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .s351-readonly-limit .limit-guidance-s314{
    flex:0 0 auto!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .s351-readonly-badge{
    display:inline-flex!important;
    align-items:center!important;
    min-height:36px!important;
    padding:8px 12px!important;
    border:1px solid rgba(84,215,255,.28)!important;
    border-radius:10px!important;
    background:rgba(8,72,98,.18)!important;
    color:#a6edff!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .s149-readonly-status .fund-status-select,
  html[data-ceo-crm-premium] body #s149_managed_tbody :is(input[readonly],select[aria-readonly="true"],button[disabled]){
    cursor:default!important;
  }
}

/* CEO_SHIELD_PC_LIMIT_GUIDANCE_S314 */
@media(min-width:901px){
  html[data-ceo-crm-premium] body #s149_managed_tbody td[data-label="산출 한도"]{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-card-s314{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    gap:12px;
    min-width:0;
    min-height:100%;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-primary-s314{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:45px;
    padding:11px 13px;
    border:1px solid rgba(133,177,215,.2);
    border-radius:11px;
    background:rgba(7,21,38,.72);
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-primary-s314 strong{
    color:#f6d47c!important;
    font-size:19px!important;
    font-weight:800!important;
    letter-spacing:-.025em;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-state-s314{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    padding:5px 8px;
    border:1px solid rgba(255,132,148,.3);
    border-radius:999px;
    background:rgba(112,29,47,.18);
    color:#ffadb8;
    font-size:10px;
    font-weight:800;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-state-s314.ready{
    border-color:rgba(83,223,175,.28);
    background:rgba(18,103,80,.18);
    color:#9df0d2;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-guidance-s314{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    padding:13px;
    border:1px solid rgba(133,177,215,.15);
    border-radius:12px;
    background:linear-gradient(145deg,rgba(13,34,56,.7),rgba(6,20,35,.7));
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-guidance-s314 h4{
    margin:0 0 6px;
    color:#eef7ff;
    font-size:13px;
    font-weight:800;
    letter-spacing:-.015em;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-guidance-s314 p{
    margin:0;
    color:#a8bdd1;
    font-size:12px;
    line-height:1.65;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-required-s314{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin:12px 0 0;
    padding:0;
    list-style:none;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-required-s314 li{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
    padding:8px 9px;
    border:1px solid rgba(133,177,215,.14);
    border-radius:9px;
    background:rgba(5,17,30,.5);
    color:#c6d5e4;
    font-size:11px;
    line-height:1.45;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-required-s314 li::before{
    content:'✓';
    color:#68d8ff;
    font-size:10px;
    font-weight:900;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-action-s314{
    width:100%;
    min-height:42px!important;
    margin-top:12px;
    padding:9px 12px;
    border:1px solid rgba(84,215,255,.4)!important;
    border-radius:10px!important;
    background:linear-gradient(135deg,rgba(15,119,163,.72),rgba(22,72,119,.88))!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-notice-s314{
    margin-top:9px!important;
    color:#8299af!important;
    font-size:10px!important;
    line-height:1.55!important;
  }
}

/* CEO_SHIELD_PC_LIMIT_STATE_ACCURACY_S315 */
@media(min-width:901px){
  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-state-s314.registered{
    border-color:rgba(84,215,255,.34);
    background:rgba(10,91,124,.2);
    color:#a6edff;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-result-s315{
    display:grid;
    gap:7px;
    margin:12px 0 0;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-result-s315>div{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:9px;
    padding:9px 10px;
    border:1px solid rgba(133,177,215,.14);
    border-radius:9px;
    background:rgba(5,17,30,.5);
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-result-s315 span{
    color:#7f9ab3;
    font-size:10px;
    font-weight:800;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-result-s315 strong{
    color:#d8e6f3;
    font-size:11px;
    font-weight:750;
    line-height:1.5;
  }
}

/* CEO_SHIELD_PC_LIMIT_STATUS_COLORS_S316 */
@media(min-width:901px){
  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-card-s314.state-missing-s316,
  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-card-s314.state-pending-s316,
  html[data-ceo-crm-premium] body #s149_managed_tbody .limit-card-s314.state-ready-s316{
    border-width:1px;
    border-style:solid;
    border-radius:12px;
    padding:12px;
    box-shadow:0 10px 28px rgba(0,0,0,.18);
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316{
    border-color:rgba(255,94,108,.58);
    background:linear-gradient(145deg,rgba(111,24,39,.25),rgba(13,29,46,.96));
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-primary-s314 strong,
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-guidance-s314 h4{
    color:#ff7b86!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-state-s314{
    border-color:rgba(255,94,108,.58)!important;
    background:rgba(255,72,91,.18)!important;
    color:#ffadb5!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-required-s314 li{
    border-color:rgba(255,94,108,.28)!important;
    background:rgba(94,20,32,.22)!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-required-s314 li::before{
    color:#ff7b86!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-action-s314{
    border-color:#ff6675!important;
    background:#a92e42!important;
    color:#fff!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316{
    border-color:rgba(245,184,68,.6);
    background:linear-gradient(145deg,rgba(108,72,15,.24),rgba(13,29,46,.96));
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-primary-s314 strong,
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-guidance-s314 h4{
    color:#ffd36e!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-state-s314{
    border-color:rgba(245,184,68,.55)!important;
    background:rgba(245,184,68,.15)!important;
    color:#ffe2a0!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-result-s315>div{
    border-color:rgba(245,184,68,.25)!important;
    background:rgba(94,63,12,.2)!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-result-s315>div:nth-child(2) strong{
    color:#ffd36e!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-action-s314{
    border-color:#e7ad3f!important;
    background:#8b6419!important;
    color:#fff8df!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316{
    border-color:rgba(55,214,157,.5);
    background:linear-gradient(145deg,rgba(10,94,68,.22),rgba(13,29,46,.96));
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316 .limit-state-s314,
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316 .limit-guidance-s314 h4{
    color:#71ebbc!important;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316 .limit-action-s314{
    border-color:#38c993!important;
    background:#117d5b!important;
    color:#fff!important;
  }

  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-primary-s314::before,
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-primary-s314::before,
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316 .limit-primary-s314::before{
    display:inline-grid;
    width:22px;
    height:22px;
    place-items:center;
    margin-right:8px;
    border-radius:50%;
    font-size:13px;
    font-weight:900;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-missing-s316 .limit-primary-s314::before{
    content:'!'; background:#d64055; color:#fff;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-pending-s316 .limit-primary-s314::before{
    content:'!'; background:#b77b19; color:#fff5d5;
  }
  html[data-ceo-crm-premium] body #s149_managed_tbody .state-ready-s316 .limit-primary-s314::before{
    content:'✓'; background:#168d67; color:#fff;
  }
}

/* S354 final sizing override: keep the result card immediately below its heading. */
@media(min-width:901px){
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-card-s314{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    align-self:start!important;
  }
  html[data-ceo-crm-premium] body :is(#client_tbody,#s149_managed_tbody) .limit-guidance-s314{
    flex:0 0 auto!important;
  }
}
