:root { color-scheme: light; font-family: Arial, sans-serif; color: #102137; background: #f3f6fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 28px; padding: 24px max(24px, calc((100vw - 1120px)/2)); background: #142940; color: white; border-bottom: 5px solid #f7c84d; }
header h1 { margin: 4px 0 0; font-size: 28px; }
header small { letter-spacing: .13em; text-transform: uppercase; color: #d8e3ef; }
.brand { flex: none; font-weight: 900; font-size: 28px; letter-spacing: .08em; color: #f7c84d; }
.brand span { color: white; }
.auth-header .brand { text-decoration: none; }
.auth-header .brand:hover { text-decoration: underline; }
header nav[aria-label="Разделы кабинета"] { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
header nav[aria-label="Разделы кабинета"] a { color: white; }
@media (max-width: 720px) { header nav[aria-label="Разделы кабинета"] { flex-basis: 100%; } }
header button { margin-left: auto; }
header.cabinet-header { flex-wrap: wrap; row-gap: 18px; }
.cabinet-header nav { flex-basis: 100%; order: 2; }
.header-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.header-actions button { margin-left: 0; }
.header-link { margin-left: auto; color: white; font-weight: 700; }
.header-link + .header-link { margin-left: 0; }
header .header-link + button { margin-left: 0; }
main { max-width: 1168px; margin: 0 auto; padding: 28px 24px 70px; }
h2 { margin: 0 0 20px; font-size: 23px; }
h3 { margin: 0 0 18px; font-size: 20px; }
p { line-height: 1.45; }
.status { padding: 14px 18px; border-radius: 8px; background: #e7f0f8; border: 1px solid #aac8e2; }
.status.error { background: #fff0ee; border-color: #e3a69d; color: #862f24; }
.meta, .publish, .history, .model { background: white; border: 1px solid #cbd7e4; border-radius: 10px; box-shadow: 0 2px 10px #1021370a; }
.meta { padding: 12px 24px; margin-bottom: 20px; display: flex; gap: 30px; align-items: center; }
.meta p:last-child { color: #4c647d; }
.models { display: grid; gap: 18px; }
.palette { margin-bottom: 18px; }
.palette .checkbox-line { font-size: 15px; }
.model { padding: 24px; }
.model .settings { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.settings fieldset { display: flex; align-items: center; gap: 14px; border: 1px solid #cbd7e4; border-radius: 6px; min-height: 56px; }
.settings fieldset legend { font-size: 13px; font-weight: 700; }
.settings fieldset label { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.settings fieldset input { min-height: auto; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
input, select { min-height: 40px; padding: 8px 10px; border: 1px solid #91a7bb; border-radius: 6px; color: #102137; background: white; font: inherit; }
.rejection-reason { flex: 1 1 100%; }
.rejection-reason textarea { width: 100%; min-height: 88px; padding: 10px; border: 1px solid #91a7bb; border-radius: 6px; color: #102137; background: white; font: inherit; resize: vertical; }
input[aria-invalid="true"] { border-color: #a5382d; background: #fff3f1; }
input:focus, select:focus, button:focus, a:focus { outline: 3px solid #f7c84d; outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; }
.catalog-table-scroll { max-width: 100%; overflow-x: auto; }
.catalog-table-scroll table { min-width: 640px; }
.catalog-table-scroll:focus-visible { outline: 3px solid #f7c84d; outline-offset: 2px; }
.production-document .models { grid-template-columns: minmax(0, 1fr); }
.production-document .model { min-width: 0; overflow: visible; }
.production-document main { overflow-wrap: anywhere; }
.production-document .production-summary { margin: 18px 0; }
.production-document .production-summary h2 { margin-bottom: 10px; }
.production-document .production-summary p { margin-bottom: 0; }
.production-table-scroll { max-width: 100%; overflow-x: auto; }
.production-table-scroll:focus-visible { outline: 3px solid #d29400; outline-offset: 2px; }
@media print {
  .production-document { background: white; }
  .production-document header { padding: 16px 0; print-color-adjust: exact; }
  .production-document main { padding: 20px 0; max-width: none; }
  .production-document .model, .production-document .identity-card { box-shadow: none; break-inside: avoid; }
  .production-document .production-table-scroll { overflow: visible; }
  .production-document th, .production-document td { min-width: 0; padding: 8px; overflow-wrap: anywhere; }
  .production-document table { table-layout: fixed; }
  .production-document thead { display: table-header-group; }
}
th, td { padding: 12px 10px; border-bottom: 1px solid #dbe4ed; text-align: left; }
th { background: #eaf0f6; color: #213f5f; font-size: 13px; }
td input { width: 100%; max-width: 150px; }
.publish, .history { margin-top: 20px; padding: 24px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
.fields label { min-width: 0; }
.fields input, .fields select { width: 100%; max-width: 100%; }
.fields .wide-field { grid-column: 1 / -1; }
.model-link-choices { border: 1px solid #cbd7e4; border-radius: 6px; padding: 12px 14px; }
.model-link-choices legend { font-size: 14px; font-weight: 700; }
.model-link-choices > div { display: grid; gap: 10px; }
.model-link-choices .checkbox-line { font-weight: 500; }
.model-link-choices input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.publish-confirmation { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; margin: auto; padding: 28px; border: 1px solid #9bb3c9; border-radius: 12px; color: #102137; background: white; box-shadow: 0 20px 60px #10213745; }
.publish-confirmation::backdrop { background: #102137a8; }
.publish-confirmation h2 { margin-bottom: 10px; }
.publish-confirmation p { margin: 0 0 18px; }
.publish-confirmation form { display: grid; gap: 12px; }
.publish-confirmation input { width: 100%; max-width: 220px; font-size: 26px; letter-spacing: .18em; }
.publish-confirmation .actions { margin-top: 8px; }
.publish-confirmation .actions button { flex: 1 1 auto; }
.publish-confirmation [hidden] { display: none; }
.publish-confirmation .confirmation-status { min-height: 1.5em; color: #38536e; }
.publish-confirmation .confirmation-status.error { color: #862f24; font-weight: 700; }
#publish-confirmation-status { min-height: 1.5em; color: #38536e; }
#publish-confirmation-status.error { color: #862f24; font-weight: 700; }
.publish-confirmation a { display: inline-block; margin-top: 16px; color: #183f68; }
button { border: 0; border-radius: 6px; background: #e5a919; color: #102137; padding: 11px 17px; font: inherit; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { background: #f7c84d; }
button:disabled { opacity: .48; cursor: not-allowed; }
button.quiet { background: transparent; color: white; border: 1px solid #9eb1c5; }
button.secondary { background: #e7edf3; color: #213f5f; border: 1px solid #cbd7e4; }
.source-lead { margin-bottom: 24px; overflow-wrap: anywhere; }
.source-lead dt { margin-top: 12px; font-weight: 700; }
.source-lead dd { margin: 4px 0 0; }
.source-lead button { margin-top: 12px; max-width: 100%; }
.actions a { color: #183f68; }
.production-link { display: inline-block; margin-left: 12px; color: #183f68; font-weight: 700; }
.impact { margin-top: 20px; overflow-x: auto; }
.history button { font-size: 13px; padding: 7px 11px; }
.history li { padding: 8px 0; border-bottom: 1px solid #dbe4ed; }
.history ul { list-style: none; padding: 0; }
.history small { color: #536b82; }
.revision-history li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.revision-history li span { flex: 1 1 20rem; overflow-wrap: anywhere; }
.revision-history li button { flex: 0 0 auto; }
.catalog-draft-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.catalog-draft-entry span { flex: 1 1 20rem; overflow-wrap: anywhere; }
.catalog-draft-entry button { flex: 0 0 auto; }
.identity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.identity-card { background: white; border: 1px solid #cbd7e4; border-radius: 10px; padding: 22px; min-width: 0; }
.identity-card form { display: grid; gap: 14px; }
.identity-card p { color: #4c647d; }
.identity-list { display: grid; gap: 14px; margin-top: 18px; }
.identity-list article { background: white; border: 1px solid #cbd7e4; border-radius: 10px; padding: 18px; min-width: 0; overflow-wrap: anywhere; }
.identity-list form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.identity-list form button { align-self: end; }
.identity-card form label, .identity-list form label { min-width: 0; }
.identity-card form input:not([type="checkbox"]), .identity-card form select,
.identity-list form input:not([type="checkbox"]), .identity-list form select { width: 100%; min-width: 0; max-width: 100%; }
.warning { padding: 14px 18px; border: 1px solid #e5a919; background: #fff9e9; border-radius: 8px; }
.checkbox-line { display: flex; align-items: center; gap: 10px; }
.checkbox-line input[type="checkbox"] { width: 18px; height: 18px; min-height: auto; flex: none; }
.section-row { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)) auto; gap: 12px; align-items: end; }
.section-row button { background: #e7edf3; }
.section-row input { width: 100%; }
.policy-heading { margin-top: 28px; }
.policy-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.policy-fields input, .policy-fields select { width: 100%; }
.policy-fields .checkbox-line input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
@media (max-width: 720px) { .section-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { header { padding: 20px; gap: 12px; flex-wrap: wrap; } header h1 { font-size: 22px; } header button { margin-left: 0; } .meta { display: block; } .fields { grid-template-columns: minmax(0, 1fr); } .model { overflow-x: auto; } th, td { min-width: 120px; } }

.auth-header { gap: 24px; }
.auth-main { max-width: 608px; padding-top: 64px; }
.auth-card { background: white; border: 1px solid #cbd7e4; border-radius: 14px; padding: 36px; box-shadow: 0 8px 28px #1429400a; }
.auth-card h1 { margin: 0 0 16px; font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.auth-intro, .auth-note { color: #4c647d; }
.auth-card form { display: grid; gap: 20px; margin-top: 28px; }
.auth-card label { display: grid; gap: 10px; font-weight: 700; }
.auth-card input { width: 100%; min-width: 0; min-height: 48px; font: inherit; }
.auth-card button { min-height: 48px; font: inherit; font-weight: 700; }
.auth-card input:focus-visible, .auth-card button:focus-visible, .auth-back:focus-visible { outline: 3px solid #d29400; outline-offset: 3px; }
.auth-status { min-height: 1.5em; margin: 20px 0; overflow-wrap: anywhere; }
.auth-status:empty { margin-bottom: 0; }
.auth-note { margin-bottom: 0; font-size: 14px; }
.auth-switch { background: #eaf2f9; border: 1px solid #b9d0e4; border-radius: 8px; padding: 12px 14px; margin: 16px 0 0; }
.auth-switch a { color: #183f68; font-weight: 700; }
.auth-back { color: #183f68; font-weight: 700; }
@media (max-width: 720px) { .header-actions { margin-left: 0; } }
@media (max-width: 480px) { .auth-main { padding: 28px 16px; } .auth-card { padding: 24px; } .auth-card h1 { font-size: 26px; } .auth-header small { font-size: 11px; } }
