*{box-sizing:border-box}body{margin:0;background:#f4f7fa;color:#17202a;font-family:PingFang SC,Microsoft YaHei,Arial,sans-serif}button,input,select{font:inherit}.page{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:32px 0 48px}.header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.header-actions{display:flex;align-items:center;gap:10px;color:#667085;font-size:14px;font-weight:800}.eyebrow{color:#f05a28;font-size:12px;font-weight:900;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{margin-top:8px;font-size:34px}.header button,.actions button,.submit{min-height:40px;padding:0 18px;border:0;border-radius:6px;background:#f05a28;color:#fff;font-weight:800;cursor:pointer}.header button.secondary{background:#667085}.login-page{min-height:100vh;display:grid;place-items:center;padding:32px}.login-panel{width:min(420px,100%);padding:28px;border:1px solid #e7ebf0;border-radius:8px;background:#fff;box-shadow:0 18px 45px #14202d14}.login-panel h1{margin:8px 0 24px}.login-form{display:grid;gap:16px}.nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;padding:10px;border:1px solid #e7ebf0;border-radius:8px;background:#fff;box-shadow:0 14px 35px #14202d0f}.nav a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:6px;color:#344054;text-decoration:none;font-size:14px;font-weight:900}.nav a.active{background:#17202a;color:#fff}.panel{margin-bottom:22px;padding:24px;border:1px solid #e7ebf0;border-radius:8px;background:#fff;box-shadow:0 18px 45px #14202d14}.panel-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px}.panel-head span{color:#667085;font-size:14px}.form{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}label{display:grid;gap:8px;color:#344054;font-weight:800}input{min-height:42px;padding:0 12px;border:1px solid #e7ebf0;border-radius:6px;background:#fbfcfe}input[type=file]{padding:8px 0;border:0;background:transparent}input[type=checkbox]{min-height:auto;width:18px;height:18px;padding:0}select{min-height:42px;padding:0 12px;border:1px solid #e7ebf0;border-radius:6px;background:#fbfcfe}.compact{grid-template-columns:repeat(5,1fr)}.filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(160px,220px) auto auto;gap:14px;align-items:end;margin-bottom:18px;padding:14px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe}.compact-create{grid-template-columns:minmax(180px,260px) auto}.precreate-form{grid-template-columns:minmax(160px,220px) minmax(180px,240px) auto}.submit{align-self:end}.submit.muted{background:#667085}.checkbox-label{display:flex;align-items:center;gap:8px;align-self:end;min-height:42px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px;border-bottom:1px solid #e7ebf0;text-align:left;white-space:nowrap}th{color:#667085;font-weight:900}.table-sub{margin-top:5px;color:#667085;font-size:12px;white-space:normal;word-break:break-all}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.card{display:grid;grid-template-columns:150px 1fr;gap:18px;padding:16px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe}.card img{width:150px;height:150px;object-fit:contain;border:1px solid #e7ebf0;border-radius:6px;background:#fff}.card-body{display:grid;gap:8px}.url{color:#667085;font-size:13px;word-break:break-all}.media-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:18px}.media-card{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center;padding:14px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe}.media-thumb,.media-card img{width:120px;height:74px;object-fit:cover;border-radius:6px;background:#eef3f6}.media-placeholder{display:flex;align-items:center;justify-content:center;border:1px dashed #cfd7e2;color:#98a2b3;font-size:13px;font-weight:900}.media-card p{margin-top:6px;color:#667085;font-size:13px;word-break:break-all}.precreate-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}.precreate-actions .page-status{flex:1;margin-top:0}.precreate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}.precreate-card{display:grid;gap:10px;padding:12px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe}.precreate-card img{width:100%;aspect-ratio:1;object-fit:contain;border:1px solid #e7ebf0;border-radius:6px;background:#fff}.precreate-card p{margin-top:8px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:24px;background:rgba(23,32,42,.48)}.modal-panel{display:grid;gap:16px;width:min(560px,100%);max-height:calc(100vh - 48px);overflow-y:auto;padding:24px;border-radius:8px;background:#fff;box-shadow:0 24px 70px #14202d38}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.text-button{min-height:34px;padding:0;border:0;background:transparent;color:#667085;font-weight:900;cursor:pointer}.modal-preview{width:100%;max-height:220px;object-fit:contain;border:1px solid #e7ebf0;border-radius:6px;background:#fbfcfe}.modal-subtitle{margin-top:6px;color:#667085;font-size:13px;font-weight:800}.template-modal{width:min(940px,100%)}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.template-option{display:grid;gap:10px;padding:12px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe;color:#17202a;cursor:pointer}.template-option:hover{border-color:#f05a28}.template-option:disabled{cursor:wait;opacity:.72}.template-option img{width:100%;aspect-ratio:1;object-fit:contain;border:1px solid #e7ebf0;border-radius:6px;background:#fff}.template-option span{color:#17202a;font-weight:900}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}.actions a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:6px;background:#17202a;color:#fff;text-decoration:none;font-size:13px;font-weight:800}.inline-link{color:#f05a28;font-weight:900;text-decoration:none}.actions button{min-height:34px;background:#1c9a78;font-size:13px}.actions button.danger{background:#be123c}.actions button.warning-button{background:#c2410c}.status-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:900}.status-badge.success{background:#ecfdf3;color:#047857}.status-badge.danger{background:#fff1f2;color:#be123c}.status-badge.warning{background:#fff7ed;color:#c2410c}.page-status,.empty-state{margin-top:18px;padding:12px 14px;border-radius:6px;background:#f1fbf7;color:#315346;font-size:14px;font-weight:800}.empty-state{background:#fbfcfe;color:#667085;text-align:center}.message{position:fixed;right:24px;bottom:24px;padding:14px 18px;border-radius:8px;background:#17202a;color:#fff}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:12px 14px;border:1px solid #e7ebf0;border-radius:8px;background:#fbfcfe;color:#667085;font-size:14px;font-weight:800}.pagination-actions{display:flex;gap:10px}.pagination-actions button{min-height:34px;padding:0 14px;border:0;border-radius:6px;background:#17202a;color:#fff;font-weight:900;cursor:pointer}.pagination-actions button:disabled{background:#d0d5dd;color:#fff;cursor:not-allowed}@media (max-width: 860px){.header,.panel-head{align-items:stretch;flex-direction:column}.form,.compact,.filters,.compact-create,.precreate-form,.media-list,.media-card,.precreate-grid,.template-grid,.cards,.card{grid-template-columns:1fr}.precreate-actions,.pagination{align-items:stretch;flex-direction:column}.pagination-actions button{flex:1}}
