:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172c3d; background: #f4f7fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #3396ce; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.035em; line-height: 1.2; margin: 8px 0 10px; }
h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.35; margin: 8px 0 22px; overflow-wrap: anywhere; }
.muted { color: #5a6f80; line-height: 1.65; font-size: 14px; }
.eyebrow { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; color: #47718a; }
.app-header { min-height: 78px; padding: 18px max(28px, calc((100vw - 1384px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #142d3d; color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { letter-spacing: .14em; font-size: 16px; }
.brand-mark { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 10px; background: #74e0b1; color: #173a39; font-size: 24px; font-weight: 800; }
.brand-subtitle { margin-left: 10px; padding-left: 20px; border-left: 1px solid #486070; color: #bfcfda; font-size: 13px; }
.header-actions, .heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-name { color: #c7d5df; font-size: 13px; max-width: 180px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.language-picker { background: #203d4f; color: #fff; border: 1px solid #4e6778; border-radius: 7px; padding: 7px 9px; min-height: 36px; font-size: 13px; }
.language-picker option { color: #172c3d; background: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 15px; border-radius: 8px; border: 1px solid #cad6df; background: #fff; color: #234457; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: center; }
.button:not(:disabled):hover { background: #edf4f8; border-color: #8faabf; }
.button-primary { background: #176b8c; border-color: #176b8c; color: #fff; box-shadow: 0 2px 3px #16435b18; }
.button-primary:not(:disabled):hover { background: #105674; border-color: #105674; }
.button-quiet { color: #e3edf3; border-color: #486070; background: transparent; }
.button-quiet:not(:disabled):hover { background: #284657; border-color: #7090a4; }
.button-small { min-height: 32px; padding: 7px 10px; }
.notice-wrap { max-width: 1384px; margin: 0 auto; }
.notice { margin: 20px 0 0; border: 1px solid #e6ad80; color: #873d16; background: #fff6ee; padding: 13px 16px; font-size: 14px; line-height: 1.55; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notice-success { background: #ecfdf5; color: #176445; border-color: #a4dbc4; }
.workspace-shell { max-width: 1440px; margin: 0 auto; padding: 34px 28px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.heading-actions { justify-content: flex-end; max-width: 520px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.catalog-panel, .editor-panel { background: #fff; border: 1px solid #dce5ec; border-radius: 12px; box-shadow: 0 3px 9px #1e3d4f04; overflow: hidden; }
.catalog-toolbar { display: flex; align-items: flex-end; gap: 20px; padding: 22px 22px 4px; }
.catalog-toolbar .field { flex: 1; max-width: 420px; margin-bottom: 10px; }
.count { color: #627788; font-size: 12px; margin: 0 0 22px auto; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 12px; font-weight: 650; color: #425d70; }
.field input, .field select { width: 100%; min-height: 41px; border: 1px solid #c7d5df; border-radius: 7px; padding: 10px 11px; color: #193b51; background: #fff; font-size: 14px; }
.field input:disabled, .field select:disabled, .field input:read-only { background: #f6f8fa; }
.field input::placeholder { color: #7a8c9b; }
.field small, .availability-hint { color: #627789; font-size: 11px; line-height: 1.6; }
.filters { display: flex; gap: 18px; padding: 0 22px; border-bottom: 1px solid #e2eaf0; overflow-x: auto; }
.filter { padding: 13px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: #5a7184; font-size: 13px; font-weight: 650; white-space: nowrap; }
.filter.active { color: #176b8c; border-bottom-color: #176b8c; }
.table-scroll { width: 100%; max-height: 65vh; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #678093; background: #f8fafc; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
th, td { padding: 15px 22px; border-bottom: 1px solid #eaf0f4; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfd; }
tbody tr.selected { background: #eef7fb; box-shadow: inset 3px 0 #2787b0; }
td { font-size: 13px; }
.product-name { font: inherit; font-weight: 650; color: #1d425a; background: none; border: 0; padding: 0; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
.product-unit { display: block; color: #7a8e9e; font-size: 11px; margin-top: 3px; }
.code-cell { color: #6b8091; font-variant-numeric: tabular-nums; }
.price-cell { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 5px; background: #eff2f5; color: #5c7182; font-size: 10px; font-weight: 650; white-space: nowrap; }
.badge-active { background: #e7f7ef; color: #25714e; }
.empty-table { padding: 64px 24px; text-align: center; color: #425d70; }
.empty-table strong { font-size: 15px; }
.empty-table p { margin-top: 8px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid #e7edf2; padding: 12px 20px; font-size: 12px; color: #627789; }
.editor-panel { padding: 25px; position: sticky; top: 24px; }
.editor-placeholder-icon { background: #eef5f8; color: #4b819d; border-radius: 12px; display: grid; place-items: center; width: 48px; height: 48px; font-size: 26px; margin-bottom: 20px; }
.editor-panel:has(.editor-placeholder-icon) { min-height: 260px; }
.translations { border-top: 1px solid #e6edf2; border-bottom: 1px solid #e6edf2; margin: 22px 0; padding: 14px 0; }
.translations summary { cursor: pointer; color: #3d657d; font-size: 12px; font-weight: 650; }
.translations[open] summary { margin-bottom: 17px; }
.translations .field:last-child { margin-bottom: 0; }
.checkbox-label { display: flex; align-items: center; gap: 9px; color: #294c61; font-weight: 650; font-size: 12px; cursor: pointer; }
.checkbox-label input { width: 17px; height: 17px; margin: 0; accent-color: #176b8c; }
.availability-hint { display: block; margin-top: 9px; }
.editor-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 25px; }
.readonly-note { padding: 12px 16px; background: #eaf2f8; border-radius: 8px; color: #47657b; font-size: 13px; margin-bottom: 20px; }
.login-layout { min-height: 100vh; }
.login-card { max-width: 440px; margin: 10vh auto 40px; padding: 36px; border-radius: 16px; background: #fff; border: 1px solid #d9e4ec; box-shadow: 0 16px 50px #193c5410; }
.login-card h1 { font-size: 27px; }
.login-card form { margin-top: 28px; }
.login-card form .button { width: 100%; margin-top: 7px; }
.loading { padding: 30px 0; color: #5a7184; }
.empty-state { max-width: 800px; margin: 40px auto; padding: 40px; color: #5a7184; }
.app-footer { max-width: 1440px; padding: 0 28px 24px; margin: auto; font-size: 11px; }
.app-footer a { color: #5a7184; text-underline-offset: 3px; }
.agenda-nav { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1440px; margin: auto; padding: 18px 28px 0; }
.agenda-nav .button-quiet { color: #345267; border-color: transparent; }
.agenda-nav .button-quiet:not(:disabled):hover { background: #e4edf3; border-color: #c7d8e3; }
.devices-page { max-width: 1440px; margin: auto; padding: 28px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.toolbar-actions, .register-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-actions { justify-content: flex-end; padding-top: 8px; }
.device-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: 24px; align-items: start; }
.device-list, .device-aside { min-width: 0; }
.device-list, .device-form, .activation-panel { padding: 24px; background: #fff; border: 1px solid #d9e4ec; border-radius: 12px; }
.device-aside { display: grid; gap: 18px; }
.device-form form { display: grid; gap: 12px; }
.device-form label { color: #3a566b; font-size: 12px; font-weight: 650; }
.device-form input, .device-form select, #register-search { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #bdceda; border-radius: 7px; padding: 10px 12px; background: #fff; color: #172c3d; }
.device-form input:disabled, .device-form select:disabled { background: #eff3f6; }
#register-count { margin: 16px 0 8px; font-size: 12px; }
.register-row { padding: 19px 0; border-bottom: 1px solid #e4ebf0; }
.register-row:last-child { border-bottom: none; }
.register-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.register-title h2 { font-size: 16px; margin: 0; }
.register-row p { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.register-actions { margin-top: 12px; }
.status-pill { padding: 4px 8px; border-radius: 5px; background: #e7f5ee; color: #285e46; font-size: 11px; }
.status-archived { background: #f3e8e8; color: #884444; }
.activation-panel h2 { margin-bottom: 10px; }
.activation-register { font-weight: 650; overflow-wrap: anywhere; }
.activation-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; letter-spacing: .02em; color: #14566c; background: #eef7f9; border: 1px solid #d1e8ed; padding: 16px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.activation-panel p { margin: 12px 0; line-height: 1.6; font-size: 13px; }
.device-confirm { padding: 22px; margin-bottom: 22px; background: #fff6ec; border: 1px solid #ead4b8; border-radius: 10px; }
.device-confirm h2 { margin: 0 0 10px; }
.device-confirm p { margin-bottom: 16px; line-height: 1.6; }
.device-confirm .button { margin-right: 8px; }
.button-danger { background: #9c3838; border-color: #9c3838; color: white; }
@media (max-width: 900px) { .device-grid { grid-template-columns: minmax(0, 1fr); } .device-aside { order: -1; } .workspace-heading { flex-direction: column; gap: 12px; } .toolbar-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .devices-page { padding: 24px 14px; } .agenda-nav { padding: 16px 14px 0; } .device-list, .device-form, .activation-panel { padding: 18px; } .activation-code { font-size: 18px; } }
@media (max-width: 1440px) { .notice-wrap { margin: 0 28px; } }
@media (max-width: 1080px) { .brand-subtitle { display: none; } .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; } th, td { padding: 14px 15px; } }
@media (max-width: 850px) { .workspace { grid-template-columns: minmax(0, 1fr); } .editor-panel { position: static; } .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; } .heading-actions { justify-content: flex-start; max-width: none; } .table-scroll { max-height: 55vh; } .user-name { display: none; } }
@media (max-width: 520px) { .app-header { padding: 15px 16px; gap: 10px; flex-wrap: wrap; } .brand { gap: 9px; } .brand strong { font-size: 13px; } .brand-mark { width: 29px; height: 29px; font-size: 21px; border-radius: 8px; } .header-actions { gap: 7px; } .header-actions .button { min-height: 35px; padding: 7px 9px; font-size: 11px; } .language-picker { font-size: 11px; min-height: 35px; padding: 7px; } .workspace-shell { padding: 26px 14px; } h1 { font-size: 27px; } .catalog-toolbar { padding: 16px 16px 2px; flex-wrap: wrap; gap: 0; } .catalog-toolbar .field { width: 100%; max-width: none; flex: auto; } .count { margin: 0 0 8px; font-size: 11px; } .filters { padding: 0 16px; gap: 16px; } .filter { font-size: 12px; } th, td { padding: 13px 11px; } .code-cell { max-width: 90px; overflow-wrap: anywhere; } th { font-size: 9px; } td { font-size: 12px; } .badge { font-size: 9px; padding: 4px 5px; } .editor-panel { padding: 22px; } .notice-wrap { margin: 0 14px; } .notice { flex-direction: column; align-items: stretch; } .login-card { margin: 7vh 16px 30px; padding: 28px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.status-pending { background: #fff3cd; color: #754f00; }
