.dmp-legacy-page{min-height:100vh;background:#f3f6fb;color:#111827}.dmp-legacy-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:24px;min-height:64px;padding:0 24px;border-bottom:1px solid #e5e7eb;background:#fff}.dmp-legacy-brand{display:flex;align-items:center;gap:10px;min-width:190px}.dmp-legacy-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#2563eb;color:#fff;font-weight:800}.dmp-legacy-brand h1{margin:0;font-size:16px;line-height:1.2;letter-spacing:0}.dmp-legacy-brand p{margin:2px 0 0;color:#64748b;font-size:12px}.dmp-legacy-tabs{display:flex;align-items:center;gap:10px;min-width:0;overflow-x:auto;scrollbar-width:none}.dmp-legacy-tabs::-webkit-scrollbar{display:none}.dmp-legacy-tabs button{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:0;border-radius:18px;background:transparent;color:#475569;font-weight:700;white-space:nowrap}.dmp-legacy-tabs button.is-active{background:#eff6ff;color:#2563eb}.dmp-legacy-tabs button:hover{background:#f8fafc;color:#2563eb}.dmp-legacy-tabs svg{width:16px;height:16px}.dmp-legacy-main{padding:28px 24px}.dmp-no-access{display:grid;place-items:center;gap:8px;min-height:360px;padding:28px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#64748b;text-align:center}.dmp-no-access svg{width:30px;height:30px;color:#f59e0b}.dmp-no-access strong{color:#111827;font-size:18px}.dmp-no-access p{margin:0;font-size:13px}.dmp-active-tab-note{min-height:220px;padding:24px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#64748b;font-weight:700}.dmp-tab-stack{display:grid;gap:18px}.dmp-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dmp-title-row h2{margin:0;color:#111827;font-size:26px;line-height:1.25;letter-spacing:0}.dmp-title-row p{margin:5px 0 0;color:#64748b;font-size:13px}.dmp-filter-panel{display:grid;grid-template-columns:1.35fr .8fr 1fr 1fr auto auto .95fr .7fr auto auto auto auto;gap:10px;align-items:end;padding:14px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0a}.dmp-filter-panel label span,.dmp-checkbox span{display:block;margin-bottom:6px;color:#64748b;font-size:12px;font-weight:700}.dmp-filter-panel input,.dmp-filter-panel select{width:100%;height:38px;min-height:38px;padding:0 11px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#111827;outline:0}.dmp-filter-panel input:focus,.dmp-filter-panel select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.dmp-period-field{min-width:290px}.dmp-checkbox{display:inline-flex;align-items:center;gap:8px;min-height:38px;white-space:nowrap}.dmp-checkbox input{width:16px;min-width:16px;height:16px;min-height:16px;padding:0}.dmp-checkbox span{margin:0;color:#334155}.dmp-primary,.dmp-soft,.dmp-danger-ghost,.dmp-actions button,.dmp-link-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;min-height:38px;padding:0 14px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#334155;font-weight:700;white-space:nowrap}.dmp-primary{border-color:#2563eb;background:#2563eb;color:#fff}.dmp-static-chip{cursor:default}.dmp-primary:disabled,.dmp-soft:disabled,.dmp-actions button:disabled,.dmp-link-button:disabled{cursor:not-allowed;border-color:#e5e7eb;background:#f8fafc;color:#94a3b8}.dmp-soft:not(:disabled):hover,.dmp-actions button:not(:disabled):hover,.dmp-link-button:not(:disabled):hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.dmp-danger-ghost{border-color:#fecaca;color:#dc2626}.dmp-danger-ghost:disabled{color:#94a3b8;border-color:#e5e7eb}.dmp-primary svg,.dmp-soft svg,.dmp-danger-ghost svg,.dmp-actions svg{width:16px;height:16px}.dmp-error,.dmp-operation-message{padding:10px 12px;border-radius:8px;font-size:13px;font-weight:700}.dmp-error{border:1px solid #fecaca;background:#fef2f2;color:#dc2626}.dmp-operation-message{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d}.dmp-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dmp-kpi-grid article{min-height:84px;padding:14px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0a}.dmp-kpi-grid span,.dmp-kpi-grid small{display:block;color:#64748b;font-size:12px;font-weight:700}.dmp-kpi-grid strong{display:block;margin:7px 0 3px;color:#111827;font-size:24px;line-height:1}.dmp-ai-hero{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8}.dmp-ai-hero svg{width:28px;height:28px}.dmp-ai-hero strong{display:block;margin-bottom:4px}.dmp-ai-hero p{margin:0;color:#334155;font-size:13px}.dmp-three-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dmp-insight-list{display:grid;gap:10px;padding:12px}.dmp-insight-list article{padding:12px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc}.dmp-insight-list strong{display:block;margin-bottom:5px;color:#111827}.dmp-insight-list p{margin:0;color:#64748b;font-size:13px;line-height:1.45}.dmp-card{overflow:hidden;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0a}.dmp-rule-form{display:grid;grid-template-columns:minmax(220px,1.2fr) 160px 170px auto auto;gap:12px;align-items:end;padding:14px}.dmp-rule-form label span{display:block;margin-bottom:6px;color:#64748b;font-size:12px;font-weight:700}.dmp-rule-form input,.dmp-rule-form select{width:100%;height:38px;min-height:38px;padding:0 11px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#111827;outline:0}.dmp-rule-form input:focus,.dmp-rule-form select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.dmp-rule-enabled{align-self:end}.dmp-form-actions{display:flex;align-items:center;gap:8px}.dmp-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:12px 14px;border-bottom:1px solid #e5e7eb;background:#fff}.dmp-card-header>div:first-child{display:grid;gap:3px}.dmp-card-header strong{display:inline-flex;align-items:center;gap:8px;color:#111827}.dmp-card-header strong svg{width:17px;height:17px;color:#2563eb}.dmp-card-header span{color:#64748b;font-size:12px}.dmp-actions{display:flex;align-items:center;gap:8px}.dmp-table-scroll{width:100%;overflow-x:auto}.dmp-legacy-table{width:100%;min-width:1180px;border-collapse:collapse}.dmp-legacy-table th,.dmp-legacy-table td{padding:10px 12px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:middle;font-size:13px}.dmp-legacy-table th{height:42px;background:#f8fafc;color:#64748b;font-size:12px;font-weight:800}.dmp-legacy-table tbody tr:hover{background:#f8fbff}.dmp-product-cell{display:grid;grid-template-columns:42px minmax(210px,1fr);align-items:center;gap:10px}.dmp-product-cell strong,.dmp-two-line strong{display:block;max-width:330px;overflow:hidden;color:#1f2937;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.dmp-product-cell span,.dmp-two-line span{display:block;margin-top:3px;color:#94a3b8;font-size:12px;line-height:1.3}.dmp-thumb{width:42px;height:42px;border:1px solid #e5e7eb;border-radius:6px;object-fit:cover}.dmp-thumb-placeholder{display:grid;place-items:center;background:#eff6ff;color:#2563eb;font-weight:800}.dmp-store-cell{display:inline-flex;align-items:center;gap:6px;color:#334155;font-weight:700}.dmp-store-cell svg{width:15px;height:15px;color:#64748b}.dmp-growth{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;font-weight:700}.dmp-growth.up{background:#ecfdf5;color:#059669}.dmp-growth.down{background:#fef2f2;color:#dc2626}.dmp-growth.flat{background:#f1f5f9;color:#64748b}.dmp-link-button{height:32px;min-height:32px;padding:0 10px;border-color:#dbeafe;background:#eff6ff;color:#2563eb}.dmp-empty{display:grid;place-items:center;min-height:220px;color:#64748b;font-weight:700}@media(max-width:860px){.dmp-legacy-header{top:0;align-items:flex-start;flex-direction:column;gap:10px;padding:12px 14px}.dmp-legacy-tabs{width:100%}.dmp-legacy-main{padding:16px 14px}.dmp-title-row,.dmp-card-header{align-items:stretch;flex-direction:column}.dmp-filter-panel{grid-template-columns:1fr}.dmp-period-field{min-width:0}.dmp-actions{align-items:stretch;flex-direction:column}.dmp-kpi-grid,.dmp-three-column,.dmp-rule-form{grid-template-columns:1fr}.dmp-form-actions{align-items:stretch;flex-direction:column}}.review-gallery-shell{min-height:100vh;background:#f5f7fb;color:#162033;padding:28px}.review-gallery-hero,.review-gallery-panel,.review-gallery-entry-card,.review-gallery-loading{background:#fff;border:1px solid #dce4f2;border-radius:8px;box-shadow:0 12px 32px #15223a14}.review-gallery-entry-card{width:min(560px,100%);margin:12vh auto 0;padding:32px;display:grid;gap:18px}.review-gallery-entry-icon{width:52px;height:52px;border-radius:8px;display:grid;place-items:center;color:#2563eb;background:#eef4ff}.review-gallery-entry-icon svg{width:28px;height:28px}.review-gallery-entry-card span{color:#2563eb;font-weight:800}.review-gallery-entry-card h1{margin:8px 0;font-size:28px;letter-spacing:0}.review-gallery-entry-card p{margin:0;color:#65758f}.review-gallery-entry-actions{display:flex;justify-content:flex-start}.review-gallery-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px}.review-gallery-hero span,.review-gallery-panel header p,.review-field span,.review-gallery-stats span,.review-gallery-row p{color:#65758f}.review-gallery-hero h1{margin:8px 0;font-size:30px;letter-spacing:0}.review-gallery-hero p{margin:0;color:#65758f}.review-gallery-stats{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px;min-width:420px}.review-gallery-stats article{border:1px solid #dbe8ff;border-radius:8px;padding:16px;background:#f8fbff}.review-gallery-stats strong{display:block;color:#2563eb;font-size:24px}.review-gallery-alert{margin-top:14px;border-radius:8px;padding:12px 16px;font-weight:700}.review-gallery-alert.danger{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.review-gallery-alert.success{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0}.review-gallery-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:18px}.review-gallery-panel{padding:22px;margin-top:18px}.review-gallery-grid .review-gallery-panel{margin-top:0}.review-gallery-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.review-gallery-panel h2{margin:0 0 6px;font-size:20px}.review-gallery-panel header p{margin:0}.review-gallery-panel header svg{width:24px;height:24px;color:#2563eb}.review-gallery-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.review-field{display:flex;flex-direction:column;gap:8px;font-weight:700}.review-field input,.review-field select,.review-field textarea{width:100%;border:1px solid #d9e0ea;border-radius:8px;padding:12px 14px;font:inherit;background:#fff;resize:vertical}.review-field:has(textarea){grid-column:1 / -1}.review-gallery-list{display:grid;gap:12px}.review-gallery-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;border:1px solid #dce4f2;border-radius:8px;padding:14px;background:#fbfdff}.review-gallery-thumb{width:72px;height:72px;border-radius:8px;display:grid;place-items:center;color:#2563eb;background:linear-gradient(135deg,#eaf2ff,#f5ecff)}.review-gallery-thumb svg{width:28px;height:28px}.review-gallery-row strong{display:block;margin-bottom:4px}.review-gallery-row p{margin:0 0 10px}.review-gallery-tags,.review-gallery-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.review-gallery-actions{justify-content:flex-end}.review-gallery-empty,.review-gallery-loading{min-height:220px;display:grid;place-items:center;text-align:center;color:#65758f}.review-gallery-empty svg,.review-gallery-loading svg{width:34px;height:34px;color:#2563eb}@media(max-width:960px){.review-gallery-shell{padding:16px}.review-gallery-hero,.review-gallery-grid,.review-gallery-row{grid-template-columns:1fr}.review-gallery-hero{display:grid}.review-gallery-stats{min-width:0;grid-template-columns:1fr}.review-gallery-form{grid-template-columns:1fr}.review-gallery-actions{justify-content:flex-start}}.app.trend-workspace{min-height:100vh;display:flex;flex-direction:column;background:#f5f7fb;color:#1f2937}.app.trend-workspace .topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:18px;margin:0;padding:0 22px;border-bottom:1px solid #e5e7eb;background:#ffffffeb;box-shadow:0 8px 26px #0f172a0a;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.app.trend-workspace .topbar-left{display:flex;flex:1;align-items:center;min-width:0;gap:22px}.app.trend-workspace .top-brand{display:flex;flex:0 0 auto;align-items:center;min-width:196px;gap:10px}.app.trend-workspace .logo{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:800}.app.trend-workspace .logo.brand-logo{display:block;object-fit:contain;background:#fff;box-shadow:0 8px 18px #2563eb29}.app.trend-workspace .brand-title{color:#0f172a;font-size:16px;font-weight:800;letter-spacing:0}.app.trend-workspace .brand-sub{margin-top:3px;color:#64748b;font-size:12px}.app.trend-workspace .nav{display:flex;align-items:center;gap:8px;padding:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.app.trend-workspace .nav::-webkit-scrollbar{display:none}.app.trend-workspace .nav-btn{display:flex;align-items:center;width:auto;gap:8px;padding:9px 14px;border:1px solid transparent;border-radius:999px;background:transparent;color:#475569;font-size:14px;font-weight:800;text-align:left}.app.trend-workspace .nav-btn:hover:not(:disabled){background:#f1f5f9;color:#0f172a}.app.trend-workspace .nav-btn.active{border-color:#bfdbfe;background:#eff6ff;color:#2563eb;box-shadow:0 8px 20px #2563eb1a}.app.trend-workspace .nav-icon{width:auto;font-size:16px;text-align:center}.app.trend-workspace .top-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.app.trend-workspace .icon-btn{width:38px;height:38px;padding:0;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#2563eb;font-weight:900;box-shadow:0 8px 20px #0f172a0a}.app.trend-workspace .icon-btn:hover{border-color:#bfdbfe;background:#f8fbff}.app.trend-workspace .user-chip{display:flex;align-items:center;gap:9px;padding:7px 10px 7px 7px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#334155;font-size:13px}.app.trend-workspace .avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:800}.app.trend-workspace .main{display:flex;flex-direction:column;width:100%;min-height:calc(100vh - 68px);padding:0}.app.trend-workspace .page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:18px 26px 0}.app.trend-workspace .page-title h2{margin:0;color:#1f2937;font-size:21px;line-height:1.25;letter-spacing:0}.app.trend-workspace .page-title p{margin:4px 0 0;color:#6b7280;font-size:13px}.app.trend-workspace .layout-note{display:inline-flex;align-items:center;min-height:36px;gap:7px;padding:0 12px;border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;color:#1d4ed8;font-size:12px;font-weight:800;white-space:nowrap}.app.trend-workspace .content{padding:18px 26px 42px}.trend-legacy-page{min-height:100vh;background:#f5f7fb;color:#172033}.trend-legacy-header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:250px minmax(0,1fr) auto;align-items:center;gap:22px;min-height:76px;padding:0 30px;border-bottom:1px solid #dde5ef;background:#fff}.trend-legacy-brand{display:flex;align-items:center;gap:10px;min-width:220px}.trend-legacy-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#2563eb;color:#fff;font-weight:800}.trend-legacy-brand h1{margin:0;font-size:16px;line-height:1.2;letter-spacing:0}.trend-legacy-brand p{margin:2px 0 0;color:#64748b;font-size:12px}.trend-legacy-tabs{display:flex;align-items:center;gap:10px;min-width:0;overflow-x:auto;scrollbar-width:none}.trend-legacy-tabs::-webkit-scrollbar{display:none}.trend-legacy-tabs button,.trend-rule-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px;border:0;border-radius:18px;background:transparent;color:#475569;font-weight:700;white-space:nowrap}.trend-legacy-tabs button.is-active,.trend-rule-tabs button.is-active{background:#eff6ff;color:#2563eb}.trend-legacy-tabs button:hover,.trend-rule-tabs button:hover{background:#f1f5f9;color:#2563eb}.trend-tab-emoji{font-size:18px;line-height:1}.trend-legacy-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:max-content}.trend-shell-action,.trend-shell-icon,.trend-shell-avatar{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 15px;border:1px solid #dfe7f1;border-radius:14px;background:#fff;color:#1f2937;font-weight:800;white-space:nowrap}.trend-shell-icon{width:40px;padding:0;border-radius:999px;color:#2563eb}.trend-shell-avatar{width:40px;padding:0;border-radius:999px;background:#4f46e5;color:#fff}.trend-shell-action:disabled,.trend-shell-icon:disabled,.trend-shell-avatar:disabled{cursor:not-allowed;opacity:.58}.trend-legacy-main{padding:24px 30px}.trend-tab-stack{position:relative;display:grid;gap:16px}.trend-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.trend-page-heading h2{margin:0;color:#172033;font-size:22px;line-height:1.25;letter-spacing:0}.trend-page-heading p{margin:4px 0 0;color:#64748b;font-size:13px}.trend-page-heading-aside{display:flex;align-items:center;gap:8px}.trend-module-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:13px;font-weight:900}.trend-filter-panel,.trend-filter-toolbar{display:grid;gap:10px;align-items:end;padding:14px;border:1px solid #dde5ef;border-radius:8px;background:#fff;box-shadow:0 8px 22px #0f172a0a}.trend-filter-panel.recommendations{grid-template-columns:190px 210px 190px minmax(220px,1fr) auto;padding:0;border:0;background:transparent;box-shadow:none}.trend-filter-panel.keywords{grid-template-columns:130px 140px 120px minmax(150px,1fr) minmax(140px,1fr) 118px 118px auto auto auto auto auto auto}.trend-filter-panel.filters{grid-template-columns:150px 160px auto auto auto}.trend-filter-toolbar{grid-template-columns:auto auto auto 1fr;overflow-x:auto}.trend-filter-panel label span,.trend-segment-field>span,.trend-field-button-wrap>span{display:block;margin-bottom:6px;color:#64748b;font-size:12px;font-weight:700}.trend-filter-panel input,.trend-filter-panel select,.trend-modal-form textarea,.trend-field-button{width:100%;border:1px solid #d7dee8;border-radius:8px;background:#fff;color:#172033;outline:0}.trend-filter-panel input,.trend-filter-panel select,.trend-field-button{height:38px;min-height:38px;padding:0 11px}.trend-filter-panel.recommendations input,.trend-filter-panel.recommendations select{height:44px;border-radius:12px;font-size:16px}.trend-filter-panel.recommendations .trend-soft{min-height:44px;border-radius:12px}.trend-filter-panel input:focus,.trend-filter-panel select:focus,.trend-modal-form textarea:focus,.trend-field-button:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.trend-segment-field{min-width:max-content}.trend-segment-control{display:inline-flex;align-items:center;gap:0;height:38px;overflow:hidden;border:1px solid #d7dee8;border-radius:8px;background:#fff}.trend-segment-control button{height:100%;padding:0 12px;border:0;border-right:1px solid #e2e8f0;background:transparent;color:#475569;font-weight:800;white-space:nowrap}.trend-segment-control button:last-child{border-right:0}.trend-segment-control button.is-active{background:#eff6ff;color:#2563eb}.trend-field-button{text-align:left}.trend-primary,.trend-soft,.trend-icon-button,.trend-link-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;border:1px solid #d7dee8;border-radius:8px;background:#fff;color:#334155;font-weight:700;white-space:nowrap}.trend-primary{border-color:#2563eb;background:#2563eb;color:#fff}.trend-soft:hover,.trend-icon-button:hover,.trend-link-button:hover{border-color:#2563eb;color:#2563eb}.trend-soft.is-danger,.trend-soft.is-danger:hover{border-color:#fecaca;color:#b91c1c}.trend-soft:disabled,.trend-icon-button:disabled,.trend-link-button:disabled,.trend-primary:disabled{cursor:not-allowed;opacity:.56}.trend-soft svg,.trend-primary svg,.trend-icon-button svg,.trend-link-button svg{width:16px;height:16px}.trend-soft.compact,.trend-icon-button{min-height:30px;padding:0 9px;font-size:12px}.trend-link-button{min-height:28px;padding:0;border:0;background:transparent;color:#2563eb}.trend-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.trend-metric{min-height:92px;padding:16px 20px;border:1px solid #dde5ef;border-radius:8px;background:#fff}.trend-metric span{display:block;color:#64748b;font-size:12px;font-weight:700}.trend-metric strong{display:block;margin-top:6px;color:#172033;font-size:28px;line-height:1.2;letter-spacing:0}.trend-metric small{display:block;margin-top:6px;color:#64748b;font-size:13px}.trend-metric.tone-success strong{color:#16a34a}.trend-result-panel,.trend-rule-card{display:grid;gap:12px;padding:14px;border:1px solid #dde5ef;border-radius:8px;background:#fff;box-shadow:0 8px 22px #0f172a0a}.trend-result-header,.trend-rule-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.trend-result-header h3,.trend-rule-card-header h3{margin:0;color:#172033;font-size:18px;line-height:1.35;letter-spacing:0}.trend-result-header p,.trend-rule-card-header p{margin:4px 0 0;color:#64748b;font-size:13px}.trend-result-header>span,.trend-rule-card-actions>span{display:inline-flex;align-items:center;height:28px;padding:0 10px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:800;white-space:nowrap}.trend-rule-card-actions{display:inline-flex;align-items:center;gap:8px}.trend-filter-panel.brand-form{grid-template-columns:minmax(150px,220px) minmax(150px,220px) minmax(190px,auto);padding:0;border:0;box-shadow:none}.trend-filter-panel.blacklist-form{grid-template-columns:150px minmax(180px,1fr) auto;padding:0;border:0;box-shadow:none}.trend-keyword-status-grid{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(260px,1fr);gap:12px}.trend-keyword-status-grid>div{display:grid;gap:5px;padding:12px 14px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff}.trend-keyword-status-grid strong{color:#172033;font-size:13px}.trend-keyword-status-grid span{color:#64748b;font-size:12px;font-weight:700;line-height:1.45}.trend-table-wrap{position:relative;overflow:auto;border:1px solid #dde5ef;border-radius:8px;background:#fff}.trend-table{width:100%;min-width:1180px;border-collapse:collapse;font-size:12px}.trend-table th,.trend-table td{padding:12px 13px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:middle;white-space:nowrap}.trend-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#475569;font-weight:800}.trend-table td{color:#1f2937;font-size:14px}.trend-table-empty{padding:28px;color:#64748b;text-align:center}.trend-table td.empty{padding:16px;color:#64748b;font-weight:700;text-align:center}.trend-product-cell,.trend-actions{display:inline-flex;align-items:center;gap:8px}.trend-actions{flex-wrap:wrap}.trend-keyword-button{padding:0;border:0;background:transparent;color:#172033;font:inherit;font-weight:800;text-align:left}.trend-keyword-button:hover{color:#2563eb}.trend-level{display:inline-flex;align-items:center;justify-content:center;width:30px;height:24px;border-radius:6px;color:#fff;font-weight:800}.level-S{background:#b91c1c}.level-A{background:#f97316}.level-B{background:#2563eb}.trend-status{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-weight:800}.trend-status.excluded{background:#fee2e2;color:#991b1b}.trend-status.applied{background:#dcfce7;color:#166534}.trend-sparkline-button{display:inline-flex;padding:0;border:0;border-radius:6px;background:transparent}.trend-sparkline-button:focus{outline:2px solid #93c5fd;outline-offset:2px}.trend-line-sparkline{display:block;width:108px;height:46px}.trend-line-sparkline polyline{fill:none;stroke:#2563eb;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-progress-line{align-self:center;color:#64748b;font-size:12px;font-weight:700}.trend-rule-tabs{display:flex;align-items:center;gap:8px}.trend-notice{display:flex;align-items:center;gap:8px;min-height:40px;padding:9px 12px;border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534;font-weight:700}.trend-notice.danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}.trend-notice svg{width:16px;height:16px}.trend-notice button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:auto;border:0;border-radius:8px;background:transparent;color:currentColor}.trend-loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:12;display:grid;place-items:center;gap:10px;min-height:160px;background:#f5f7fbb8;color:#2563eb;font-weight:800}.spin{animation:trend-spin .8s linear infinite}@keyframes trend-spin{to{transform:rotate(360deg)}}.trend-no-access{display:grid;place-items:center;gap:8px;min-height:360px;padding:28px;border:1px solid #dde5ef;border-radius:8px;background:#fff;color:#64748b;text-align:center}.trend-no-access svg{width:32px;height:32px;color:#f59e0b}.trend-no-access strong{color:#172033;font-size:18px}.trend-no-access p{margin:0}.modal-mask,.trend-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:22px;background:#0f172a73}.modal,.trend-modal{display:grid;gap:0;width:min(920px,96vw);max-height:88vh;overflow:auto;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:22px;background:#fff;box-shadow:0 35px 85px #0f172a47}.modal.wide,.trend-modal.wide{width:min(1040px,96vw)}.modal.trend-detail-modal,.trend-modal.trend-detail-modal{width:min(920px,96vw);padding:0;gap:0}.modal-head,.modal.trend-detail-modal>.modal-head,.trend-modal.trend-detail-modal>header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 24px;border-bottom:1px solid #e5e7eb;background:#fff}.trend-modal>header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 24px;border-bottom:1px solid #e5e7eb;background:#fff}.modal-head h3,.trend-modal>header strong{margin:0;display:block;color:#172033;font-size:20px}.modal-head p,.trend-modal>header span{display:block;margin:5px 0 0;color:#64748b;font-size:13px;font-weight:700}.modal-head .close,.trend-modal>header button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #dbe4ef;border-radius:12px;background:#f1f5f9;color:#475569;font-size:28px;line-height:1}.modal-body{padding:22px 24px}.modal-toolbar{margin-bottom:14px}.chart-card{position:relative;margin:14px 0 18px;padding:14px;border:1px solid #dbe4ef;border-radius:16px;background:#fbfcff}.chart-legend{position:absolute;top:18px;right:24px;z-index:1;display:inline-flex;align-items:center;gap:16px;color:#475569;font-size:12px;font-weight:700;pointer-events:none}.chart-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.legend-line{position:relative;display:inline-block;width:22px;height:2px;border-radius:999px;background:currentColor}.legend-line:after{position:absolute;top:50%;left:50%;width:7px;height:7px;content:"";border:2px solid currentColor;border-radius:999px;background:#fbfcff;transform:translate(-50%,-50%)}.legend-line.display{color:#2563eb}.legend-line.click{color:#f97316}.trend-chart{display:block;width:100%;height:300px}.trend-chart .grid,.chart-card .grid{stroke:#e5edf6;stroke-width:1}.trend-chart .axis,.chart-card .axis{fill:#64748b;font-size:12px;font-weight:700}.trend-chart .display-line,.trend-chart .click-line,.chart-card .display-line,.chart-card .click-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-chart .display-line,.chart-card .display-line{stroke:#2563eb}.trend-chart .display-area,.chart-card .display-area{fill:#2563eb14}.trend-chart .display-point,.chart-card .display-point{fill:#fff;stroke:#2563eb;stroke-width:2}.trend-chart .click-line,.chart-card .click-line{stroke:#f97316}.trend-chart .click-point,.chart-card .click-point{fill:#fff;stroke:#f97316;stroke-width:2}.trend-chart .trend-hover-zone{cursor:crosshair;pointer-events:all}.trend-chart .hover-guide{stroke:#cbd5e1;stroke-width:1;stroke-dasharray:4 4}.trend-chart .hover-point{filter:drop-shadow(0 2px 5px rgba(15,23,42,.16))}.trend-chart-tooltip rect{fill:#fff;stroke:#e5e7eb;filter:drop-shadow(0 8px 18px rgba(15,23,42,.16))}.trend-chart-tooltip text{fill:#334155;font-size:11px;font-weight:700}.trend-chart-tooltip .tooltip-date{fill:#64748b;font-size:12px}.trend-chart-tooltip .tooltip-name{fill:#475569}.trend-chart-tooltip .tooltip-value{fill:#334155;font-weight:800}.trend-chart-tooltip .tooltip-dot.display{fill:#2563eb}.trend-chart-tooltip .tooltip-dot.click{fill:#f97316}.trend-inline-loading{margin-bottom:10px;color:#2563eb;font-size:13px;font-weight:800}.analysis-box{padding:16px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff;color:#334155;font-size:14px;line-height:1.8}.analysis-box h4{margin:0 0 8px;color:#1e40af;font-size:15px}.chat-modal{width:min(1180px,96vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}.chat-modal .modal-head{flex:0 0 auto}.chat-modal .modal-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:16px}.chat-context{margin-bottom:12px;padding:12px 16px;line-height:1.45}.chat-context h4{margin-bottom:8px}.chat-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 16px;font-size:13px}.chat-context-item{display:flex;align-items:center;gap:7px;min-width:0}.chat-context-item span{flex:0 0 auto;color:#64748b;font-size:12px;font-weight:900}.chat-context-item strong{min-width:0;overflow:hidden;color:#334155;text-overflow:ellipsis;white-space:nowrap}.chat-context-wide{grid-column:span 3}.chat-context-wide strong{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat-panel{flex:1;min-height:360px;margin-bottom:12px;padding:16px 18px;overflow:auto;border:1px solid #dbe4ef;border-radius:14px;background:#fff}.chat-message{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;margin-bottom:12px}.chat-role{padding-top:2px;color:#64748b;font-size:12px;font-weight:900}.chat-content{overflow:auto;padding:10px 12px;border:1px solid #dbe4ef;border-radius:12px;background:#fff;color:#334155;line-height:1.65}.chat-user .chat-content{border-color:#bfdbfe;background:#eff6ff}.chat-assistant .chat-content{background:#fff}.chat-input-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.chat-input{width:100%;min-height:78px;padding:10px 12px;resize:vertical}.market-task-modal{width:min(860px,96vw);max-height:92vh}.market-task-modal .modal-body{display:grid;gap:16px}.market-task-form{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(280px,1.3fr);gap:14px}.market-task-field{display:grid;gap:8px;color:#475569;font-size:13px;font-weight:700}.market-task-section{border:1px solid #dbe5f2;border-radius:16px;padding:14px;background:#fbfdff}.market-task-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#0f172a}.market-task-section-head span{color:#64748b;font-size:12px;font-weight:700}.market-task-filter-group{display:grid;gap:8px;margin-top:12px}.market-task-filter-label{color:#475569;font-size:13px;font-weight:800}.market-task-chip-grid{display:flex;flex-wrap:wrap;gap:8px}.market-task-chip{min-height:32px;padding:0 12px;border:1px solid #dbe5f2;border-radius:999px;background:#fff;color:#334155;font-size:13px;font-weight:700}.market-task-chip:hover,.market-task-chip:focus-visible{border-color:#93c5fd;color:#2563eb}.market-task-chip.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}.modal-error{border:1px solid #fecaca;border-radius:12px;background:#fef2f2;color:#b91c1c;padding:10px 12px;font-weight:700}.market-task-form-actions{display:flex;justify-content:flex-end;gap:10px}.trend-dimension-tabs{display:inline-flex;align-items:center;gap:8px}.trend-detail-chart{margin:14px 24px 18px;padding:14px;border:1px solid #dbe4ef;border-radius:16px;background:#fbfcff}.trend-detail-legend{display:flex;justify-content:flex-end;gap:12px;margin-bottom:4px}.trend-detail-chart svg{display:block;width:100%;height:320px}.trend-detail-chart .grid{stroke:#e5edf6;stroke-width:1}.trend-detail-chart .axis{fill:#64748b;font-size:12px;font-weight:700}.trend-detail-chart .display-line,.trend-detail-chart .click-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-detail-chart .display-line{stroke:#2563eb}.trend-detail-chart .click-line{stroke:#f97316}.trend-ai-analysis-panel,.trend-ai-answer{color:#475569;line-height:1.7}.trend-ai-analysis-panel{display:grid;gap:6px;margin:0 24px 22px;padding:16px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff;font-size:14px}.trend-ai-analysis-panel strong{color:#2563eb;font-size:16px}.trend-ai-analysis-panel h4{margin:12px 0 4px;color:#172033;font-size:16px}.trend-ai-analysis-panel p{margin:0}.trend-ai-answer{padding:18px;border:1px solid #dde5ef;border-radius:8px;background:#fbfdff;font-weight:700}.trend-modal-form{display:grid;gap:12px}.trend-modal-form textarea{min-height:160px;padding:11px;resize:vertical}.trend-modal-actions{display:flex;justify-content:flex-end;gap:10px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.summary-card{padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 10px 26px #0f172a0a}.summary-card .title{color:#6b7280;font-size:12px;font-weight:700}.summary-card .value{margin-top:6px;color:#1f2937;font-size:26px;font-weight:900;line-height:1.2}.summary-card .hint{margin-top:5px;color:#6b7280;font-size:12px}.summary-card .ai-status-done{color:#16a34a}.status-value{color:#f97316;font-size:22px!important}.card{overflow:visible;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 10px 30px #0f172a0a}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 18px 14px;border-bottom:1px solid #e5e7eb}.card-head h3{margin:0;font-size:16px;line-height:1.35}.card-head .desc{margin-top:4px;color:#6b7280;font-size:12px}.card-body,.recommend-page .card-body{padding:14px 18px}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.status-pill.green{background:#ecfdf3;color:#16a34a}.status-pill.blue{background:#eff6ff;color:#2563eb}.status-pill.orange{background:#fff7ed;color:#f97316}.dot{display:inline-block;width:7px;height:7px;border-radius:99px;background:currentColor}.table-wrap{position:relative;overflow-x:auto;overflow-y:visible;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.table-wrap th,.table-wrap td{padding:11px 13px;border-bottom:1px solid #edf2f7;color:#1f2937;line-height:1.45;text-align:left;vertical-align:middle;white-space:nowrap}.table-wrap th{background:#f8fafc;color:#475569;font-weight:800}.recommend-table-wrap{overflow-x:visible;overflow-y:visible}.recommend-table{width:100%;min-width:max(1620px,calc(100vw - 88px));table-layout:fixed;border-collapse:collapse;font-size:12px}.recommend-table .recommend-col-level{width:66px}.recommend-table .recommend-col-product{width:240px}.recommend-table .recommend-col-category{width:140px}.recommend-table .recommend-col-count{width:78px}.recommend-table .recommend-col-trend{width:114px}.recommend-table .recommend-col-core{width:144px}.recommend-table .recommend-col-segment{width:126px}.recommend-table .recommend-col-month{width:98px}.recommend-table .recommend-col-burst{width:96px}.recommend-table .recommend-col-index{width:128px}.recommend-table .recommend-col-reason{width:150px}.recommend-table .recommend-col-action{width:108px}.recommend-table th,.recommend-table td{padding:7px 10px;border-bottom:1px solid #edf2f7;color:#1f2937;line-height:18px;text-align:left;vertical-align:middle}.recommend-table th{position:sticky;top:0;z-index:24;height:auto;padding-top:8px;padding-bottom:8px;background:#f8fafc;color:#475569;font-weight:800;white-space:nowrap}.recommend-row td{height:74px}.level{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;font-weight:900}.level.S{background:#fef2f2;color:#dc2626}.level.A{background:#fff7ed;color:#f97316}.level.B{background:#eff6ff;color:#2563eb}.level.C{background:#f1f5f9;color:#64748b}.recommend-product-cell,.recommend-category-cell{overflow:hidden;white-space:normal}.product-name-cell,.recommend-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.kw-link,.recommend-product-link{border:0;background:transparent;color:#2563eb;padding:0;font:inherit;font-weight:800;text-align:left}.recommend-product-link{display:-webkit-box;flex:0 1 auto;min-width:0;min-height:18px;max-width:100%;overflow:hidden;line-height:18px;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.recommend-chat-btn{width:max-content;max-width:100%;padding:6px 10px;line-height:16px}.recommend-chat-btn.hover-only{flex:0 0 auto;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-4px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease}.recommend-product-cell:hover .recommend-chat-btn.hover-only,.recommend-product-cell:focus-within .recommend-chat-btn.hover-only,.recommend-product-cell.is-focused .recommend-chat-btn.hover-only{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(0)}.product-name-cell.is-active .recommend-chat-btn.hover-only{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(0)!important}.recommend-ai-chat-visible{flex:0 0 auto;width:max-content;max-width:100%;padding:6px 10px;line-height:16px;opacity:1;visibility:visible;pointer-events:auto;transform:translate(0)}.recommend-actions{flex-direction:column;align-items:flex-start;gap:6px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.toolbar-left,.toolbar-right,.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar-left{min-width:0}.toolbar-right{justify-content:flex-end;margin-left:auto}.small-label{color:#64748b;font-size:12px;font-weight:800;white-space:nowrap}.ai-progress{margin-left:2px}.metric-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #d8e2f0;border-radius:12px;background:#eef4ff}.metric-btn{min-height:30px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#475569;font-weight:900;white-space:nowrap}.metric-btn.active{background:#fff;color:#2563eb;box-shadow:0 4px 12px #2563eb24}.input,.select{min-height:36px;padding:0 12px;border:1px solid #d4deea;border-radius:9px;background:#fff;color:#172033;font-weight:700}.month-input{width:130px}.primary-btn,.plain-btn,.ghost-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:10px;font-weight:900;white-space:nowrap}.primary-btn{border:1px solid #2563eb;background:#2563eb;color:#fff}.plain-btn,.ghost-btn{border:1px solid #d8e2f0;background:#fff;color:#25314a}.danger-btn{border:1px solid #fecaca;background:#fff1f2;color:#dc2626}.primary-btn:disabled,.plain-btn:disabled,.ghost-btn:disabled,.danger-btn:disabled,.mini-btn:disabled{cursor:not-allowed;opacity:.58}.mini-btn{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid #d8e2f0;border-radius:9px;background:#fff;color:#25314a;font-size:12px;font-weight:900;white-space:nowrap}.mini-btn.blue{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.mini-btn.green{border-color:#bbf7d0;background:#f0fdf4;color:#16a34a}.mini-btn.red{border-color:#fecaca;background:#fff1f2;color:#dc2626}.row.nowrap{flex-wrap:nowrap}.row.end{justify-content:flex-end;margin-top:18px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-group{display:grid;gap:7px;margin-bottom:14px}.form-group label{color:#475569;font-size:12px;font-weight:900}textarea.input{min-height:90px;padding-top:10px;line-height:1.5;resize:vertical}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fbff}.checkbox-line,.switch-line{display:inline-flex;align-items:center;gap:8px;color:#25314a;font-size:13px;font-weight:800}.detail-box{min-height:120px;margin:0;padding:14px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fbff;color:#25314a;font-family:inherit;font-size:13px;line-height:1.8;white-space:pre-wrap}.admin-normal-cell{max-width:360px;white-space:normal}.permission-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.permission-groups .card-body{display:grid;gap:8px}.group-list-item{display:grid;gap:4px;width:100%;padding:12px 13px;border:1px solid #d8e2f0;border-radius:12px;background:#fff;color:#25314a;text-align:left}.group-list-item.active{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.group-list-item span{color:#64748b;font-size:12px;font-weight:800}.permission-section{display:grid;gap:10px;margin-bottom:16px}.permission-section h4{margin:0;color:#172033;font-size:14px}.log-success{color:#16a34a;font-weight:900}.log-fail{color:#dc2626;font-weight:900}.workflow-progress.compact{display:grid;gap:8px;margin-bottom:12px;padding:10px 12px;border:1px solid #dbe6f4;border-radius:12px;background:#f8fbff}.between{justify-content:space-between}.progress-wrap{height:8px;overflow:hidden;border-radius:999px;background:#e2e8f0}.progress-bar{height:100%;border-radius:inherit;background:#2563eb}.progress-bar.completed{background:#16a34a}.form-note{color:#64748b;font-size:12px}.ai-status-running{color:#2563eb;font-size:12px;font-weight:900}.ai-status-completed{color:#16a34a;font-size:12px;font-weight:900}.keyword-table-wrap{overflow:auto;border:1px solid #dce5f0;border-radius:8px;background:#fff}.keyword-table{width:100%;min-width:max(1680px,calc(100vw - 88px));border-collapse:collapse;table-layout:fixed;font-size:13px}.keyword-table th,.keyword-table td{padding:12px 10px;border-bottom:1px solid #e2e8f0;color:#25314a;text-align:left;vertical-align:middle}.keyword-table th{background:#f8fafc;color:#41516b;font-size:12px;font-weight:900}.keyword-table .keyword-col-keyword,.keyword-table .keyword-col-product{width:150px}.keyword-table .keyword-col-category{width:140px}.keyword-table .keyword-col-status{width:96px}.keyword-table .keyword-col-sparkline{width:132px}.keyword-table .keyword-col-month{width:96px}.keyword-table .keyword-col-conclusion{width:180px}.keyword-table .keyword-col-action{width:96px}.keyword-table .pg-col-product{width:180px}.keyword-table .pg-col-category{width:150px}.keyword-table .pg-col-count{width:96px}.keyword-table .pg-col-core{width:160px}.keyword-table .pg-col-sparkline{width:132px}.keyword-table .pg-col-trend,.keyword-table .pg-col-recommend,.keyword-table .pg-col-burst,.keyword-table .pg-col-level{width:118px}.keyword-table .pg-col-month{width:96px}.keyword-table .pg-col-conclusion,.keyword-table .pg-col-segment{width:180px}.keyword-excluded{background:#fff7f7}.keyword-sparkline-trigger,.product-group-sparkline-trigger{width:108px}.product-group-clamp,.conclusion-tag{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-group-segments{display:flex;gap:6px;flex-wrap:wrap}.ai-tag{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:900}.segment-tag{background:#ecfdf5;color:#15803d}.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0}.pagination-actions{display:flex;align-items:center;gap:8px}.rule-panel-switch{width:max-content}.filter-rule-panels{display:grid;gap:16px}.filter-rule-card{border-radius:16px}.filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.filter-form label{display:grid;gap:6px;color:#64748b;font-size:12px;font-weight:800}.filter-form .form-action{align-self:end}.filter-table-wrap{overflow:auto;border:1px solid #dce5f0;border-radius:8px;background:#fff}.filter-table-wrap .trend-table-wrap{border:0;border-radius:0}.filter-table-wrap .trend-table{min-width:980px}.nowrap{flex-wrap:nowrap}.confirm-copy{margin:0;color:#334155;font-weight:800;line-height:1.7}.bulk-rule-modal{width:min(720px,96vw)}.bulk-rule-textarea{min-height:220px;resize:vertical}.bulk-rule-actions{margin-top:12px}.recommend-actions .mini-btn{min-width:74px;padding:6px 10px}.recommend-category-button{max-width:100%;overflow:hidden;border:0;background:transparent;color:#334155;padding:0;font:inherit;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.recommend-category-button:hover{color:#2563eb;text-decoration:underline}.recommend-category-full{max-width:180px;margin-top:5px;padding:6px 8px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;color:#64748b;line-height:1.45;white-space:normal}.month-chip{display:inline-flex;align-items:center;margin-right:4px;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:700}.compact-text{display:block;max-width:100%;overflow:hidden;color:#334155;text-overflow:ellipsis;white-space:nowrap}.recommend-table .reason{max-width:150px;white-space:normal}.reason-stack{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.reason-text{display:-webkit-box;overflow:hidden;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sparkline-trigger{display:inline-flex;align-items:center;justify-content:center;width:112px;max-width:100%;height:38px;padding:2px 4px;border:1px solid transparent;border-radius:10px;background:transparent}.sparkline-trigger:hover,.sparkline-trigger:focus-visible{border-color:#bfdbfe;background:#eff6ff;outline:none}.trend-line-sparkline{display:block;width:104px;height:32px}.burst-periods-cell{overflow:hidden;white-space:normal}.burst-periods-list{display:flex;align-items:center;flex-wrap:wrap;gap:4px;max-height:52px;overflow:hidden}.burst-periods-cell .month-chip{margin-right:0;padding-right:8px;padding-left:8px;white-space:nowrap}.category-cascade{position:relative}.category-cascade-trigger{display:flex;align-items:center;justify-content:space-between;width:184px;min-height:40px;gap:10px;color:#334155;text-align:left}.category-cascade-trigger span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-caret{color:#94a3b8;font-weight:900}.category-cascade-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:45;display:grid;grid-template-columns:220px 220px 220px;min-height:260px;overflow:hidden;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 18px 45px #0f172a24}.category-search-panel{grid-column:1 / -1;display:grid;gap:8px;padding:10px 12px;border-bottom:1px solid #e5e7eb;background:#fff}.category-search-box{display:flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid #dbe4f0;border-radius:9px;background:#f8fbff}.category-search-input{width:100%;min-width:0;height:auto;padding:0;border:0;background:transparent;color:#1f2937;outline:0;font:inherit;font-weight:750}.category-search-input::placeholder{color:#94a3b8;font-weight:700}.category-search-results{display:grid;gap:4px;max-height:220px;overflow:auto}.category-search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;min-height:34px;gap:10px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#334155;font:inherit;font-weight:750;text-align:left}.category-search-result:hover{background:#f8fbff;color:#2563eb}.category-search-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-search-level,.category-search-empty{color:#94a3b8;font-size:12px;font-weight:850}.category-search-empty{padding:8px 9px}.category-cascade-column{min-width:0;max-height:320px;overflow:auto;padding:10px 0;border-right:1px solid #e5e7eb}.category-cascade-column:last-child{border-right:0}.category-option{display:grid;grid-template-columns:18px minmax(0,1fr) 14px;align-items:center;width:100%;min-height:42px;gap:10px;padding:8px 14px;border:0;background:#fff;color:#475569;font-weight:750;text-align:left}.category-option:hover,.category-option.inPath{background:#f8fbff;color:#1f2937}.category-option.active{color:#2563eb;font-weight:900}.category-radio{width:16px;height:16px;border:1px solid #cbd5e1;border-radius:999px;background:#fff}.category-option.active .category-radio{border-color:#2563eb;box-shadow:inset 0 0 0 4px #fff;background:#2563eb}.category-arrow{color:#94a3b8;font-weight:900}@media(max-width:1180px){.trend-filter-panel.keywords,.trend-filter-panel.recommendations,.trend-filter-panel.filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.app.trend-workspace .topbar{align-items:flex-start;flex-direction:column;height:auto;min-height:0;padding:12px 14px}.app.trend-workspace .topbar-left{align-items:flex-start;flex-direction:column;width:100%;gap:12px}.app.trend-workspace .top-brand{min-width:0}.app.trend-workspace .nav{width:100%;padding-bottom:2px}.app.trend-workspace .nav-btn{padding:8px 11px;font-size:13px}.app.trend-workspace .top-actions{width:100%;justify-content:flex-start;overflow-x:auto}.app.trend-workspace .page-heading{padding:14px 14px 0}.app.trend-workspace .content{padding:14px}.app.trend-workspace .page-title p,.app.trend-workspace .layout-note{display:none}.trend-legacy-header{align-items:flex-start;grid-template-columns:1fr;gap:12px;padding:12px 16px}.trend-legacy-tabs,.trend-legacy-actions{width:100%;justify-content:flex-start;overflow-x:auto}.trend-legacy-main{padding:16px}.trend-filter-panel.keywords,.trend-filter-panel.recommendations,.trend-filter-panel.filters,.trend-summary-grid,.trend-chart-panel,.trend-keyword-status-grid,.trend-filter-panel.brand-form,.trend-filter-panel.blacklist-form{grid-template-columns:1fr}.trend-filter-toolbar{grid-template-columns:auto auto auto 1fr}.trend-result-header,.trend-rule-card-header,.trend-page-heading{align-items:flex-start;flex-direction:column}.modal-mask,.trend-modal-backdrop{padding:12px}}:root{color-scheme:light;--primary: #2563eb;--primary-dark: #1d4ed8;--bg: #f5f7fb;--surface: #ffffff;--surface-soft: #f8fafc;--text: #172033;--muted: #64748b;--border: #d8e1ee;--success: #16a34a;--success-soft: #dcfce7;--warning: #f97316;--warning-soft: #ffedd5;--danger: #dc2626;--danger-soft: #fee2e2;--shadow: 0 8px 24px rgba(15, 23, 42, .06)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;flex:0 0 auto}.login-page,.loading-page{display:grid;place-items:center;min-height:100vh;padding:24px}.login-panel{width:min(420px,100%);padding:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.brand-row{display:flex;align-items:center;gap:12px}.brand-row strong,.brand-row span{display:block}.brand-row strong{font-weight:800}.brand-row span{margin-top:2px;color:var(--muted);font-size:12px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:var(--primary);color:#fff;font-weight:900}.tenant-login-page{align-content:center;background:radial-gradient(circle at 20% 12%,rgba(92,140,255,.16),transparent 34%),radial-gradient(circle at 84% 76%,rgba(130,100,255,.12),transparent 30%),linear-gradient(135deg,#f1f6ff,#fff 48%,#f5f1ff)}.tenant-login-card{display:grid;grid-template-columns:minmax(420px,1.18fr) minmax(360px,.82fr);width:min(1128px,calc(100vw - 48px));min-height:640px;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 24px 70px #2a3e6929}.login-illustration-panel{position:relative;display:grid;grid-template-rows:auto 1fr auto;min-height:640px;padding:42px 40px 36px;overflow:hidden;background:linear-gradient(155deg,rgba(255,255,255,.08) 0 1px,transparent 1px 56px),linear-gradient(90deg,rgba(96,165,250,.08) 0 1px,transparent 1px 74px),linear-gradient(145deg,#0d2d74,#06245d 55%,#08215b);color:#fff}.login-illustration-panel:before,.login-illustration-panel:after{position:absolute;content:"";border:1px solid rgba(96,165,250,.18);border-radius:50%;pointer-events:none}.login-illustration-panel:before{width:640px;height:640px;right:72px;top:32px}.login-illustration-panel:after{width:380px;height:200px;right:32px;top:180px;transform:rotate(-12deg);border-style:dashed}.login-brand-lockup{position:relative;z-index:1;display:inline-flex;align-items:center;gap:14px}.login-brand-lockup img{width:58px;height:58px;border-radius:8px;background:#fff}.login-brand-lockup strong,.login-brand-lockup span{display:block}.login-brand-lockup strong{font-size:28px;font-weight:900;line-height:1}.login-brand-lockup span{margin-top:6px;color:#dbeafedb;font-size:14px}.login-hero-copy{position:relative;z-index:1;align-self:center;max-width:430px}.login-hero-copy h1{margin:0;color:#fff;font-size:38px;line-height:1.45;letter-spacing:0}.login-hero-copy h1 span{color:#39a8ff}.login-title-line{width:50px;height:5px;margin:26px 0;border-radius:999px;background:#39a8ff}.login-hero-copy p{margin:0;color:#dbeafed6;font-size:15px;line-height:1.9}.login-visual-orbit{position:absolute;right:44px;top:226px;z-index:1;width:232px;height:190px;border-radius:24px;background:linear-gradient(135deg,#60a5fa3d,#2563eb14);box-shadow:inset 0 0 0 1px #93c5fd38;transform:perspective(420px) rotateY(-18deg) rotateX(12deg)}.login-ai-chip{position:absolute;left:74px;top:38px;display:grid;place-items:center;width:94px;height:58px;border-radius:18px;background:linear-gradient(135deg,#63c8ff,#4f6df5);color:#fff;font-weight:900;box-shadow:0 18px 42px #2563eb5c;transform:rotate(32deg)}.login-chart-bar{position:absolute;bottom:30px;width:22px;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#60d4ff,#2563eb)}.login-chart-bar.bar-one{left:132px;height:44px}.login-chart-bar.bar-two{left:166px;height:76px}.login-chart-bar.bar-three{left:200px;height:104px}.login-feature-strip{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.login-feature-strip article{min-width:0;padding:16px 12px;border:1px solid rgba(96,165,250,.28);border-radius:8px;background:#2563eb29;box-shadow:inset 0 1px #ffffff14}.login-feature-strip article span{display:grid;place-items:center;width:38px;height:38px;margin-bottom:10px;border-radius:8px;background:linear-gradient(135deg,#60a5fa,#2563eb);color:#fff;font-size:12px;font-weight:900}.login-feature-strip article strong,.login-feature-strip article small{display:block}.login-feature-strip article strong{font-size:14px}.login-feature-strip article small{margin-top:5px;color:#dbeafec7;font-size:12px;line-height:1.5}.tenant-auth-panel{display:flex;flex-direction:column;justify-content:center;padding:56px 64px;background:#fff}.tenant-auth-copy h2{margin:0;color:#0f2250;font-size:30px;line-height:1.2;letter-spacing:0}.tenant-auth-copy p{margin:14px 0 0;color:#6b7c99;font-size:14px}.tenant-auth-form label span{color:#172554;font-size:13px}.auth-input{display:flex;align-items:center;min-height:62px;padding:0 18px;border:1px solid #d6e1f4;border-radius:14px;background:#fff}.auth-input:focus-within{border-color:#78a8ff;box-shadow:0 0 0 4px #2563eb1a}.auth-input svg{color:#8293b4}.auth-input input{min-height:60px;padding:0 0 0 12px;border:0;border-radius:0;box-shadow:none}.auth-input input:focus{box-shadow:none}.tenant-auth-submit,.tenant-auth-switch{width:100%;min-height:60px;border-radius:12px;font-size:16px}.tenant-auth-submit{margin-top:12px;background:linear-gradient(135deg,#2468ff,#6048f5);border-color:transparent}.tenant-auth-switch{color:#2563eb}.form-success{padding:10px 12px;border:1px solid #bbf7d0;border-radius:8px;background:var(--success-soft);color:#15803d;font-size:13px}.login-footer{margin-top:18px;color:#8a9ab6;font-size:13px;text-align:center}.login-form{display:grid;gap:14px;margin-top:24px}.tenant-auth-form{gap:16px;margin-top:34px}label span{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:800}input,select{width:100%;min-height:42px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:0}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1f}.form-error{padding:10px 12px;border:1px solid #fecaca;border-radius:8px;background:var(--danger-soft);color:var(--danger);font-size:13px}.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:18px 12px;background:#101827;color:#eef4ff}.sidebar-brand{padding:0 8px 18px;border-bottom:1px solid rgba(255,255,255,.12)}.nav-list{display:grid;gap:5px;margin-top:18px}.nav-label{padding:10px 12px 4px;color:#9fb0c8;font-size:12px;font-weight:800}.nav-item,.primary-button,.secondary-button,.ghost-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid transparent;border-radius:8px;white-space:nowrap}.danger-button{color:var(--danger);border-color:#fecaca}.compact-button{min-height:34px;padding:0 10px}.icon-button{width:36px;min-width:36px;height:36px;min-height:36px;padding:0}.nav-item{justify-content:flex-start;width:100%;padding:10px 12px;background:transparent;color:#dbeafe;text-align:left}.nav-item:hover,.nav-item.is-active{background:#ffffff1f;color:#fff}.primary-button{padding:0 14px;background:var(--primary);color:#fff;border-color:var(--primary);font-weight:800}.primary-button:hover{background:var(--primary-dark)}.secondary-button,.ghost-button{padding:0 12px;background:var(--surface);color:var(--text);border-color:var(--border);font-weight:800}.ghost-button{background:transparent;color:inherit}.sidebar .ghost-button{border-color:#ffffff29}.sidebar-footer{display:grid;gap:12px;margin-top:auto;padding:14px 8px 0;border-top:1px solid rgba(255,255,255,.12)}.tenant-chip{display:flex;align-items:center;gap:8px;min-width:0;color:#dbeafe;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e}.main{min-width:0;padding:26px 28px}.topbar{display:flex;align-items:center;gap:16px;min-height:58px;margin-bottom:12px}.topbar h1{margin:2px 0 0;font-size:28px;line-height:1.1;letter-spacing:0}.eyebrow{color:var(--primary);font-size:13px;font-weight:800}.topbar-actions{display:flex;gap:10px;margin-left:auto}.context-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.context-item,.metric,.panel,.notice{border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.platform-shell .sidebar{background:#101827}.workspace-shell{display:flex;min-height:100vh;flex-direction:column}.workspace-header{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;min-height:72px;padding:12px 28px;border-bottom:1px solid var(--border);background:#fffffff0;box-shadow:0 6px 18px #0f172a0d;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tenant-workspace-header{grid-template-columns:auto minmax(0,1fr)}.workspace-brand{min-width:240px}.workspace-nav{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;overflow-x:auto;padding:2px;scrollbar-width:none}.workspace-nav::-webkit-scrollbar{display:none}.workspace-nav .nav-item{width:auto;min-height:38px;padding:0 12px;border-color:transparent;background:transparent;color:var(--muted);font-weight:800}.workspace-nav .nav-item:hover{background:var(--surface-soft);color:var(--primary)}.workspace-nav .nav-item.is-active{border-color:#bfdbfe;background:#eff6ff;color:var(--primary)}.workspace-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;overflow-x:auto;scrollbar-width:none}.workspace-actions::-webkit-scrollbar{display:none}.workspace-actions .tenant-chip{flex:0 0 auto;min-height:34px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface-soft);color:var(--text);font-weight:800;white-space:nowrap}.workspace-actions .ghost-button{flex:0 0 auto;color:var(--text);border-color:var(--border)}.workspace-actions .tenant-admin-action.is-active{border-color:#bfdbfe;background:#eff6ff;color:var(--primary)}.workspace-main{width:min(1720px,100%);margin:0 auto;padding:20px 28px 36px}.context-item{display:grid;gap:5px;min-height:60px;padding:12px}.context-item span,.metric span,.metric small{color:var(--muted);font-size:12px}.context-item strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.view-stack{display:grid;gap:16px}.tenant-bi-home{display:grid;gap:22px}.bi-home-hero{min-height:150px;padding:30px 32px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff;box-shadow:var(--shadow)}.bi-home-hero span{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:var(--primary);font-size:13px;font-weight:900}.bi-home-hero h1{margin:20px 0 0;font-size:30px;line-height:1.25;letter-spacing:0}.bi-home-hero p{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.5}.bi-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.bi-module-card{display:flex;align-items:flex-start;gap:16px;min-height:158px;padding:22px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);color:inherit;cursor:pointer;text-decoration:none;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.bi-module-card:hover{border-color:#93c5fd;box-shadow:0 12px 30px #2563eb1f;transform:translateY(-1px)}.bi-module-card:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}.bi-module-card strong{display:block;margin-top:2px;font-size:18px;line-height:1.35}.bi-module-card p{margin:12px 0 0;color:var(--muted);font-size:14px;line-height:1.55}.bi-module-icon{display:grid;flex:0 0 auto;place-items:center;width:52px;height:52px;border-radius:8px;background:var(--primary);color:#fff;font-size:20px;font-weight:900}.bi-module-icon.tone-ranking{background:#22c55e}.bi-module-icon.tone-reviewGallery{background:#8b5cf6}.bi-module-icon.tone-trend{background:#2563eb}.metric-grid,.feature-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.feature-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.metric{display:grid;gap:8px;min-height:96px;padding:14px}.metric strong{font-size:30px;line-height:1}.metric.risk{border-color:#fecaca;background:#fff7f7}.panel{padding:16px}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.panel-header h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:0}.panel-header p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.badge{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#eef2f7;color:#475569;font-size:12px;font-weight:800}.badge.success{background:var(--success-soft);color:var(--success)}.badge.warning{background:var(--warning-soft);color:var(--warning)}.badge.danger{background:var(--danger-soft);color:var(--danger)}.step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.step-card,.feature-row,.role-row,.manifest-row,.check-row,.audit-row,.rule-row,.permission-module,.empty-state{border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}.step-card{display:grid;justify-items:start;text-align:left;gap:8px;min-height:154px;padding:14px}.step-card.action-card{width:100%;color:inherit}.step-card.action-card:hover{border-color:var(--primary);background:#eff6ff}.step-card.action-card:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}.step-card svg{width:26px;height:26px;color:var(--primary)}.step-card p,.feature-row p,.role-row p,.check-row p,.audit-row p,.empty-state p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 14px;font-size:13px}.notice.success{border-color:#bbf7d0;background:#f0fdf4}.notice.warning{border-color:#fed7aa;background:#fff7ed}.feature-layout,.role-layout,.platform-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.platform-grid{grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr)}.tenant-management-panel{padding:0;overflow:visible}.feature-activation-panel{padding:0;overflow:hidden}.table-toolbar,.feature-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--border);background:var(--surface)}.table-toolbar h2,.feature-toolbar h2,.modal-header h2{margin:0;font-size:19px;line-height:1.25}.table-toolbar p,.feature-toolbar p,.modal-header p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.feature-toolbar-controls{display:flex;align-items:center;gap:10px}.feature-toolbar-controls select{width:260px;min-height:36px}.feature-mini-stats{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.feature-switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px 18px 18px}.feature-switch-section{border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.feature-switch-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px;background:#f8fafc;border-bottom:1px solid var(--border)}.feature-switch-section>header strong{font-size:14px}.feature-switch-section>header p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.feature-switch-section>header span{color:var(--muted);font-size:12px;font-weight:800}.module-switch-section>header{padding:14px}.module-switch-section.is-off>header{background:snow}.module-switch-actions{display:flex;flex-shrink:0;align-items:center;gap:8px}.feature-child-list{border-top:1px solid var(--border)}.feature-child-empty{display:flex;align-items:center;gap:8px;min-height:72px;padding:12px 14px;color:var(--muted);font-size:13px;font-weight:800}.feature-child-empty svg{width:18px;height:18px;color:var(--warning)}.feature-switch-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-height:52px;padding:9px 10px;border-top:1px solid #edf2f7}.feature-switch-row:first-child{border-top:0}.feature-switch-row.is-off{background:snow}.feature-switch-row strong,.feature-switch-row span{display:block}.feature-switch-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.feature-switch-row span{margin-top:2px;color:var(--muted);font-size:12px}.feature-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:58px;min-height:32px;padding:0 9px;border:1px solid #fecaca;border-radius:8px;background:#fff7f7;color:var(--danger);font-weight:900}.feature-toggle.is-on{border-color:#bbf7d0;background:#f0fdf4;color:var(--success)}.tenant-table-wrap{width:100%;overflow:visible}.tenant-table{min-width:960px}.tenant-table th{height:42px;background:#f8fafc}.tenant-table td{height:64px}.tenant-table tbody tr:hover{background:#f8fbff}.tenant-id{display:block;margin-top:4px}.service-period{display:flex;align-items:center;gap:8px;min-width:300px;color:var(--text);font-size:13px;font-weight:800}.service-period small{color:var(--muted);font-weight:700}.row-actions{display:flex;justify-content:flex-end;gap:8px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:24px;background:#0f172a75}.modal-panel{width:min(720px,100%);max-height:calc(100vh - 48px);overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 24px 70px #0f172a38}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid var(--border)}.modal-panel .form-grid{padding:18px}.generated-entry{display:grid;gap:6px;min-height:42px;padding:10px 12px;border:1px dashed #bfdbfe;border-radius:8px;background:#eff6ff}.generated-entry span{color:var(--muted);font-size:12px;font-weight:800}.generated-entry strong{min-width:0;overflow-wrap:anywhere;color:var(--primary);font-size:14px}.date-field{position:relative;display:grid;gap:6px;min-width:0}.date-field-label{display:block;color:var(--muted);font-size:12px;font-weight:800}.date-field-control{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px;align-items:center}.date-field-control input{min-width:0;font-weight:800}.date-calendar-button{width:42px;min-width:42px;height:42px;min-height:42px;padding:0;border-color:#bfdbfe;background:#eff6ff;color:var(--primary)}.date-calendar-button:hover{border-color:#93c5fd;background:#dbeafe}.date-picker-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:45;width:286px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 18px 46px #0f172a2e}.calendar-toolbar{display:grid;grid-template-columns:32px 32px minmax(0,1fr) 32px 32px;gap:4px;align-items:center;margin-bottom:8px}.calendar-toolbar strong{color:var(--text);font-size:16px;line-height:1;text-align:center}.calendar-nav-button{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#64748b}.calendar-nav-button.year-jump{border-color:#bfdbfe;background:#eff6ff;color:var(--primary)}.calendar-nav-button:hover{border-color:#93c5fd;background:#f8fbff}.calendar-nav-button svg{width:16px;height:16px}.calendar-week-row,.calendar-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-week-row{margin-bottom:4px}.calendar-week-row span{color:var(--muted);font-size:12px;font-weight:800;text-align:center}.calendar-day{display:grid;place-items:center;width:100%;aspect-ratio:1;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font-size:13px;font-weight:800}.calendar-day:hover{background:#eff6ff;color:var(--primary)}.calendar-day.is-outside{color:#cbd5e1}.calendar-day.is-today:not(.is-selected){border-color:#93c5fd;color:var(--primary)}.calendar-day.is-selected{background:var(--primary);color:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:10px;grid-column:1 / -1}.feature-groups,.role-list,.permission-catalog,.manifest-list,.audit-list,.checklist,.rule-list,.tenant-card-list,.form-grid{display:grid;gap:10px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.form-submit{width:fit-content}.wide-select{max-width:440px}.feature-group{display:grid;gap:10px}.feature-group h3,.permission-module h3{margin:4px 0;font-size:15px}.feature-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,auto);gap:12px;padding:13px}.feature-row.is-off{border-color:#fecaca;background:#fff7f7}.feature-state{display:grid;justify-items:end;align-content:start;gap:8px}.inline-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.admin-card{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}.admin-card span{display:block;color:var(--muted);font-size:12px;font-weight:800}.admin-card strong{display:block;margin-top:4px;font-size:20px}.avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:8px;background:var(--primary);color:#fff;font-size:24px;font-weight:900}.role-row,.manifest-row,.tenant-card,.check-row,.audit-row,.rule-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px}.tenant-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px}.tenant-card p{margin:4px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.tenant-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;color:var(--muted);font-size:13px}.tenant-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid var(--border)}.expiry-editor{display:flex;align-items:end;gap:8px}.expiry-editor.is-compact{align-items:center}.expiry-editor.is-compact .date-field{min-width:220px}.expiry-editor.is-compact input{min-height:36px}.expiry-editor.is-compact .date-field-control{grid-template-columns:minmax(136px,1fr) 36px}.expiry-editor.is-compact .date-calendar-button{width:36px;min-width:36px;height:36px;min-height:36px}.expiry-editor .date-field{min-width:170px}.check-row,.audit-row{grid-template-columns:auto minmax(0,1fr) auto}.check-row svg,.rule-row svg{color:var(--primary)}.rule-row{grid-template-columns:auto minmax(0,1fr)}.permission-module{padding:12px}.permission-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--border)}.dmp-filter-bar{display:grid;grid-template-columns:minmax(180px,1.2fr) repeat(3,minmax(140px,.8fr)) auto;gap:12px;align-items:end;margin-bottom:14px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft)}.dmp-filter-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.operation-note{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px;border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;color:#166534;font-size:13px;font-weight:800}.operation-note svg{color:var(--success)}.market-page{display:grid;gap:16px}.market-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:78px;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.brand-block{display:flex;align-items:center;gap:12px;min-width:230px}.dmp-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:var(--primary);color:#fff;font-size:20px;font-weight:900}.brand-block h1{margin:0;font-size:22px;line-height:1.2;letter-spacing:0}.brand-block p,.page-title-row p{margin:4px 0 0;color:var(--muted);font-size:13px}.market-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none}.market-nav::-webkit-scrollbar{display:none}.market-nav-tab,.primary-btn,.soft-btn,.segment-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-weight:800;white-space:nowrap}.market-nav-tab{color:var(--muted)}.market-nav-tab.active,.segment-btn.active{border-color:#bfdbfe;background:#eff6ff;color:var(--primary)}.primary-btn{border-color:var(--primary);background:var(--primary);color:#fff}.soft-btn:hover,.market-nav-tab:hover,.segment-btn:hover{border-color:#bfdbfe;background:#f8fbff;color:var(--primary)}.market-main{display:grid;gap:16px}.page-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.page-title-row h2{margin:0;font-size:22px;line-height:1.25;letter-spacing:0}.legacy-filter-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.legacy-filter-bar>label:not(.legacy-check){flex:1 1 170px;min-width:150px}.legacy-filter-bar>.keyword-field{flex-basis:210px}.legacy-check{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:42px;min-width:128px;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}.legacy-check input{width:16px;min-height:16px}.growth-filter{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;flex:1 1 250px;min-width:230px}.growth-filter>span{grid-column:1 / -1;margin-bottom:-2px;color:var(--muted);font-size:12px;font-weight:800}.table-panel{border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border-bottom:1px solid var(--border);background:#f8fafc}.panel-title-group{display:grid;gap:4px}.panel-title,.panel-actions{display:flex;align-items:center;gap:8px}.title-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eff6ff;color:var(--primary)}.panel-result,.muted-text{color:var(--muted);font-size:12px}.table-wrap{width:100%;overflow-x:auto}.tenant-admin-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:16px;align-items:start}.tenant-member-form{grid-template-columns:1fr}.tenant-members-panel .table-wrap table{min-width:720px}.tenant-operations-layout .table-wrap table{min-width:820px}.tenant-personnel-panel{display:grid;gap:16px}.tenant-management-tabs{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border)}.tenant-management-tabs button{min-height:36px;padding:0 14px;border:1px solid #d8e2f0;border-radius:8px;background:#fff;color:var(--muted);font-weight:800;cursor:pointer}.tenant-management-tabs button.is-active{border-color:#9ec5ff;background:#eff6ff;color:var(--primary)}.personnel-section{display:grid;gap:14px}.personnel-create-form,.role-create-form,.personnel-toolbar{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;align-items:end;padding:14px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fbff}.personnel-create-form .panel-header{grid-column:1 / -1;margin-bottom:0}.personnel-toolbar label{display:grid;gap:6px}.row-action-group{display:inline-flex;flex-wrap:wrap;gap:8px}.danger-action{border-color:#fecaca;color:#b91c1c}.permission-matrix-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:14px;align-items:start}.permission-group-list{display:grid;gap:8px}.permission-group-list button{display:grid;gap:5px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);text-align:left;cursor:pointer}.permission-group-list button.is-active{border-color:#9ec5ff;background:#eff6ff}.permission-group-list strong{font-size:14px}.permission-group-list span{color:var(--muted);font-size:12px;font-weight:700}.permission-matrix-panel{display:grid;gap:12px;min-width:0}.permission-matrix-header,.permission-module header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.permission-matrix-header h3{margin:0;color:var(--text);font-size:18px}.permission-matrix-header p,.permission-module header p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:700}.permission-matrix-modules{display:grid;gap:10px}.tenant-roles-layout{grid-template-columns:minmax(360px,440px) minmax(0,1fr)}.permission-checklist{display:grid;gap:10px;max-height:360px;overflow:auto;padding-right:4px}.permission-module{display:grid;gap:8px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fbff}.permission-module h3{margin:0;color:var(--text);font-size:13px}.permission-items{display:flex;flex-wrap:wrap;gap:6px}.permission-check{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 8px;border:1px solid #d8e2f0;border-radius:8px;background:#fff;color:var(--text);font-size:12px;font-weight:800}.permission-check input{width:14px;height:14px;margin:0;accent-color:var(--primary)}.permission-check small{color:var(--muted);font-size:11px;font-weight:800}.role-editor-list{display:grid;gap:12px}.role-editor-row{display:grid;gap:12px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.role-editor-row header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.role-editor-row strong{color:var(--text);font-size:15px}.role-editor-row p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:700}.inline-owner-select{min-width:150px;min-height:34px}.shop-member-scope{display:flex;flex-wrap:wrap;gap:6px;min-width:280px;max-width:520px}.shop-member-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 9px;border:1px solid #d8e2f0;border-radius:8px;background:#f8fbff;color:var(--text);font-size:12px;font-weight:800;white-space:nowrap}.shop-member-chip input{width:14px;height:14px;margin:0;accent-color:var(--primary)}.shop-member-editor{display:grid;gap:8px;min-width:360px;max-width:620px}.shop-member-tags,.shop-member-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.shop-member-tag{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 10px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:var(--text);font-weight:800;cursor:pointer}.shop-member-tag small{color:var(--primary);font-size:11px;font-weight:800}.shop-member-tag:disabled{cursor:not-allowed;opacity:.65}.shop-member-add select{min-width:180px;min-height:34px}.compact-action{min-height:34px;padding:0 10px}.settings-context{margin-top:0}table{width:100%;min-width:760px;border-collapse:collapse}.dmp-workspace table{min-width:980px}th,td{padding:13px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;font-size:14px}th{color:var(--muted);font-size:12px;font-weight:800}.table-main-cell{display:grid;gap:4px;min-width:220px}.table-main-cell span{color:var(--muted);font-size:12px}.store-cell,.trend-cell{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.store-cell svg,.trend-cell svg{width:15px;height:15px}.store-cell svg{color:var(--primary)}.number-cell{font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}.trend-cell{color:var(--success);font-weight:800}.code{max-width:100%;overflow-wrap:anywhere;font-family:SFMono-Regular,Consolas,monospace;font-size:12px;color:#475569}.empty-state{display:grid;justify-items:center;gap:8px;padding:28px;text-align:center}.empty-state svg{width:30px;height:30px;color:var(--primary)}.toast{position:fixed;right:18px;bottom:18px;max-width:min(420px,calc(100vw - 36px));padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);font-size:13px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){.tenant-login-card{grid-template-columns:1fr;width:min(720px,calc(100vw - 32px))}.login-illustration-panel{min-height:460px}.tenant-auth-panel{padding:42px}.login-feature-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:1fr}.workspace-header{grid-template-columns:1fr;align-items:stretch;gap:10px;padding:12px 14px}.workspace-brand{min-width:0}.workspace-nav,.workspace-actions{justify-content:flex-start}.sidebar{position:static;height:auto}.nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-label{grid-column:1 / -1}.topbar,.topbar-actions,.table-toolbar,.feature-toolbar,.feature-toolbar-controls{align-items:stretch;flex-direction:column}.topbar-actions{margin-left:0}.market-header,.panel-head{align-items:stretch;flex-direction:column}.brand-block{min-width:0}.market-nav,.panel-actions{justify-content:flex-start}.context-bar,.metric-grid,.bi-module-grid,.step-grid,.feature-summary,.feature-switch-grid,.tenant-admin-layout,.personnel-create-form,.role-create-form,.personnel-toolbar,.permission-matrix-layout,.dmp-filter-bar,.legacy-filter-bar,.feature-layout,.role-layout,.platform-grid,.form-grid{grid-template-columns:1fr}.dmp-filter-actions{justify-content:flex-start}}@media(max-width:560px){.tenant-login-page{padding:16px}.tenant-login-card{width:100%;border-radius:12px}.login-illustration-panel{min-height:0;padding:28px 22px}.login-brand-lockup img{width:48px;height:48px}.login-brand-lockup strong{font-size:22px}.login-hero-copy{margin-top:38px}.login-hero-copy h1{font-size:26px}.login-visual-orbit{display:none}.login-feature-strip{grid-template-columns:1fr;margin-top:32px}.tenant-auth-panel{padding:32px 22px}.tenant-auth-copy h2{font-size:26px}.auth-input,.auth-input input,.tenant-auth-submit,.tenant-auth-switch{min-height:54px}.login-footer{font-size:12px}.main,.workspace-main{padding:14px}.workspace-actions{align-items:center;flex-direction:row;justify-content:flex-start}.nav-list,.feature-row,.feature-switch-row,.role-row,.manifest-row,.tenant-card,.notice,.tenant-actions,.expiry-editor{grid-template-columns:1fr}.feature-state,.tenant-meta,.tenant-actions,.service-period,.expiry-editor{justify-items:start;justify-content:flex-start}.service-period{flex-wrap:wrap;min-width:0}.expiry-editor{align-items:stretch;width:100%}.expiry-editor.is-compact label,.expiry-editor label{min-width:0}.modal-backdrop{padding:12px}.modal-panel .form-grid{grid-template-columns:1fr}.dmp-filter-actions button{flex:1 1 130px}.bi-home-hero{padding:22px}.bi-home-hero h1{font-size:24px}.bi-module-card{min-height:132px;padding:18px}.market-nav-tab,.soft-btn,.primary-btn,.segment-btn{flex:1 1 auto}}
