.view-tabs {
  display: flex; gap: 2px; margin-right: auto; margin-left: 1.5rem; padding: 2px;
  border: 1px solid var(--panel-edge); border-radius: 3px; background: rgba(4, 8, 18, .6);
}
.view-tabs button {
  padding: .3rem .85rem; font: inherit; font-family: "Orbitron", sans-serif; font-size: .66rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; border-radius: 2px; cursor: pointer; transition: color .15s, background .15s;
}
.view-tabs button:hover { color: var(--text); }
.view-tabs button[aria-current="page"] { color: #04121c; background: var(--accent); box-shadow: 0 0 12px rgba(79, 210, 255, .35); }
.view-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body[data-view="shipyard"] .layout { display: none; }

.shipyard {
  --weapon-tone: #ff8a5c; --primary-tone: #ff6b5c; --secondary-tone: #ffae5c; --utility-tone: #6cf0b0; --parasite-tone: #c49bff;
  --energy: #ffd166; --ion: #c49bff; --explosive: #ff8a5c;
  --capital: #4fd2ff; --screen: #6cf0b0; --support: #f7cf7f; --fighter: #ff8a7a; --insertion: #9fb8ff;
  --grid: rgba(79, 210, 255, .07);
  position: relative;
  height: calc(100% - var(--topbar));
  display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: .75rem; padding: .75rem;
}
.shipyard [data-category="capital"], .shipyard[data-category="capital"] { --tone: var(--capital); }
.shipyard [data-category="screen"] { --tone: var(--screen); }
.shipyard [data-category="support"] { --tone: var(--support); }
.shipyard [data-category="fighter"] { --tone: var(--fighter); }
.shipyard [data-category="insertion"] { --tone: var(--insertion); }
.shipyard .slot-primary { --tone: var(--primary-tone); }
.shipyard .slot-secondary { --tone: var(--secondary-tone); }
.shipyard .slot-utility, .shipyard .slot-extra { --tone: var(--utility-tone); }
.shipyard .slot-parasite { --tone: var(--parasite-tone); }
.shipyard .tone-energy { --tone: var(--energy); }
.shipyard .tone-ion { --tone: var(--ion); }
.shipyard .tone-explosive { --tone: var(--explosive); }

.sy-icon {
  width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em;
}
.sy-icon .fill { fill: currentColor; fill-opacity: .22; stroke: none; }
.sy-icon .solid { fill: currentColor; stroke: none; }
.sy-icon .dash { stroke-dasharray: 2 2.2; }
.sy-icon .thick { stroke-width: 3.2; }
.sy-icon .bad { stroke: var(--bad); }

.sy-library, .sy-stage {
  position: relative; min-height: 0;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 4px; backdrop-filter: blur(6px);
}
.sy-library {
  display: flex; flex-direction: column; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.sy-library::before, .sy-stage::before {
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; z-index: 1;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.sy-lib-head { display: grid; gap: .55rem; padding: .9rem 1rem .7rem; border-bottom: 1px solid var(--panel-edge); }
.sy-lib-head .panel-title { margin: 0; }
.sy-seg { display: flex; padding: 2px; gap: 2px; background: rgba(4, 8, 18, .7); border: 1px solid var(--panel-edge); border-radius: 3px; }
.sy-seg button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .32rem .5rem;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 2px; cursor: pointer;
}
.sy-seg button:hover { color: var(--text); }
.sy-seg button[aria-pressed="true"] { color: var(--text); background: rgba(79, 210, 255, .16); box-shadow: inset 0 0 0 1px rgba(79, 210, 255, .45); }
.sy-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sy-search {
  display: flex; align-items: center; gap: .45rem; padding: 0 .6rem;
  color: var(--muted); background: rgba(4, 8, 18, .8); border: 1px solid var(--panel-edge); border-radius: 3px;
}
.sy-search:focus-within { border-color: var(--accent); color: var(--accent); }
.sy-search input { flex: 1; min-width: 0; padding: .45rem 0; font: inherit; font-size: .95rem; color: var(--text); background: none; border: 0; outline: none; }
.sy-class-filter select { flex: 1; min-width: 0; padding: .45rem 0; font: inherit; font-size: .95rem; color: var(--text); background: none; border: 0; outline: none; cursor: pointer; }
.sy-class-filter select option, .sy-class-filter select optgroup { color: var(--text); background: #0b1324; }
.sy-class-filter[hidden] { display: none; }
.sy-list-head {
  display: flex; justify-content: space-between; align-items: center; padding: .55rem 1rem .25rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.sy-count { padding: 0 .45rem; border-radius: 8px; background: rgba(79, 210, 255, .14); color: var(--accent); font-weight: 700; letter-spacing: 0; }
.sy-list { list-style: none; margin: 0; padding: .25rem .6rem .6rem; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: .35rem; }
.sy-list-note { padding: 1rem .5rem; color: var(--muted); font-size: .9rem; text-align: center; }
.sy-card {
  width: 100%; display: flex; align-items: center; gap: .65rem; padding: .4rem .5rem; text-align: left;
  font: inherit; color: var(--text); background: rgba(4, 8, 18, .45); border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sy-card:hover { border-color: var(--panel-edge); background: rgba(79, 210, 255, .06); }
.sy-card[aria-current="true"] { border-color: var(--accent); background: rgba(79, 210, 255, .1); box-shadow: inset 3px 0 0 var(--accent); }
.sy-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sy-thumb {
  position: relative; width: 72px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 2px;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 8px 8px, #050b18;
  border: 1px solid rgba(31, 53, 86, .8);
}
.sy-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sy-thumb svg { width: 100%; height: 100%; }
.sy-card-text { display: grid; min-width: 0; line-height: 1.15; }
.sy-card-name { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-card-sub { font-size: .8rem; color: var(--muted); }
.sy-card-owner, .sy-faction { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--owner); font-weight: 600; }
.sy-card-owner::before, .sy-faction::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--owner); box-shadow: 0 0 6px var(--owner); }
.sy-new {
  margin: .6rem; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem;
  font: inherit; font-family: "Orbitron", sans-serif; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: #04121c; background: var(--accent); border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 0 16px rgba(79, 210, 255, .3);
}
.sy-new:hover:not(:disabled) { background: #8ae3ff; }
.sy-new:disabled { opacity: .5; cursor: default; }
.sy-new:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sy-stage { overflow-y: auto; padding: 1.2rem 1.4rem 1.4rem; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.sy-empty { min-height: 60%; display: grid; place-items: center; align-content: center; gap: .8rem; }
.sy-spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--panel-edge); border-top-color: var(--accent); animation: sy-spin .9s linear infinite; }
@keyframes sy-spin { to { transform: rotate(360deg); } }
.sy-note { margin: .4rem 0; padding: .5rem .7rem; font-size: .9rem; color: var(--warn); background: rgba(247, 207, 127, .07); border-left: 2px solid var(--warn); }
.sy-title { margin: .1rem 0 .3rem; font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.sy-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-family: "Orbitron", sans-serif; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tone, var(--accent));
}
.sy-eyebrow strong { color: var(--text); font-weight: 500; }
.sy-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.sy-badge {
  display: inline-block; padding: .05rem .4rem; font-family: "Rajdhani", sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(79, 210, 255, .4); border-radius: 2px;
}
.sy-badge.warn { color: var(--warn); border-color: rgba(247, 207, 127, .45); }
.sy-badge.tier { color: var(--tone, var(--accent)); border-color: color-mix(in srgb, var(--tone, var(--accent)) 50%, transparent); }
.sy-tag.tag-role { --tone: var(--secondary-tone); }
.sy-tag.role-primary { --tone: var(--primary-tone); }
.sy-no-ftl { display: flex; align-items: center; gap: .35rem; align-self: end; margin: 0; min-height: 36px; }
.sy-role-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sy-role {
  --tone: var(--secondary-tone);
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; text-align: left; font: inherit; color: var(--muted);
  background: rgba(4, 8, 18, .5); border: 1px solid rgba(31, 53, 86, .9); border-radius: 3px; cursor: pointer;
}
.sy-role.role-primary { --tone: var(--primary-tone); }
.sy-role .sy-icon { width: 28px; height: 28px; color: var(--tone); }
.sy-role span { display: grid; gap: .1rem; }
.sy-role strong { font-family: "Orbitron", sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.sy-role small { font-size: .85rem; }
.sy-role:hover { border-color: var(--tone); }
.sy-role[aria-pressed="true"] { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, rgba(4, 8, 18, .5)); box-shadow: inset 0 0 14px color-mix(in srgb, var(--tone) 20%, transparent); }
.sy-role:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sy-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.sy-actions .wp-btn, .sy-image-actions .wp-btn, .rename-actions .wp-btn { display: inline-flex; align-items: center; gap: .35rem; }
.sy-icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; flex: none;
  color: var(--muted); background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
}
.sy-icon-btn:hover { color: var(--text); border-color: var(--panel-edge); }
.sy-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sy-home { display: grid; gap: 1.2rem; }
.sy-home-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: center;
  padding: 1rem; border: 1px solid var(--panel-edge); overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 30% 50%, rgba(79, 210, 255, .12), transparent 65%), #040a17;
}
.sy-home-art { aspect-ratio: 2 / 1; position: relative; }
.sy-home-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(79, 210, 255, .18), transparent) no-repeat;
  background-size: 18% 100%; animation: sy-scan 4.5s ease-in-out infinite;
}
@keyframes sy-scan { from { background-position: -20% 0; } to { background-position: 120% 0; } }
.sy-home-title { margin: .2rem 0 .5rem; font-family: "Orbitron", sans-serif; font-size: 2.3rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 18px rgba(79, 210, 255, .4); }
.sy-home-copy .muted { font-size: 1rem; line-height: 1.4; }
.sy-home-stats { display: flex; gap: 1.6rem; margin: 1rem 0 0; }
.sy-home-stats dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sy-home-stats dd { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.sy-home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.sy-cta {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; text-align: left;
  font: inherit; color: var(--text); background: rgba(4, 8, 18, .55); border: 1px solid var(--panel-edge); border-radius: 3px; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sy-cta:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(79, 210, 255, .15); transform: translateY(-1px); }
.sy-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sy-cta-art { width: 130px; aspect-ratio: 2 / 1; flex: none; }
.sy-cta-art svg { width: 100%; height: 100%; }
.sy-cta-text { display: grid; gap: .2rem; }
.sy-cta-text strong { font-family: "Orbitron", sans-serif; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.sy-cta-text small { color: var(--muted); font-size: .9rem; }

.sy-view-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.sy-hero-art, .sy-blueprint, .sy-weapon-stage {
  position: relative; margin: 0; aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(79, 210, 255, .35);
  background:
    linear-gradient(rgba(79, 210, 255, .13) 1px, transparent 1px) -1px -1px / 40px 40px,
    linear-gradient(90deg, rgba(79, 210, 255, .13) 1px, transparent 1px) -1px -1px / 40px 40px,
    linear-gradient(var(--grid) 1px, transparent 1px) -1px -1px / 8px 8px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) -1px -1px / 8px 8px,
    radial-gradient(ellipse at center, #0b2546, #051024 75%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
}
.sy-hero-art::before, .sy-blueprint::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px dashed rgba(79, 210, 255, .2);
}
.sy-hero-art > svg, .sy-blueprint > svg, .sy-weapon-stage svg { width: 94%; height: 94%; }
.sy-hero-art.has-image { background: #03060d; }
.sy-hero-art.has-image::before { display: none; }
.sy-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sy-hero-badge {
  position: absolute; right: .5rem; bottom: .5rem; width: 110px; aspect-ratio: 2 / 1; padding: 4px;
  background: rgba(5, 16, 36, .85); border: 1px solid rgba(79, 210, 255, .4); border-radius: 2px;
}
.sy-hero-badge svg { width: 100%; height: 100%; }
.sy-hero-info { display: grid; gap: .35rem; align-content: start; }
.sy-origin { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .85rem; color: var(--muted); }
.sy-description { margin: .4rem 0 0; white-space: pre-line; line-height: 1.4; color: #c4d3e6; }

.sy-statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .5rem; margin: 1.2rem 0 0; }
.sy-readouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; margin: 0; }
.sy-stat {
  --tone: var(--accent);
  display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem;
  background: linear-gradient(135deg, rgba(79, 210, 255, .06), rgba(4, 8, 18, .4)); border: 1px solid rgba(31, 53, 86, .9);
  border-left: 2px solid var(--tone); border-radius: 2px;
}
.sy-stat > .sy-icon { width: 1.6rem; height: 1.6rem; color: var(--tone); }
.sy-stat > div { min-width: 0; }
.sy-stat dt { font-size: .7rem; letter-spacing: .1em; line-height: 1.15; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.sy-stat dd { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sy-stat dd small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.sy-stat-note { display: block; font-size: .75rem; color: var(--muted); }
.sy-stat.tone-armor { --tone: #c9b79a; } .sy-stat.tone-shield { --tone: #4fd2ff; } .sy-stat.tone-damage { --tone: #ff8a5c; }
.sy-stat.tone-cost { --tone: #9fb8d4; } .sy-stat.tone-health { --tone: #ff7a9a; } .sy-stat.tone-good { --tone: var(--good); }

.sy-loadout { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.sy-column, .sy-used { padding: .7rem; background: rgba(4, 8, 18, .4); border: 1px solid rgba(31, 53, 86, .9); border-top: 2px solid var(--tone, var(--accent)); }
.sy-used { margin-top: 1.2rem; }
.sy-column-head {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem;
  font-family: "Orbitron", sans-serif; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tone, var(--accent));
}
.sy-column-head > span:last-child { margin-left: auto; font-family: "Rajdhani", sans-serif; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.sy-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sy-row { display: flex; gap: .55rem; align-items: flex-start; padding: .4rem .45rem; background: rgba(12, 20, 38, .6); border-radius: 2px; }
.sy-row.empty { align-items: center; color: rgba(127, 147, 173, .55); font-size: .85rem; border: 1px dashed rgba(127, 147, 173, .2); background: none; }
.sy-row-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 3px;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
}
.sy-row.empty .sy-row-icon { width: 20px; height: 20px; background: none; border-style: dashed; border-color: rgba(127, 147, 173, .3); }
.sy-row-icon .sy-icon { width: 20px; height: 20px; }
.sy-row-text { display: grid; gap: .15rem; min-width: 0; }
.sy-row-text strong { font-weight: 600; }
.sy-count-badge { margin-left: .4rem; padding: 0 .35rem; font-size: .8rem; color: #04121c; background: var(--tone); border-radius: 2px; }
.sy-row-text small { color: var(--muted); font-size: .82rem; line-height: 1.25; }
.sy-tier { margin-left: .4rem; padding: 0 .3rem; font-size: .72rem; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent); border-radius: 2px; }
.sy-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.sy-tag {
  --tone: var(--accent);
  display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .45rem; font-size: .8rem; font-weight: 600;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); border-radius: 2px;
}
.sy-tag small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sy-tag.secondary { border-style: dashed; }
.sy-tag.tag-type { --tone: #dce8f7; } .sy-tag.tag-extra { --tone: #f7cf7f; }
.sy-tag.tag-energy { --tone: var(--energy); } .sy-tag.tag-ion { --tone: var(--ion); } .sy-tag.tag-explosive { --tone: var(--explosive); }
.sy-used-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.sy-chip-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .55rem .25rem .3rem;
  font: inherit; font-weight: 600; color: var(--text); background: rgba(12, 20, 38, .7); border: 1px solid var(--panel-edge); border-radius: 3px; cursor: pointer;
}
.sy-chip-link:hover { border-color: var(--accent); }
.sy-chip-link svg { width: 54px; height: 27px; }

.sy-edit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sy-edit-title { flex: 1; min-width: 240px; }
.sy-name {
  width: 100%; margin-top: .25rem; padding: .35rem .1rem; font: inherit; font-family: "Orbitron", sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--panel-edge); outline: none;
}
.sy-name:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.sy-name::placeholder { color: rgba(127, 147, 173, .55); }
.sy-editor .sy-field .sy-name { font-size: 1.1rem; }
.sy-edit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
.sy-blueprint-card, .sy-spec-card { padding: .8rem; background: rgba(4, 8, 18, .4); border: 1px solid rgba(31, 53, 86, .9); }
.sy-class-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sy-gauges { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.sy-gauge { display: inline-flex; align-items: center; gap: .4rem; color: var(--tone); }
.sy-pips { display: inline-flex; gap: 3px; }
.sy-pips i { width: 9px; height: 12px; border: 1px solid color-mix(in srgb, var(--tone) 60%, transparent); transform: skewX(-18deg); }
.sy-pips i.on { background: var(--tone); box-shadow: 0 0 6px var(--tone); }
.sy-block-head {
  display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .6rem;
  font-family: "Orbitron", sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.sy-block-head small { font-family: "Rajdhani", sans-serif; font-size: .8rem; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.sy-spec-card .sy-block-head:not(:first-child) { margin-top: 1rem; }
.sy-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.sy-field { display: grid; gap: .3rem; align-content: start; }
.sy-field-label { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sy-hint { font-size: .78rem; color: var(--muted); }
.sy-field textarea, .sy-field > input:not(.sy-name) {
  width: 100%; padding: .5rem .6rem; font: inherit; font-size: .95rem; color: var(--text); resize: vertical;
  background: rgba(4, 8, 18, .8); border: 1px solid var(--panel-edge); border-radius: 3px;
}
.sy-field textarea:focus { outline: none; border-color: var(--accent); }
.sy-stepper { display: flex; height: 36px; border: 1px solid var(--panel-edge); border-radius: 3px; background: rgba(4, 8, 18, .85); overflow: hidden; }
.sy-stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim); }
.sy-stepper input {
  flex: 1; min-width: 0; width: 100%; padding: 0 .4rem; text-align: center; font: inherit; font-size: 1.15rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text); background: none; border: 0; outline: none;
}
.sy-stepper button {
  width: 32px; flex: none; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--muted); background: rgba(127, 147, 173, .08); border: 0; cursor: pointer;
}
.sy-stepper button:hover { color: var(--accent); background: rgba(79, 210, 255, .12); }
.sy-switch { display: flex; align-items: center; gap: .6rem; align-self: end; height: 36px; cursor: pointer; }
.sy-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sy-switch .sy-field-label { color: var(--text); font-weight: 600; }
.sy-track {
  position: relative; width: 40px; height: 20px; flex: none; margin-left: auto;
  border: 1px solid var(--panel-edge); border-radius: 10px; background: rgba(4, 8, 18, .9); transition: background .15s, border-color .15s;
}
.sy-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); transition: transform .15s, background .15s;
}
.sy-switch input:checked ~ .sy-track { background: rgba(108, 240, 176, .18); border-color: var(--good); }
.sy-switch input:checked ~ .sy-track::after { transform: translateX(20px); background: var(--good); box-shadow: 0 0 8px var(--good); }
.sy-switch input:focus-visible ~ .sy-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.sy-slot-groups { display: grid; gap: .9rem; margin-top: 1rem; }
.sy-slot-group { padding: .75rem; background: rgba(4, 8, 18, .4); border: 1px solid rgba(31, 53, 86, .9); border-top: 2px solid var(--tone); }
.sy-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .45rem; }
.sy-slot {
  position: relative; min-height: 64px; display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; text-align: left;
  font: inherit; color: var(--text); border-radius: 3px;
}
.sy-slot.empty {
  justify-content: center; color: color-mix(in srgb, var(--tone) 70%, var(--muted)); background: none; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--tone) 35%, transparent); transition: background .15s, border-color .15s;
}
.sy-slot.empty:hover { background: color-mix(in srgb, var(--tone) 8%, transparent); border-color: var(--tone); color: var(--tone); }
.sy-slot.empty:focus-visible { outline: 2px solid var(--tone); outline-offset: 1px; }
.sy-slot-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; }
.sy-slot.filled {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 12%, transparent), rgba(12, 20, 38, .7) 60%);
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
}
.sy-slot-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 3px;
  color: var(--tone); background: rgba(4, 8, 18, .7); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--tone) 18%, transparent);
}
.sy-slot-icon .sy-icon { width: 24px; height: 24px; }
.sy-slot-text { display: grid; gap: .15rem; min-width: 0; padding-right: 1.4rem; }
.sy-slot-text strong { font-weight: 600; line-height: 1.1; }
.sy-slot-text small { font-size: .78rem; color: var(--muted); }
.sy-slot-remove { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; }
.sy-tiers { display: inline-flex; gap: 2px; }
.sy-tiers button {
  min-width: 24px; padding: 0 .2rem; font: inherit; font-size: .72rem; font-weight: 700; color: var(--muted);
  background: rgba(4, 8, 18, .7); border: 1px solid rgba(31, 53, 86, .9); border-radius: 2px; cursor: pointer;
}
.sy-tiers button:hover { color: var(--text); }
.sy-tiers button[aria-pressed="true"] { color: #04121c; background: var(--tone); border-color: var(--tone); }

.sy-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.sy-pair.wide { margin-top: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.sy-image { display: grid; gap: .5rem; }
.sy-image.dragging .sy-image-drop { border-color: var(--accent); background: rgba(79, 210, 255, .08); }
.sy-image-drop {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  border: 1px dashed rgba(127, 147, 173, .4); border-radius: 3px; background: rgba(4, 8, 18, .6);
}
.sy-image-drop:hover, .sy-image-drop:focus-visible { border-color: var(--accent); outline: none; }
.sy-image-drop.filled { border-style: solid; background: #03060d; }
.sy-image-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sy-image-empty { display: grid; justify-items: center; gap: .2rem; color: var(--muted); font-weight: 600; }
.sy-image-empty .sy-icon { width: 30px; height: 30px; color: var(--accent); }
.sy-image-empty small { font-weight: 400; font-size: .78rem; }
.sy-image-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.sy-savebar {
  position: sticky; bottom: -1.4rem; z-index: 2; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 1.2rem -1.4rem -1.4rem; padding: .7rem 1.4rem;
  background: linear-gradient(180deg, rgba(8, 14, 28, .92), rgba(8, 14, 28, .99)); border-top: 1px solid var(--panel-edge);
}
.sy-savebar .sy-note, .sy-savebar .rename-error { margin: 0; }
.sy-editor.embedded .sy-savebar { position: static; margin: 1rem 0 0; padding: .7rem 0 0; background: none; }

.sy-picker .sy-note { margin-bottom: 1rem; }
.sy-class-group { margin-bottom: 1.2rem; }
.sy-class-head {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  font-family: "Orbitron", sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tone);
}
.sy-class-head small { margin-left: auto; font-family: "Rajdhani", sans-serif; font-size: .82rem; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.sy-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: .5rem; }
.sy-class {
  display: grid; gap: .25rem; padding: .5rem; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: rgba(4, 8, 18, .5); border: 1px solid rgba(31, 53, 86, .9); border-radius: 3px; transition: border-color .15s, background .15s, transform .15s;
}
.sy-class:hover { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 6%, rgba(4, 8, 18, .5)); transform: translateY(-1px); }
.sy-class:focus-visible { outline: 2px solid var(--tone); outline-offset: 1px; }
.sy-class[aria-pressed="true"] { border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone), 0 0 14px color-mix(in srgb, var(--tone) 25%, transparent); }
.sy-class-art { aspect-ratio: 2 / 1; display: block; }
.sy-class-art svg { width: 100%; height: 100%; }
.sy-class-name { font-weight: 700; }
.sy-class-meta { display: flex; gap: .7rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sy-class-meta span { display: inline-flex; align-items: center; gap: .2rem; }
.sy-class-badges { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 1px; }

.sy-weapon-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.sy-weapon-core { display: grid; gap: .8rem; }
.sy-weapon-preview { width: 100%; height: 100%; display: grid; place-items: center; }
.sy-block { margin-top: .9rem; }
.sy-type-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sy-type {
  display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem;
  font: inherit; font-family: "Orbitron", sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: rgba(4, 8, 18, .5); border: 1px solid rgba(31, 53, 86, .9); border-radius: 3px; cursor: pointer;
}
.sy-type .sy-icon { width: 26px; height: 26px; }
.sy-type:hover { color: var(--text); border-color: var(--accent); }
.sy-type[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: rgba(79, 210, 255, .1); box-shadow: inset 0 0 14px rgba(79, 210, 255, .15); }
.sy-damage-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sy-damage-groups > .sy-kind.none { grid-column: 1 / -1; justify-self: start; }
.sy-damage-group { padding: .5rem; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); background: color-mix(in srgb, var(--tone) 4%, rgba(4, 8, 18, .5)); border-radius: 3px; }
.sy-damage-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; margin-bottom: .4rem; }
.sy-damage-head strong { color: var(--tone); font-family: "Orbitron", sans-serif; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.sy-damage-head small { font-size: .78rem; color: var(--muted); }
.sy-kinds { display: flex; flex-wrap: wrap; gap: .3rem; }
.sy-kind, .sy-extra {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--muted); background: rgba(4, 8, 18, .6); border: 1px solid rgba(31, 53, 86, .9); border-radius: 2px; cursor: pointer;
}
.sy-kind:hover:not(:disabled), .sy-extra:hover:not(:disabled) { color: var(--text); border-color: var(--tone, var(--accent)); }
.sy-kind[aria-pressed="true"] { color: #04121c; background: var(--tone, var(--accent)); border-color: var(--tone, var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--tone, var(--accent)) 40%, transparent); }
.sy-kind:disabled, .sy-extra:disabled { opacity: .35; cursor: not-allowed; }
.sy-kind.none[aria-pressed="true"] { color: var(--text); background: rgba(127, 147, 173, .25); border-color: var(--muted); box-shadow: none; }
.sy-extras { display: flex; flex-wrap: wrap; gap: .4rem; }
.sy-extra { --tone: var(--warn); }
.sy-extra[aria-pressed="true"] { color: var(--warn); border-color: var(--warn); background: rgba(247, 207, 127, .12); }
.sy-kind:focus-visible, .sy-extra:focus-visible, .sy-type:focus-visible, .sy-tiers button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sy-overlay { z-index: 65; }
.sy-modal {
  width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 24, 46, .99), rgba(8, 14, 30, .99));
  border: 1px solid var(--panel-edge); box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: rise .2s ease-out both;
}
.sy-modal.wide { width: min(920px, 100%); }
.sy-modal.small { width: min(400px, 100%); }
.sy-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: 1rem 1.1rem .2rem; }
.sy-modal-head .rename-title { margin-bottom: .4rem; }
.sy-modal-body { padding: .2rem 1.1rem 1.05rem; overflow-y: auto; }
.sy-modal-text { margin: 0; color: #c4d3e6; }
.sy-module-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .45rem; }
.sy-module {
  display: flex; align-items: flex-start; gap: .6rem; padding: .55rem; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: rgba(4, 8, 18, .55); border: 1px solid rgba(31, 53, 86, .9); border-radius: 3px; transition: border-color .15s, background .15s;
}
.sy-module:hover:not(:disabled) { border-color: var(--tone, var(--accent)); background: color-mix(in srgb, var(--tone, var(--accent)) 7%, rgba(4, 8, 18, .55)); }
.sy-module:disabled { opacity: .45; cursor: not-allowed; }
.sy-module:disabled small { color: var(--bad); }
.sy-module:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sy-module-text { display: grid; gap: .2rem; min-width: 0; }
.sy-module-text small { font-size: .82rem; color: var(--muted); line-height: 1.25; }
.sy-module-meta { display: flex; flex-wrap: wrap; gap: .25rem; }
.sy-module-meta span { padding: 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); border-radius: 2px; }
.sy-module.weapon-option { --tone: var(--weapon-tone); }
.sy-weapon-thumb { position: relative; width: 92px; aspect-ratio: 2 / 1; flex: none; display: grid; place-items: center; overflow: hidden; background: #050b18; border: 1px solid rgba(31, 53, 86, .9); }
.sy-weapon-thumb svg, .sy-weapon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sy-weapon-thumb img { position: absolute; inset: 0; }

.sy-toast {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 5; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px));
  padding: .55rem 1rem; font-weight: 600; color: var(--text); background: rgba(8, 14, 28, .97);
  border: 1px solid var(--good); box-shadow: 0 0 18px rgba(108, 240, 176, .2); border-radius: 3px; animation: rise .2s ease-out both;
  transition: opacity .3s;
}
.sy-toast.bad { border-color: var(--bad); box-shadow: 0 0 18px rgba(255, 107, 125, .2); }
.sy-toast.leaving { opacity: 0; }

