.block-editor { grid-column: 1 / -1; margin-top: 14px; }
.block-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: #f7f7f8; border: 1px solid var(--line); border-radius: 12px; }
.block-toolbar button, .block-actions button { border: 0; border-radius: 8px; padding: 8px 12px; background: #fff; color: #555; cursor: pointer; }
.content-block { margin-top: 12px; padding: 14px; background: #fbfbfc; border: 1px solid var(--line); border-radius: 12px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.block-head strong { font-size: 13px; }
.block-actions { display: flex; gap: 5px; }
.block-actions button { padding: 5px 9px; background: #eef0f2; }
.content-block textarea { min-height: 110px; }
.content-block img { display: block; max-width: 180px; max-height: 130px; margin: 10px 0; border-radius: 8px; object-fit: cover; }
.settings-card { max-width: 620px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.settings-card h3 { margin: 0 0 8px; }
.settings-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.settings-card .primary { margin-top: 8px; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: #fff9d6; color: #725f00; font-size: 13px; }
.home-settings { max-width: 760px; }
.home-management-layout { display: grid; gap: 22px; }
.hero-preview { display: block; width: min(100%, 620px); max-height: 420px; margin: 18px 0; border-radius: 12px; object-fit: contain; background: #f5f5f5; }
.hero-empty { margin: 18px 0; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(36,38,44,.05); }
.stat::after { content: ''; position: absolute; right: -24px; top: -28px; width: 86px; height: 86px; border-radius: 50%; background: rgba(242,213,47,.18); }
.card-panel { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px rgba(37,39,45,.04); }
.card-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-panel-head h3 { margin: 0 0 6px; font-size: 19px; }
.card-panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.manage-card { min-width: 0; padding: 18px; border: 1px solid #e9eaee; border-radius: 15px; background: linear-gradient(145deg,#fff,#fcfcfd); box-shadow: 0 8px 24px rgba(35,37,42,.045); transition: transform .18s ease, box-shadow .18s ease; }
.manage-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(35,37,42,.08); }
.manage-head { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.manage-head h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.manage-head p { margin: 5px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.card-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff7bd; color: #685b00; font-weight: 800; font-size: 18px; }
.card-symbol.folder { background: #edf5ff; color: #3970a9; }
.card-symbol.document { background: #eef8ec; color: #4d8a43; }
.card-symbol.level { background: #f5f1ff; color: var(--level-color); }
.card-symbol.user { background: #f3efff; color: #7053a5; }
.card-summary { min-height: 38px; margin: 16px 0; display: -webkit-box; overflow: hidden; color: #666b75; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-grid span { padding: 10px; border-radius: 10px; background: #f7f7f8; color: var(--muted); font-size: 11px; }
.meta-grid strong { display: block; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #35363a; font-size: 13px; }
.price-rule { margin-top: 16px; padding: 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #fff9d9; color: #6b5b00; font-size: 13px; }
.price-rule strong { font-size: 24px; }
.card-actions { margin-top: 16px; padding-top: 12px; display: flex; justify-content: flex-end; gap: 4px; border-top: 1px solid #f0f1f3; }
.card-actions .link-btn { padding: 7px 12px; border-radius: 8px; background: #f5f5f6; }
.openid { font-family: ui-monospace,Consolas,monospace; }
.home-card-preview { height: 150px; margin: -18px -18px 16px; display: grid; place-items: center; overflow: hidden; border-radius: 15px 15px 0 0; background: #f4f4f5; color: var(--muted); font-size: 13px; }
.home-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.home-block-title { display: flex; align-items: center; justify-content: space-between; }
.home-block-admin > h3 { margin: 14px 0 7px; font-size: 16px; }
.home-block-admin > p { min-height: 38px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 850px) { .sidebar nav { grid-template-columns: repeat(8, 120px); } }
@media (max-width: 620px) { .card-panel { padding: 14px; } .manage-grid { grid-template-columns: 1fr; } }
