:root { --b:#50727B; --bd:#3e5a61; --bl:#E9EFF0; --ink:#1f2a2d; --mut:#5b6b6f; --red:#b3261e; --line:#d5dfe1; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background:#f6f8f9; font-size:15px; line-height:1.45; }
a { color: var(--b); }
h1 { font-size: 1.5rem; margin: .2em 0; } h2 { font-size: 1.05rem; color: var(--b); margin: 0 0 .6em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 380px; margin: 8vh auto; padding: 16px; }
.bar { display:flex; justify-content:space-between; align-items:center; padding: 10px 16px; background: var(--b); color:#fff; }
.bar a { color:#fff; text-decoration:none; } .brand { font-weight:800; } .brand span { font-weight:500; opacity:.8; }
.bar nav { display:flex; gap: 12px; align-items:center; } .bar .link { color:#fff; }
.card { background:#fff; border:1px solid var(--line); border-radius: 8px; padding: 16px; margin: 14px 0; }
.stack { display:flex; flex-direction:column; gap: 12px; }
.row { display:flex; gap: 8px; align-items:center; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.grid2 { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; }
label { display:block; font-weight:600; font-size:.9rem; margin-bottom: 10px; }
label.check { font-weight:500; display:flex; gap:6px; align-items:center; margin:4px 0; }
input, select, textarea { font: inherit; width:100%; padding: 7px 9px; border:1px solid #b9c7ca; border-radius:6px; background:#fff; margin-top: 3px; }
input[type=checkbox], input[type=radio] { width:auto; margin:0; }
input[type=file] { border: none; padding: 0; }
.row input, .row select { margin-top:0; }
textarea { resize: vertical; font-weight: 400; }
fieldset { border:1px solid var(--line); border-radius:8px; padding: 10px 14px; } legend { color: var(--b); font-weight:700; }
fieldset.plain { border:0; padding:0; margin:0; min-width:0; }
.btn { display:inline-block; background: var(--b); color:#fff; border:0; border-radius: 6px; padding: 9px 16px; font: inherit; font-weight:600; cursor:pointer; text-decoration:none; white-space:nowrap; }
.btn:hover { background: var(--bd); } .btn:disabled { opacity:.45; cursor: default; }
.btn.sec { background: var(--bl); color: var(--bd); } .btn.danger { background: var(--red); }
.btn.sm { padding: 5px 10px; font-size: .85rem; }
.link { background:none; border:0; color: var(--b); cursor:pointer; padding:0; font: inherit; text-decoration: underline; }
.link.danger, .err { color: var(--red); }
.inline { display:inline; }
.flash { background: #e6f2ea; border:1px solid #9cc9a9; padding: 10px 14px; border-radius:6px; margin: 10px 0; }
.flash.err { background:#fbeaea; border-color:#e3a3a0; }
.muted { color: var(--mut); } .small { font-size: .85rem; } .center { text-align:center; } .right { text-align:right; }
table.list { width:100%; border-collapse: collapse; background:#fff; }
table.list th, table.list td { text-align:left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { font-size:.78rem; padding: 2px 8px; border-radius: 99px; background: #eee; white-space:nowrap; }
.tag.gerado { background:#fff3cd; } .tag.assinado { background:#d7efdf; }
.player { width:100%; max-height: 60vh; background:#000; border-radius:6px; margin: 6px 0; }
.video-item { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.tools { gap: 6px 10px; }
.photos { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.photo { border: 2px solid transparent; border-radius: 8px; padding: 6px; background: var(--bl); }
.photo.sel { border-color: var(--b); }
.photo img { width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display:block; }
.photo input { font-size:.85rem; padding: 4px 6px; } .num { width: 56px !important; flex: none; }
.concl textarea { border: 2px solid var(--b); }
.sticky-actions { position: sticky; bottom: 0; background: #f6f8f9ee; padding: 10px 0; justify-content: flex-end; }
details summary { cursor:pointer; font-weight:600; color: var(--b); }
code { font-size: .78rem; word-break: break-all; }
kbd { background:#0003; border-radius: 4px; padding: 0 5px; font-size: .8em; }
/* captura */
body.dark { background:#111; color:#ddd; } body.dark .bar { background:#1b2a2e; }
.cap { padding: 8px 12px; }
.cap-top, .cap-bar { padding: 6px 0; flex-wrap: wrap; gap: 8px; }
.cap-top select { width:auto; max-width: 240px; background:#222; color:#ddd; border-color:#444; }
.stage { position: relative; background:#000; border-radius: 6px; overflow:hidden; }
#live { width:100%; max-height: 72vh; display:block; object-fit: contain; }
#flashfx { position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none; }
#flashfx.go { animation: fx .35s ease-out; } @keyframes fx { from { opacity:.7 } to { opacity:0 } }
#rec-ind { position:absolute; top:10px; left:12px; color:#ff4d4d; font-weight:800; background:#0009; padding: 2px 8px; border-radius: 4px; }
.btn.rec { background:#9b2c2c; font-size: 1.05rem; } .btn.rec.on { background:#e53935; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity:.65 } }
.strip { display:flex; gap:6px; overflow-x:auto; padding: 6px 0; } .strip img { height: 80px; border-radius: 4px; }
body.dark .muted { color:#9aa; }
