* { box-sizing: border-box; }
body { margin: 0; background: #eff5f8; color: #15364c; font: 15px/1.5 Arial, sans-serif; }
[hidden] { display: none !important; }
.portal-header { display: flex; justify-content: space-between; padding: 18px max(20px,calc((100% - 1050px)/2)); background: #0a304d; color: white; }
.portal-header a { color: #cff0ff; }
.portal-header span { font-weight: 800; }
main { width: min(1050px,calc(100% - 32px)); margin: 34px auto 55px; }
h1 { font-size: clamp(29px,4vw,40px); line-height: 1.17; margin: 0; }
h2 { font-size: 19px; margin: 0 0 14px; }
.lead { color: #476479; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,350px); gap: 22px; align-items: start; }
section,aside { background: white; border: 1px solid #d5e4ed; border-radius: 13px; padding: 20px; }
section + section { margin-top: 14px; }
label { display: block; font-weight: 700; margin: 10px 0 4px; }
input,button { font: inherit; }
input:not([type=checkbox]) { max-width: 100%; }
input[type=checkbox] { accent-color: #0076aa; height: 16px; width: 16px; }
input#name { display: block; width: 100%; border: 1px solid #b9cedd; border-radius: 5px; padding: 8px; }
button { cursor: pointer; background: #fff; color: #124967; border: 1px solid #b9cedd; border-radius: 6px; padding: 7px 11px; }
button:disabled { opacity: .6; cursor: wait; }
button.primary { color: white; background: #0076aa; border-color: #0076aa; padding: 9px 13px; }
.color-row,.toggle,.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.color-row { justify-content: space-between; }
.color-row label { display: flex; align-items: center; gap: 9px; }
.suppliers { display: grid; grid-template-columns: repeat(auto-fit,minmax(138px,1fr)); gap: 4px 10px; margin: 12px 0; }
.suppliers label { font-weight: normal; margin: 0; }
.actions { justify-content: space-between; }
.actions label { margin: 0; }
.small,aside p { color: #476479; font-size: 13px; }
.preview { --accent: #0074bd; background: #f6f9fb; border: 1px solid #d5e4ed; border-radius: 8px; overflow: hidden; }
.preview-header { background: #fff; border-top: 4px solid var(--accent); padding: 12px; font-size: 23px; color: var(--accent); font-weight: 850; overflow-wrap: anywhere; }
.preview-header img { display: block; width: auto; height: auto; max-width: 100%; max-height: 44px; }
.preview-search { display: flex; align-items: center; justify-content: space-between; padding: 10px; gap: 6px; }
.preview-search span { background: white; border: 1px solid #b9cedd; flex: 1; padding: 5px; border-radius: 5px; color: #476479; font-size: 12px; }
.preview-search strong { background: var(--accent); color: var(--ink,white); padding: 6px; border-radius: 5px; font-size: 12px; }
.preview-suppliers { padding: 0 10px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.preview-suppliers span { border: 1px solid #d5e4ed; background: white; border-radius: 5px; padding: 4px 7px; font-size: 12px; }
@media(max-width: 730px) { .layout { grid-template-columns: 1fr; } }
