.panel.term-panel{overflow:hidden;padding:0}.term-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--border,#dce1e8)}.term-toolbar label{display:grid;gap:6px;font-size:13px;color:var(--muted,#64748b)}.term-toolbar select{min-width:230px}.term-readonly{font-size:13px;color:var(--muted,#64748b)}.term-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px}.term-card{border:1px solid var(--border,#dce1e8);border-radius:12px;padding:18px;min-width:0;display:flex;flex-direction:column}.term-card-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.term-kicker{font-size:12px;color:var(--muted,#64748b)}.term-card h2{font-size:17px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.term-card-head .status{flex:none}.term-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:18px 0}.term-facts dt{font-size:12px;color:var(--muted,#64748b);margin-bottom:5px}.term-facts dd{font-size:14px;font-weight:600;margin:0;font-variant-numeric:tabular-nums}.term-facts div:first-child{grid-column:1/-1}.term-facts small{font-size:12px;font-weight:400}.term-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--border,#dce1e8);padding-top:12px;margin-top:auto}.term-card-foot span,.term-empty p{font-size:12px;color:var(--muted,#64748b)}.term-empty{align-items:start;background:var(--surface-subtle,#f9fafc);justify-content:center}.term-empty button{margin-top:8px}.term-finance{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px;border-top:1px solid var(--border,#dce1e8);background:var(--surface-subtle,#f9fafc)}.term-finance h2{font-size:15px;margin:0 0 6px}.term-finance p,.term-finance span{display:block;font-size:12px;color:var(--muted,#64748b);margin:0;line-height:1.7}.term-finance b{font-size:14px}.term-dialog{max-width:600px}.term-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.term-form label{display:grid;gap:7px;font-size:13px}.term-wide{grid-column:1/-1}.term-form input,.term-form select{width:100%;min-width:0}.term-form p{margin:0}.term-dialog button:disabled{cursor:wait}@media(max-width:750px){.term-list{grid-template-columns:1fr;padding:14px}.term-toolbar{padding:14px;flex-wrap:wrap}.term-toolbar label{flex:1}.term-toolbar select{min-width:0;width:100%}.term-finance{grid-template-columns:1fr;gap:12px;padding:14px}}@media(max-width:420px){.term-form{grid-template-columns:1fr}.term-wide{grid-column:auto}.term-card-foot{align-items:start}.term-toolbar .primary{white-space:nowrap}.term-card-head{flex-wrap:wrap}}

