/* ============================================================ Valheim panel */
:root {
  --bg: #101319;
  --bg-2: #151922;
  --panel: #1a1f2a;
  --panel-2: #212736;
  --border: #2b3243;
  --border-soft: #232a38;
  --text: #e8ebf2;
  --muted: #8d97ac;
  --accent: #e0a94a;
  --accent-soft: rgba(224, 169, 74, 0.14);
  --blue: #6ea8fe;
  --green: #4ad07a;
  --red: #f2635f;
  --amber: #f0b429;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(224, 169, 74, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(110, 168, 254, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.ico { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #2a3243; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: linear-gradient(180deg, #eab55c, #d99b34); border-color: #b98429; color: #241b06; }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #f2c069, #e0a53c); }
.btn-success { background: linear-gradient(180deg, #46c574, #33a95f); border-color: #2c8f50; color: #04220f; }
.btn-success:hover:not(:disabled) { background: linear-gradient(180deg, #52d383, #3ab86a); }
.btn-warn { background: linear-gradient(180deg, #f0b429, #d99b1f); border-color: #b9841a; color: #241b06; }
.btn-warn:hover:not(:disabled) { background: linear-gradient(180deg, #f7bf3d, #e3a626); }
.btn-danger { background: linear-gradient(180deg, #ef5350, #d8433f); border-color: #b93834; color: #2a0706; }
.btn-danger:hover:not(:disabled) { background: linear-gradient(180deg, #f4615e, #e04c48); }
.btn-ghost { background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--panel-2); }

/* ------------------------------------------------------------------ inputs */
input, select, textarea {
  background: #12161f;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #5f6a7f; }
select { cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.check input { width: auto; }

/* ------------------------------------------------------------------ layout */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, var(--bg-2), #12161d);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; }
.rune {
  font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2c3243, #1b2030);
  border: 1px solid var(--border); border-radius: 11px;
  box-shadow: inset 0 0 12px rgba(224,169,74,.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .3px; }
.brand-text span { font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; color: var(--muted);
  padding: 10px 12px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600; text-align: left; font-family: inherit;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }

.sidebar-foot { border-top: 1px solid var(--border-soft); padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.side-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.side-server { font-size: 11px; line-height: 1.35; word-break: break-word; }

.main { padding: 22px 26px 60px; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: .2px; }
.topbar p { margin: 3px 0 0; font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.tab-panel { display: none; flex-direction: column; gap: 16px; }
.tab-panel.active { display: flex; }

/* ------------------------------------------------------------------ cards */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 14px; letter-spacing: .3px; }
.row-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid-dash { grid-template-columns: 1.25fr 1fr 1fr 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .grid-dash { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .grid-2, .grid-dash { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- status card */
.status-card { display: flex; flex-direction: column; gap: 14px; }
.status-head { display: flex; align-items: center; gap: 12px; }
.status-label { font-size: 19px; font-weight: 700; letter-spacing: .3px; text-transform: capitalize; }
.dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(255,255,255,.03); }
.dot-online { background: var(--green); animation: pulse 2.2s infinite; }
.dot-offline { background: var(--red); }
.dot-busy { background: var(--amber); animation: pulse 1.1s infinite; }
.dot-unknown { background: #556; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.controls { display: flex; gap: 9px; flex-wrap: wrap; }
.controls .btn { flex: 1; justify-content: center; }

.stat-card { display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat-value.smallish { font-size: 16px; word-break: break-word; }
.stat-suffix { font-size: 15px; color: var(--muted); font-weight: 600; }
.bar { height: 7px; background: #10141c; border-radius: 99px; overflow: hidden; border: 1px solid var(--border-soft); }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--accent)); transition: width .4s ease; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; text-align: right; }
@media (max-width: 560px) { .kv dd { text-align: left; } }

.badge { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.badge.ok { color: var(--green); border-color: rgba(74,208,122,.4); background: rgba(74,208,122,.08); }
.badge.warn { color: var(--amber); border-color: rgba(240,180,41,.4); background: rgba(240,180,41,.08); }

/* --------------------------------------------------------------- charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .charts { grid-template-columns: 1fr; } }
.chart { background: #12161f; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.chart-title { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
.chart-value { font-size: 18px; font-weight: 700; margin: 2px 0 6px; }
.chart svg { display: block; width: 100%; height: 46px; }

/* --------------------------------------------------------------- online */
.online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.player-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border-soft);
  padding: 7px 11px; border-radius: 99px; font-size: 13px;
}
.player-chip .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a6520);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #241b06;
}
.empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }

/* --------------------------------------------------------------- settings */
.settings-body { display: flex; flex-direction: column; gap: 18px; }
.settings-group { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.settings-group > header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #12161f; border-bottom: 1px solid var(--border-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--muted);
}
.settings-group > header h2 { margin: 0; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.section-desc { margin: 0; padding: 12px 14px 0; line-height: 1.5; }
.settings-fields {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px 18px; padding: 16px 14px; align-items: start;
}
/* Switches get their own denser grid — they are short rows, not stacked fields. */
.settings-fields.toggles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .hint { font-size: 11px; color: var(--muted); }
.field .changed { color: var(--accent); font-size: 10px; border: 1px solid var(--accent); border-radius: 99px; padding: 0 6px; white-space: nowrap; }

/* Switch sits immediately after its label rather than at the far edge of the
   column, and the whole label is clickable via its `for` attribute. */
.field.switch { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }

.field-label { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.field.switch .field-label { align-items: center; cursor: pointer; }

/* inline validation under a field */
.field.has-error input, .field.has-error select {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(242, 99, 95, 0.12);
}
.field-msg { font-size: 11.5px; line-height: 1.45; }
.field-msg.error { color: var(--red); }
.field-msg.warn { color: var(--amber); }

/* sticky save bar, shown only while there are unsaved changes */
.sticky-actions {
  position: sticky; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(33, 39, 54, 0.96), rgba(26, 31, 42, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.bar-problem { color: var(--red); font-weight: 600; }

.field input[type="checkbox"] { width: 42px; height: 24px; appearance: none; background: #12161f; border: 1px solid var(--border); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.field input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.field input[type="checkbox"]:checked { background: var(--accent-soft); border-color: var(--accent); }
.field input[type="checkbox"]:checked::after { transform: translateX(18px); background: var(--accent); }

.option-help { font-size: 11.5px; line-height: 1.45; color: var(--accent); }

/* hover explanation bubble */
.tip { position: relative; display: inline-flex; align-items: center; }
.tip-icon {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted);
  font-size: 10px; font-weight: 700; font-style: italic; line-height: 1;
  display: grid; place-items: center; cursor: help;
  transition: border-color .15s, color .15s;
}
.tip:hover .tip-icon, .tip:focus-visible .tip-icon,
.field-label:hover .tip-icon { border-color: var(--accent); color: var(--accent); }

.tip-body {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  width: max-content; max-width: 300px;
  background: #0b0e14; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; text-align: left; text-transform: none; letter-spacing: normal;
  font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--text);
  box-shadow: var(--shadow); z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
}
.tip:hover .tip-body, .tip:focus-visible .tip-body,
.field-label:hover .tip-body { opacity: 1; visibility: visible; }
.tip-text { display: block; }
.tip-key { display: block; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------- banners */
.banner { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); margin-bottom: 16px; font-size: 13px; }
.banner.warn { border-color: rgba(240,180,41,.45); background: rgba(240,180,41,.09); color: #ffd987; }
.banner.error { border-color: rgba(242,99,95,.45); background: rgba(242,99,95,.09); color: #ffb0ad; }
.banner.ok { border-color: rgba(74,208,122,.45); background: rgba(74,208,122,.09); color: #a9f0c4; }
.alert { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; border: 1px solid var(--border); }
.alert.warn { border-color: rgba(240,180,41,.45); background: rgba(240,180,41,.09); color: #ffd987; }
.alert.error { border-color: rgba(242,99,95,.45); background: rgba(242,99,95,.09); color: #ffb0ad; }
.alert.info { border-color: rgba(110,168,254,.4); background: rgba(110,168,254,.08); color: #bdd7ff; }

/* --------------------------------------------------------------- players */
.list-card { display: flex; flex-direction: column; gap: 10px; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.player-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #12161f; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 7px 10px; font-size: 12.5px;
}
.player-list .id { color: var(--muted); font-size: 11px; word-break: break-all; }
.icon-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--red); background: rgba(242,99,95,.1); }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; }
.add-row .btn { flex: 0 0 auto; }

/* --------------------------------------------------------------- logs */
.console-row { display: flex; gap: 9px; margin-bottom: 10px; }
.console-row input { flex: 1; }
.console-log { display: flex; flex-direction: column; gap: 4px; }
.console-log .line { padding: 6px 9px; border-radius: 6px; background: #12161f; border: 1px solid var(--border-soft); }
.log-view {
  background: #0b0e13; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 0; max-height: 420px; overflow: auto;
  font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; color: #c8d1e0;
}
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.activity-list li { display: flex; gap: 11px; align-items: baseline; padding: 8px 10px; background: #12161f; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: 12.5px; }
.activity-list .sev { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.activity-list .sev.error { background: var(--red); }
.activity-list .sev.info { background: var(--blue); }
.activity-list .sev.warning { background: var(--amber); }
.activity-list time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.activity-list .cat { color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------- files */
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; word-break: break-all; }
.quick-files { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.quick-files button { background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--text); border-radius: 99px; padding: 5px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.quick-files button:hover { border-color: var(--accent); color: var(--accent); }
.file-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.file-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 7px 9px; border-bottom: 1px solid var(--border); }
.file-table td { padding: 8px 9px; border-bottom: 1px solid var(--border-soft); }
.file-table tr:hover td { background: rgba(255,255,255,.02); }
.file-table .name { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.file-table .name:hover { color: var(--accent); }
.file-table .dir { color: var(--blue); }
.file-table .size, .file-table .mod { color: var(--muted); font-size: 12px; white-space: nowrap; }
.editor {
  min-height: 420px; font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  line-height: 1.6; resize: vertical; white-space: pre; overflow: auto; tab-size: 2;
}

/* --------------------------------------------------------------- setup */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-card {
  width: min(560px, 100%);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow);
}
.setup-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.setup-brand h1 { margin: 0; font-size: 19px; }
.setup-brand p { margin: 2px 0 0; font-size: 13px; }
.setup-step { margin-bottom: 18px; }
.setup-step h2 { font-size: 13px; margin: 0 0 6px; letter-spacing: .3px; }
.setup-step p { font-size: 12.5px; margin: 0 0 9px; line-height: 1.5; }
.setup-actions { display: flex; gap: 10px; margin-top: 20px; }
.setup-actions .btn { flex: 1; justify-content: center; }
.setup-manual { margin-top: 12px; }
.setup-manual summary { cursor: pointer; user-select: none; }
.setup-manual summary:hover { color: var(--accent); }
.setup-manual input { margin-top: 9px; }
.setup-manual p { margin: 7px 0 0; line-height: 1.5; }

/* --------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; z-index: 100; max-width: 380px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; box-shadow: var(--shadow);
  animation: slidein .18s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.loading { color: var(--muted); font-size: 13px; padding: 14px 2px; }

/* --------------------------------------------------------------- world map */
.map-wrap {
  position: relative; min-height: 620px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  overflow: hidden; background: #0b0e13;
}
.map-frame { display: block; width: 100%; height: 620px; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-list li {
  position: relative; padding: 10px 14px 10px 34px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: #12161f;
  font-size: 12.5px; line-height: 1.55;
}
.plain-list li::before { position: absolute; left: 13px; top: 10px; font-weight: 700; }
.plain-list li.ok::before { content: "\2713"; color: var(--green); }
.plain-list li.no::before { content: "\2715"; color: var(--red); }
.plain-list li.warn::before { content: "!"; color: var(--amber); }
.applied-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: #12161f; font-size: 12.5px;
}
.applied-chip .value { font-size: 11.5px; }

/* --------------------------------------------------- backups / worlds / tasks */
.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.group-block { margin-bottom: 18px; }
.group-block:last-child { margin-bottom: 0; }
.group-block .card-head h2 { font-size: 13px; }
.select { width: auto; min-width: 170px; }
.raw-lists { display: flex; flex-direction: column; gap: 16px; }
.raw-file { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.raw-file .card-head { margin-bottom: 8px; }
.add-row input[type="number"] { max-width: 84px; }
.add-row .btn { white-space: nowrap; }
.alert.small { font-size: 12px; padding: 8px 11px; line-height: 1.45; }
.badge + .badge { margin-left: 6px; }
.file-table .name .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a6520);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #241b06;
  flex: 0 0 auto;
}
.file-table .name { cursor: default; }
