:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#111827;background:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:24px 16px;background:#111827;color:#fff;display:flex;flex-direction:column;gap:28px}.brand{display:flex;gap:12px;align-items:center;padding:2px 8px 14px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:8px;background:#fff;color:#111827;font-weight:800;letter-spacing:0}.brand strong,.brand span{display:block}.brand span{color:#9ca3af;font-size:13px}.sidebar-close{margin-left:auto}.sidebar-backdrop{position:fixed;inset:0;z-index:90;background:#00000080}nav{display:grid;gap:8px}nav button,nav a{display:flex;align-items:center;gap:12px;min-height:48px;border:0;border-radius:8px;padding:0 16px;color:#d1d5db;background:transparent;text-align:left;text-decoration:none;font-weight:650}nav button:hover,nav button.active,nav a:hover{background:#2d3748;color:#fff}.nav-section{margin:14px 16px 4px;color:#6b7280;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}main{min-width:0;min-height:100vh;background:#f8fafc;padding:32px}.topbar{height:68px;margin:-32px -32px 32px;padding:0 32px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border-bottom:1px solid #e5e7eb}.topbar-title{display:flex;align-items:center;gap:12px;min-width:0}.menu-toggle,.sidebar-close{display:none;border:0;background:transparent;color:inherit}.topbar p,.modal-head p{margin:0 0 2px;color:#736f67;font-size:13px}h1,h2{margin:0;line-height:1.15;letter-spacing:0}h1{font-size:21px;font-weight:800}h2{font-size:20px;font-weight:800}.account-bar{display:flex;align-items:center;gap:14px;color:#64748b;font-weight:600}.locale-switch{display:inline-flex;gap:2px;padding:3px;background:#f1f5f9;border-radius:8px}.locale-switch button{min-width:38px;min-height:28px;border:0;border-radius:6px;background:transparent;color:#475569;font-size:12px;font-weight:800}.locale-switch button.active{background:#111827;color:#fff}.avatar,.row-avatar{display:grid;place-items:center;border-radius:999px;background:#111827;color:#fff;font-weight:800}.avatar{width:34px;height:34px;font-size:13px;border:0;padding:0;flex-shrink:0}.profile-menu{position:relative}.profile-dropdown{position:absolute;top:calc(100% + 10px);right:0;z-index:25;width:220px;padding:8px;display:grid;gap:4px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 16px 40px #0f172a29}.profile-dropdown-header{display:flex;align-items:center;gap:10px;padding:8px 10px 10px;margin-bottom:4px;border-bottom:1px solid #f1f5f9;color:#111827}.profile-dropdown-header .avatar{cursor:default}.profile-dropdown button{display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#26241f;font-weight:650;text-align:left}.profile-dropdown button:hover{background:#f8fafc}.workspace{display:grid;gap:24px}.toolbar,.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}.pager{display:flex;justify-content:flex-end;align-items:center;gap:4px;background:#1e2536;padding:6px;border-radius:12px;width:fit-content;margin-left:auto}.pager-nav,.pager-page{border:none;background:transparent;color:#94a3b8;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;transition:background .15s ease,color .15s ease}.pager-nav{width:34px;height:34px}.pager-page{min-width:34px;height:34px;padding:0 4px}.pager-nav:hover:not(:disabled),.pager-page:hover:not(.active){background:#334155;color:#fff}.pager-nav:disabled{opacity:.35;cursor:default}.pager-page.active{background:#fff;color:#111827}.pager-ellipsis{color:#64748b;width:20px;text-align:center;font-weight:600}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-intro p{margin:0;color:#667085;font-size:17px;font-weight:650}button.primary,button.ghost,.file-button,.icon-btn{border-radius:6px;border:1px solid transparent;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px}button.primary{padding:0 14px;background:#111827;color:#fff}button.primary:hover{background:#1f2937}button.ghost{padding:0 12px;color:#111827;background:#fff;border-color:#e5e7eb}button.ghost:hover{border-color:#cbd5e1}.icon-btn{width:36px;height:36px;background:#fff;border-color:#e5e7eb;color:#111827}.icon-btn:hover{background:#f8fafc}.icon-btn.danger,.danger-text{color:#b42318}.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e5e7eb;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:18px 24px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:0;background:#fff}td.actions{width:1%;white-space:nowrap;text-align:right}.thumb{width:48px;height:48px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb;background:#f8fafc}.muted,.empty{color:#878177}.empty{text-align:center;padding:38px}.entity-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.entity-stats div{min-height:86px;padding:18px 24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px}.entity-stats strong{display:block;color:#111827;font-size:24px;line-height:1.1;font-weight:850}.entity-stats span{color:#667085;font-weight:650}.success-number{color:#16a34a!important}.muted-number{color:#98a2b3!important}.dashboard{display:grid;gap:32px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.stat-card{min-height:146px;padding:24px;display:grid;grid-template-columns:auto 1fr;align-content:center;gap:12px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.stat-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:10px}.stat-icon.blue{color:#2563eb;background:#dbeafe}.stat-icon.green{color:#16a34a;background:#dcfce7}.stat-icon.purple{color:#9333ea;background:#f3e8ff}.stat-icon.red{color:#ef4444;background:#fee2e2}.stat-value{align-self:start;justify-self:end;color:#111827;font-size:32px;line-height:1;font-weight:850}.stat-label{grid-column:1 / -1;color:#6b7280;font-size:16px;font-weight:800}.stat-subtext{grid-column:2;justify-self:end;margin-top:-18px;color:#ef4444;font-size:14px;font-weight:800}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.panel-list{min-height:420px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.panel-head{height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb}.panel-head button{border:0;background:transparent;color:#2563eb;font-weight:800}.panel-actions{display:flex;align-items:center;gap:12px}.panel-actions .primary{border:1px solid transparent;background:#111827;color:#fff}.panel-empty{padding:32px 24px;color:#94a3b8}.message-row,.project-row{min-height:82px;padding:16px 24px;display:grid;align-items:center;gap:16px;border-bottom:1px solid #eef2f7}.message-row{grid-template-columns:40px minmax(0,1fr)}.project-row{width:100%;grid-template-columns:48px minmax(0,1fr) auto;border-top:0;border-right:0;border-left:0;background:transparent;text-align:left}.project-row:hover{background:#f8fafc}.row-avatar{width:40px;height:40px;background:#f3f4f6;color:#64748b}.message-row strong,.project-row strong{color:#111827;font-size:16px}.message-row p,.project-row span{display:block;margin:2px 0 0;color:#64748b;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-row span:not(.unread-mark){display:block;margin-top:2px;color:#94a3b8;font-size:13px;font-weight:650}.unread-mark{width:8px;height:8px;display:inline-block;margin-left:8px;border-radius:999px;background:#3b82f6}.project-row img,.project-placeholder{width:48px;height:48px;border-radius:8px}.project-row img{object-fit:cover}.project-placeholder{display:grid;place-items:center;color:#64748b;background:#f1f5f9}.pill{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:700}.pill-on{color:#05603a;background:#dff7e9}.pill-off{color:#7a271a;background:#fee4df}.pill-new{color:#1d4ed8;background:#eff6ff}.pill-muted{color:#667085;background:#f1f5f9}.table-link{color:#2563eb;text-decoration:none}.table-link:hover{text-decoration:underline}.cell-sub{display:block;margin-top:3px;max-width:280px;overflow:hidden;color:#878177;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.dept-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}.lang-badges{display:flex;flex-wrap:wrap;gap:5px}.lang-badge{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800}.notice-container{position:fixed;top:16px;left:50%;transform:translate(-50%);z-index:1000;width:min(420px,calc(100vw - 32px))}.notice{margin:0;padding:11px 14px;border-radius:7px;border:1px solid;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 10px 30px #0f172a26}.notice-close{flex-shrink:0;display:inline-flex;border:0;background:transparent;color:inherit;opacity:.6;padding:2px}.notice-close:hover{opacity:1}.notice.success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}.notice.error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#111827}.login-shell{width:min(100%,448px)}.login-header{display:grid;justify-items:center;margin-bottom:32px;text-align:center}.login-badge{width:64px;height:64px;display:grid;place-items:center;background:#fff;color:#111827;border-radius:16px;font-weight:700;font-size:24px;margin-bottom:16px}.login-header h1{color:#fff;font-size:24px;font-weight:600}.login-header p{margin:8px 0 0;color:#9ca3af;font-size:16px}.login-panel{width:100%;padding:32px;display:grid;gap:20px;background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.login-panel label{font-size:14px;font-weight:500;color:#374151;gap:8px}.login-panel input{height:50px;padding:12px 16px;border-radius:12px;font-size:16px}.login-panel input:focus{border-color:#111827;box-shadow:0 0 0 3px #1118271a}.login-panel button.primary{height:48px;border-radius:12px;font-size:16px;font-weight:500;justify-content:center}.login-footer{margin-top:24px;color:#6b7280;font-size:14px;text-align:center}.admin-layout{display:grid;grid-template-columns:1fr;align-items:start;gap:24px}.admin-list{grid-column:1 / -1;overflow:hidden;background:#fff;border:1px solid #e5e7eb;border-radius:12px}.admin-list .panel-head{height:auto;min-height:76px}.admin-list .panel-head p{margin:4px 0 0;color:#667085;font-weight:650}.admin-table{overflow-x:auto}.admin-user-cell{display:flex;align-items:center;gap:12px}.self-badge{min-height:24px;padding:0 9px;display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800}.create-admin-modal{width:min(560px,100%)}.modal-form{display:grid;gap:16px;padding-top:18px}.editor-page{width:min(100%,980px);display:grid;gap:24px}.back-link{width:fit-content;min-height:32px;padding:0;display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#667085;font-size:16px;font-weight:650}.back-link:hover{color:#111827}.language-row{display:flex;align-items:center;gap:14px;color:#667085;font-weight:800}.language-tabs{display:inline-flex;gap:4px;padding:4px;background:#f1f5f9;border-radius:10px}.language-tabs button{min-width:54px;min-height:36px;border:0;border-radius:7px;background:transparent;color:#111827;font-weight:850}.language-tabs button.active{background:#111827;color:#fff}.editor-section{padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px}.editor-section h2{margin-bottom:24px}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.translation-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.wide-field{grid-column:1 / -1}.checkbox-field{align-self:end;display:flex;grid-auto-flow:column;align-items:center;gap:12px;min-height:52px;font-size:15px}.checkbox-field input{width:20px;height:20px;accent-color:#2563eb}.checkbox-field small{display:block;margin-top:3px;color:#98a2b3;font-weight:650}.editor-actions{display:flex;align-items:center;gap:16px;padding-bottom:28px}.editor-actions .primary,.editor-actions .ghost{min-height:48px;padding:0 24px;font-weight:800}label{display:grid;gap:7px;color:#4a463f;font-weight:800;font-size:14px}input,textarea,select{width:100%;border:1px solid #d1d5db;background:#fff;color:#1f1f1f;border-radius:10px;min-height:50px;padding:11px 16px;outline:none}textarea{min-height:150px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.form-error{margin:0;color:#b42318}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;align-items:start;justify-items:center;padding:30px 18px;background:#1111117a;overflow-y:auto}.modal{width:min(1060px,100%);padding:20px;background:#fff;border-radius:8px;box-shadow:0 24px 80px #0000003d}.message-modal{width:min(760px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid #ebe4d8}.image-editor{display:grid;grid-template-columns:160px auto auto 1fr;align-items:center;gap:12px}.image-editor img,.image-empty{width:160px;height:100px;object-fit:cover;border-radius:6px;border:1px solid #e5dfd3;background:#f8f5ef}.image-empty{display:grid;place-items:center;color:#837c70}.image-preview-button{padding:0;border:0;background:transparent;cursor:zoom-in}.image-preview-button img{display:block}.thumb{cursor:zoom-in}.lightbox-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:40px;background:#111111d1}.lightbox-image{max-width:calc(100vw - 80px);max-height:calc(100vh - 80px);object-fit:contain;border-radius:8px;box-shadow:0 24px 80px #0006}.lightbox-close{position:fixed;top:20px;right:20px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:999px;background:#ffffff1f;color:#fff}.lightbox-close:hover{background:#ffffff38}.file-button{position:relative;width:fit-content;min-width:150px;min-height:48px;padding:0 12px;color:#26241f;background:#fff;border-color:#d1d5db;font-weight:700}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.form-grid{display:grid;gap:14px;padding-top:16px}fieldset{margin:0;padding:14px;border:1px solid #e8e1d6;border-radius:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}legend{padding:0 6px;color:#766f63;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:0}fieldset:has(textarea){grid-template-columns:1fr}.modal-actions{padding-top:18px}.message-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.message-meta div{padding:12px;border:1px solid #ebe4d8;border-radius:7px}dt{color:#786f63;font-size:12px;font-weight:800;text-transform:uppercase}dd{margin:3px 0 0}.message-body{margin:0;white-space:pre-wrap}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:880px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;z-index:100;width:min(85vw,300px);height:100vh;transform:translate(-100%);transition:transform .25s ease}.sidebar.open{transform:translate(0)}.menu-toggle,.sidebar-close{display:inline-flex}nav{grid-template-columns:1fr}main{padding:18px}.topbar{height:auto;margin:-18px -18px 18px;padding:16px 18px}.topbar,.toolbar{align-items:stretch;flex-direction:column}.pager{margin:0 auto}.account-bar{justify-content:space-between}.stats-grid,.dashboard-grid,.entity-stats,.editor-grid,.admin-layout,.image-editor{grid-template-columns:1fr}.image-editor img,.image-empty{width:100%;height:180px}fieldset,.message-meta{grid-template-columns:1fr}.page-intro,.language-row,.editor-actions{align-items:stretch;flex-direction:column}}@media(max-width:520px){.login-panel,.modal,.editor-section{padding:18px}.stat-card{min-height:128px}.message-row,.project-row{padding:14px 16px}}