.ship-art { display: block; width: 100%; height: 100%; overflow: visible; --livery: var(--accent); }
.ship-art .hull { stroke: #e6f0ff; stroke-opacity: .55; stroke-width: .8; stroke-linejoin: round; }
.ship-art .plate { stroke: #dfeaff; stroke-opacity: .4; stroke-width: .6; stroke-linejoin: round; }
.ship-art .line { fill: none; stroke: #1b2638; stroke-opacity: .5; stroke-width: .8; }
.ship-art .plate-line { fill: rgba(20, 30, 48, .22); stroke: #1b2638; stroke-opacity: .45; stroke-width: .6; }
.ship-art .tower { fill: #e8f0fb; stroke: #2a3850; stroke-width: .7; }
.ship-art .window { fill: #8ae3ff; }
.ship-art .nozzle { fill: #26344a; stroke: #8ea3bf; stroke-width: .6; }
.ship-art .turret { fill: #9fb2cc; stroke: #1b2638; stroke-width: .7; }
.ship-art .turret-core { fill: #1b2638; }
.ship-art .barrel { fill: none; stroke: #2a3850; stroke-width: 1.6; stroke-linecap: round; }
.ship-art .deck { fill: #1a2436; stroke: #5d7290; stroke-width: .6; }
.ship-art .deckline { fill: none; stroke: #f7cf7f; stroke-opacity: .85; stroke-width: .9; stroke-dasharray: 6 4; }
.ship-art .deckmark { fill: none; stroke: #f7cf7f; stroke-opacity: .85; stroke-width: .9; }
.ship-art .deckedge { fill: none; stroke: #5d7290; stroke-width: .6; }
.ship-art .hangar { fill: #070c16; stroke: #5d7290; stroke-width: .6; }
.ship-art .livery { fill: var(--livery); fill-opacity: .9; }
.ship-art .livery-line { fill: none; stroke: var(--livery); stroke-width: 2.2; stroke-linecap: round; }
.ship-art .light { fill: #ff6b7d; }
.ship-art .spinal { fill: none; stroke: #4fd2ff; stroke-width: 1.4; stroke-dasharray: 2 3; }
.ship-art .muzzle, .ship-art .core { fill: #c8f3ff; stroke: #4fd2ff; stroke-width: 1.2; }
.ship-art .field { fill: rgba(196, 155, 255, .1); stroke: rgba(196, 155, 255, .55); stroke-width: .8; stroke-dasharray: 3 3; }
.ship-art .ring { fill: none; stroke: #9fb2cc; stroke-width: 5; }
.ship-art .ring-inner { fill: none; stroke: #c49bff; stroke-width: 1.2; }
.ship-art .strut { fill: none; stroke: #7f93ad; stroke-width: 2.2; stroke-linecap: round; }
.ship-art .arc { fill: none; stroke: #8ae3ff; stroke-width: 1; stroke-dasharray: 4 2; }
.ship-art .cargo { fill: #b7a585; stroke: #2a3850; stroke-width: .7; }
.ship-art .cross { fill: #ff6b7d; }
.ship-art .bay { fill: #1a2436; stroke: #8ea3bf; stroke-width: .6; }
.ship-art .canopy { fill: #4fd2ff; fill-opacity: .6; stroke: #dcf6ff; stroke-width: .6; }
.ship-art .fan { fill: #1a2436; stroke: #8ea3bf; stroke-width: 1; stroke-dasharray: 2 1.5; }
.ship-art .pod { fill: #5d7290; stroke: #1b2638; stroke-width: .7; }
.ship-art .heat { fill: none; stroke: #ff8a5c; stroke-width: 2; stroke-opacity: .75; }
.ship-art .hatch { fill: none; stroke: #1b2638; stroke-width: .8; }
.ship-art .tread { fill: none; stroke: #1b2638; stroke-width: 3; }
.ship-art.blueprint > * { fill: rgba(79, 210, 255, .05); stroke: #7fdcff; stroke-opacity: .85; stroke-width: .8; stroke-dasharray: none; }
.ship-art.blueprint > .hull { fill: rgba(79, 210, 255, .09); stroke: #a8ebff; stroke-width: 1.1; }
.ship-art.blueprint > .line, .ship-art.blueprint > .deckline, .ship-art.blueprint > .arc, .ship-art.blueprint > .spinal { fill: none; stroke-opacity: .5; stroke-dasharray: 3 2; }
.ship-art.blueprint > .glow { fill: rgba(79, 210, 255, .22); stroke: none; }
.ship-art.blueprint > .window, .ship-art.blueprint > .light, .ship-art.blueprint > .core, .ship-art.blueprint > .muzzle,
.ship-art.blueprint > .turret-core, .ship-art.blueprint > .livery, .ship-art.blueprint > .cross { fill: #7fdcff; stroke: none; }
.ship-art.blueprint > .barrel, .ship-art.blueprint > .strut, .ship-art.blueprint > .ring, .ship-art.blueprint > .tread, .ship-art.blueprint > .livery-line, .ship-art.blueprint > .heat { fill: none; stroke-width: 1.4; }
.ship-art.blueprint > .ring { stroke-width: 3; }

.weapon-art { display: block; width: 100%; height: 100%; --dmg: #4fd2ff; }
.weapon-art.primary .beam { stroke-width: 4.5; }
.weapon-art.primary .barrel-solid { stroke: var(--dmg); }
.weapon-art .backdrop { fill: none; }
.weapon-art .hull-solid { fill: #4d6283; stroke: #b8c9e0; stroke-width: .8; stroke-opacity: .7; }
.weapon-art .barrel-solid { fill: #8ea3bf; stroke: #2a3850; stroke-width: .8; }
.weapon-art .plate { fill: #6d84a6; stroke: #1b2638; stroke-width: .7; }
.weapon-art .line { fill: none; stroke: #1b2638; stroke-width: 1; stroke-opacity: .6; }
.weapon-art .turret-core { fill: var(--dmg); }
.weapon-art .tube { fill: #070c16; stroke: var(--dmg); stroke-width: 1.2; }
.weapon-art .fx { fill: none; stroke: var(--dmg); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--dmg)); }
.weapon-art .beam { stroke-width: 3; stroke: #fff8e0; }
.weapon-art .beam-glow { stroke-width: 10; stroke-opacity: .35; }
.weapon-art .flare, .weapon-art .orb, .weapon-art .slug { fill: var(--dmg); stroke: none; }
.weapon-art .orb-glow { fill: var(--dmg); fill-opacity: .3; stroke: none; }
.weapon-art .streak { stroke-width: 1; stroke-opacity: .6; }
.weapon-art .wave, .weapon-art .bolt, .weapon-art .pulse, .weapon-art .trail { stroke-width: 2; }
.weapon-art .spark, .weapon-art .burst { stroke-width: 1.4; }
.weapon-art .body { fill: #c7d4e6; stroke: #1b2638; stroke-width: .7; filter: none; }
.weapon-art .band { stroke: var(--dmg); stroke-width: 1.4; filter: none; }
.weapon-art .exhaust { stroke-width: 3; stroke-opacity: .8; }
.weapon-art .exhaust-glow { fill: var(--dmg); fill-opacity: .45; stroke: none; }
.weapon-art .steel { fill: #c7d4e6; stroke: #1b2638; stroke-width: .8; }
.weapon-art .edge { stroke-width: 2.4; }

@media (max-width: 1100px) {
  .sy-view-hero, .sy-edit-grid, .sy-weapon-top, .sy-home-hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .view-tabs { margin-left: .5rem; }
  .view-tabs button { padding: .3rem .5rem; letter-spacing: .1em; }
  .shipyard { height: auto; min-height: calc(100dvh - var(--topbar)); grid-template-columns: minmax(0, 1fr); padding: .6rem 12px; }
  .sy-library { max-height: none; }
  .sy-list { flex: none; max-height: 62dvh; }
  .sy-stage { overflow: visible; padding: 1rem 12px; }
  .sy-savebar { bottom: 0; margin: 1rem -12px -1rem; padding: .7rem 12px; }
  .sy-pair, .sy-pair.wide { grid-template-columns: minmax(0, 1fr); }
  .sy-statbar, .sy-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-stat { padding: .5rem; gap: .45rem; }
  .sy-stat > .sy-icon { width: 1.3rem; height: 1.3rem; }
  .sy-type-row, .sy-damage-groups, .sy-role-row { grid-template-columns: minmax(0, 1fr); }
  .sy-home-title { font-size: 1.7rem; }
  .sy-module-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .view-tabs { margin-left: 0; }
}

@media (pointer: coarse) {
  .sy-stepper { height: 44px; }
  .sy-stepper button { width: 44px; }
  .sy-tiers button { min-width: 34px; min-height: 30px; }
  .sy-slot-remove { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sy-home-art::after, .sy-spinner, .sy-modal, .sy-toast { animation: none !important; }
  .sy-cta, .sy-class { transition: none; }
}

.army-art:not(.blueprint) .ground { fill: rgba(0, 0, 0, .35); stroke: none; }
.army-art:not(.blueprint) .wheel { fill: #1b2638; stroke: #8ea3bf; stroke-width: .8; }
.army-art:not(.blueprint) .hub { fill: #5d7290; stroke: #1b2638; stroke-width: .6; }
.army-art:not(.blueprint) .track { fill: #1b2638; stroke: #5d7290; stroke-width: .8; }
.army-art:not(.blueprint) .tread-line { fill: none; stroke: #8ea3bf; stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 2 3; }
.army-art:not(.blueprint) .gun { fill: #8ea3bf; stroke: #1b2638; stroke-width: .7; }
.army-art:not(.blueprint) .visor { fill: #4fd2ff; stroke: #dcf6ff; stroke-width: .5; }
.ship-art.blueprint > .ground { fill: rgba(79, 210, 255, .1); stroke: none; }
.ship-art.blueprint > .visor { fill: #7fdcff; stroke: none; }
.ship-art.blueprint > .tread-line { fill: none; stroke-dasharray: 2 3; }

.sy-seg.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sy-role-row.sy-class-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sy-role.weapon-class { --tone: var(--accent); }
.sy-role.class-vehicle { --tone: #f7cf7f; }
.sy-role.class-troop { --tone: #8be0a4; }
.sy-tag.tag-class { --tone: var(--accent); }
.sy-tag.tag-stats { --tone: #8be0a4; }
.sy-tag.tag-roleplay { --tone: #c49bff; }
.sy-tag.tag-price { --tone: #f7cf7f; }
.sy-tag.tag-combat { --tone: #ff9a7a; }
.sy-tag.tag-armor_shield { --tone: #7fc8ff; }
.sy-tag.sy-rank { margin-left: .45rem; }
.sy-tag.rank-basic { --tone: #a9bad0; }
.sy-tag.rank-elite { --tone: #ffd36b; }
.sy-tag.sy-hero { --tone: #ff8a5c; }
.sy-limits { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .55rem; }
.sy-limits .sy-tag small { margin-left: .15rem; opacity: 1; }
.sy-limits .sy-tag.full { --tone: #6f7f95; }
.sy-health { margin-top: .8rem; display: grid; gap: .35rem; }
.sy-health-head { display: flex; align-items: center; gap: .4rem; color: #ff7a9a; font-size: .85rem; font-weight: 600; }
.sy-health-head span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.sy-health-head strong { margin-left: auto; color: #e9f1fb; font-variant-numeric: tabular-nums; }
.sy-health-bar { display: flex; justify-content: space-between; height: 10px; overflow: hidden; background: rgba(4, 10, 22, .7); border: 1px solid rgba(31, 53, 86, .9); border-radius: 2px; }
.sy-health-bar i { display: block; height: 100%; transition: width .15s ease; }
.sy-health-bar .armor { background: #6fdc8c; }
.sy-health-bar .shield { background: #4fd2ff; }
.sy-rank-group + .sy-rank-group { margin-top: .7rem; }
.sy-rank-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.sy-rank-head .sy-tag.sy-rank { margin-left: 0; }
.sy-rank-head small { color: var(--muted); font-size: .8rem; }
.troop-class.rank-elite { --tone: #ffd36b; }
.troop-class small { display: block; }
.sy-row-text .sy-tags, .sy-module-text .sy-tags { margin: .1rem 0; }
.sy-class-summary { font-size: .8rem; color: var(--muted); line-height: 1.25; }
@media (max-width: 760px) {
  .sy-role-row.sy-class-row, .sy-home-actions { grid-template-columns: minmax(0, 1fr); }
}
.army-art:not(.blueprint) .suit { fill: #2b3546; stroke: #111823; stroke-width: .7; }
.army-art:not(.blueprint) .armor-standard { fill: #8d9fb4; stroke: #1b2638; stroke-width: .7; }
.army-art:not(.blueprint) .armor-assault { fill: #5c626b; stroke: #14181e; stroke-width: .7; }
.army-art:not(.blueprint) .armor-marksman { fill: #5a6449; stroke: #1f271b; stroke-width: .7; }
.army-art:not(.blueprint) .armor-specialist { fill: #a8946c; stroke: #2e261a; stroke-width: .7; }
.army-art:not(.blueprint) .hazard { fill: #f2a33a; stroke: #2e1f0a; stroke-width: .5; }
.army-art:not(.blueprint) .pouch { fill: #3e4a3a; stroke: #151b14; stroke-width: .6; }
.army-art:not(.blueprint) .boot { fill: #232c38; stroke: #0e141d; stroke-width: .6; }
.army-art:not(.blueprint) .cloak { fill: #43503b; stroke: #1f271b; stroke-width: .7; }
.army-art:not(.blueprint) .camo { fill: none; stroke: #66774f; stroke-width: 3; stroke-linecap: round; }
.army-art:not(.blueprint) .cape { fill: var(--livery); fill-opacity: .55; stroke: var(--livery); stroke-width: .8; }
.army-art:not(.blueprint) .glow-line { fill: none; stroke: #4fd2ff; stroke-width: 1.1; stroke-linecap: round; }
.ship-art.blueprint > .camo, .ship-art.blueprint > .glow-line { fill: none; stroke-width: 1; }
.ship-art.blueprint > .cape { fill: rgba(79, 210, 255, .08); }
.ship-art.blueprint > .hazard { fill: #7fdcff; stroke: none; }
.ship-art.blueprint > .wheel, .ship-art.blueprint > .track { fill: rgba(79, 210, 255, .06); }
.army-art:not(.blueprint) .hazard-line { fill: none; stroke: #f2a33a; stroke-width: 2; stroke-opacity: .85; }
.ship-art.blueprint > .hazard-line { fill: none; }

.sy-lock {
  display: flex; gap: .9rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid rgba(255, 190, 92, .55); border-left: 3px solid #ffbe5c;
  border-radius: 4px; background: linear-gradient(100deg, rgba(255, 190, 92, .12), rgba(8, 14, 28, .92) 60%);
}
.sy-lock-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #ffbe5c; background: rgba(255, 190, 92, .12); border: 1px solid rgba(255, 190, 92, .4); }
.sy-lock-badge .sy-icon { width: 22px; height: 22px; }
.sy-lock-body { flex: 1; min-width: 0; display: grid; gap: .35rem; }
.sy-lock-eyebrow { font-family: "Orbitron", sans-serif; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #ffbe5c; }
.sy-lock-title { margin: 0; font-size: 1.15rem; }
.sy-lock-text, .sy-lock-more { margin: 0; color: var(--muted); line-height: 1.4; }
.sy-lock-list { list-style: none; margin: .15rem 0; padding: 0; display: grid; gap: 2px; max-width: 640px; }
.sy-lock-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem .5rem; border-radius: 3px; background: rgba(4, 8, 18, .55); }
.sy-lock-list li span { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-lock-list li.more { color: var(--muted); font-size: .85rem; }
.sy-lock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
.sy-lock-actions .sy-icon { width: 16px; height: 16px; }
.sy-readonly { opacity: .42; filter: saturate(.55); user-select: none; pointer-events: none; }
.sy-refit-note { display: flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; padding: .45rem .7rem; font-size: .9rem; color: var(--muted); border: 1px solid var(--panel-edge); border-radius: 3px; background: rgba(79, 210, 255, .05); }
.sy-refit-note .sy-icon { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 640px) {
  .sy-lock { flex-direction: column; }
  .sy-lock-list li { flex-direction: column; gap: 0; }
  .sy-lock-list li span { text-align: left; }
}

.sy-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.sy-card-tags:empty { display: none; }
.sy-card-built { font-size: .74rem; font-weight: 600; color: var(--accent); }
.sy-card-retired { display: inline-block; margin-left: .3rem; padding: 0 .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #ffd59a; border: 1px solid rgba(255, 190, 92, .5); border-radius: 2px; }
.sy-card-tags .sy-card-retired { margin-left: 0; }
.sy-card.retired { opacity: .6; }
.sy-card.variant { margin-left: 1.1rem; width: calc(100% - 1.1rem); border-left: 2px solid rgba(79, 210, 255, .35); }
.sy-card-tier { display: inline-block; padding: 0 .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--panel-edge); border-radius: 2px; }
.sy-card-tier.state-active { color: #8ff0b5; border-color: rgba(79, 224, 138, .5); }
.sy-card-tier.state-planned { color: #a8cfff; border-color: rgba(77, 157, 255, .5); }
.sy-variants li.current { border-color: var(--accent); }
.sy-tier-pick { height: 28px; padding: 0 .4rem; font: inherit; font-size: .8rem; color: var(--text); background: rgba(4, 8, 18, .85); border: 1px solid var(--panel-edge); border-radius: 3px; cursor: pointer; }
.sy-tier-pick option { color: var(--text); background: #0b1324; }
.sy-card-tier.state-draft { color: #ffd59a; border-color: rgba(255, 190, 92, .5); }
.sy-folder button {
  width: 100%; display: flex; align-items: center; gap: .45rem; margin-top: .35rem; padding: .3rem .4rem; font: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--panel-edge); cursor: pointer;
}
.sy-folder button:hover { color: var(--text); }
.sy-folder small { margin-left: auto; font-size: .78rem; letter-spacing: 0; color: var(--accent); }
.sy-folder-caret { width: .8rem; }
.sy-folder { display: flex; align-items: stretch; }
.sy-folder button.sy-folder-edit { width: auto; flex: none; padding: .3rem .45rem; opacity: .55; }
.sy-folder:hover button.sy-folder-edit, .sy-folder button.sy-folder-edit:focus-visible { opacity: 1; }
.sy-folder-edit svg { width: 14px; height: 14px; }
.sy-list-tools { display: flex; align-items: center; gap: .45rem; }
.sy-folder-new {
  display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .45rem; font: inherit; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); background: rgba(79, 210, 255, .08); border: 1px solid rgba(79, 210, 255, .35); border-radius: 3px; cursor: pointer;
}
.sy-folder-new:hover { background: rgba(79, 210, 255, .18); color: var(--text); }
.sy-folder-new svg { width: 12px; height: 12px; }
.sy-folder-items { display: grid; gap: .25rem; max-height: 46vh; overflow-y: auto; padding: .15rem; border: 1px solid var(--panel-edge); border-radius: 3px; background: rgba(4, 8, 18, .5); }
.sy-folder-item { display: flex; align-items: center; gap: .55rem; padding: .3rem .4rem; border-radius: 3px; cursor: pointer; }
.sy-folder-item:hover { background: rgba(79, 210, 255, .07); }
.sy-folder-item input { flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.sy-folder-item .sy-thumb { flex: none; }
.sy-built { margin: .2rem 0 .1rem; font-size: .9rem; font-weight: 600; color: var(--accent); }
.sy-built span { color: var(--muted); font-weight: 500; }
.sy-folder-form { display: grid; gap: .6rem; }
.sy-folder-form input { height: 34px; padding: 0 .5rem; font: inherit; color: var(--text); background: rgba(4, 8, 18, .85); border: 1px solid var(--panel-edge); border-radius: 3px; }
.sy-folder-picks { display: flex; flex-wrap: wrap; gap: .3rem; }
.sy-compare-pick select { height: 34px; padding: 0 .5rem; font: inherit; color: var(--text); background: rgba(4, 8, 18, .85); border: 1px solid var(--panel-edge); border-radius: 3px; }
.sy-compare-wrap { margin: .6rem 0; overflow-x: auto; }
.sy-compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sy-compare th, .sy-compare td { padding: .35rem .55rem; text-align: left; border-bottom: 1px solid rgba(31, 53, 86, .8); vertical-align: top; }
.sy-compare thead th { font-family: "Orbitron", sans-serif; font-size: .75rem; letter-spacing: .08em; color: var(--accent); }
.sy-compare tbody th { width: 26%; font-weight: 600; color: var(--muted); }
.sy-compare td small { color: inherit; opacity: .85; }
.sy-compare td.better { color: #6cf0b0; }
.sy-compare td.worse { color: #ff8e9b; }
.sy-compare td.changed { color: #8fdcff; }
.sy-history { margin-top: 1rem; }
.sy-history-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.sy-history-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; background: rgba(4, 8, 18, .5); border: 1px solid rgba(31, 53, 86, .9); border-radius: 3px; }
.sy-history-text { flex: 1; min-width: 220px; display: grid; gap: .1rem; }
.sy-history-text small { color: var(--muted); }
.sy-replace {
  display: flex; gap: .9rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid rgba(79, 210, 255, .45); border-left: 3px solid var(--accent);
  border-radius: 4px; background: linear-gradient(100deg, rgba(79, 210, 255, .1), rgba(8, 14, 28, .92) 60%);
}
.sy-replace .sy-lock-badge { color: var(--accent); background: rgba(79, 210, 255, .12); border-color: rgba(79, 210, 255, .4); }
.sy-replace .sy-lock-eyebrow { color: var(--accent); }

.weapon-art .mark { fill: var(--dmg); stroke: #1b2638; stroke-width: .7; }
.weapon-art.special .fx { stroke-width: 2.2; }
.sy-tag.tag-special { color: #ffd9a0; border-color: rgba(255, 200, 120, .45); }
.sy-special-row .sy-type svg, .sy-tag.tag-special svg { color: #ffc857; }
.sy-role-row.sy-class-row.troop-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.troop-class { align-items: center; }
.sy-troop-art { display: grid; place-items: center; width: 74px; height: 40px; flex: none; border-radius: 4px; background: rgba(4, 10, 22, .55); }
.sy-troop-art svg { width: 72px; height: 38px; }
@media (max-width: 1100px) { .sy-role-row.sy-class-row.troop-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sy-fixed { display: flex; align-items: center; height: 36px; padding: 0 .7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #e9f1fb; border: 1px dashed var(--panel-edge); border-radius: 3px; background: rgba(4, 8, 18, .5); }
.sy-calc-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
