@font-face {
  font-family: "Poppins";
  src: url("/poppins.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0d0c11;
  --surface: #15131b;
  --surface-2: #1c1924;
  --surface-3: #24202e;
  --border: #2c2837;
  --border-strong: #3a3548;
  --text: #ece9f2;
  --text-2: #c9c4d3;
  --muted: #8f8a99;
  --faint: #5c5766;
  --gold: #ffd86f;
  --gold-soft: rgba(255, 216, 111, .12);
  --ok: #7ee081;
  --ok-soft: rgba(126, 224, 129, .12);
  --err: #ff6b6b;
  --err-soft: rgba(255, 107, 107, .12);
  --blue: #7fd6ff;
  --violet: #c9a7ff;
  --orange: #ffb36b;
  --radius: 12px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--err); }
.mono { font-family: var(--mono); }
svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ------------------------------------------------------------- Connexion */
.login {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(800px 400px at 50% -10%, rgba(255, 216, 111, .10), transparent 70%), var(--bg);
}
.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.login-logo { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 14px; }
.login-card h1 { margin: 14px 0 0; font-size: 22px; letter-spacing: .08em; color: var(--gold); }
.login-steps { margin-top: 24px; text-align: left; background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; }
.login-steps p { margin: 0 0 8px; }
.login-steps ol { margin: 0 0 10px; padding-left: 20px; }
.login-steps li { margin: 4px 0; }
.login-steps b { color: var(--gold); font-weight: 600; }

/* ------------------------------------------------------------- Structure */
.app { display: flex; min-height: 100%; }
.sidebar {
  width: 236px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 16px; letter-spacing: .12em; color: var(--gold); }
.brand small { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; }
nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--surface-2); color: var(--text); }
nav a.active { background: var(--gold-soft); color: var(--gold); }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.sidebar-foot img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.sidebar-foot span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 12, 17, .88); backdrop-filter: blur(10px);
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .04em; flex: 1; min-width: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }
.view { padding: 24px 28px 48px; flex: 1; min-width: 0; }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 14px 16px; }
  .view { padding: 16px 16px 40px; }
}

