* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 13px "Segoe UI", Tahoma, Arial, sans-serif;
  color: #1f2933;
  background: #e9edf1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

button, select, input, textarea { font: inherit; }
button {
  border: 1px solid #c3ccd5; background: #fff; color: #1f2933;
  padding: 4px 9px; border-radius: 4px; cursor: pointer; white-space: nowrap;
}
button:hover { background: #eef4fb; border-color: #8fb2d8; }
button.active { background: #1e6fd9; color: #fff; border-color: #1e6fd9; }
button.primary { background: #1e6fd9; color: #fff; border-color: #1e6fd9; }
button.primary:hover { background: #185bb5; }
button.accent:not(.active) { border-color: #1e6fd9; color: #1e6fd9; font-weight: 600; }
button.danger { color: #c62828; }
button.danger:hover { background: #fdecea; border-color: #e57373; }
select, input[type=text], input[type=number], input[type=search], input:not([type]), textarea {
  border: 1px solid #c3ccd5; border-radius: 4px; padding: 4px 6px; background: #fff;
}
textarea { width: 100%; }
kbd { font: 10px Consolas, monospace; color: #7b8794; margin-left: auto; padding-left: 16px; }
hr { border: 0; border-top: 1px solid #e1e6eb; margin: 4px 0; }

/* Menü çubuğu */
.menubar { display: flex; align-items: stretch; gap: 0; background: #1f2933; color: #e4e7eb; padding: 0 8px; position: relative; z-index: 20; }
.brand { font-weight: 700; font-size: 15px; color: #7fb3ff; padding: 6px 14px 6px 4px; }
.menu { position: relative; }
.mtitle { padding: 7px 11px; cursor: pointer; user-select: none; }
.mtitle:hover, .menu.open .mtitle { background: #3e4c59; }
.mlist { display: none; position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; color: #1f2933; border: 1px solid #c3ccd5; border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 4px; }
.menu.open .mlist { display: flex; flex-direction: column; }
.mlist button { border: 0; text-align: left; display: flex; align-items: center; padding: 6px 10px; border-radius: 4px; }
.mlist button:hover { background: #e6eef7; }
.mlist button.active { background: #dcebfd; color: #1f2933; }
.projinfo { margin-left: auto; padding: 7px 6px; color: #9aa5b1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 40vw; }
.projinfo b { color: #fff; }

/* Araç şeridi */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 5px 8px; background: #fff; border-bottom: 1px solid #cfd6dd;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.group { display: flex; align-items: center; gap: 3px; padding: 0 6px; border-left: 1px solid #e1e6eb; }
.group:first-child { border-left: 0; }
.toolbar button { padding: 4px 8px; }
#zoomInfo { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }

/* Yerleşim */
.layout { display: grid; grid-template-columns: 280px 1fr 300px; min-height: 0; }
aside { background: #f7f9fb; display: flex; flex-direction: column; min-height: 0; }
aside.left { border-right: 1px solid #cfd6dd; }
aside.right { border-left: 1px solid #cfd6dd; overflow-y: auto; }
.panel { padding: 8px 10px; border-bottom: 1px solid #e1e6eb; }
.panel-title { font-weight: 600; color: #52606d; text-transform: uppercase; font-size: 11px; letter-spacing: .4px; margin-bottom: 6px; }

.pages ul { list-style: none; margin: 0 0 6px; padding: 0; max-height: 230px; overflow-y: auto; }
.pages li { display: flex; gap: 6px; padding: 4px 6px; border-radius: 4px; cursor: pointer; align-items: center; }
.pages li:hover { background: #e6eef7; }
.pages li.active { background: #1e6fd9; color: #fff; }
.pages li.folder { font-weight: 600; color: #52606d; cursor: default; padding-top: 6px; }
.pages li.folder span { margin-left: auto; font-weight: 400; font-size: 11px; color: #9aa5b1; }
.pages li.infolder { padding-left: 20px; }
.pnum { min-width: 20px; font-weight: 600; opacity: .8; }
.pkind { width: 16px; text-align: center; font-size: 12px; }
.ptitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btnrow { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; align-items: center; }
.btnrow.small button { padding: 3px 7px; }
.inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.inline input, .inline select { width: auto; }

.panel.lib { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#libSearch { margin-bottom: 6px; width: 100%; }
#library { overflow-y: auto; flex: 1; }
.lib-cat-title { font-weight: 600; font-size: 12px; color: #1e6fd9; margin: 10px 0 4px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lib-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 2px; height: 86px; white-space: normal; position: relative;
}
.lib-item span { font-size: 10px; line-height: 1.15; text-align: center; overflow: hidden; max-height: 24px; }
.lib-item .thumb { width: 100%; height: 52px; }
.lib-item.active { background: #dcebfd; border-color: #1e6fd9; color: #1f2933; }
.macro-list { display: flex; flex-direction: column; gap: 3px; }
.lib-item.macro { height: auto; flex-direction: row; justify-content: space-between; padding: 6px 8px; }
.lib-item.macro span { max-height: none; font-size: 12px; text-align: left; }
.lib-item.macro i { font-style: normal; color: #c62828; padding: 0 4px; }
.lib-item.dev { height: auto; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; text-align: left; width: 100%; margin-bottom: 3px; padding: 5px 8px; align-items: center; }
.lib-item.dev b { grid-row: span 2; font-size: 13px; color: #1e6fd9; }
.lib-item.dev span { text-align: left; font-size: 11px; max-height: 28px; }
.lib-item.dev em { font-style: normal; font-size: 10px; color: #7b8794; }
.lib-item.dev.placed b { color: #2e7d32; }
#library select { padding: 3px; }

/* Çizim alanı */
.center { position: relative; min-width: 0; min-height: 0; background: #7b8794; }
#canvas { width: 100%; height: 100%; display: block; user-select: none; }
#content > g:first-child > rect.pagebg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.wire .hit { fill: none; stroke: transparent; stroke-width: 8; }
.wire:hover .wl { filter: drop-shadow(0 0 2px #1e6fd9); }
.wire.sel .wl { stroke: #1e6fd9 !important; stroke-dasharray: 6 3; }
.comp .hitbox, .shape .hitbox { fill: transparent; stroke: none; }
.comp:hover .hitbox { stroke: #8fb2d8; stroke-width: .8; stroke-dasharray: 3 2; }
.comp.sel .hitbox { stroke: #1e6fd9; stroke-width: 1.2; stroke-dasharray: 4 2; fill: rgba(30,111,217,.06); }
.comp.sel .sym line, .comp.sel .sym path, .comp.sel .sym rect, .comp.sel .sym circle, .comp.sel .sym polyline { stroke: #1e6fd9; }
.shape .hit { stroke: transparent !important; stroke-width: 8; fill: none; }
.shape:hover .shp { filter: drop-shadow(0 0 2px #1e6fd9); }
.txt .selbox { fill: rgba(30,111,217,.06); stroke: #1e6fd9; stroke-dasharray: 4 2; }
.txt .utext { cursor: move; }
.goto { cursor: pointer; }
.goto:hover text { fill: #e65100 !important; text-decoration: underline; }
.pitem:hover rect { filter: drop-shadow(0 0 2px #1e6fd9); }
.pitem.sel rect:first-child { stroke: #1e6fd9 !important; stroke-width: 2; stroke-dasharray: 5 3; }

#overlay { pointer-events: none; }
.ghost { opacity: .55; }
.ghost .sym line, .ghost .sym path, .ghost .sym rect, .ghost .sym circle { stroke: #1e6fd9; }
.ghostdev { fill: rgba(30,111,217,.12); stroke: #1e6fd9; stroke-width: 1.2; stroke-dasharray: 4 2; }
.preview { fill: none; stroke-width: 1.8; stroke-dasharray: 5 3; opacity: .9; }
.snapmark { fill: none; stroke: #e65100; stroke-width: 1; }
.snapmark.pin { stroke: #00c853; stroke-width: 2; }
.boxsel { fill: rgba(30,111,217,.08); stroke: #1e6fd9; stroke-width: 1; }
.boxsel.cross { fill: rgba(46,157,58,.08); stroke: #2e9d3a; stroke-dasharray: 5 3; }

/* Özellikler */
#props h3 { font-size: 13px; margin: 12px 0 6px; color: #1f2933; }
#props h3:first-child { margin-top: 0; }
#props label, .form2 label { display: block; font-size: 11px; color: #52606d; margin-bottom: 6px; }
#props label input:not([type=checkbox]):not([type=radio]), #props label select, #props label textarea,
.form2 label input:not([type=checkbox]):not([type=radio]), .form2 label select { display: block; margin-top: 2px; width: 100%; color: #1f2933; }
.inline-sel { display: flex; gap: 4px; }
label.chk { display: flex !important; align-items: center; gap: 6px; font-size: 12px; color: #1f2933 !important; margin-bottom: 4px; cursor: pointer; }
label.chk input { width: auto !important; margin: 0 !important; display: inline !important; }
.sym-preview { background: #fff; border: 1px solid #e1e6eb; border-radius: 4px; padding: 4px; margin-bottom: 8px; }
.sym-preview .thumb { width: 100%; height: 80px; }
.muted { color: #7b8794; font-size: 11px; margin: 6px 0; }
.small { font-size: 11px; }
.ok { color: #2e7d32; font-weight: 600; }
.err { color: #c62828; }
.infobox { background: #eef4fb; border: 1px solid #c9dcf2; border-radius: 4px; padding: 6px 8px; font-size: 12px; margin: 6px 0; line-height: 1.45; }
.infobox.err { background: #fdecea; border-color: #f5c2c0; color: #a31515; }
.xreflist { list-style: none; padding: 0; margin: 0 0 8px; }
.xreflist li { padding: 4px 6px; background: #eef4fb; border-radius: 3px; margin-bottom: 3px; font-size: 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.xreflist li span { color: #1e6fd9; white-space: nowrap; }
.xreflist li.miss { background: #fdecea; color: #c62828; cursor: default; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 6px; }
table.mini { border-collapse: collapse; width: 100%; font-size: 11px; margin: 4px 0 8px; }
table.mini th, table.mini td { border: 1px solid #e1e6eb; padding: 3px 4px; text-align: left; }
table.mini th { background: #f0f4f8; }
table.mini.sum { width: auto; min-width: 320px; margin-left: auto; font-size: 13px; }
table.mini.sum tr:last-child td { font-weight: 700; background: #eef4fb; font-size: 14px; }

/* Katmanlar */
.layer { display: flex; align-items: center; gap: 5px; padding: 3px 4px; border-radius: 4px; }
.layer.cur { background: #e6eef7; }
.layer .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.layer input[type=color] { width: 24px; height: 20px; padding: 0; border: 1px solid #c3ccd5; border-radius: 3px; background: none; }
.layer button { padding: 1px 5px; font-size: 12px; }

/* Durum çubuğu */
.status { display: flex; gap: 20px; padding: 4px 12px; background: #1f2933; color: #cbd2d9; font-size: 12px; }
#coords { min-width: 260px; font-variant-numeric: tabular-nums; }

/* Diyaloglar */
.modal { position: fixed; inset: 0; background: rgba(15,23,32,.45); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 8px; width: min(820px, 94vw); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal-box.wide { width: min(1320px, 97vw); }
.modal-box.narrow { width: min(720px, 94vw); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e1e6eb; font-size: 15px; }
.modal-head .mh-btns { margin-left: auto; display: flex; gap: 6px; }
.modal-head .close { border: 0; font-size: 16px; }
.modal-body { padding: 12px 14px; overflow: auto; flex: 1; min-height: 0; }
.modal-body h3 { font-size: 13px; margin: 12px 0 6px; color: #1e6fd9; }
.modal-foot { display: flex; gap: 6px; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid #e1e6eb; flex-wrap: wrap; }
.form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.form2 label.chk { grid-column: span 2; }
.tbl-wrap { overflow: auto; max-height: 62vh; border: 1px solid #e1e6eb; border-radius: 4px; }
table.rpt { border-collapse: collapse; width: 100%; font-size: 12px; }
table.rpt th, table.rpt td { border: 1px solid #d9dee3; padding: 4px 6px; text-align: left; vertical-align: top; }
table.rpt th { background: #f0f4f8; position: sticky; top: 0; z-index: 1; }
table.rpt tr:nth-child(even) td { background: #fafbfc; }
table.rpt td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rpt tr.click { cursor: pointer; }
table.rpt tr.click:hover td { background: #e6eef7; }
table.rpt tr.err td { background: #fdecea !important; }
table.rpt tr.warn td { background: #fff8e1 !important; }
table.rpt tr.info td { background: #f1f8ff; }
table.rpt tr.muted td { color: #9aa5b1; }
table.rpt input, table.rpt select { padding: 2px 4px; }
table.rpt td.err { color: #c62828; font-weight: 600; }
.tpl-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.tpl { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; padding: 8px 10px; border: 1px solid #d9dee3; border-radius: 6px; cursor: pointer; }
.tpl:hover { background: #f5f9ff; border-color: #8fb2d8; }
.tpl input { grid-row: span 2; }
.tpl span { color: #7b8794; font-size: 12px; }
.help h4 { margin: 12px 0 4px; color: #1e6fd9; }
.help li { margin-bottom: 3px; line-height: 1.45; }

/* Ürün veritabanı */
.pdb-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.pdb-search { flex: 1; min-width: 200px; }
.pdb { display: grid; grid-template-columns: 1fr 340px; gap: 4px 12px; min-height: 0; }
.pdb > .pdb-bar, .pdb > .muted { grid-column: span 2; }
.pdb-form:empty { display: none; }
.pdb-table { overflow: auto; max-height: 62vh; border: 1px solid #e1e6eb; border-radius: 4px; }
.pdb-table table { border-collapse: collapse; width: 100%; font-size: 12px; }
.pdb-table th, .pdb-table td { border: 1px solid #e1e6eb; padding: 3px 6px; text-align: left; }
.pdb-table th { background: #f0f4f8; position: sticky; top: 0; }
.pdb-table tr { cursor: pointer; }
.pdb-table tr:hover td { background: #e6eef7; }
.pdb-table tr.on td { background: #dcebfd; }
.pdb-form { overflow: auto; max-height: 62vh; }
.pdb-form label { display: block; font-size: 11px; color: #52606d; margin-bottom: 5px; }
.pdb-form label input, .pdb-form label select { display: block; width: 100%; margin-top: 2px; }

/* DXF içe aktarma */
.dxf-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 12px; }
.dxf-prev svg { width: 100%; height: 62vh; background: #fff; border: 1px solid #c3ccd5; border-radius: 4px; cursor: crosshair; display: block; }
.dxf-prev svg * { vector-effect: non-scaling-stroke; stroke-width: 1; }
.dxf-prev svg text { stroke: none; }
.dxf-side label { display: block; font-size: 11px; color: #52606d; margin-bottom: 6px; }
.dxf-side label select { display: block; width: 100%; margin-top: 2px; }
.dxf-layers { max-height: 26vh; overflow: auto; border: 1px solid #e1e6eb; border-radius: 4px; padding: 4px 6px; }
.dxf-layers em { margin-left: auto; color: #9aa5b1; font-style: normal; font-size: 11px; }
.sw { display: inline-block; width: 10px; height: 10px; border: 1px solid #999; border-radius: 2px; }

/* ---------- 3D pano görünümü ---------- */
#v3d { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: #1f2a36; color: #1d2733; font: 13px "Segoe UI", Arial, sans-serif; }
.v3d-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; background: linear-gradient(#f7f9fb, #e3e8ee); border-bottom: 1px solid #b9c3cd; }
.v3d-bar b { font-size: 14px; }
.v3d-title { color: #556; }
.v3d-grp { display: inline-flex; gap: 2px; align-items: center; padding: 0 6px; border-left: 1px solid #c9d1d9; }
.v3d-grp label { margin: 0 4px; white-space: nowrap; }
.v3d-bar button { padding: 3px 8px; border: 1px solid #aab4bf; border-radius: 3px; background: #fff; cursor: pointer; }
.v3d-bar button:hover { background: #e7f0fb; }
.v3d-bar button.primary { background: #1565c0; color: #fff; border-color: #0d47a1; }
.v3d-rng { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.v3d-rng input { width: 90px; }
.v3d-bar .sp { flex: 1; }
.v3d-main { flex: 1; display: flex; min-height: 0; }
.v3d-canvas { flex: 1; position: relative; min-width: 0; background: linear-gradient(#f4f6f8 0%, #dfe4ea 55%, #b8c1cb 100%); overflow: hidden; }
.v3d-canvas canvas { display: block; }
.v3d-tip { position: absolute; display: none; pointer-events: none; background: rgba(20, 28, 38, .88); color: #fff; padding: 3px 7px; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.v3d-help { position: absolute; left: 10px; bottom: 8px; color: #5a6672; font-size: 11px; pointer-events: none; }
.v3d-side { width: 290px; overflow: auto; background: #f6f8fa; border-left: 1px solid #b9c3cd; padding: 8px; }
.v3d-side details { margin: 6px 0; }
.v3d-side summary { cursor: pointer; font-weight: 600; padding: 3px 0; }
.v3-list { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.v3-item { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; background: #fff; cursor: pointer; }
.v3-item b { min-width: 44px; color: #0d47a1; }
.v3-item span { color: #445; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-item:hover { border-color: #90caf9; }
.v3-item.on { background: #fff3e0; border-color: #ff9800; }
.v3-item.bad b, .v3d-side .bad { color: #c62828; }
.v3-info { background: #fff; border: 1px solid #cfd8e0; border-radius: 4px; padding: 8px; margin-bottom: 6px; }
.v3-info.muted { color: #667; }
.v3-info .v3-h { font-size: 16px; font-weight: 700; color: #0d47a1; }
.v3-info table { width: 100%; margin: 6px 0; border-collapse: collapse; font-size: 12px; }
.v3-info td { padding: 2px 3px; border-bottom: 1px solid #eef1f4; }
.v3-info td:first-child { color: #667; width: 80px; }
.v3-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.v3-info button { padding: 3px 8px; border: 1px solid #aab4bf; border-radius: 3px; background: #f4f7fa; cursor: pointer; }
.v3-info button:hover { background: #e3effc; }
.v3-sum { margin-top: 8px; padding-top: 6px; border-top: 1px solid #d5dce3; line-height: 1.7; }
.v3d-status { display: none; }

/* ---------- 3D model kütüphanesi ---------- */
body.v3d-open .modal { z-index: 1000; }
.m3d-dlg .modal-box { width: min(1180px, 96vw); }
.m3d { display: grid; grid-template-columns: 270px 1fr 300px; gap: 10px; height: min(640px, 72vh); }
.m3d-left, .m3d-props { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; }
.m3d-left input[type=search] { width: 100%; }
.m3d-impopt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m3d-cad { border: 1px solid #d9e0e7; border-radius: 4px; padding: 4px 6px; background: #f4f8fc; font-size: 12px; }
.m3d-cad summary { cursor: pointer; font-weight: 600; }
.m3d-cad .inline { display: flex; gap: 4px; margin: 4px 0; }
.m3d-cad .inline select { width: 40%; }
.m3d-cad .inline input { flex: 1; min-width: 0; }
.m3d-links { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; }
.m3d-links a { color: #1565c0; text-decoration: none; }
.m3d-links a:hover { text-decoration: underline; }
.m3d-links .ok { color: #2e7d32; }
.m3d-items { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 3px; border: 1px solid #d9e0e7; border-radius: 4px; padding: 4px; background: #fafbfc; }
.m3d-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 5px 7px; }
.m3d-item span { font-size: 11px; color: #7b8794; }
.m3d-item.on { background: #fff3e0; border-color: #ff9800; }
.m3d-view { position: relative; border: 1px solid #c3ccd5; border-radius: 4px; background: linear-gradient(#f6f8fa, #d9dfe6); overflow: hidden; min-height: 300px; }
.m3d-view canvas { display: block; }
.m3d-view.drop { outline: 3px dashed #1e6fd9; outline-offset: -6px; }
.m3d-msg { position: absolute; left: 0; right: 0; top: 40%; text-align: center; color: #1f2933; font-weight: 600; display: none; padding: 10px; background: rgba(255, 255, 255, .85); z-index: 2; }
.m3d-msg button { margin-top: 6px; }
.m3d-rep { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.m3d-rep ul { margin: 0 0 4px; padding-left: 18px; max-height: 160px; overflow: auto; }
.m3d-rep li { word-break: break-all; }
.m3d-rep .ok { color: #2e7d32; font-weight: 600; }
.m3d-rep .warn { color: #b26a00; font-weight: 600; }
.m3d-rep .err { color: #c62828; font-weight: 600; }
.m3d-size { padding: 6px; background: #eef4fb; border-radius: 4px; margin: 4px 0 8px; font-size: 12px; }
.m3d-rot { display: flex; gap: 4px; margin-top: 2px; }
.m3d-rot select { flex: 1; }
.m3d-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.m3d-tags > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; background: #e8f0fb; border-radius: 12px; font-size: 12px; }
.m3d-tags em { color: #7b8794; font-style: normal; font-size: 11px; }
.m3d-tags button { padding: 0 5px; border: none; background: none; color: #c62828; }
.m3d-props .inline { display: flex; gap: 4px; }
.m3d-props .inline input { flex: 1; min-width: 0; }
.m3d-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #d9e0e7; display: flex; flex-direction: column; gap: 4px; }
.m3d-props .form2 { display: block; }
.m3d-props .btnrow button { white-space: normal; text-align: left; }
