.portable-card,.portable-history{min-width:0}
.portable-card .card-head,.portable-history .card-head{gap:12px;flex-wrap:wrap}
.portable-form-layout>summary{cursor:pointer;list-style-position:inside;font-weight:600;padding:8px 0 16px}
.portable-form-layout>summary small{margin-left:10px;font-weight:400;color:var(--muted,#70849a)}
.portable-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px}
.portable-columns>section{min-width:0;padding:16px;border:1px solid var(--line,#d6dde6);border-radius:8px}
.portable-columns h3{margin:0 0 12px}
.portable-columns label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:12px;line-height:1.5;position:static}
.portable-columns input:not([type=checkbox]),.portable-columns textarea,.portable-columns select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0;position:static}
.portable-columns input[type=file]{font-size:12px;padding:9px}
.portable-card button{max-width:100%;white-space:normal}
.portable-preview{margin-top:16px;padding:14px;border:1px solid var(--line,#d6dde6);border-radius:8px}
.portable-preview h3{font-size:15px}
.portable-preview strong,.portable-detail-hash{overflow-wrap:anywhere}
.portable-preview pre,.portable-log{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.portable-preview .inline-check{display:flex;flex-direction:row;gap:9px;align-items:flex-start;margin:15px 0}
.portable-current-export{display:grid;gap:8px;margin-top:14px;padding:10px;border:1px solid var(--line,#d6dde6);border-radius:6px}
.portable-record-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.portable-record-actions .btn{font-size:11px;line-height:1.4;padding:6px 9px;white-space:normal}
.portable-history-tabs{display:flex;gap:6px;padding:12px 18px 0;border-bottom:1px solid var(--line,#d6dde6)}
.portable-history-tabs button{appearance:none;border:0;border-bottom:2px solid transparent;background:none;color:inherit;cursor:pointer;padding:10px 14px;font:inherit;font-size:13px}
.portable-history-tabs button[aria-selected=true]{border-bottom-color:var(--accent,#18bddb);font-weight:700}
.portable-history-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:16px 18px}
.portable-history-filters label{display:flex;flex-direction:column;gap:7px;position:static;margin:0;min-width:130px;flex:0 1 160px}
.portable-history-filters .portable-history-search{flex:1 1 220px}
.portable-history-filters label>span{position:static;transform:none;font-size:11px;color:inherit}
.portable-history-filters input,.portable-history-filters select{margin:0;box-sizing:border-box;min-width:0;width:100%;position:static}
.portable-history-filters>.btn{min-height:38px}
.portable-history-head,.portable-record-row{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(140px,.85fr) minmax(85px,.55fr) minmax(180px,1.2fr);align-items:center;gap:14px;padding:12px 18px}
.portable-history-head{font-size:10px;color:var(--muted,#70849a);border-block:1px solid var(--line,#d6dde6)}
.portable-history-list{max-height:520px;overflow:auto;overscroll-behavior:contain}
.portable-record-row{border-bottom:1px solid var(--line,#d6dde6);font-size:12px;min-height:70px}
.portable-record-row:last-child{border-bottom:0}
.portable-record-main{min-width:0;display:grid;gap:4px}
.portable-record-main strong,.portable-record-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portable-record-main small{font-size:10px;color:var(--muted,#70849a)}
.portable-record-main small.error{color:var(--danger,#c94949)}
.portable-record-row time{font-size:11px;overflow-wrap:anywhere}
.portable-record-row>.tag{justify-self:start;font-size:10px;white-space:normal}
.portable-history-pagination{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:13px 18px;border-top:1px solid var(--line,#d6dde6);font-size:11px}
.portable-history-pagination label{display:flex;align-items:center;gap:7px;margin:0;position:static}
.portable-history-pagination select{width:65px;height:32px;margin:0;padding:3px 7px}
.portable-history-pagination>div{display:flex;gap:7px}
.portable-history-empty{padding:24px 18px;font-size:12px}
.portable-detail .portable-record-actions{margin:16px 0}
.portable-detail details>summary{cursor:pointer;font-size:12px;padding:8px 0}
.portable-detail-hash{font-size:12px}
@media(max-width:800px){
 .portable-columns{grid-template-columns:minmax(0,1fr);gap:14px}
 .portable-columns>section{padding:13px}
 .portable-card .card-body{padding:15px}
 .portable-history-tabs{padding-inline:12px}
 .portable-history-filters{gap:10px;padding:14px 12px}
 .portable-history-filters .portable-history-search{flex-basis:100%}
 .portable-history-filters label{flex:1 1 120px;min-width:0}
 .portable-history-filters>.btn{flex:1 1 100%;min-height:34px}
 .portable-history-head{display:none}
 .portable-record-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 12px}
 .portable-record-main{grid-column:1;grid-row:1}
 .portable-record-row>.tag{grid-column:2;grid-row:1}
 .portable-record-row>time,.portable-record-actions{grid-column:1/-1}
 .portable-history-list{max-height:480px}
 .portable-history-pagination{padding:12px;gap:12px}
 .portable-history-pagination>span{flex-basis:100%}
}
