:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --text: #16181d;
  --muted: #747982;
  --line: #e6e8ec;
  --accent: #ffcc33;
  --accent-strong: #e8af00;
  --danger: #d94b4b;
  --success: #2d9a67;
  --shadow: 0 12px 40px rgba(32, 35, 41, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 76px; padding: 12px 18px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand-wrap, .top-actions, .toolbar-actions, .batchbar, .section-head, .board-toolbar, .modal-head, .modal-foot, .mini-head { display: flex; align-items: center; }
.brand-wrap { gap: 12px; }
.brand-mark { width: 48px; height: 48px; border: 0; border-radius: 15px; background: var(--accent); font-size: 26px; box-shadow: inset 0 -2px rgba(0,0,0,.08); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 19px; letter-spacing: -.03em; }
h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.035em; }
h3 { letter-spacing: -.025em; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .13em; font-weight: 800; color: var(--muted); }
.top-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.primary, .ghost, .small-btn, .icon-btn, .text-btn { border: 0; border-radius: 10px; transition: .18s ease; }
.primary { padding: 11px 16px; background: var(--accent); color: #171717; font-weight: 800; }
.primary:hover { background: #ffd95b; transform: translateY(-1px); }
.ghost { padding: 10px 13px; background: #f3f4f6; color: var(--text); font-weight: 700; }
.ghost:hover, .small-btn:hover { background: #e9ebef; }
.icon-btn { width: 36px; height: 36px; background: #f4f5f7; font-weight: 800; font-size: 18px; }
.text-btn { background: transparent; color: var(--muted); padding: 4px; font-size: 12px; }
.workspace { display: grid; grid-template-columns: 280px minmax(460px, 1fr) 330px; gap: 12px; padding: 12px; min-height: calc(100vh - 76px); }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 4px rgba(0,0,0,.02); }
.library-panel, .inspector-panel { padding: 16px; align-self: start; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; }
.board-panel { padding: 16px; min-height: calc(100vh - 100px); }
.section-head, .board-toolbar, .modal-head, .modal-foot, .mini-head { justify-content: space-between; gap: 12px; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin: 16px 0 12px; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.filter-chip, .category-badge { border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 800; padding: 6px 9px; white-space: nowrap; }
.filter-chip.active { border-color: #222; background: #222; color: #fff; }
.preset-block { margin: 17px 0 10px; }
.preset-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px; text-align: left; font-size: 12px; font-weight: 750; }
.preset small { display: block; color: var(--muted); margin-top: 2px; }
.library-list { display: grid; gap: 4px; margin-top: 14px; }
.library-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; }
.library-item:hover { background: var(--bg); }
.library-item .emoji { font-size: 23px; text-align: center; }
.library-item strong, .library-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-item small { color: var(--muted); display: block; }
.library-item input { width: 16px; height: 16px; accent-color: #1a1a1a; }
.board-toolbar { align-items: flex-end; margin-bottom: 12px; }
.toolbar-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
select, input[type="text"], input:not([type]) { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px 9px; color: var(--text); }
.arrow { color: var(--muted); }
.batchbar { gap: 7px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 13px; padding: 8px; background: #fbfbfc; margin-bottom: 14px; }
.batchbar strong { font-size: 12px; padding: 0 4px; margin-right: auto; }
.small-btn { background: #f0f2f4; padding: 7px 9px; font-size: 11px; font-weight: 750; }
.small-btn.strong { background: var(--accent); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.asset-card { position: relative; min-height: 190px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 12px; transition: .17s ease; text-align: left; }
.asset-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d7dae0; }
.asset-card.selected { outline: 2px solid #222; outline-offset: -2px; }
.asset-card.inspected { box-shadow: inset 0 0 0 2px var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-check { width: 17px; height: 17px; accent-color: #1f1f1f; }
.favorite { border: 0; background: transparent; color: #c4c6ca; padding: 3px; font-size: 17px; }
.favorite.active { color: #ffb400; }
.asset-emoji { font-size: 58px; line-height: 1; margin: 15px 0 11px; text-align: center; filter: drop-shadow(0 5px 7px rgba(0,0,0,.08)); }
.asset-card h3 { margin: 0 0 3px; font-size: 15px; text-transform: none; }
.translation { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.card-bottom { display: flex; justify-content: space-between; gap: 4px; align-items: center; }
