.manufacture-sheets { min-width: 0; color: var(--app-text); }
.manufacture-sheets .sheet-heading, .manufacture-sheets .sheet-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.manufacture-sheets h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.manufacture-sheets h2 { font-size: 1.1rem; font-weight: 700; }
.manufacture-sheets p, .manufacture-sheets small { color: var(--app-muted); }
.manufacture-sheets p { margin-bottom: 0; }
.manufacture-sheets .sheet-panel { min-width: 0; border: 1px solid var(--app-border); border-radius: 14px; padding: 20px; background: var(--app-panel); }
.manufacture-sheets .sheet-toolbar > div { flex: 1 1 250px; }
.manufacture-sheets label, .manufacture-sheets .sheet-field { display: grid; gap: 7px; min-width: 0; font-size: .85rem; }
.manufacture-sheets input, .manufacture-sheets select { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--app-border); border-radius: 8px; background: #0d1f32; color: var(--app-text); font: inherit; }
.manufacture-sheets input::placeholder { color: var(--app-muted); }
.manufacture-sheets .sheet-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .85rem; }
.manufacture-sheets th, .manufacture-sheets td { padding: 12px 9px; border-bottom: 1px solid var(--app-border); overflow-wrap: anywhere; vertical-align: top; }
.manufacture-sheets th { color: var(--app-gold); background: var(--app-panel-soft); }
.manufacture-sheets th:first-child { width: 44px; }
.manufacture-sheets tbody tr:hover { background: rgba(129, 164, 196, .06); }
.manufacture-sheets td small { display: block; margin-top: 5px; }
.manufacture-sheets .sheet-button { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--app-gold); color: #06111d; text-decoration: none; font: inherit; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.manufacture-sheets .sheet-button:disabled { opacity: .45; cursor: not-allowed; }
.manufacture-sheets .sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.manufacture-sheets .sheet-actions a { color: var(--app-gold); }
.manufacture-sheets .sheet-actions form { margin: 0; }
.manufacture-sheets .sheet-actions button[value="delete"] { background: none; border: 0; padding: 0; color: #ffaaaa; font: inherit; }
.manufacture-sheets .sheet-link-status { color: var(--app-muted); font-size: .8rem; }
.manufacture-sheets .sheet-link-status.ready { color: var(--app-green); }
.manufacture-sheets .sheet-editor { margin-top: 22px; }
.manufacture-sheets summary { cursor: pointer; font-weight: 700; }
.manufacture-sheets .sheet-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 20px 0; }
.manufacture-sheets .sheet-url { grid-column: 1 / -1; }
.manufacture-sheets .sheet-error, .manufacture-sheets .errorlist { color: #ffaaaa; }
.manufacture-sheets :focus-visible { outline: 2px solid var(--app-gold); outline-offset: 3px; }
@media (max-width: 1150px) {
    .manufacture-sheets .sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .manufacture-sheets .sheet-table, .manufacture-sheets tbody { display: block; }
    .manufacture-sheets tbody tr:not([hidden]) { display: block; margin-bottom: 14px; border: 1px solid var(--app-border); border-radius: 8px; }
    .manufacture-sheets td { display: block; width: auto; border: 0; }
    .manufacture-sheets td[data-label]::before { content: attr(data-label); display: block; color: var(--app-muted); font-size: .75rem; margin-bottom: 4px; }
}
