.gc-category-icon{display:inline-block;width:16px;height:16px;min-width:16px;flex:none;fill:currentColor;stroke:none;vertical-align:-3px;color:inherit;pointer-events:none}
.gc-category-caption{display:inline-flex;align-items:baseline;gap:6px;min-width:0;max-width:100%;vertical-align:baseline}.gc-category-caption>.gc-category-icon{align-self:center}.gc-category-text{min-width:0;overflow-wrap:anywhere}
.gc-category-selected{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;pointer-events:none;color:#628392;z-index:1}.gc-category-has-icon>.category-picker-input,.gc-category-has-icon>.category-picker-choice{padding-left:36px!important}
.category-picker-list:is(.gc-category-options,.gc-category-icon-options) .category-picker-option{display:flex;flex-direction:column;justify-content:center;min-height:44px;padding-top:12px;padding-bottom:12px;line-height:20px}.category-picker-list:is(.gc-category-options,.gc-category-icon-options) .category-picker-option.selected::after{top:50%;transform:translateY(-50%)}
.category-picker-name.gc-category-caption{display:flex;align-items:center;gap:8px}.category-picker-name .gc-category-text{line-height:20px}
.category-picker-name.gc-icon-choice-name{display:flex;align-items:center;gap:8px}.category-picker-name.gc-icon-choice-name>.gc-category-icon{flex:none}
.gc-category-bubble{stroke:none!important}.gc-category-sector-layer,.gc-category-sector-layer *{pointer-events:none!important}.gc-category-sector-layer .gc-category-icon{min-width:0;fill:inherit;color:inherit}.gc-category-sector-layer .is-dimmed{opacity:.3}
#app .gc-chart-legend .legend-item{padding:12px;gap:8px;min-height:44px;box-sizing:border-box}.cabinet-chart-preview .legend-item{padding:12px!important;gap:8px;min-height:44px;box-sizing:border-box}
#app .gc-chart-legend .legend-item,.cabinet-chart-preview .legend-item{grid-template-columns:20px minmax(0,1fr) auto}
#app .gc-chart-legend .legend-item>svg:has(circle),.cabinet-chart-preview .legend-item>svg:has(circle){width:20px!important;height:20px!important;flex:none}
#app .gc-chart-legend .legend-name,.cabinet-chart-preview .legend-name{min-width:0;flex:1;line-height:20px}
.cabinet-chart-preview .legend-origin>button:has(>svg>circle){grid-template-columns:20px minmax(0,1fr) auto}
.cabinet-chart-preview .legend-origin>button>svg:has(circle){width:20px;height:20px}
#app .category-branches{margin-left:8px;padding-left:0;border-left:0}.category-node{display:grid;grid-template-columns:10px 16px minmax(0,1fr) auto;column-gap:6px;min-height:44px}.category-node>*{grid-row:1}.category-node>.drag-handle{grid-column:1;justify-self:center}.category-node>.tree-toggle{grid-column:2}.category-node>.category-node-name{grid-column:3}.category-node>.category-actions{grid-column:4}.category-node.tree-leaf>.drag-handle{grid-column:2}.category-node .tree-toggle{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;min-width:16px;width:16px;height:28px}.tree-chevron{display:block;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.tree-toggle[aria-expanded=false] .tree-chevron{transform:rotate(-90deg)}.category-node.tree-leaf .tree-toggle{display:none}
.gc-category-setting{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0}.gc-category-setting>span:first-child{color:#627e8e;font-size:12px}.gc-category-setting>.button{margin-left:auto}
.gc-category-icon-editor{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d2e0e8;border-radius:12px;padding:24px;color:#173944;background:#fff}.gc-category-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.gc-category-editor-heading h2{font-size:18px;line-height:24px;margin:0;letter-spacing:0}.gc-category-editor-heading h2:focus{outline:none}.gc-category-editor-heading>.icon-button{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0}.gc-category-editor-preview{display:flex;align-items:center;gap:12px;min-height:48px;margin-bottom:20px}.gc-category-editor-preview>.gc-category-icon{width:28px;height:28px;min-width:28px}.gc-category-editor-message{font-size:12px;color:#627e8e;line-height:20px;margin:16px 0 20px;min-height:40px}.gc-category-editor-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}.gc-category-editor-actions>.text-button{margin-right:auto;min-height:44px}.gc-category-icon-editor input{height:44px}
.fp-record>.gc-category-caption{align-items:center}.fp-record>.gc-category-caption>.gc-category-text{min-width:0}.fp-record .gc-category-icon{color:#628392}#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-title{align-items:baseline}#family-planning-card .fp-detail.gc-category-plan-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}#family-planning-card .fp-detail.gc-category-plan-detail .gc-plan-fact dt{font-size:11px;line-height:18px;margin:0 0 4px}#family-planning-card .fp-detail.gc-category-plan-detail .gc-plan-fact dd{margin:0;line-height:20px}#family-planning-card .fp-detail.gc-category-plan-detail .gc-plan-fact{min-width:0}#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-header{margin-bottom:16px}
@media(max-width:700px){.gc-category-icon-editor{padding:16px;width:calc(100vw - 16px)}.gc-category-editor-heading h2{font-size:16px}.gc-category-editor-actions{display:grid;grid-template-columns:1fr 1fr}.gc-category-editor-actions>.text-button{grid-column:1/-1;margin:0;justify-self:start}.category-node-name .gc-category-icon{width:14px;height:14px;min-width:14px}#family-planning-card .fp-detail.gc-category-plan-detail dl{gap:12px}}
@media(prefers-reduced-motion:reduce){.tree-chevron{transition:none}}
#family-planning-card .fp-detail.gc-category-plan-detail{border:1px solid #dbe7eb;border-radius:12px;padding:16px;margin-top:8px}
#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:start}
#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-title :is(h3,strong){font-size:13px;line-height:20px}
#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-title h3>.gc-category-icon{color:#628392}
#family-planning-card .fp-detail.gc-category-plan-detail .gc-plan-date{grid-column:1/-1;margin:0;color:#627e8e;font-size:11px;line-height:18px}
@media(max-width:700px){#family-planning-card .fp-detail.gc-category-plan-detail{padding:12px}#family-planning-card .fp-detail.gc-category-plan-detail .fp-detail-title{column-gap:8px}}

.gc-category-setting>.button,.gc-category-editor-actions>.button{min-height:44px}

/* Bounded chart rows keep their 52px paging step after icon decoration. */
.cabinet-chart-preview[data-bounded-list] #chart-legend{gap:0!important}
.cabinet-chart-preview[data-bounded-list] #chart-legend>.legend-item{padding-block:6px!important;grid-template-columns:20px minmax(0,1fr) auto!important;column-gap:8px!important}
.cabinet-chart-preview[data-bounded-list] .hierarchy-row-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:20px;max-height:40px}
.cabinet-chart-preview[data-bounded-list] .legend-name:has(.period-category-parent) .hierarchy-row-name{-webkit-line-clamp:1;max-height:20px}
