:root{
  --bg:#f5f7fb;--panel:#ffffff;--panel-2:#f8fafc;--text:#172033;--muted:#64748b;--line:#dbe3ef;
  --primary:#2563eb;--primary-dark:#1d4ed8;--good:#15803d;--bad:#dc2626;--warn:#d97706;
  --shadow:0 18px 55px rgba(15,23,42,.09);--radius:22px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at top left,#e8f0ff 0,#f5f7fb 34%,#f9fafb 100%)}
.container{width:min(1240px,calc(100% - 32px));margin-inline:auto}.site-header{padding:48px 0 28px}.header-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:end}.eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:var(--primary)}h1,h2,h3{margin:0;line-height:1.1}h1{font-size:clamp(34px,5vw,60px);max-width:820px}h2{font-size:26px}h3{font-size:18px}.lead{font-size:18px;color:var(--muted);max-width:820px;margin:18px 0 0}.header-card,.panel,.article-placeholder{background:rgba(255,255,255,.86);border:1px solid rgba(219,227,239,.9);box-shadow:var(--shadow);border-radius:var(--radius);backdrop-filter:blur(10px)}.header-card{padding:18px;display:flex;gap:14px;align-items:center}.header-card small{display:block;color:var(--muted)}.status-dot{width:12px;height:12px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 6px rgba(217,119,6,.12)}.status-dot.ok{background:var(--good);box-shadow:0 0 0 6px rgba(21,128,61,.12)}.status-dot.err{background:var(--bad);box-shadow:0 0 0 6px rgba(220,38,38,.12)}
.layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(380px,.65fr);gap:24px;align-items:start}.panel{padding:24px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.sticky-head{position:sticky;top:0;background:rgba(255,255,255,.96);z-index:2;padding-top:4px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.span-2{grid-column:span 2}.field{display:flex;flex-direction:column;gap:7px}.field span,.check-line span{font-size:13px;font-weight:700;color:#475569}select,input[type=number],input[type=search]{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);padding:12px 13px;font:inherit;outline:none}select:focus,input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}.mini-stats{background:var(--panel-2);border:1px solid var(--line);border-radius:16px;padding:13px;color:var(--muted);font-size:14px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:28px 0 14px}.section-title small{color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.slot-card{background:var(--panel-2);border:1px solid var(--line);border-radius:18px;padding:15px}.slot-top{display:flex;gap:12px;align-items:center;margin-bottom:12px}.slot-icon{width:46px;height:46px;border-radius:14px;object-fit:contain;background:#eef2f7;border:1px solid var(--line)}.slot-title{display:block}.slot-subtitle{color:var(--muted)}.slot-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.slot-controls .field:last-child{grid-column:span 2}.check-line{display:flex;align-items:center;gap:9px;background:var(--panel-2);border:1px solid var(--line);border-radius:14px;padding:12px}.check-line.small{margin-top:10px;background:#fff}.check-line input{width:18px;height:18px;accent-color:var(--primary)}.search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;max-height:210px;overflow:auto;padding:2px}.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;cursor:pointer;font-size:14px}.chip input{accent-color:var(--primary)}.chip img{width:24px;height:24px;object-fit:contain}.primary,.ghost{border:0;border-radius:14px;padding:11px 14px;font-weight:800;cursor:pointer}.primary{background:var(--primary);color:#fff}.primary:hover{background:var(--primary-dark)}.ghost{background:#eef2ff;color:var(--primary)}.ghost:hover{background:#dfe7ff}.summary-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.summary-card{background:linear-gradient(180deg,#eff6ff,#fff);border:1px solid #cfe0ff;border-radius:18px;padding:14px}.summary-card span{display:block;color:var(--muted);font-size:13px}.summary-card strong{display:block;font-size:26px;margin-top:4px}.alerts{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:16px;padding:12px;margin-bottom:14px}.stats-table-wrap{max-height:720px;overflow:auto;border:1px solid var(--line);border-radius:18px}.stats-table{width:100%;border-collapse:collapse;background:#fff}.stats-table th,.stats-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left}.stats-table th{position:sticky;top:0;background:#f8fafc;z-index:1;color:#475569;font-size:13px}.stats-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:800}.positive{color:var(--good)}.negative{color:var(--bad)}.source-note{display:block;color:var(--muted);font-size:12px;font-weight:500;margin-top:2px}.article-placeholder{margin-top:24px;padding:28px}.article-placeholder p:last-child{color:var(--muted);margin-bottom:0}.site-footer{padding:28px 0 44px;color:var(--muted);font-size:14px}
@media (max-width: 980px){.header-grid,.layout{grid-template-columns:1fr}.results{order:-1}.form-grid,.slots{grid-template-columns:1fr}.span-2{grid-column:auto}.summary-cards{grid-template-columns:1fr}}
@media (max-width: 560px){.container{width:min(100% - 20px,1240px)}.panel{padding:16px}.site-header{padding-top:28px}.search-row{grid-template-columns:1fr}.panel-head{align-items:stretch;flex-direction:column}.debuffs{gap:10px}}
.slot-icon,
.item-icon {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  visibility: visible;
  background: #f4f6fb;
  border-radius: 10px;
}

.select-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-with-icon select {
  flex: 1;
  min-width: 0;
}

.picker-icon {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #f4f6fb;
  visibility: hidden;
}

.native-hidden-select {
  display: none !important;
}

.custom-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.custom-select-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e1ef;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #1f2937;
  font: inherit;
  text-align: left;
}

.custom-select-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.custom-select-current span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-placeholder {
  color: #7b8794;
}

.custom-select-arrow {
  color: #7b8794;
  flex: 0 0 auto;
}

.custom-select-panel {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 360px;
  background: #ffffff;
  border: 1px solid #d9e1ef;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 8px;
}

.custom-select-search {
  width: 100%;
  height: 38px;
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  padding: 0 10px;
  margin-bottom: 8px;
  font: inherit;
}

.custom-select-list {
  max-height: 290px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.custom-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #1f2937;
  font: inherit;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: #eef4ff;
}

.custom-select-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f6fb;
}

.slot-card .custom-select {
  width: 100%;
}

.slot-card .custom-select-panel {
  min-width: 320px;
}

.faq-wrapper {
  margin-top: 32px;
}

.article-placeholder {
  margin-top: 32px;
}

.content-card {
  background: #ffffff;
  border: 1px solid #e7ebf3;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}