.sop-dialog{box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #b9d5e5;border-radius:16px;background:#fff;color:#17394f;overflow:hidden;box-shadow:0 24px 80px #001b3b66}
.sop-dialog::backdrop{background:#001a36aa}.sop-dialog *{box-sizing:border-box}.sop-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px;background:#082d50;color:#fff}.sop-header p{margin:0 0 8px;font-size:12px;letter-spacing:.06em;color:#bfdeed}.sop-header h2{margin:0;font-size:24px;color:#fff}.sop-header button{flex-shrink:0;min-height:44px;border-radius:10px;background:#dff2fb;color:#123b59;padding:10px 16px}.sop-body{padding:24px 26px;overflow:auto;max-height:calc(100dvh - 160px);line-height:1.55}.sop-body h3{margin:0 0 12px;font-size:18px;color:#123b59}.sop-owner{margin:0 0 22px;padding:14px 16px;background:#eef7fc;border-radius:12px}.sop-steps{padding:0;margin:0 0 24px;list-style:none;counter-reset:sop;display:grid;gap:12px}.sop-steps li{counter-increment:sop;display:flex;align-items:flex-start;gap:12px;padding:14px;background:#f4f8fb;border:1px solid #dce8ef;border-radius:12px}.sop-steps li:before{content:counter(sop);display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:10px;background:#0b5b88;color:#fff;font-weight:700}.sop-example-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}.sop-example-grid>section{padding:20px;border:1px solid #d8e6ef;border-radius:14px}.sop-customer-example{background:linear-gradient(145deg,#074573,#082d50);color:#fff}.sop-customer-example h3{font-size:28px;color:#fff}.sop-customer-example svg{float:right;width:84px;height:84px;margin:4px}.sop-fields{margin:0;display:grid;gap:10px}.sop-fields div{padding:10px 12px;border:1px solid #beddea;border-radius:10px;background:#e3f3fb}.sop-fields dt{font-size:13px}.sop-fields dd{margin:3px 0 0;font-weight:700}.sop-calculation,.sop-check{margin:20px 0;padding:18px;border-radius:12px;background:#eef7fc}.sop-calculation p,.sop-check p{margin:8px 0}.sop-problem{padding:16px;border:1px solid #d8e6ef;border-radius:12px}.sop-problem summary{cursor:pointer;font-weight:700;min-height:30px}.sop-problem p{margin:12px 0 0}.sop-note{font-size:13px;margin:20px 0 0;color:#506b7e}.sop-header button:focus-visible,.sop-problem summary:focus-visible{outline:3px solid #68bedb;outline-offset:3px}
@media(max-width:650px){.sop-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.sop-header{padding:16px;gap:10px}.sop-header h2{font-size:20px}.sop-body{padding:18px 16px}.sop-example-grid{grid-template-columns:1fr}.sop-customer-example h3{font-size:25px}}

/* Visual, read-only Finance guidance: same product palette, no fake inputs. */
.sop-finance-visual{margin:0 0 28px;min-width:0}.sop-finance-flow{list-style:none;display:flex;gap:24px;margin:0 0 20px;padding:0}.sop-finance-flow li{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:7px;padding:15px 12px;border:1px solid #beddea;border-radius:12px;background:#eef7fc}.sop-finance-flow li:not(:last-child):after{content:'→';position:absolute;right:-23px;top:48%;color:#0b5b88;font-size:20px;font-weight:700}.sop-flow-number{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#0b5b88;color:#fff;font-weight:700}.sop-flow-owner{font-size:12px;font-weight:700;color:#0b5b88}.sop-finance-flow strong{font-size:15px}.sop-finance-flow small{font-size:13px;line-height:1.5}.sop-live-state{margin:16px 0;padding:15px 16px;border-left:4px solid #0b5b88;border-radius:8px;background:#e3f3fb}.sop-live-state strong{font-size:13px}.sop-live-state p{margin:6px 0 0}.sop-finance-example{margin:20px 0;padding:18px;border:1px solid #beddea;border-radius:12px;background:#f4f8fb}.sop-finance-example figcaption{font-size:12px;font-weight:700;letter-spacing:.04em;margin-bottom:14px;color:#0b5b88}.sop-demo-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.sop-demo-field{padding:13px;border:1px solid #c8d9e3;border-radius:10px;background:#edf1f5;min-width:0}.sop-demo-field.input{background:#e1f3fc;border-color:#9acde4}.sop-demo-field.source{background:#fff}.sop-demo-field dt{font-size:13px}.sop-demo-field dd{font-size:17px;font-weight:700;line-height:1.4;margin:6px 0}.sop-demo-field small{font-size:11px;font-weight:700;color:#415f73}.sop-demo-result{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px;background:#082d50;color:#fff;border-radius:10px;margin:14px 0}.sop-demo-result strong{font-size:22px;white-space:nowrap}.sop-finance-example>small{display:block;font-size:13px;line-height:1.5}.sop-payment-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.sop-payment-choice>div{padding:12px;border:1px solid #beddea;border-radius:10px;background:#fff}.sop-payment-choice b,.sop-payment-choice span{display:block}.sop-payment-choice span{margin-top:7px;font-size:14px}.sop-linked-fields{display:grid;gap:12px;margin:12px 0 22px}.sop-field-map{padding:14px;border:1px solid #d8e6ef;border-radius:12px;min-width:0}.sop-field-map summary{cursor:pointer;min-height:44px;line-height:1.7}.sop-field-map summary strong{font-size:15px}.sop-field-state{display:inline-block;margin:0 8px 5px 0;padding:3px 7px;border-radius:6px;font-size:11px;font-weight:700;vertical-align:middle}.sop-field-state.locked{background:#edf1f5;color:#415367}.sop-field-state.editable{background:#e1f3fc;color:#0b5b88}.sop-source-link{display:flex;align-items:center;gap:12px;margin:12px 0}.sop-source-link span{padding:10px;background:#eef7fc;border-radius:8px;flex:1 1 0;min-width:0;font-size:13px;font-weight:700}.sop-source-link b{color:#0b5b88}.sop-field-map p{margin:10px 0 0;font-size:14px}.sop-correction{padding:12px;border-left:3px solid #0b5b88;background:#f4f8fb}.sop-field-legend{font-size:13px;color:#415f73}.sop-finance-visual :is(strong,dd,dt,p,small,span){overflow-wrap:anywhere}.sop-field-map summary:focus-visible{outline:3px solid #68bedb;outline-offset:3px}
@media(max-width:760px){.sop-finance-flow{flex-direction:column;gap:22px}.sop-finance-flow li{padding-left:54px;min-height:88px}.sop-flow-number{position:absolute;left:12px;top:14px}.sop-finance-flow li:not(:last-child):after{content:'↓';right:auto;left:calc(50% - 7px);top:auto;bottom:-23px}.sop-demo-form{grid-template-columns:1fr}.sop-demo-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px}.sop-demo-field dd{font-size:16px;margin:0;grid-column:2;grid-row:1/3}.sop-demo-field small{margin-top:6px}.sop-demo-result{align-items:flex-start;flex-direction:column}.sop-demo-result strong{font-size:21px}.sop-payment-choice{grid-template-columns:1fr}.sop-source-link{gap:8px}.sop-source-link span{padding:9px}.sop-finance-example{padding:14px}}
