/* Shared detail/form rhythm. Existing row-density and personal geometry remain. */
.nf-link.c533-link{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:5px;max-width:100%;min-width:0;vertical-align:middle;line-height:1.3}
.c533-link>.c533-link-name{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.c533-link>svg{flex:0 0 13px;width:13px;height:13px}
.c533-type{font-size:10px;color:#486778;flex:0 0 auto;padding:1px 4px;background:#edf3f5;border-radius:4px}
.c533-ambiguous{font-size:11px;color:#874f11;background:#fff2dc;padding:2px 5px;border-radius:4px;display:inline-block}
.nf-detail-field .c533-link-name,.r522-expanded .c533-link-name{white-space:normal;overflow-wrap:anywhere}
.c533-child-identity{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
.c533-facts{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px!important;color:#526a78}
.c533-facts>span:not([aria-hidden]){max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.f517-drawer>.modal-header{padding:10px 18px;min-height:62px}
#modal.f517-drawer .modal-header h2{font-size:21px;line-height:1.2}
#modal.f517-drawer .modal-header small{margin-top:3px;font-size:11px}
#modal.f517-drawer>.modal-body{padding:14px 18px;scroll-padding-block:12px}
#modal.f517-drawer>.modal-footer{padding:10px 18px calc(10px + env(safe-area-inset-bottom));gap:8px}
#modal.f517-drawer .nf-tabs{top:-14px;padding:4px 0;margin-bottom:10px;gap:4px}
#modal.f517-drawer .nf-tabs>button{font-size:12px;padding:6px 10px}
#modal.f517-drawer .nf-form-grid,#modal.f517-drawer .c12-grid,#modal.f517-drawer .rec49-grid{gap:10px 12px;min-width:0}
#modal.f517-drawer .nf-field>span{font-size:12px;line-height:1.35;margin-bottom:4px}
#modal.f517-drawer .nf-field>small{margin-top:3px;font-size:11px;line-height:1.3}
#modal.f517-drawer .nf-field{min-width:0}
#modal.f517-drawer .nf-relation{padding:7px 9px;gap:7px}
#modal.f517-drawer .nf-relation>span:not(.c533-child-identity){overflow-wrap:anywhere}
#modal.f517-drawer .f517-context{margin-bottom:12px;padding:8px 11px;border-radius:8px}
#modal.f517-drawer .f517-context small{font-size:10px;letter-spacing:.025em}
#modal.f517-drawer .f517-context b{font-size:14px;margin-top:2px}
#modal.f517-drawer .f517-context span{font-size:12px;margin-top:2px}
#modal.f517-drawer .f517-details{margin-top:12px}
#modal.f517-drawer .f517-details>summary{padding:10px 0;font-size:12px;min-height:38px}
#modal.f517-drawer .f517-development{margin:8px 0 0;padding-top:4px;font-size:11px}
#modal.f517-drawer .nf-detail-grid{gap:8px}
#modal.f517-drawer .nf-detail-field{padding:8px 10px;min-width:0;border-radius:8px}
#modal.f517-drawer .nf-detail-field small,#modal.f517-drawer .nf-detail-field .l58-content>small{font-size:11px;line-height:1.3;display:block;margin:0 0 4px;color:#526a78}
#modal.f517-drawer .nf-detail-field .l58-content>div{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
#modal.f517-drawer .l58-grid{gap:8px}
#modal.f517-drawer .nf-detail-head{font-size:11px;padding-bottom:5px}
#modal.f517-drawer .nf-related{margin:4px 0;min-width:0;gap:10px;align-items:center}
#modal.f517-drawer .nf-plan{padding:12px;margin:10px 0}
#modal.f517-drawer .fx19-detail{padding:10px 12px;margin:0 0 12px}
#modal.f517-drawer .fx19-detail-grid{gap:8px}
#modal.f517-drawer .nf-lines{margin-top:12px}
#modal.f517-drawer .nf-lines h3{margin:6px 0;font-size:15px}
#modal.f517-drawer .nf-lines>p{margin:6px 0;font-size:12px}
.fl26-connection-rule{background:#eef5f6;border:1px solid #cbdee3;padding:6px 8px;text-align:left;border-radius:6px;font:inherit;font-size:11px;color:#294d5c;cursor:pointer;margin:2px 0 8px}
#fl26-dialog .fl26-header>p{font-size:12px;line-height:1.4;margin:4px 0}
#fl26-dialog .fl26-header{padding:14px 16px}
#fl26-dialog .fl26-header .btn{margin:6px 0}
#fl26-dialog .fl26-item{padding:10px;margin-bottom:8px}
#fl26-dialog .fl26-item-head{gap:6px}
#c533-rules{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d3dfe5;border-radius:16px;color:#173546;background:white;overflow:hidden;box-shadow:0 15px 50px #17354633}
#c533-rules[open]{display:flex;flex-direction:column}
#c533-rules[open]::backdrop{background:#16334540}
#c533-rules header{padding:16px 20px;border-bottom:1px solid #dce6eb;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
#c533-rules h2{font-size:19px;line-height:1.25;margin:0}
#c533-rules header p{font-size:12px;color:#546c7b;margin:4px 0 0}
.c533-rules-body{padding:14px 20px;overflow:auto;overscroll-behavior:contain;min-height:0}
.c533-policy-note{font-size:12px;line-height:1.5;background:#f3f7f9;padding:10px 12px;margin:0 0 12px;border-radius:8px}
.c533-rule{border:1px solid #dce5e9;border-radius:9px;display:grid;grid-template-columns:1fr auto;gap:5px 16px;padding:11px 12px;margin-bottom:8px;align-items:center}
.c533-rule>div{grid-row:span 2;min-width:0}
.c533-rule b{font-size:13px;line-height:1.4}
.c533-rule small{font-size:11px;display:block;color:#526f7f;margin-top:3px}
.c533-rule p{font-size:11px;line-height:1.45;color:#617281;margin:5px 0 0}
#c533-rules label{font-size:12px;line-height:1.5}
.c533-rule>label{display:flex;align-items:center;gap:7px}
.c533-rule-mode{font-size:11px;text-align:right;color:#536b79}
#c533-rules input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}
#c533-rules textarea{display:block;width:100%;min-height:70px;margin:5px 0 10px;box-sizing:border-box;font-size:14px;resize:vertical}
.c533-confirm{display:flex;align-items:flex-start;gap:8px;margin-top:8px}
#c533-rules footer{padding:12px 20px;border-top:1px solid #dce5e9;flex-shrink:0}
#c533-rules footer p{font-size:12px;line-height:1.5;margin:0 0 8px;min-height:18px;overflow-wrap:anywhere}
#c533-rules footer>div{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#c533-rules :focus-visible{outline:3px solid #347a92;outline-offset:2px}
@media (min-width:701px) and (pointer:fine){
 #modal.f517-drawer .btn,#modal.f517-drawer .icon-btn,#nf-picker.f517-picker button{min-height:34px}
 #modal.f517-drawer .icon-btn{min-width:34px}
 #modal.f517-drawer input:not([type=checkbox]):not([type=file]),#modal.f517-drawer select{min-height:36px;padding:6px 9px;font-size:14px}
 #modal.f517-drawer textarea{min-height:70px;font-size:14px;padding:8px 10px}
 #modal.f517-drawer .nf-relation{min-height:36px}
 #modal.f517-drawer .nf-tabs>button{min-height:34px}
 #modal.f517-drawer .f517-options>summary{min-width:34px;min-height:34px;padding:6px 9px}
 #nf-picker.f517-picker>header{padding:12px 18px}
 #nf-picker.f517-picker>header h3{font-size:18px}
 #nf-picker.f517-picker>.nf-picker-body{padding:12px 18px}
 #nf-picker.f517-picker .nf-pick-item{min-height:48px;margin:4px 0;padding:8px 10px}
 #nf-picker.f517-picker>footer{padding:10px 18px}
 #modal.f517-drawer .nf-related{min-height:44px;padding:8px 10px}
}
@media (max-width:700px),(pointer:coarse){
 #modal.f517-drawer>.modal-header{padding:10px 14px;min-height:64px}
 #modal.f517-drawer>.modal-body{padding:12px 14px}
 #modal.f517-drawer>.modal-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
 #modal.f517-drawer .nf-tabs{top:-12px}
 #modal.f517-drawer .nf-form-grid,#modal.f517-drawer .c12-grid,#modal.f517-drawer .rec49-grid{gap:12px}
 #modal.f517-drawer .btn,#modal.f517-drawer .icon-btn,#modal.f517-drawer .nf-relation,#modal.f517-drawer .f517-details>summary{min-height:44px}
 #modal.f517-drawer .icon-btn{min-width:44px}
 #modal.f517-drawer input:not([type=checkbox]),#modal.f517-drawer select,#modal.f517-drawer textarea{font-size:16px}
 #c533-rules{inset:0;margin:0;width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 #c533-rules header{padding:12px 14px calc(10px + env(safe-area-inset-top))}
 .c533-rules-body{padding:12px 14px}
 .c533-rule{grid-template-columns:1fr;gap:8px}
 .c533-rule>div{grid-row:auto}
 .c533-rule>label{min-height:44px}
 .c533-rule-mode{text-align:left}
 #c533-rules .btn,#c533-rules .icon-btn{min-height:44px;min-width:44px}
 #c533-rules textarea{font-size:16px}
 #c533-rules footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
 .c533-type{display:none}
}
@media(prefers-reduced-motion:reduce){#c533-rules *,#modal .c533-link{scroll-behavior:auto!important;transition:none!important}}

/* Fields folded by auto-fit remain available locally; explicitly hidden columns do not. */
.c533-collapsed-values{display:none}
html[data-x520-density] .r522-expanded .r522-cell .c533-collapsed-values{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #dce5e9;min-width:0}
.c533-collapsed-values>div{min-width:0}
html[data-x520-density] .c533-collapsed-values small{font-size:10px;color:#536b79;margin:0 0 3px!important}
html[data-x520-density] .c533-collapsed-values .c533-compact-value{font-size:12px;white-space:normal;overflow-wrap:anywhere}
html[data-x520-density] .c533-collapsed-values .nf-link{width:100%;justify-content:flex-start}

html[data-x520-density] .r522-cell .nf-link.c533-link{flex-wrap:nowrap;align-items:center}
html[data-x520-density] .r522-cell .nf-link.c533-link>.c533-link-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-x520-density] .r522-expanded .r522-cell .nf-link.c533-link>.c533-link-name{white-space:normal;overflow:visible;overflow-wrap:anywhere}

#c533-rules [hidden]{display:none!important}