.term-card-foot{flex-wrap:wrap}.term-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.term-card-actions button{font-size:12px;padding:7px 9px;min-height:34px}.term-lifecycle{display:grid;gap:16px}.term-lifecycle label{display:grid;gap:7px;font-size:13px}.term-lifecycle .term-inherit{display:flex;align-items:start;gap:8px;line-height:1.6}.term-inherit input{flex:none;width:16px;height:16px;margin-top:3px}.term-check-state{padding:14px;background:var(--surface-subtle,#f8fafc);border:1px solid var(--border,#dce1e8);border-radius:9px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.term-check-state span{display:block;color:var(--muted,#64748b)}.term-check-state ul{margin:6px 0 0;padding-left:18px}.term-ok{color:#27614d}.term-archive-head,.term-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.term-archive-list{margin:14px 0}.term-archive-list>div{display:grid;grid-template-columns:30px 1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid var(--border,#dce1e8);align-items:center}.term-archive-list small{display:block;font-size:12px;color:var(--muted,#64748b);font-weight:400}.term-archive-list strong{text-align:right;font-size:14px}.term-lifecycle [hidden]{display:none}@media(max-width:600px){.term-card-actions{margin-left:0;width:100%}.term-card-foot{gap:12px}.term-archive-head{align-items:start;flex-direction:column}}

.term-card-foot{display:block}.term-card-actions{margin:10px 0 0}.term-card-actions button{white-space:nowrap}
.term-history-dialog{width:min(820px,calc(100vw - 28px));max-width:820px}.term-history-heading,.term-history-tools,.term-history-adjust-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.term-history-heading span,.term-history-tools span{font-size:12px;color:var(--muted)}.term-history-tools label{display:flex;align-items:center;gap:8px;font-size:13px}.term-history-rows{display:grid;gap:0}.term-history-rows>button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;background:transparent}.term-history-rows small,.term-history-targets small{display:block;color:var(--muted);font-size:12px;font-weight:400}.term-history-rows>button>div{min-width:0}.term-history-rows small{overflow-wrap:anywhere;margin-top:4px}.term-history-rows>button>span{font-size:12px;white-space:nowrap}.term-history-empty{padding:22px 0;text-align:center;color:var(--muted)}.term-history-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.term-history-compare section{padding:14px;border:1px solid var(--line);border-radius:8px;min-width:0}.term-history-compare h3{margin-bottom:12px}.term-history-compare section>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;margin-top:8px;font-size:13px}.term-history-compare section span{color:var(--muted)}.term-history-compare b{font-weight:500;overflow-wrap:anywhere}.term-history-adjust-head{margin:18px 0 8px}.term-history-adjust-head label{display:flex;align-items:center;gap:8px;font-size:12px}.term-history-adjust-head input{width:90px}.term-history-targets{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin:12px 0}.term-history-targets>div{display:grid;grid-template-columns:minmax(90px,1fr) minmax(100px,1fr) 100px;gap:12px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}.term-history-targets>div:last-child{border-bottom:0}.term-history-targets input{width:100%;min-width:0}.term-history-target-labels{color:var(--muted);background:var(--bg);font-size:12px!important}.term-history-note{display:grid;gap:7px;font-size:13px}.term-history-note textarea{width:100%;resize:vertical}.term-history-confirm{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:12px}.term-history-confirm input{width:16px;min-height:16px;flex:none}.term-history-dialog .soft-note{font-size:12px;line-height:1.7;margin:10px 0}.term-history-original{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}@media(max-width:600px){.term-history-compare{grid-template-columns:1fr}.term-history-targets>div{grid-template-columns:minmax(65px,1fr) minmax(86px,1fr) 75px;gap:8px;padding:8px}.term-history-dialog .dialog-actions{flex-wrap:wrap}.term-history-adjust-head{flex-wrap:wrap}.term-history-compare section>div{grid-template-columns:76px minmax(0,1fr)}}
.term-history-ledger{margin:12px 0;font-size:12px}.term-history-ledger summary{cursor:pointer;color:var(--muted)}.term-history-ledger>div{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}.term-history-ledger b{white-space:nowrap}

.term-history-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.term-history-dialog .dialog-head,.term-history-dialog .dialog-footer{flex:none}.term-history-dialog .dialog-body{min-height:0;overflow:auto;gap:12px}.term-history-dialog .term-history-heading,.term-history-dialog .term-history-compare,.term-history-dialog .soft-note{margin:0}.term-history-dialog .term-history-adjust-head{margin:12px 0 8px}.term-history-dialog .term-history-confirm{display:flex;align-items:center;gap:8px;color:var(--text)}.term-history-confirm input{margin:0;accent-color:var(--accent)}.term-history-note textarea{font:inherit;min-height:64px;padding:9px 10px;border:1px solid var(--line);border-radius:7px;color:var(--text)}.term-history-dialog .term-history-tools label,.term-history-dialog .term-history-adjust-head label{display:flex;align-items:center}.term-history-dialog .dialog-footer{flex-wrap:wrap}

.term-manual-search{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:end;gap:10px}.term-manual-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.term-manual-form .term-wide{grid-column:1/-1}.term-manual-form textarea{font:inherit;min-height:64px;border:1px solid var(--line);border-radius:7px;padding:9px 10px;width:100%}.term-manual-form input[type=checkbox]{margin:0;accent-color:var(--accent)}@media(max-width:600px){.term-manual-search{grid-template-columns:minmax(0,1fr) auto}.term-manual-search>label:first-child{grid-column:1/-1}.term-manual-form{grid-template-columns:1fr}}

.term-manual-three{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.term-manual-three{grid-template-columns:1fr}}
.term-history-rows small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
