.offcut {
    max-width: 760px;
}
.offcut .offcut-form {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.offcut-form [hidden] {
    display: none !important;
}
.offcut-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font: inherit;
}
.offcut-decor {
    display: grid;
    gap: 8px;
}
.offcut-decor p {
    color: var(--muted);
    font-size: .9rem;
}
.offcut-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.offcut-form legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 700;
}
.offcut-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 8px;
    margin-top: 12px;
}
.offcut-radios label { position: relative; cursor: pointer; }
.offcut-radios input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
}
.offcut-radios span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
    border: 2px solid #aa9784;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-weight: 700;
}
.offcut-radios span::before { content: ''; width: 12px; height: 7px; box-sizing: border-box; }
.offcut-radios input:checked + span { background: #76351f; border-color: #76351f; color: white; }
.offcut-radios input:checked + span::before { border-left: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(-45deg); }
.offcut-radios input:focus-visible + span { outline: 3px solid #165984; outline-offset: 3px; }
.offcut-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 15px 0; }
.offcut-links a { text-decoration: underline; }
.offer-choice { display: flex; gap: 9px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
.offer-choice input { width: 20px; height: 20px; accent-color: var(--rust); }
.offcut-sale p { color: var(--muted); font-size: .9rem; }
#offer-price { margin-top: 12px; align-items: end; }
#piece-price { font-weight: 700; }
.offcut-item { border-top: 1px solid var(--line); padding: 16px 0; }
.offcut-item p { white-space: pre-line; }
.offcut-form .offcut-sample {
    display: flex;
    align-items: center;
    gap: 12px;
}
.offcut-sample img {
    flex: none;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.offcut-form button {
    justify-self: start;
}
#stp-photo-match {
    min-width: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
#stp-photo-match summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--rust);
    padding: 8px 0;
}
#stp-photo-match p { margin: 8px 0; }
#stp-photo-match canvas { display: block; width: 90px; height: 90px; border-radius: 6px; margin-top: 12px; }
.stp-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#stp-photo-match button {
    background: white; border: 1px solid var(--line); border-radius: 6px; color: var(--ink);
    font: inherit; text-align: left; min-height: 44px; padding: 8px 12px; cursor: pointer;
}
.stp-photo-results { display: grid; gap: 6px; }
.stp-photo-results button { display: flex; align-items: center; gap: 10px; width: 100%; }
.stp-photo-results img { object-fit: cover; border-radius: 4px; }

/* [AI:gpt 2026-12-02] Ovládanie filtrov a akcií skladu; denník #11; vrátenie: odstrániť tento blok. */
.stock-filters { margin-bottom: 20px; }
.stock-reset { grid-column: 1 / -1; justify-self: start; }
.stock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.stock-actions form { margin: 0; }
.stock-actions a, .stock-actions button, .stock-reset { color: var(--rust); text-decoration: underline; font-weight: 700; }
.stock-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.stock-actions button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf9; cursor: pointer; }
