:root { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #20334c; background: #f4f6f9; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button { transition: background .15s; }
button:disabled { opacity: .45; cursor: wait; }
[hidden] { display: none !important; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #4898ef; outline-offset: 3px; }
.sidebar { background: #081b33; color: #d3deed; width: 258px; flex-shrink: 0; padding: 36px 25px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: .02em; }
.brand-symbol { display: grid; place-items: center; width: 44px; height: 44px; background: #2764ad; border-radius: 12px; font-size: 25px; }
.brand small { display: block; margin-top: 5px; font-size: 8px; font-weight: 500; letter-spacing: .17em; color: #8da7c6; }
.sidebar-label { font-size: 10px; letter-spacing: .13em; color: #7c94b2; margin: 62px 12px 15px; }
.sidebar-current { padding: 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; border: 1px solid #284264; background: #172f4e; border-radius: 9px; color: white; }
.sidebar-current > span:first-child { font-size: 20px; color: #85b5f1; }
.nav-dot { width: 5px; height: 5px; background: #90bff8; border-radius: 50%; margin-left: auto; }
.sidebar-note { color: #90a6c0; font-size: 12px; line-height: 1.8; margin: 24px 12px; }
.back-link { margin: auto 12px 26px; font-size: 13px; text-decoration: none; }
.sidebar-footer { border-top: 1px solid #233953; padding: 24px 12px 0; color: #627f9f; font-size: 11px; line-height: 1.8; }
main { margin-left: 258px; width: calc(100% - 258px); min-width: 0; }
.topbar { height: 77px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; border-bottom: 1px solid #e2e7ee; background: white; font-size: 12px; }
.breadcrumb { margin-left: 18px; color: #7c8ca1; }
.workspace { padding: 47px 48px 60px; max-width: 1350px; margin: auto; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: #4175b3; margin-bottom: 12px; }
h1 { font-size: clamp(28px, 3vw, 39px); line-height: 1.2; letter-spacing: -.04em; margin: 0 0 13px; font-weight: 750; }
h1 span { color: #397acb; }
h2 { font-size: 16px; margin: 0; letter-spacing: -.015em; }
.muted { color: #77879a; font-size: 13px; line-height: 1.8; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-heading p { margin: 0; }
.primary, .secondary, .danger { border-radius: 7px; font-size: 12px; font-weight: 600; padding: 14px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; }
.primary { color: white; background: #245c9f; box-shadow: 0 3px 6px #245c9f17; }
.primary:hover { background: #16477f; }
.secondary { color: #34516f; border-color: #d4dee9; background: white; }
.danger { color: white; background: #b43641; }
.quiet { background: none; border: 0; padding: 8px 0; color: #5e7390; font-size: 12px; }
.quiet:hover { color: #16477f; }
.stats { display: flex; align-items: center; gap: 24px; background: #eaf0f7; padding: 18px 24px; border: 1px solid #dfe7f1; border-radius: 10px; margin-bottom: 30px; }
.stats > div { font-size: 12px; color: #62758c; display: flex; align-items: center; gap: 7px; }
.stats > div:first-child { padding-right: 24px; border-right: 1px solid #d0dae6; }
.stats span { color: #243e5c; font-weight: 700; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #359580; flex-shrink: 0; }
.status-dot.gray { background: #9ba9ba; }
.panel { background: white; border: 1px solid #e0e6ee; border-radius: 12px; box-shadow: 0 3px 10px #16345a03; }
.list-panel { overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px 0; }
.list-help { font-size: 12px; color: #8592a4; margin: 10px 25px 24px; line-height: 1.7; }
.company-row { display: grid; grid-template-columns: 60px minmax(0,1fr) auto auto; gap: 17px; align-items: center; padding: 19px 25px; border-top: 1px solid #edf0f5; }
.row-image { width: 60px; height: 48px; padding: 7px; object-fit: contain; border: 1px solid #e7ecf1; border-radius: 7px; background: #f7f9fc; }
.row-text { min-width: 0; }
.row-text strong { display: block; font-size: 13px; margin-bottom: 5px; overflow-wrap: anywhere; }
.row-text small { display: block; font-size: 11px; color: #8493a6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.badge { font-size: 10px; color: #2c7c68; background: #eaf7f0; padding: 6px 9px; border-radius: 5px; white-space: nowrap; }
.badge.draft { color: #7c8796; background: #f0f2f6; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions button { background: white; color: #627792; border: 1px solid #e0e6ee; border-radius: 5px; padding: 7px 9px; font-size: 11px; }
.row-actions button:hover { background: #edf3fa; }
.row-actions .remove { border-color: transparent; color: #a3757a; }
.empty-list { text-align: center; padding: 52px 24px; border-top: 1px solid #edf0f5; }
.empty-list strong { display: block; font-size: 17px; }
.empty-list p { color: #8592a4; font-size: 13px; line-height: 1.7; }
.tip { display: flex; gap: 16px; padding: 26px 4px; color: #7b8ba0; font-size: 12px; line-height: 1.8; }
.tip > span { background: #e8eff8; color: #4a7db6; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; margin-top: 10px; font-size: 17px; }
.tip strong { color: #5d728e; font-weight: 600; }
.account-panel { margin-top: 22px; font-size: 12px; border-top: 1px solid #dfe6ee; padding-top: 24px; color: #6e8198; }
.account-panel form { max-width: 420px; margin-top: 20px; }
.auth-wrap { max-width: 470px; margin: 9vh auto; padding: 24px; }
.auth-form { padding: 27px; margin-top: 26px; }
.auth-form .primary { width: 100%; }
label { display: flex; flex-direction: column; gap: 9px; color: #4f627a; font-size: 12px; font-weight: 600; margin-bottom: 21px; }
input, textarea, select { width: 100%; border: 1px solid #d7e0eb; border-radius: 6px; background: #fff; padding: 12px 13px; color: #243b57; font-size: 13px; font-weight: 400; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b2cff2; border-color: #508bcb; }
input::placeholder, textarea::placeholder { color: #a0adbd; }
textarea { resize: vertical; min-height: 100px; }
.field-help { font-size: 10px; color: #8594a7; line-height: 1.8; font-weight: 400; margin: 0; }
.installation { margin: 20px 0; background: #e8eff9; color: #345477; padding: 18px; border-radius: 8px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notice { margin: 24px 48px 0; padding: 15px 20px; background: #e7f5ef; border: 1px solid #bcded0; color: #26745a; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.notice.error { background: #fff0f0; border-color: #ebcaca; color: #9f3740; }
.editor-heading { margin-top: 26px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: start; gap: 34px; }
.editor-form { padding: 29px; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 27px; }
.form-section-title > span { font-size: 10px; color: #80a0c7; border: 1px solid #dfe8f4; border-radius: 5px; padding: 6px; }
.form-section-title.second { border-top: 1px solid #e8edf4; padding-top: 26px; margin-top: 28px; }
.counter { display: flex; justify-content: space-between; gap: 12px; margin-top: -15px; margin-bottom: 24px; }
.upload-label { border: 1px dashed #becde0; border-radius: 8px; background: #f9fbfe; padding: 22px; }
input[type=file] { padding: 0; border: 0; background: transparent; font-size: 11px; }
input[type=file]::file-selector-button { border: 1px solid #d1dfef; border-radius: 5px; padding: 8px 10px; margin-right: 12px; color: #396496; background: white; cursor: pointer; }
.checkbox-label { flex-direction: row; align-items: flex-start; padding: 20px 0; border-top: 1px solid #e8edf4; margin: 26px 0 0; }
.checkbox-label input { width: 16px; height: 16px; margin: 1px 4px 0 0; accent-color: #2764ad; }
.checkbox-label small { display: block; font-size: 10px; color: #8a99ac; margin-top: 6px; font-weight: 400; }
.form-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding-top: 12px; }
.preview-area { position: sticky; top: 30px; padding-top: 5px; }
.preview-label { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .14em; color: #8195ad; margin: 0 0 20px; }
.preview-area > p { color: #8b9aaf; font-size: 11px; line-height: 1.8; text-align: center; margin-top: 20px; }
.preview-note { margin-top: 28px; border: 1px solid #dbe5f0; border-radius: 8px; background: #edf2f8; padding: 15px; font-size: 11px; color: #7b90a9; line-height: 1.8; }
dialog { max-width: 480px; width: calc(100% - 40px); padding: 30px; border: 1px solid #d5dfeb; border-radius: 14px; color: #263f5c; }
dialog::backdrop { background: #04172a88; }
dialog p { font-size: 14px; overflow-wrap: anywhere; line-height: 1.7; }
@media(min-width: 1500px) { .workspace { padding-top: 62px; } }
@media(max-width: 1100px) { .sidebar { width: 210px; padding: 30px 18px; } main { margin-left: 210px; width: calc(100% - 210px); } .workspace { padding: 34px 28px; } .topbar { padding: 0 28px; } .company-row { grid-template-columns: 50px minmax(0,1fr) auto; padding: 18px; gap: 12px; } .row-actions { grid-column: 2 / -1; } .editor-layout { gap: 22px; grid-template-columns: minmax(0,1.2fr) minmax(230px,1fr); } .editor-form { padding: 22px; } }
@media(max-width: 800px) { .sidebar { position: static; width: 100%; padding: 17px 22px; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; } .sidebar-label, .sidebar-current, .sidebar-note, .sidebar-footer { display: none; } .back-link { margin: 0; font-size: 11px; } .brand { font-size: 16px; } .brand-symbol { width: 36px; height: 36px; font-size: 21px; } body { flex-direction: column; } main { width: 100%; margin: 0; } .topbar { height: 55px; } .notice { margin: 20px 22px 0; } .stats { flex-wrap: wrap; gap: 14px 20px; padding: 18px; } }
@media(max-width: 580px) { .workspace { padding: 30px 20px; } .topbar { padding: 0 22px; } .page-heading { flex-direction: column; align-items: flex-start; gap: 21px; } .editor-layout { display: flex; flex-direction: column; } .editor-form, .preview-area { width: 100%; } .preview-area { position: static; max-width: 360px; margin: 10px auto; } .company-row { gap: 10px; } .row-actions { flex-wrap: wrap; } .stats > div:first-child { border: 0; padding: 0; } .auth-wrap { margin-top: 30px; } .editor-form { padding: 22px 18px; } }
