.dev-lead {
  margin: 0 0 14px;
  color: #ffd27a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.sheet-card.is-devices .sheet-x {
  top: 16px;
  right: 16px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 244, 220, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 176, 0.7);
}
.sheet-card.is-devices .sheet-x svg { width: 20px; height: 20px; }
.sheet-card.is-devices .sheet-x path { stroke-width: 2.4; }
.dev-note { margin: -6px 0 12px; color: #e7d7b4; font-size: 13px; line-height: 1.3; }
.dev-board {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}
.dev-slot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: start;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 10px 12px;
  border: 1px solid rgba(255, 220, 170, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(120px 80px at 0% 0%, rgba(255, 206, 140, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dev-slot.is-free {
  align-items: center;
  flex: 1 1 46px;
  min-height: 46px;
  padding: 8px 12px;
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 220, 170, 0.22);
  box-shadow: none;
}
.dev-slot.is-free strong { color: rgba(255, 236, 210, 0.72); font-size: 16px; font-weight: 700; }
.dev-os {
  display: grid;
  align-self: start;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 214, 150, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 206, 140, 0.18), rgba(28, 22, 52, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.dev-slot.is-free .dev-os { width: 40px; height: 40px; align-self: center; }
.dev-os.is-empty {
  background: transparent;
  border: 1.5px dashed rgba(255, 220, 170, 0.28);
  box-shadow: none;
}
.dev-os.is-ios,
.dev-os.is-ipad,
.dev-os.is-mac {
  background: linear-gradient(160deg, #4a4a54, #1a1a22);
  border-color: rgba(255, 255, 255, 0.22);
}
.dev-os.is-android {
  background: linear-gradient(160deg, #1f5a3c, #102418);
  border-color: rgba(155, 231, 160, 0.4);
}
.dev-os.is-windows {
  background: linear-gradient(160deg, #1d3d68, #101828);
  border-color: rgba(143, 212, 255, 0.4);
}
.dev-os.is-linux {
  background: linear-gradient(160deg, #3a3328, #1c1814);
  border-color: rgba(242, 242, 242, 0.28);
}
.dev-os.is-tv,
.dev-os.is-atv {
  background: linear-gradient(160deg, #4a3418, #22180e);
  border-color: rgba(255, 210, 122, 0.4);
}
.dev-os svg {
  width: 50%;
  height: 50%;
  display: block;
  margin: 0;
  justify-self: center;
  align-self: center;
}
.dev-copy { min-width: 0; }
.dev-slot strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dev-slot small {
  display: block;
  margin-top: 3px;
  color: #e4d3b0;
  font-size: 12px;
  line-height: 1.3;
}
.dev-facts { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.dev-facts div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.dev-facts span {
  flex: 0 0 72px;
  color: #b9a888;
  font-size: 12px;
  line-height: 1.25;
}
.dev-facts b {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.dev-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.dev-actions button,
.dev-save {
  flex: 1;
  min-height: 30px;
  border: 1px solid rgba(255, 206, 120, 0.35);
  border-radius: 10px;
  background: rgba(255, 196, 90, 0.08);
  color: #ffe2a0;
  font-size: 12px;
  font-weight: 800;
}
.dev-actions .is-danger { border-color: rgba(255, 120, 90, 0.45); color: #ffb3a0; background: rgba(255, 90, 70, 0.08); }
.dev-ask[hidden] { display: none; }
.dev-ask {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 4, 16, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
}
.dev-ask.is-on { animation: stFade 0.22s ease forwards; }
.dev-ask-card {
  width: min(360px, 100%);
  padding: 26px 20px 18px;
  border: 1px solid rgba(255, 214, 150, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(255, 196, 110, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(36, 28, 72, 0.98), rgba(12, 12, 32, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  transform: translateY(18px) scale(0.94);
}
.dev-ask.is-on .dev-ask-card { animation: devAskIn 0.42s cubic-bezier(0.2, 1.25, 0.36, 1) forwards; }
@keyframes devAskIn { to { transform: none; } }
.dev-ask-os {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(255, 206, 120, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.dev-ask-os svg { width: 46%; height: 46%; }
.dev-ask-kicker {
  margin: 0 0 4px;
  color: #ffd27a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.dev-ask-card h2 {
  margin: 0;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.dev-ask-text {
  margin: 10px 0 0;
  color: #e7dcc8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.dev-ask-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.dev-ask-keep,
.dev-ask-drop {
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
}
.dev-ask-keep {
  border: 1px solid rgba(255, 214, 150, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe7c2;
}
.dev-ask-drop {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #ff8d72, #e24b3a 58%, #c4332a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@keyframes devAskIn { to { transform: none; } }
@keyframes stFade { to { opacity: 1; } }
.dev-name {
  width: 100%;
  min-height: 32px;
  margin-bottom: 6px;
  padding: 0 8px;
  border: 1px solid rgba(255, 206, 120, 0.4);
  border-radius: 10px;
  background: rgba(8, 6, 20, 0.65);
  color: #fff;
  font: inherit;
  font-size: 14px;
}
#pane-devices .dev-board {
  max-width: none;
  overflow: visible;
  gap: 12px;
}
#pane-devices .dev-lead { margin-top: 0; }
#pane-devices .dev-slot:not(.is-free) {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 16px 16px 14px;
}
#pane-devices .dev-slot:not(.is-free) .dev-os {
  width: 58px;
  height: 58px;
  align-self: center;
  border-radius: 18px;
}
#pane-devices .dev-slot:not(.is-free) strong { font-size: 18px; }
#pane-devices .dev-facts {
  flex-flow: row wrap;
  gap: 8px;
  margin-top: 10px;
}
#pane-devices .dev-facts div {
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 214, 150, 0.16);
  border-radius: 12px;
  background: rgba(8, 6, 22, 0.4);
}
#pane-devices .dev-facts span { flex: none; font-size: 11px; }
#pane-devices .dev-slot:not(.is-free) .dev-actions {
  grid-column: 3;
  grid-row: 1;
  flex-direction: column;
  width: 156px;
  margin-top: 0;
}
#pane-devices .dev-actions button { min-height: 38px; }
#pane-devices .dev-free {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
#pane-devices .dev-free .dev-slot.is-free {
  flex: none;
  min-height: 64px;
}
.is-mobile #pane-devices .dev-slot:not(.is-free) {
  grid-template-columns: 48px minmax(0, 1fr);
}
.is-mobile #pane-devices .dev-slot:not(.is-free) .dev-actions {
  grid-column: 1 / -1;
  grid-row: auto;
  flex-direction: row;
  width: auto;
  margin-top: 4px;
}
.is-mobile #pane-devices .dev-facts { flex-direction: column; }
