/* 童蒙云 · 平台运营控制台 */
body.pf-page { background: #f3eee4; color: var(--ink); }
.pf-page button { font-family: inherit; }

/* 登录 */
.pf-login-page { min-height: 100vh; background: #f3eee4; }
.pf-login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.pf-login-visual { position: relative; overflow: hidden; background: #0f3528; color: #fff; padding: 54px 60px; display: flex; }
.pf-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.pf-orb-1 { width: 520px; height: 520px; right: -160px; top: -180px; background: radial-gradient(circle at 35% 35%, rgba(233,194,124,.22), rgba(233,194,124,.02) 70%); }
.pf-orb-2 { width: 460px; height: 460px; left: -180px; bottom: -200px; background: radial-gradient(circle at 50% 50%, rgba(92,141,118,.32), rgba(92,141,118,.02) 70%); }
.pf-visual-grid { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.pf-visual-inner { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; }
.pf-brand-light { display: flex; align-items: center; gap: 11px; color: #fff; }
.pf-mark { width: 40px; height: 40px; border-radius: 12px; background: #e9d9b5; color: #123d2e; display: grid; place-items: center; }
.pf-mark svg { width: 28px; height: 28px; }
.pf-brand-light b { display: block; font-size: 17px; letter-spacing: .04em; }
.pf-brand-light small { display: block; font-size: 8px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-top: 2px; }
.pf-visual-copy { margin-top: auto; margin-bottom: auto; padding: 34px 0 24px; max-width: 620px; }
.pf-eyebrow { font-size: 9px; letter-spacing: .2em; color: #d8b77a; font-weight: 700; margin-bottom: 20px; }
.pf-visual-copy h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.3; letter-spacing: -.05em; font-weight: 700; }
.pf-visual-copy h1 em { font-family: var(--serif); font-style: normal; font-weight: 500; color: #e9c27c; }
.pf-visual-copy p { font-size: 14px; line-height: 2; color: rgba(255,255,255,.52); max-width: 460px; margin-top: 22px; }
.pf-visual-stats { display: flex; gap: 48px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); max-width: 560px; }
.pf-visual-stats b { display: block; font-family: var(--serif); font-size: 31px; font-weight: 500; color: #f3e8d1; }
.pf-visual-stats small { display: block; font-size: 9px; color: rgba(255,255,255,.42); margin-top: 2px; }
.pf-visual-quote { margin-top: 24px; font-family: var(--serif); font-size: 12px; color: rgba(255,255,255,.38); }
.pf-login-panel { padding: 42px 58px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.pf-login-top { position: absolute; top: 38px; left: 58px; right: 58px; display: flex; justify-content: space-between; font-size: 10.5px; }
.pf-back { color: #7d8980; }
.pf-switch { color: var(--green); font-weight: 650; }
.pf-login-card { width: min(390px, 100%); margin: 0 auto; }
.pf-login-kicker { font-size: 9px; letter-spacing: .18em; color: #a58a6a; font-weight: 750; }
.pf-login-card h2 { font-size: 36px; letter-spacing: -.045em; margin: 7px 0 4px; }
.pf-login-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 28px; }
.pf-field { margin-bottom: 14px; }
.pf-field label { display: block; font-size: 10.5px; font-weight: 650; color: #526157; margin-bottom: 6px; }
.pf-field input { width: 100%; height: 46px; border: 1px solid #ded7ca; border-radius: 8px; background: #fffdf8; padding: 0 13px; font-size: 13px; color: var(--ink); outline: none; transition: .2s; }
.pf-field input:focus { border-color: #8cb29c; box-shadow: 0 0 0 3px rgba(30,91,69,.08); }
.pf-error { display: none; background: #fbeae8; color: #a94b42; border-radius: 7px; padding: 8px 10px; font-size: 10px; margin-bottom: 10px; }
.pf-error.show { display: block; }
.pf-login-btn { width: 100%; height: 48px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; transition: .2s; }
.pf-login-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.pf-login-btn span { font-size: 18px; font-weight: 400; }
.pf-demo-account { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px; border-radius: 7px; background: #eee7d8; font-size: 9.5px; color: #7c887f; }
.pf-demo-account b { color: #5c6b61; font-weight: 650; margin-right: 2px; }
.pf-demo-account .dot { color: #b8b1a4; }
.pf-login-note { font-size: 9px; line-height: 1.7; color: #a1a9a2; margin-top: 15px; }
.pf-login-note a { color: var(--green); }
.pf-login-footer { position: absolute; bottom: 28px; left: 58px; right: 58px; display: flex; justify-content: space-between; font-size: 8.5px; color: #a6ada6; }

/* 控制台壳 */
.pf-app { min-height: 100vh; display: flex; }
.pf-sidebar { width: 238px; flex: none; background: #0f3528; color: #fff; display: flex; flex-direction: column; padding: 22px 15px 16px; position: sticky; top: 0; height: 100vh; }
.pf-side-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.pf-side-mark { width: 34px; height: 34px; border-radius: 9px; background: #e9d9b5; color: #123d2e; display: grid; place-items: center; flex: none; }
.pf-side-mark svg { width: 24px; height: 24px; }
.pf-side-brand b { display: block; font-size: 14.5px; letter-spacing: .03em; }
.pf-side-brand small { display: block; font-size: 8px; color: rgba(255,255,255,.35); letter-spacing: .08em; margin-top: 1px; }
.pf-tenant-label { font-size: 8px; letter-spacing: .15em; color: rgba(255,255,255,.25); padding: 16px 10px 7px; }
.pf-nav { display: flex; flex-direction: column; gap: 3px; }
.pf-nav-item { display: flex; align-items: center; gap: 9px; min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.62); padding: 0 10px; font-size: 11.5px; text-align: left; transition: .18s; }
.pf-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.pf-nav-item.active { background: #f6f1e5; color: #1b4a38; font-weight: 650; }
.pf-nav-ico { width: 16px; height: 16px; display: grid; place-items: center; }
.pf-nav-ico svg { width: 15px; height: 15px; }
.pf-nav-item b { margin-left: auto; font-size: 8px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); border-radius: 10px; padding: 2px 6px; }
.pf-nav-item.active b { background: #e4ddcf; color: #607367; }
.pf-nav-item em { margin-left: auto; font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: #d97757; color: #fff; display: grid; place-items: center; font-size: 8px; }
.pf-side-note { margin-top: auto; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 12px; }
.pf-side-note-top { display: flex; align-items: center; gap: 6px; font-size: 8px; color: rgba(255,255,255,.38); margin-bottom: 6px; }
.pf-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #78b98d; box-shadow: 0 0 0 3px rgba(120,185,141,.12); }
.pf-side-note b { display: block; font-size: 10.5px; color: rgba(255,255,255,.82); }
.pf-side-note p { font-size: 8.5px; line-height: 1.7; color: rgba(255,255,255,.36); margin-top: 4px; }
.pf-side-user { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.pf-side-user .pf-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e9c27c; color: #233b2f; display: grid; place-items: center; font-size: 12px; font-weight: 650; flex: none; }
.pf-side-user b { display: block; font-size: 10px; }
.pf-side-user small { display: block; font-size: 8px; color: rgba(255,255,255,.35); }
.pf-side-user button { margin-left: auto; border: 0; background: none; color: rgba(255,255,255,.35); }

.pf-main { flex: 1; min-width: 0; }
.pf-topbar { height: 66px; background: rgba(250,247,240,.86); backdrop-filter: blur(10px); border-bottom: 1px solid #e7e0d3; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.pf-crumb { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #9aa39c; }
.pf-crumb b { color: #33483c; font-weight: 600; }
.pf-crumb i { font-style: normal; color: #c2c8c1; }
.pf-topbar-right { display: flex; align-items: center; gap: 10px; }
.pf-search { width: 280px; height: 34px; border: 1px solid #e0d9cd; border-radius: 7px; background: #fffdf8; display: flex; align-items: center; gap: 6px; padding: 0 9px; }
.pf-search svg { width: 13px; height: 13px; color: #9aa39c; }
.pf-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 10.5px; color: var(--ink); }
.pf-search kbd { font-size: 7.5px; color: #aeb5ae; border: 1px solid #e4ded2; border-radius: 4px; padding: 1px 4px; }
.pf-icon-btn { width: 34px; height: 34px; border: 1px solid #e0d9cd; border-radius: 7px; background: #fffdf8; color: #7d8980; display: grid; place-items: center; }
.pf-icon-btn svg { width: 14px; height: 14px; }
.pf-admin-chip { display: flex; align-items: center; gap: 7px; padding-left: 4px; }
.pf-admin-chip .pf-avatar { width: 30px; height: 30px; border-radius: 50%; background: #1e5b45; color: #fff; display: grid; place-items: center; font-size: 11px; }
.pf-admin-chip b { display: block; font-size: 10px; }
.pf-admin-chip small { display: block; font-size: 8px; color: #9aa39c; }

.pf-view { padding: 28px 30px 48px; max-width: 1480px; }
.pf-loading { display: flex; align-items: center; gap: 9px; color: #8b958d; font-size: 11px; padding: 30px; }
.pf-spinner { width: 15px; height: 15px; border: 2px solid #d9d3c7; border-top-color: var(--green); border-radius: 50%; animation: pfspin .8s linear infinite; }
@keyframes pfspin { to { transform: rotate(360deg); } }
.pf-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.pf-page-kicker { font-size: 9px; letter-spacing: .13em; color: #a58a6a; font-weight: 750; margin-bottom: 6px; }
.pf-page-head h1 { font-size: 32px; letter-spacing: -.045em; line-height: 1.25; }
.pf-page-head h1 em { font-family: var(--serif); font-style: normal; font-weight: 500; color: var(--green); }
.pf-page-head p { font-size: 11.5px; color: #7d8980; margin-top: 5px; }
.pf-page-actions { display: flex; gap: 8px; }
.pf-btn { min-height: 36px; border: 1px solid transparent; border-radius: 7px; padding: 0 13px; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pf-btn svg { width: 13px; height: 13px; }
.pf-btn.primary { background: var(--green); color: #fff; }
.pf-btn.secondary { background: #fffdf8; border-color: #ddd6c9; color: #526157; }
.pf-btn.ghost { background: transparent; color: #6f7c73; }
.pf-btn.danger { background: #fbeae8; color: #a94b42; }
.pf-btn.sm { min-height: 30px; font-size: 9.5px; padding: 0 9px; }

.pf-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.pf-stat { background: #fffdf8; border: 1px solid #e6dfd2; border-radius: 10px; padding: 15px 16px; }
.pf-stat-top { display: flex; align-items: center; justify-content: space-between; }
.pf-stat-top span { font-size: 10px; color: #7d8980; }
.pf-stat-top i { width: 28px; height: 28px; border-radius: 7px; background: #eef4ef; color: var(--green); display: grid; place-items: center; }
.pf-stat-top i svg { width: 13px; height: 13px; }
.pf-stat-top i.gold { background: #f8f1e1; color: #a77c28; }
.pf-stat-top i.coral { background: #fbeae8; color: #b45b3d; }
.pf-stat-top i.blue { background: #eaf0f5; color: #5c7fa3; }
.pf-stat b { display: block; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; margin-top: 2px; }
.pf-stat b small { font-size: 10px; font-weight: 500; color: #8b958d; margin-left: 3px; }
.pf-stat small { display: block; font-size: 9px; color: #9aa39c; margin-top: 4px; }
.pf-stat small .up { color: #4e8768; font-weight: 650; }
.pf-stat small .warn { color: #b45b3d; font-weight: 650; }

.pf-panel { background: #fffdf8; border: 1px solid #e6dfd2; border-radius: 11px; overflow: hidden; }
.pf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #eee8dc; }
.pf-panel-head h3 { font-size: 13px; }
.pf-panel-head p { font-size: 9px; color: #9aa39c; margin-top: 2px; }
.pf-tabs { display: flex; gap: 3px; background: #f3eee4; border-radius: 7px; padding: 3px; }
.pf-tab { border: 0; background: transparent; border-radius: 5px; padding: 5px 8px; font-size: 9px; color: #7d8980; }
.pf-tab.active { background: #fffdf8; color: #33483c; font-weight: 650; box-shadow: 0 1px 4px rgba(30,42,36,.06); }
.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.pf-table th { text-align: left; font-size: 8.5px; font-weight: 600; color: #9aa39c; background: #fbf8f0; padding: 9px 12px; border-bottom: 1px solid #eee8dc; white-space: nowrap; }
.pf-table td { padding: 11px 12px; border-bottom: 1px solid #f0ebe1; font-size: 10px; color: #526157; vertical-align: middle; }
.pf-table tbody tr { cursor: pointer; transition: background .15s; }
.pf-table tbody tr:hover { background: #fbf8f0; }
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-school-cell { display: flex; align-items: center; gap: 9px; }
.pf-school-mark { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; font-family: var(--serif); font-size: 13px; color: #fff; flex: none; }
.pf-school-cell b { display: block; font-size: 10.5px; color: #2d4236; }
.pf-school-cell small { display: block; font-size: 8px; color: #a0a8a1; margin-top: 1px; }
.pf-principal b { display: block; font-size: 9.5px; }
.pf-principal small { display: block; font-size: 8px; color: #a0a8a1; margin-top: 1px; }
.pf-plan { font-size: 9px; }
.pf-plan small { display: block; font-size: 7.5px; color: #a0a8a1; }
.pf-status { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; border-radius: 20px; padding: 3px 7px; white-space: nowrap; }
.pf-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pf-status.ok { background: #e8f2ea; color: #4e8768; }
.pf-status.trial { background: #f6efdc; color: #9a752b; }
.pf-status.expiring { background: #fbeae8; color: #b45b3d; }
.pf-status.off { background: #ececec; color: #8d958f; }
.pf-num { font-weight: 600; color: #2d4236; }
.pf-ops { display: flex; gap: 4px; justify-content: flex-end; }
.pf-link { border: 0; background: none; color: var(--green); font-size: 9px; font-weight: 600; padding: 3px 5px; }
.pf-link.muted { color: #9aa39c; }
.pf-empty { padding: 34px; text-align: center; color: #9aa39c; font-size: 10px; }

.pf-expiring-strip { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 11px 14px; border-radius: 8px; background: #fbf1e4; border: 1px solid #eadbc4; font-size: 10px; color: #8a6942; }
.pf-expiring-strip b { color: #a35d34; }
.pf-expiring-strip button { margin-left: auto; border: 0; background: none; color: #a35d34; font-size: 9px; font-weight: 650; }

/* 抽屉 */
.pf-overlay { position: fixed; inset: 0; background: rgba(8,20,14,.42); backdrop-filter: blur(2px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pf-overlay.open { opacity: 1; pointer-events: auto; }
.pf-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 96vw); background: #fffdf8; z-index: 110; transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(20,36,28,.16); }
.pf-drawer.open { transform: none; }
.pf-drawer-head { padding: 18px 22px; border-bottom: 1px solid #eee8dc; display: flex; align-items: flex-start; justify-content: space-between; }
.pf-drawer-head h2 { font-size: 22px; letter-spacing: -.035em; }
.pf-drawer-head p { font-size: 9.5px; color: #9aa39c; margin-top: 3px; }
.pf-close { width: 28px; height: 28px; border: 1px solid #e6dfd2; border-radius: 6px; background: #fffdf8; color: #7d8980; display: grid; place-items: center; }
.pf-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }
.pf-drawer-foot { padding: 13px 22px; border-top: 1px solid #eee8dc; display: flex; gap: 7px; justify-content: flex-end; background: #fdfbf6; }
.pf-tenant-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pf-tenant-hero .pf-school-mark { width: 48px; height: 48px; font-size: 19px; border-radius: 12px; }
.pf-tenant-hero h3 { font-size: 18px; letter-spacing: -.03em; }
.pf-tenant-hero p { font-size: 9.5px; color: #9aa39c; margin-top: 2px; }
.pf-tenant-hero .pf-status { margin-left: auto; }
.pf-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #eee8dc; border: 1px solid #eee8dc; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.pf-meta-grid > div { background: #fbf8f0; padding: 9px 11px; }
.pf-meta-grid small { display: block; font-size: 8px; color: #9aa39c; }
.pf-meta-grid b { display: block; font-size: 11px; margin-top: 2px; }
.pf-info-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 17px; }
.pf-info-form .full { grid-column: span 2; }
.pf-info-form label { display: block; font-size: 8.5px; font-weight: 600; color: #6f7c73; margin-bottom: 4px; }
.pf-info-form input, .pf-info-form select, .pf-info-form textarea { width: 100%; border: 1px solid #e2dbcf; background: #fff; border-radius: 6px; min-height: 33px; padding: 6px 8px; font-size: 10px; color: #33483c; outline: none; }
.pf-info-form textarea { min-height: 52px; resize: vertical; }
.pf-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 9px; }
.pf-section-title h4 { font-size: 12px; }
.pf-section-title p { font-size: 8.5px; color: #9aa39c; margin-top: 2px; }
.pf-perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pf-perm { display: flex; align-items: center; gap: 7px; border: 1px solid #eee8dc; border-radius: 6px; padding: 7px 8px; background: #fffdf8; cursor: pointer; }
.pf-perm input { width: 13px; height: 13px; accent-color: var(--green); flex: none; }
.pf-perm span { font-size: 9px; color: #526157; }
.pf-perm.disabled { opacity: .55; cursor: not-allowed; }
.pf-perm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pf-perm-note { font-size: 8.5px; line-height: 1.65; color: #9aa39c; margin-top: 8px; }
.pf-tenant-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eee8dc; }

/* 弹窗 */
.pf-modal-root { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 24px; }
.pf-modal-root.open { display: flex; }
.pf-modal-mask { position: absolute; inset: 0; background: rgba(8,20,14,.46); backdrop-filter: blur(3px); }
.pf-modal { position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: #fffdf8; border-radius: 13px; box-shadow: 0 30px 80px rgba(20,36,28,.22); }
.pf-modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 10px; }
.pf-modal-head h3 { font-size: 20px; letter-spacing: -.03em; }
.pf-modal-head p { font-size: 9.5px; color: #9aa39c; margin-top: 3px; }
.pf-modal-body { padding: 6px 20px 18px; }
.pf-modal-foot { padding: 12px 20px; border-top: 1px solid #eee8dc; display: flex; justify-content: flex-end; gap: 7px; }
.pf-modal .pf-info-form { margin-bottom: 0; }
.pf-renew-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 7px; }
.pf-renew-option { border: 1px solid #e2dbcf; background: #fff; border-radius: 7px; padding: 12px 8px; text-align: center; }
.pf-renew-option.active { border-color: #7fa88e; background: #f0f7f2; }
.pf-renew-option b { display: block; font-size: 16px; color: #2d4236; }
.pf-renew-option small { display: block; font-size: 8px; color: #9aa39c; margin-top: 2px; }

/* 提示 */
.pf-toast-root { position: fixed; top: 20px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 7px; }
.pf-toast { background: #1e4a38; color: #fff; border-radius: 8px; padding: 10px 13px; font-size: 10px; box-shadow: 0 10px 30px rgba(20,36,28,.2); animation: pfin .2s ease; }
.pf-toast.error { background: #a94b42; }
@keyframes pfin { from { opacity: 0; transform: translateY(-5px); } }

@media (max-width: 1000px) {
  .pf-login-shell { grid-template-columns: 1fr; }
  .pf-login-visual { min-height: 340px; padding: 36px; }
  .pf-visual-copy { margin: 30px 0 0; }
  .pf-visual-stats, .pf-visual-quote { display: none; }
  .pf-login-panel { padding: 80px 26px 60px; }
  .pf-login-top { top: 30px; left: 26px; right: 26px; }
  .pf-login-footer { left: 26px; right: 26px; }
  .pf-stat-grid { grid-template-columns: 1fr 1fr; }
  .pf-sidebar { width: 206px; }
}
@media (max-width: 760px) {
  .pf-sidebar { display: none; }
  .pf-topbar { padding: 0 14px; height: 58px; }
  .pf-search { width: 190px; }
  .pf-admin-chip b, .pf-admin-chip small { display: none; }
  .pf-view { padding: 20px 14px 40px; }
  .pf-page-head { flex-direction: column; align-items: flex-start; }
  .pf-page-head h1 { font-size: 26px; }
  .pf-page-actions { width: 100%; }
  .pf-page-actions .pf-btn { flex: 1; justify-content: center; }
  .pf-stat-grid { gap: 8px; }
  .pf-stat { padding: 12px; }
  .pf-stat b { font-size: 23px; }
  .pf-tabs { flex-wrap: wrap; }
  .pf-panel-head { flex-direction: column; align-items: flex-start; }
  .pf-drawer { width: 100%; }
  .pf-info-form { grid-template-columns: 1fr; }
  .pf-info-form .full { grid-column: span 1; }
  .pf-perm-grid, .pf-perm-actions { grid-template-columns: 1fr; }
  .pf-meta-grid { grid-template-columns: 1fr 1fr; }
  .pf-expiring-strip { align-items: flex-start; }
  .pf-expiring-strip button { margin-left: 0; }
}
.pf-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 7px; border-radius: 5px; background: #f3efe4; color: #5b675f; font-size: 9px; white-space: nowrap; }
.pf-ai-cost-grid { display:grid; grid-template-columns:1.45fr .75fr; gap:12px; margin-bottom:12px; align-items:start; }
.pf-cost { color:#a67c2e; font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width: 1000px) { .pf-ai-cost-grid { grid-template-columns:1fr; } }
.pf-ai-cost-grid .pf-table { min-width:0; }
.pf-ai-cost-grid .pf-panel { min-width:0; }
.pf-select { height:36px; min-width:190px; border:1px solid #ddd4c5; background:#fffdf8; color:#2d4236; border-radius:8px; padding:0 32px 0 12px; font-size:11px; outline:none; }