/* ------------------------------------------------------------- Éléments */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); border-color: var(--faint); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1b1608; font-weight: 600; }
.btn.primary:hover { background: #ffe08b; }
.btn.danger { color: var(--err); border-color: rgba(255, 107, 107, .35); }
.btn.danger:hover { background: var(--err-soft); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 0;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

.input, select.input, textarea.input {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 12px; min-width: 0; outline: none;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-head h2 { margin: 0; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 600; flex: 1; }
.card-body { padding: 14px 18px 18px; }
.section-title { font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 28px 0 12px; }

.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.servers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.players { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.stat { padding: 16px 18px; }
.stat .label { font-size: 12px; color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.stat .value { font-size: 24px; font-weight: 600; margin-top: 4px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: var(--err-soft); color: var(--err); }
.pill.plain::before { display: none; }

.server { padding: 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.server:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.server-top { display: flex; align-items: center; gap: 12px; }
.server-top img { width: 40px; height: 40px; border-radius: 9px; image-rendering: pixelated; background: var(--surface-3); }
.server-name { font-weight: 600; font-size: 15px; }
.server-id { font-size: 12px; color: var(--muted); }
.heads { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; align-items: center; }
.heads img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }

.head { image-rendering: pixelated; border-radius: 6px; vertical-align: middle; }

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.nowrap { white-space: nowrap; }

.type {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; text-transform: uppercase;
}

/* ------------------------------------------------------------- Console */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--border-strong); color: var(--text); }
.tab.active { background: var(--gold-soft); border-color: rgba(255, 216, 111, .4); color: var(--gold); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.tab .dot.on { background: var(--ok); }

.console {
  background: #09080c; border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 360px;
}
.console-out {
  flex: 1; overflow: auto; padding: 14px 16px; margin: 0;
  font: 12.5px/1.55 var(--mono); color: #d7d3df; white-space: pre-wrap; word-break: break-word;
}
.console-out .w { color: var(--orange); }
.console-out .e { color: var(--err); }
.console-out .s { color: var(--gold); }
.console-out .t { color: var(--faint); }
.console-out .c { color: var(--blue); }
.console-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.console-in .input { flex: 1; font-family: var(--mono); font-size: 13px; }
.console-in .prompt { color: var(--gold); font-family: var(--mono); align-self: center; padding-left: 6px; }

/* ------------------------------------------------------------- Fichiers */
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.crumbs a { color: var(--text-2); padding: 4px 8px; border-radius: 8px; }
.crumbs a:hover { background: var(--surface-2); color: var(--text); }
.crumbs a:last-child { color: var(--gold); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.file-row { cursor: pointer; }
.file-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.file-name svg { color: var(--muted); }
.file-name .folder { color: var(--gold); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: .0; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }
@media (hover: none) { .row-actions { opacity: 1; } }
.drop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(13, 12, 17, .85); border: 3px dashed var(--gold); font-size: 20px; color: var(--gold);
}

.editor {
  position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column;
}
.editor-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.editor-head .path { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-head .dirty { color: var(--gold); font-size: 12px; }
.editor-body { flex: 1; min-height: 0; position: relative; }
.editor-body textarea {
  width: 100%; height: 100%; border: 0; resize: none; outline: none; padding: 14px 18px;
  background: #09080c; color: var(--text); font: 13px/1.6 var(--mono); tab-size: 2;
}
.CodeMirror { height: 100% !important; background: #09080c !important; color: #ddd8e6 !important; font: 13px/1.6 var(--mono) !important; }
.CodeMirror-gutters { background: #0d0c11 !important; border-right: 1px solid var(--border) !important; }
.CodeMirror-linenumber { color: var(--faint) !important; }
.CodeMirror-cursor { border-left-color: var(--gold) !important; }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: rgba(255, 216, 111, .16) !important; }
.CodeMirror span { text-decoration: none !important; }
.cm-s-default .cm-atom, .cm-s-default .cm-keyword { color: var(--violet); }
.cm-s-default .cm-string { color: var(--ok); }
.cm-s-default .cm-number { color: var(--orange); }
.cm-s-default .cm-comment { color: var(--faint); }
.cm-s-default .cm-def, .cm-s-default .cm-property { color: var(--blue); }
.cm-s-default .cm-meta, .cm-s-default .cm-variable-2 { color: var(--gold); }

/* ------------------------------------------------------------- Journal */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters .input { width: 160px; }
.filters .input.wide { width: 220px; }
.filters .input.tiny { width: 84px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 4px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); user-select: none;
}
.chip.on { color: var(--bg); border-color: transparent; }
.detail { color: var(--text-2); max-width: 520px; overflow-wrap: anywhere; }
.coords { font-family: var(--mono); font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.coords:hover { color: var(--gold); }
.load-more { display: flex; justify-content: center; padding: 16px; }
.live { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-weight: 500; user-select: none; }
.live input { accent-color: var(--gold); }

/* ------------------------------------------------------------- Joueurs */
.player-card { padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.player-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.player-card img { width: 52px; height: 52px; border-radius: 10px; image-rendering: pixelated; }
.player-card .name { font-weight: 600; font-size: 15px; }
.player-card .meta { font-size: 12px; color: var(--muted); }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .profile { grid-template-columns: 1fr; } }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-head img { width: 72px; height: 72px; border-radius: 12px; image-rendering: pixelated; }
.profile-head h2 { margin: 0; font-size: 24px; }
.vitals { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.vitals b { color: var(--text); }

/* Inventaire façon Minecraft, en sombre */
.inv { display: inline-flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; max-width: 100%; }
.inv-row { display: grid; grid-template-columns: repeat(9, var(--slot)); gap: 4px; }
.inv { --slot: 48px; }
@media (max-width: 560px) { .inv { --slot: 32px; padding: 10px; } }
.inv-top { display: flex; gap: 16px; align-items: flex-start; }
.inv-col { display: grid; gap: 4px; }
.slot {
  width: var(--slot); height: var(--slot); border-radius: 8px; position: relative;
  background: #0f0e14; border: 1px solid var(--border);
  display: grid; place-items: center;
}
.slot.held { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.slot img { width: 72%; height: 72%; image-rendering: pixelated; object-fit: cover; object-position: top; }
.slot .count {
  position: absolute; right: 4px; bottom: 1px; font-size: 12px; font-weight: 600;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000; color: #fff;
}
.slot .fallback { font-size: 9px; color: var(--muted); text-align: center; line-height: 1.1; padding: 2px; overflow: hidden; }
.slot.has { cursor: help; }
.slot.has:hover { border-color: var(--border-strong); background: #16141d; }
.slot .dura { position: absolute; left: 5px; right: 5px; bottom: 4px; height: 3px; border-radius: 2px; background: #000; }
.slot .dura i { display: block; height: 100%; border-radius: 2px; }
.slot.ench img { filter: drop-shadow(0 0 4px rgba(201, 167, 255, .9)); }
.slot.ghost { opacity: .35; }
.inv-label { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

.tooltip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 300px;
  background: #120f1a; border: 1px solid #3b2a63; border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55); font-size: 13px;
}
.tooltip .t-name { font-weight: 600; color: var(--text); }
.tooltip .t-id { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.tooltip .t-ench { color: var(--violet); }
.tooltip .t-lore { color: var(--text-2); }
.tooltip .t-sub { color: var(--muted); font-size: 12px; }
.tooltip .t-grid { display: grid; grid-template-columns: repeat(9, 22px); gap: 2px; margin-top: 6px; }
.tooltip .t-grid span { width: 22px; height: 22px; background: #0a090e; border-radius: 4px; display: grid; place-items: center; position: relative; }
.tooltip .t-grid img { width: 16px; height: 16px; image-rendering: pixelated; object-fit: cover; object-position: top; }
.tooltip .t-grid b { position: absolute; right: 1px; bottom: -2px; font-size: 9px; text-shadow: 1px 1px 0 #000; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { font-weight: 600; text-align: right; }

/* ------------------------------------------------------------- Trajets */
.map-wrap { position: relative; height: calc(100vh - 250px); min-height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #09080c; }
.map-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.map-wrap canvas:active { cursor: grabbing; }
.map-info { position: absolute; left: 12px; bottom: 12px; background: rgba(21, 19, 27, .9); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--text-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ------------------------------------------------------------- Divers */
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--gold);
  padding: 10px 14px; border-radius: 10px; max-width: 360px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: pop .2s ease-out;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-back { position: fixed; inset: 0; z-index: 45; background: rgba(5, 4, 8, .7); display: grid; place-items: center; padding: 16px; }
.modal { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 22px; }
.modal h3 { margin: 0 0 12px; font-size: 16px; }
.modal .input { width: 100%; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal.wide { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.editor-section { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.editor-section:first-of-type { border-top: 0; padding-top: 4px; }
.editor-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.editor-row .input { flex: 1; min-width: 140px; }
.editor-row .input[type=number] { flex: none; }
.editor-item { display: flex; gap: 12px; align-items: center; }
.editor-item .slot { --slot: 48px; }
.action-grid { display: flex; flex-direction: column; gap: 10px; }
.lbl { width: 54px; }
.slot.editable:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.stat-input { width: 110px; text-align: right; padding: 4px 8px; }
.setting { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.setting input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; }
.setting span { display: flex; flex-direction: column; gap: 2px; }
.xp-chip { background: var(--ok-soft) !important; color: var(--ok) !important; display: inline-flex; align-items: center; gap: 6px; }
.freq { display: flex; gap: 6px; }
.freq span { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-strong); }
.player-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.player-check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); cursor: pointer; font-weight: 500; }
.player-check input { accent-color: var(--gold); }
.xp-icon img { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: middle; }
.kv span:nth-child(even) { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }

/* Coffres intermondes : limites par joueur */
.limit-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.limit-row { display: grid; grid-template-columns: 1fr 150px 150px; gap: 12px; align-items: center;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; }
.limit-default { border-color: var(--border-strong); }
.limit-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.limit-cell { display: flex; flex-direction: column; gap: 4px; }
.limit-cell .input.limit { width: 100%; }
@media (max-width: 560px) { .limit-row { grid-template-columns: 1fr 1fr; } .limit-name { grid-column: 1 / -1; } }
