:root { --bg: #fafafa; --panel: #ffffff; --fg: #111111; --muted: #6a6a6a; --line: #e4e4e4; --accent: #6b3d8f; --accent-soft: #f3ecf7; --accent-hover: #5a3079; --danger: #b00020; --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; --display: "Cinzel", "Cormorant Garamond", "Times New Roman", serif; --serif: "Cormorant Garamond", "Times New Roman", serif; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.45; } a { color: inherit; } img { max-width: 100%; display: block; } h1 { font-size: 24px; margin: 0 0 4px; font-weight: 500; } h2 { font-size: 18px; margin: 0 0 16px; font-weight: 500; } p { margin: 0 0 12px; } /* ---------- login ---------- */ .login-lang-wrap { position: absolute; top: 18px; right: 24px; } .login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); } .login-card { width: 360px; background: var(--panel); border: 1px solid var(--line); padding: 40px 32px; } .login-card h1 { text-align: center; margin-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; } .login-card h1 .brand-mark { width: 56px; height: 56px; } .login-card h1 .brand-word { font-family: var(--display); font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; line-height: 1; } .login-card h1 .brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; margin-top: 4px; } .login-card h1 .brand-word, .login-card h1 .brand-sub { display: block; } .login-card label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px; } .login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); font: inherit; background: #fff; } .login-card .hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; } .error { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 16px; } /* ---------- layout ---------- */ .app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; } .sidebar { background: #fff; border-right: 1px solid var(--line); padding: 24px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; } .sidebar .brand-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 24px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; } .sidebar .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; flex: 1; min-width: 0; } .sidebar .lang-controls { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 -2px; flex-shrink: 0; } .sidebar .lang-select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml;utf8,") no-repeat right 7px center / 8px 5px; border: 1px solid var(--line); padding: 2px 20px 2px 8px; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; border-radius: 0; letter-spacing: 0.04em; line-height: 1.4; flex-shrink: 0; } .sidebar .lang-reset { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 3px; line-height: 1; } .sidebar .lang-reset:hover { color: var(--accent); } .sidebar .lang-select:hover { color: var(--fg); border-color: #bdbdbd; } .sidebar .lang-select:focus { outline: 1px solid var(--accent); outline-offset: -1px; color: var(--fg); } .sidebar .brand:hover { opacity: 0.88; } .sidebar .brand-mark { width: 30px; height: 30px; flex-shrink: 0; } .sidebar .brand-text { line-height: 1.1; min-width: 0; } .sidebar .brand-word { font-family: var(--display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); font-weight: 500; white-space: nowrap; } .sidebar .brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; white-space: nowrap; } .sidebar nav a { display: block; padding: 10px 24px; color: var(--muted); text-decoration: none; font-size: 14px; } .sidebar nav a:hover { color: var(--fg); background: #f4f4f4; } .sidebar nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; border-left: 2px solid var(--accent); padding-left: 22px; } .sidebar .sidebar-foot { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); } .sidebar .sidebar-foot a { display: block; text-decoration: none; margin-bottom: 6px; } .content { padding: 32px 40px 80px; max-width: 1280px; } .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .topbar .subtitle { color: var(--muted); font-size: 13px; } /* ---------- buttons ---------- */ .btn { background: var(--accent); color: #fff; border: 0; padding: 9px 16px; font: inherit; cursor: pointer; font-size: 13px; } .btn:hover { background: var(--accent-hover); } .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); } .btn.ghost:hover { background: #f4f4f4; } .btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); } .btn.danger:hover { background: #fdecef; } .btn-small { font-size: 12px; padding: 6px 10px; } /* ---------- cards / stats ---------- */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; } .stat { background: #fff; border: 1px solid var(--line); padding: 20px 20px 24px; } .stat .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; } .stat .v { font-size: 28px; font-weight: 500; } .panel { background: #fff; border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; } .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } /* ---------- table ---------- */ .table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); } .table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; } .table th { background: #f7f7f7; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; } .table tr:last-child td { border-bottom: 0; } .table td img { width: 48px; height: 48px; object-fit: cover; background: #eee; } .table .actions { text-align: right; white-space: nowrap; } .table .actions .btn { margin-left: 6px; } .badge { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; } .badge-current { background: #e6f4ea; color: #137333; } .badge-upcoming { background: #fff4e0; color: #8c5a00; } .badge-past { background: #f0f0f0; color: #555; } /* ---------- forms ---------- */ .form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; } .form .full { grid-column: 1 / -1; } .form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; } .form input, .form textarea, .form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; } .form textarea { min-height: 120px; resize: vertical; font-family: inherit; } .form .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } /* ---------- modal ---------- */ .modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: none; align-items: flex-start; justify-content: center; padding: 48px 24px; overflow-y: auto; z-index: 100; } .modal.open { display: flex; } .modal .body { background: #fff; width: 720px; max-width: 100%; border: 1px solid var(--line); padding: 28px 32px; } .modal .body h2 { display: flex; justify-content: space-between; align-items: center; } .modal .close { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); } /* ---------- multilingual field ---------- */ .ml-field { display: flex; flex-direction: column; gap: 0; } .ml-field .ml-tabs { display: flex; border: 1px solid var(--line); border-bottom: 0; align-self: flex-start; } .ml-field .ml-tab { background: #f7f7f7; border: 0; border-right: 1px solid var(--line); padding: 5px 14px; font: inherit; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; } .ml-field .ml-tab:last-child { border-right: 0; } .ml-field .ml-tab.active { background: #fff; color: var(--accent); font-weight: 500; position: relative; } .ml-field .ml-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff; } .ml-field .ml-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; resize: vertical; } .ml-field textarea.ml-input { min-height: 120px; font-family: inherit; } /* ---------- image field ---------- */ .image-field { display: flex; flex-direction: column; gap: 10px; } .image-field-preview { width: 100%; height: 180px; background: #f3f3f3; border: 1px dashed #d4d4d4; display: flex; align-items: center; justify-content: center; overflow: hidden; } .image-field.compact .image-field-preview { height: 120px; } .image-field-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; } .image-field-empty { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; } .image-field-controls { display: flex; gap: 8px; align-items: stretch; } .image-field-url { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; } .image-field-upload { display: inline-flex; align-items: center; cursor: pointer; margin: 0; white-space: nowrap; } .image-field-upload input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* ---------- works subform ---------- */ .works-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; } .work-row { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); background: #fafafa; } .work-row-meta { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; } .work-row-meta input { padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); background: #fff; font: inherit; } /* ---------- toast ---------- */ .toast { position: fixed; bottom: 24px; right: 24px; background: #111; color: #fff; padding: 12px 18px; font-size: 13px; z-index: 200; opacity: 0; transform: translateY(10px); transition: all 0.2s; pointer-events: none; } .toast.show { opacity: 1; transform: translateY(0); } @media (max-width: 900px) { .app { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .stats { grid-template-columns: repeat(2, 1fr); } .form, .work-row-meta { grid-template-columns: 1fr; } }