.tp-toolbar { display:flex; justify-content:flex-end; padding:8px 14px; gap:8px; }
.tp-toolbar.tp-toolbar-inline { display:inline-flex; flex:0 0 auto; align-items:center; padding:0; margin:0; }
.panel-head > .tp-toolbar.tp-toolbar-inline,.tp-title-row > .tp-toolbar.tp-toolbar-inline,.ops-integration-section-heading > .tp-toolbar.tp-toolbar-inline { margin-inline-start:auto; }
.tp-toolbar[hidden] { display:none; }
.panel-head:has(> .tp-toolbar-inline) { flex-wrap:nowrap; }
.panel-head:has(> .tp-toolbar-inline) > div:first-child:not(.tp-toolbar) { flex:1 1 auto; min-width:0; }
.panel-head:has(> .tp-toolbar-inline) > .export-trigger { margin-left:0; }
.tp-title-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; min-width:0; }
.tp-title-row > :is(h2,h3,h4) { min-width:0; margin:0; overflow-wrap:anywhere; }
.ops-card > .tp-title-row > h2 { font-size:1.08rem; line-height:1.3; }
.tp-dialog { width:min(640px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:auto; box-sizing:border-box; border:1px solid #cbdcc6; border-radius:18px; padding:20px; background:#fff; color:#20362a; overflow:auto; box-shadow:0 20px 60px #10281d33; }
.tp-dialog::backdrop { background:#10281d70; }
.tp-reset-control {display:grid;gap:12px;padding-top:20px;margin-top:22px;border-top:1px solid var(--border,#dce4db);min-width:0}
.tp-reset-control h3,.tp-reset-control p {margin:0}
.tp-reset-control p {font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}
.tp-reset-control > .button {justify-self:start;max-width:100%;white-space:normal}
.tp-reset-confirm {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.tp-reset-confirm > p {flex-basis:100%}
.tp-reset-confirm:empty,.tp-reset-control .tp-status:empty {display:none}
.tp-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tp-head h2 { font-size:1.15rem; margin:0; }
.tp-hint { font-size:.82rem; line-height:1.6; color:#5b6f60; margin:12px 0 18px; }
.tp-list { display:grid; gap:10px; }
.tp-column { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"name width moves"; gap:8px 14px; align-items:center; border:1px solid #dce6d8; border-radius:10px; padding:12px; }
.tp-column .tp-visible { grid-area:name; display:flex; align-items:center; gap:9px; min-width:0; margin:0; padding:0; font-size:.84rem; line-height:1.5; }
.tp-visible span { overflow-wrap:anywhere; }
.tp-visible input { width:18px; height:18px; flex:0 0 18px; margin:0; }
.tp-dialog input[type="checkbox"]:not(:disabled) { accent-color:#548444; }
.tp-column .tp-width { grid-area:width; display:flex; align-items:center; justify-content:flex-end; gap:10px; min-width:0; margin:0; padding:0; font-size:.7rem; line-height:1.4; }
.tp-width span { white-space:nowrap; }
.tp-width input { width:90px; min-width:0; min-height:36px; box-sizing:border-box; margin:0; padding:6px 9px; border:1px solid #cbdac7; border-radius:8px; font:inherit; font-size:.85rem; }
.tp-column .tp-moves { grid-area:moves; display:flex; align-items:center; align-self:center; gap:6px; margin:0; padding:0; }
.tp-moves .button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px; min-height:36px; width:36px; margin:0; padding:4px; line-height:1; }
.tp-status:empty { display:none; }
.tp-status { font-size:.82rem; line-height:1.5; }
.tp-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; flex-wrap:wrap; }
@media(max-width:540px) { .tp-dialog { padding:14px; } .tp-column { gap:8px 10px; padding:10px; } .tp-width input { width:96px; } .tp-actions .button { flex:1 1 auto; } }
@media(max-width:650px) {
  .tp-column { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"name moves" "width width"; }
  table[data-tp-layout] { width:100%!important; min-width:0!important; table-layout:auto!important; }
  table[data-tp-layout] :is(th,td) { width:auto!important; min-width:0!important; max-width:none!important; }
  .tp-toolbar>.button,.tp-toolbar.tp-toolbar-inline>.button,.tp-width input,.tp-moves .button { min-height:44px; }
  .tp-moves .button { width:44px; flex-basis:44px; }
}
